/* ─── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ─── Tokens ──────────────────────────────────────────────────── */
:root {
  --bg:           #f4f4f2;
  --surface:      #ffffff;
  --surface-soft: #ededeb;
  --ink:          #0d0f0e;
  --muted:        #696c69;
  --muted-light:  #9b9e9b;
  --line:         #e0e1dc;
  --line-soft:    #eaeae6;
  --dark:         #0d0f0e;
  --white:        #ffffff;

  --shadow-soft:   0 2px 8px rgba(13,15,14,.05), 0 8px 28px rgba(13,15,14,.07);
  --shadow-medium: 0 4px 16px rgba(13,15,14,.08), 0 16px 48px rgba(13,15,14,.12);
  --shadow-strong: 0 8px 24px rgba(13,15,14,.10), 0 28px 72px rgba(13,15,14,.16), 0 48px 96px rgba(13,15,14,.07);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ─── Base ────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }

button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Layout ──────────────────────────────────────────────────── */
.site-container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

/* ─── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.site-header.is-scrolled {
  background: rgba(244,244,242,.92);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 var(--line-soft), 0 4px 24px rgba(13,15,14,.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-link img { width: 166px; height: auto; }

.main-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.main-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
  transition: color 150ms ease;
}

.main-nav a:hover { color: var(--ink); }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease,
              transform 200ms ease, box-shadow 200ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--dark);
  color: var(--white);
  border: 1.5px solid var(--dark);
}
.btn-primary:hover {
  background: #1c1e1d;
  border-color: #1c1e1d;
  box-shadow: 0 4px 16px rgba(13,15,14,.24);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: rgba(13,15,14,.4);
}

.btn-light {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--white);
}
.btn-light:hover {
  background: #f0f0ee;
  border-color: #f0f0ee;
}

.btn-dark-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.22);
}
.btn-dark-secondary:hover {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
}

.header-cta { height: 42px; padding: 0 18px; font-size: .875rem; }

/* ─── Typography ──────────────────────────────────────────────── */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.03;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  letter-spacing: -.038em;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 4rem);
  letter-spacing: -.032em;
}

p { margin: 0; color: var(--muted); line-height: 1.65; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
  opacity: .65;
}

.eyebrow-on-dark { color: rgba(255,255,255,.5); }

/* ─── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms cubic-bezier(.25,.46,.45,.94),
              transform 700ms cubic-bezier(.25,.46,.45,.94);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal[data-delay="1"] { transition-delay:  80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(72px,8vw,120px);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,3fr);
  gap: clamp(40px,5vw,80px);
  align-items: center;
}

.hero-description {
  max-width: 460px;
  margin-block: 22px 28px;
  font-size: clamp(1rem,1.15vw,1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.support-note {
  max-width: 420px;
  font-size: .845rem;
  color: var(--muted-light);
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding-bottom: clamp(28px,5vw,60px);
}

.browser-mockup {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13,15,14,.1);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.browser-bar span:nth-child(1) { background: rgba(255, 95, 87,.6); }
.browser-bar span:nth-child(2) { background: rgba(255,188, 64,.6); }
.browser-bar span:nth-child(3) { background: rgba( 40,200, 64,.6); }

.browser-mockup img { width: 100%; height: auto; display: block; }

.phone-mockup {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: clamp(142px,19vw,212px);
  padding: 9px;
  border: 1px solid rgba(13,15,14,.3);
  border-radius: 32px;
  background: var(--dark);
  box-shadow: 0 8px 24px rgba(13,15,14,.18),
              0 24px 64px rgba(13,15,14,.22),
              inset 0 0 0 1px rgba(255,255,255,.04);
}

.phone-top {
  width: 40px;
  height: 5px;
  margin: 3px auto 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.phone-mockup img { width: 100%; height: auto; border-radius: 22px; }

/* ─── How section ─────────────────────────────────────────────── */
.how-section {
  padding-block: clamp(80px,8vw,120px);
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.45fr);
  gap: clamp(40px,5.5vw,80px);
  align-items: start;
}

.how-copy > p:not(.eyebrow) {
  max-width: 420px;
  margin-block: 18px 28px;
  font-size: 1.02rem;
}

.tabs-list { display: grid; gap: 8px; }

.step-tab {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
  overflow: hidden;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.step-tab:hover:not(.is-active) { background: var(--surface-soft); }

.tab-num {
  flex-shrink: 0;
  padding-top: 2px;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted-light);
  line-height: 1;
  transition: color 200ms ease;
}

.tab-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tab-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  transition: color 200ms ease;
}

.tab-body small {
  display: block;
  font-size: .87rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.55;
  transition: color 200ms ease;
}

.tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: rgba(255,255,255,.38);
}

@keyframes progress-fill {
  from { width: 0%; }
  to   { width: 100%; }
}

.step-tab.is-active {
  background: var(--dark);
  border-color: var(--dark);
  box-shadow: 0 4px 16px rgba(13,15,14,.16);
}

.step-tab.is-active .tab-num  { color: rgba(255,255,255,.38); }
.step-tab.is-active .tab-body strong,
.step-tab.is-active .tab-body small { color: rgba(255,255,255,.88); }

.step-tab.is-active.is-auto .tab-progress {
  animation: progress-fill 5400ms linear forwards;
}

/* ─── Tab panels ──────────────────────────────────────────────── */
.tab-panels {
  display: grid;
  border-radius: var(--radius-xl);
}

.tab-panel {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  padding: clamp(20px,3vw,40px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface-soft);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 340ms cubic-bezier(.25,.46,.45,.94),
              transform 340ms cubic-bezier(.25,.46,.45,.94);
}

.tab-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 1;
}

.tab-panel img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(13,15,14,.12);
}

.panel-phone {
  width: min(100%, 252px);
  padding: 9px;
  border: 1px solid rgba(13,15,14,.24);
  border-radius: 30px;
  background: var(--dark);
  box-shadow: 0 12px 40px rgba(13,15,14,.2),
              inset 0 0 0 1px rgba(255,255,255,.04);
}

.panel-phone img { border-radius: 21px; box-shadow: none; }

/* ─── Demo / CTA section ──────────────────────────────────────── */
.demo-section {
  padding-block: clamp(80px,8vw,120px);
  background: radial-gradient(ellipse 90% 70% at 25% 50%, #1c1f1d 0%, #0d0f0e 100%);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(300px,.65fr);
  gap: clamp(40px,5.5vw,80px);
  align-items: center;
}

.demo-section h2 {
  color: var(--white);
  margin-block: 20px 18px;
}

.demo-section p {
  color: rgba(255,255,255,.62);
  font-size: 1.05rem;
  max-width: 600px;
}

.demo-secondary {
  margin-top: 16px;
  font-size: .92rem !important;
  color: rgba(255,255,255,.4) !important;
}

.contact-card {
  padding: clamp(26px,4vw,40px);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),
              0 24px 64px rgba(0,0,0,.24);
}

.contact-name {
  margin: 0;
  font-family: var(--font-display);
  color: var(--white) !important;
  font-size: 1.28rem !important;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.contact-role {
  margin: 6px 0 24px;
  color: rgba(255,255,255,.4) !important;
  font-size: .87rem;
  font-weight: 500;
}

.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.email-link {
  display: inline-flex;
  margin-top: 20px;
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.email-link:hover { color: var(--white); }

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  padding-block: 36px;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.07);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 32px;
}

.footer-brand {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .94rem;
  letter-spacing: -.02em;
  color: var(--white);
}

.footer-brand-block p:not(.footer-brand) {
  color: rgba(255,255,255,.35);
  font-size: .84rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

.footer-links a,
.copyright {
  color: rgba(255,255,255,.4);
  font-size: .845rem;
  font-weight: 500;
}

.footer-links a { transition: color 150ms ease; }
.footer-links a:hover { color: rgba(255,255,255,.8); }

.copyright { margin: 0; white-space: nowrap; }

/* ─── Responsive: tablet ──────────────────────────────────────── */
@media (max-width: 1040px) {
  .hero-grid,
  .how-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding-block: 72px 80px; }

  .hero-copy { max-width: 680px; }

  .hero-visual {
    max-width: 780px;
    margin-inline: auto;
    padding-bottom: clamp(44px,8vw,64px);
  }

  .phone-mockup { right: 0; bottom: 0; }

  .tab-panel { min-height: 440px; }
}

/* ─── Responsive: mobile ──────────────────────────────────────── */
@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: auto auto;
    height: 64px;
    gap: 16px;
  }

  .brand-link img { width: 136px; }
  .main-nav { display: none; }

  .header-cta {
    height: 40px;
    padding: 0 16px;
    font-size: .84rem;
  }

  h1 {
    font-size: clamp(2.1rem,9.5vw,2.9rem);
    letter-spacing: -.042em;
  }

  h2 { font-size: clamp(1.9rem,8.5vw,2.75rem); }

  .hero { padding-block: 52px 64px; }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn { width: 100%; }

  .hero-visual { padding-bottom: clamp(44px,12vw,60px); }

  .browser-mockup { border-radius: 18px; }
  .browser-bar { height: 30px; }

  .phone-mockup {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(44%,156px);
    margin: -48px 12px 0 auto;
  }

  .how-section,
  .demo-section { padding-block: 64px; }

  .step-tab { padding: 16px 18px; }

  .tab-panel {
    min-height: unset;
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .tab-panels { border-radius: var(--radius-lg); }

  .panel-phone { width: min(76%,248px); }

  .contact-card { border-radius: var(--radius-lg); }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-links { display: grid; gap: 10px; }
}

@media (max-width: 430px) {
  .brand-link img { width: 124px; }

  .header-cta {
    height: 38px;
    padding: 0 14px;
    font-size: .82rem;
  }

  .hero-description { font-size: 1rem; }
  .support-note { font-size: .82rem; }

  .phone-mockup {
    width: min(48%,148px);
    margin-top: -38px;
  }
}

/* ─── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
