*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #4a248f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin-top: 0; }

.obm {
  --obm-ink: #ffffff;
  --obm-ink-soft: #e6dcfa;
  --obm-accent: #ffffff;
  --obm-accent-ink: #4a248f;
  min-height: 100vh;
  color: var(--obm-ink);
  /* Assista X primary (violet) to Odooboard primary (deep purple) */
  background: linear-gradient(160deg, #8b5cf6 0%, #6d3fc4 45%, #4a248f 100%);
  background-color: #6d3fc4;
  overflow-x: hidden;
  --gutter: clamp(16px, 4vw, 48px);
}

.obm a { color: inherit; text-decoration: none; }
.obm :focus-visible { outline: 3px solid var(--obm-accent); outline-offset: 3px; }

.obm-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
}
.obm-bar-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; }
.obm-bar-brand img { background: #fff; border-radius: 8px; padding: 3px; }

.obm a.obm-btn {
  display: inline-block; background: var(--obm-accent); color: var(--obm-accent-ink);
  font-weight: 700; font-size: 17px; padding: 16px 28px; border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}
.obm-btn:hover { transform: translateY(-2px); background: #efe7ff; }
.obm-btn:active { transform: translateY(0) scale(.98); }
.obm-btn-small { font-size: 15px; padding: 10px 20px; }

.obm-hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gutter); align-items: center;
  padding: clamp(24px, 5vw, 64px) 0 clamp(64px, 9vw, 140px) var(--gutter);
  min-height: calc(100vh - 80px);
}
.obm-hero-text h1 {
  font-size: clamp(40px, 5.6vw, 88px); line-height: 1; letter-spacing: -0.035em;
  font-weight: 700; margin: 0 0 24px; max-width: 12ch;
}
.obm-hero-text p {
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--obm-ink);
  max-width: 44ch; margin: 0 0 36px;
}

.obm-merge { display: flex; align-items: center; gap: 18px; margin-top: 56px; }
.obm-chip { display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; height: 76px; }
.obm-chip-from { background: #fff; width: 76px; }
.obm-chip-to { background: rgba(255,255,255,.14); padding: 0 24px; }
.obm-arrow { width: 90px; color: var(--obm-accent); }
.obm-arrow path { stroke-dasharray: 140; stroke-dashoffset: 140; animation: obm-draw 1.4s .4s ease forwards; }

.obm-shot { display: block; position: relative; transform: translateX(0); transition: transform .4s ease; }
.obm-shot img {
  display: block; width: 100%; height: auto; border-radius: 20px 0 0 20px;
  box-shadow: 0 30px 80px rgba(10, 0, 40, .55);
}
.obm-shot:hover { transform: translateX(-8px); }

.obm-second { padding: clamp(80px, 10vw, 160px) var(--gutter); }
.obm-second h2 {
  font-size: clamp(32px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 clamp(32px, 4vw, 56px); font-weight: 700;
}
.obm-second-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.obm-second-grid img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 24px 70px rgba(10, 0, 40, .5); }

.obm-close {
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
  padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(72px, 9vw, 140px);
}
.obm-close-link img { width: min(360px, 70vw); height: auto; display: block; transition: transform .3s ease; }
.obm-close-link:hover img { transform: scale(1.02); }

/* entrance */
.obm-hero-text > *, .obm-shot { animation: obm-rise .8s ease both; }
.obm-hero-text > :nth-child(2) { animation-delay: .08s; }
.obm-hero-text > :nth-child(3) { animation-delay: .16s; }
.obm-hero-text > :nth-child(4) { animation-delay: .24s; }
.obm-shot { animation-delay: .2s; }

@keyframes obm-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes obm-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
  .obm-hero { grid-template-columns: 1fr; padding-right: 0; min-height: 0; }
  .obm-hero-text { padding-right: var(--gutter); }
  .obm-second-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .obm-merge { margin-top: 40px; }
  .obm-chip { height: 64px; }
  .obm-chip-from { width: 64px; }
  .obm-arrow { width: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .obm-hero-text > *, .obm-shot { animation: none; }
  .obm-arrow path { animation: none; stroke-dashoffset: 0; }
  .obm-btn, .obm-shot, .obm-close-link img { transition: none; }
}
