/* ==========================================================================
   AMSDAL landing — palette & tokens (derived from docs.amsdal.com)
   ========================================================================== */
:root {
  /* Brand */
  --coral:         #F35858;
  --coral-soft:    #F9B4B4;
  --coral-deep:    #CC4A4A;

  /* Neutrals */
  --ink:           #24262B;
  --ink-60:        rgba(36, 38, 43, 0.60);
  --ink-30:        rgba(36, 38, 43, 0.30);
  --ink-10:        rgba(36, 38, 43, 0.10);
  --ink-06:        rgba(36, 38, 43, 0.06);
  --paper:         #FAFAFA;
  --paper-2:       #F3F3F4;
  --paper-warm:    #F7F7F5;
  --stroke:        #E6E6E8;
  --stroke-2:      #818386;

  /* Accents */
  --cyan:          #48D3FF;
  --cyan-deep:     #3498B7;
  --mint:          #2DB48F;
  --mint-bright:   #3EFAC7;
  --magenta:       #FF55AB;
  --note-bg:       #F5FCFE;

  /* Typography */
  --font-body:  'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', 'Lexend Deca', -apple-system, sans-serif;
  --font-mono: 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(80px, 12vh, 160px);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

em { font-style: italic; }
strong { font-weight: 700; }

::selection {
  background: var(--coral);
  color: #fff;
}

/* ==========================================================================
   Ambient background orbs — slow drift, subtle
   ========================================================================== */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.bg-orb--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--coral) 0%, transparent 70%);
  top: -150px; left: -150px;
}
.bg-orb--2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  top: 40%; right: -200px;
  opacity: 0.22;
}
.bg-orb--3 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  bottom: -200px; left: 30%;
  opacity: 0.18;
}

/* ==========================================================================
   Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.4s var(--ease-out-expo), backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(250, 250, 250, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--ink-06);
}
.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 2.2px;
  color: var(--coral);
  transition: opacity 0.3s;
}
.nav__logo:hover { opacity: 0.75; }
.nav__logo-text {
  display: inline-block;
}
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-60);
  transition: color 0.3s;
  position: relative;
}
.nav__link:hover { color: var(--coral); }

@media (max-width: 800px) {
  .nav__links { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out-expo), background 0.3s, color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  white-space: nowrap;
}
.btn--lg { padding: 16px 32px; font-size: 15px; }
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px var(--coral);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-30);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 24px 0;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin: 0 0 48px 0;
}
.text-coral { color: var(--coral); }
.lede {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px var(--gutter) 180px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-06) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 75%);
}
.hero__glow {
  position: absolute;
  top: 55%; left: 50%;
  width: 1000px; height: 1000px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--coral) 0%, transparent 55%);
  opacity: 0.18;
  filter: blur(40px);
  animation: pulse 7s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.18; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.30; transform: translate(-50%, -50%) scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--ink-10);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-60);
  margin-bottom: 40px;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(243, 88, 88, 0.2);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 160px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -3px;
  margin: 0 0 36px 0;
}
.hero__title .reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.08em;
}
.hero__title .reveal-line:last-child {
  margin-bottom: 0;
}
.hero__title .reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.hero__dot {
  color: var(--coral);
  font-style: normal;
  display: inline-block;
}

.hero__lede {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--ink-60);
  max-width: 640px;
  margin: 0 auto 48px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-60);
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--ink-30), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--coral));
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { top: -50%; }
  100% { top: 100%; }
}
@media (max-height: 760px), (max-width: 600px) {
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Question section
   ========================================================================== */
.question {
  padding: var(--section-pad) 0;
  text-align: center;
}
.question__text {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.8px;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--ink);
}
.question__text em {
  color: var(--coral);
  font-style: italic;
  font-weight: 600;
}

/* ==========================================================================
   Plain terms section — two column
   ========================================================================== */
.plain {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--ink-10);
}
.plain__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.plain__label .eyebrow {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1.5px;
}
.plain__body p { margin: 0 0 20px; font-size: 18px; line-height: 1.6; color: var(--ink-60); }
.plain__body p:first-child { color: var(--ink); }
.plain__body .accent-line {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-top: 32px;
  padding-left: 20px;
  border-left: 3px solid var(--coral);
}
@media (max-width: 800px) {
  .plain__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================================================
   Compare section
   ========================================================================== */
.compare {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--ink-10);
}

.compare__table {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  border-top: 1px solid var(--ink-10);
  border-left: 1px solid var(--ink-10);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px -30px var(--ink-10);
}
.compare__row {
  display: contents;
}
.compare__cell {
  padding: 20px 22px;
  border-right: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  display: flex;
  align-items: center;
}
.compare__cell--label {
  color: var(--ink-60);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: var(--paper-2);
}
.compare__cell--label small { text-transform: none; letter-spacing: 0; font-weight: 400; }

.compare__row--head .compare__cell {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 24px 22px;
  position: relative;
}
.compare__row--head .compare__cell--label {
  background: var(--ink);
}
.compare__row--head .compare__cell--hi {
  background: var(--coral);
  color: #fff;
}
.compare__cell--hi {
  background: rgba(243, 88, 88, 0.06);
  color: var(--ink);
  font-weight: 500;
  position: relative;
}

.compare__badge {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 10px;
  font-family: var(--font-mono);
  background: #fff;
  color: var(--coral);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 1.2px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .compare__table {
    grid-template-columns: 1fr;
    border-left: 0;
  }
  .compare__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--ink-10);
  }
  .compare__row:last-child { border-bottom: 0; }
  .compare__row--head { display: none; }
  .compare__cell {
    border: 0;
    border-right: 1px solid var(--ink-10);
    padding: 16px 18px;
    font-size: 14px;
  }
  .compare__cell:last-child { border-right: 0; }
  .compare__cell--label {
    grid-column: 1 / -1;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    border-right: 0;
  }
  .compare__cell::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ink-60);
    margin-bottom: 4px;
  }
  .compare__cell--hi { background: rgba(243, 88, 88, 0.08); }
  .compare__cell--hi::before { color: var(--coral); font-weight: 600; }
}

/* ==========================================================================
   Callout / quote section
   ========================================================================== */
.callout {
  padding: var(--section-pad) 0;
}
.callout__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px);
  background: var(--paper-warm);
  border-radius: 24px;
  border: 1px solid var(--ink-10);
  position: relative;
  overflow: hidden;
}
.callout__inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--coral), var(--cyan), var(--mint));
}
.callout__q {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin: 0 0 32px;
  color: var(--ink);
}
.callout__body p {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-60);
}
.callout__body p:last-child { margin-bottom: 0; }
.callout__pull {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  padding: 20px 0;
  margin: 12px 0 !important;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
}

/* ==========================================================================
   Features grid — 9 cards
   ========================================================================== */
.features {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--ink-10);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  padding: 32px 28px 36px;
  background: #fff;
  border: 1px solid var(--ink-10);
  border-radius: 20px;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, border-color 0.4s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, var(--coral), var(--coral) 40%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--coral);
  box-shadow: 0 20px 50px -20px rgba(243, 88, 88, 0.25);
}
.card:hover::before { transform: scaleX(1); }
.card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--coral);
  font-weight: 500;
}
.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--ink);
}
.card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-60);
  margin: 0;
}
@media (max-width: 900px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   How we work
   ========================================================================== */
.how {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--ink-10);
  text-align: center;
}
.how__inner {
  max-width: 900px;
}
.how__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1.4px;
  margin: 0 0 32px;
}
.how__body {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--ink-60);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(243, 88, 88, 0.12), transparent 70%);
  pointer-events: none;
}
.cta__inner { text-align: center; position: relative; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 84px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -2px;
  margin: 0 0 48px;
}
.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--ink-10);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 2.2px;
  color: var(--coral);
}
.footer__meta {
  font-size: 13px;
  color: var(--ink-60);
  margin: 0;
}

/* ==========================================================================
   Reveal utilities — initial states set via CSS so no FOUC before JS runs
   ========================================================================== */
.reveal, .reveal-words > *, .reveal-words em {
  /* JS will animate; CSS sets starting state */
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in,
  .hero__title .reveal-line > span,
  .bg-orb, .hero__glow, .hero__eyebrow .dot, .hero__scroll-line::after {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
