/* ══════════════════════════════════════════════════════════════
   Belport AI — Apple-grade product page
   System font stack (SF on Apple devices), Inter fallback
═══════════════════════════════════════════════════════════════ */

:root {
  --white: #fbfbfd;
  --black: #000000;
  --card-light: #f5f5f7;
  --card-dark: #161617;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --muted-dark: #86868b;
  --hairline-light: #d2d2d7;
  --hairline-dark: rgba(255, 255, 255, 0.1);
  --gold: #c9a25c;
  --gold-deep: #a8843f;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
          'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--black); scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-form { max-width: 660px; }

section { scroll-margin-top: 60px; }

::selection { background: rgba(201, 162, 92, 0.3); }

/* Gradient accent text */
.grad {
  background: linear-gradient(97deg, #eed7a3 5%, #c9a25c 48%, #a8843f 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* ── NAV ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 52px;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner {
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; }
.nav-logo {
  height: 22px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.nav-wordmark {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f5f5f7;
}
.nav-links { display: flex; gap: 28px; margin-left: 16px; }
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 247, 0.8);
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: #1d1d1f;
  background: var(--gold);
  border-radius: 980px;
  padding: 6px 14px;
  transition: background 0.3s var(--ease);
}
.nav-cta:hover { background: #d6b06a; }

.hamburger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  border-radius: 2px;
  margin: 0 auto;
  background: #f5f5f7;
  transition: transform 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: #000;
  padding: 80px 32px 36px;
  display: flex;
  flex-direction: column;
  transform: translateY(-103%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #f5f5f7;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu a:last-of-type { border-bottom: none; color: var(--gold); }


/* ── HERO ────────────────────────────────────── */
.hero {
  background: var(--black);
  text-align: center;
  padding: 148px 24px 96px;
  overflow: hidden;
}
.hero-eyebrow {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gold);
}
.hero-title {
  font-size: clamp(46px, 7.4vw, 96px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: #f5f5f7;
  margin-top: 14px;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.5;
  color: var(--muted-dark);
  max-width: 580px;
  margin: 22px auto 0;
}
.hero-ctas {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  background: var(--gold);
  color: #161617;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 980px;
  padding: 14px 28px;
  transition: background 0.3s var(--ease);
}
.pill:hover { background: #d6b06a; }

.tlink {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gold);
}
.tlink .chev { display: inline-block; transition: transform 0.3s var(--ease); }
.tlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.tlink:hover .chev { transform: translateY(3px); }

/* Phone demo — the production WhatsApp artifact, centre stage */
.phone-stage {
  position: relative;
  margin: 84px auto 0;
  width: 420px;
  max-width: 100%;
}
.phone-glow {
  position: absolute;
  inset: -8% -30%;
  background:
    radial-gradient(ellipse 52% 46% at 50% 42%, rgba(37, 211, 102, 0.16), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 60%, rgba(201, 162, 92, 0.08), transparent 75%);
  filter: blur(10px);
  pointer-events: none;
}
.phone-frame {
  position: relative;
  width: 420px;
  height: 750px;
  margin: 0 auto;
  filter: drop-shadow(0 36px 80px rgba(0, 0, 0, 0.65));
}
.phone-iframe {
  display: block;
  background: transparent;
  border-radius: 48px;
  transform-origin: top center;
}
.hero-note {
  margin-top: 36px;
  font-size: 12px;
  color: var(--muted);
}

/* Hero load-in */
.rise {
  opacity: 0;
  transform: translateY(26px);
  animation: riseIn 1s var(--ease) forwards;
}
.r1 { animation-delay: 0.05s; }
.r2 { animation-delay: 0.14s; }
.r3 { animation-delay: 0.24s; }
.r4 { animation-delay: 0.34s; }
.r5 { animation-delay: 0.5s; }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }


/* ── SECTIONS ────────────────────────────────── */
.sec { padding: 150px 0; text-align: center; }
.sec-light { background: var(--white); }
.sec-dark { background: var(--black); }

.sec-title {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.08;
  color: var(--ink);
}
.sec-dark .sec-title { color: #f5f5f7; }
.sec-title em { font-style: italic; }

.sec-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
  margin: 20px auto 0;
}
.sec-dark .sec-sub { color: var(--muted-dark); }


/* ── STATS ───────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}
.stat-card {
  background: var(--card-light);
  border-radius: 28px;
  padding: 60px 24px 52px;
}
.stat-num {
  font-size: clamp(48px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-cap {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}
.footnote {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted-dark);
}


/* ── LEDGER ──────────────────────────────────── */
.ledger-card {
  background: var(--card-dark);
  border-radius: 28px;
  padding: 14px 36px;
  margin-top: 64px;
  text-align: left;
}
.ledger-row {
  display: grid;
  grid-template-columns: 60px 44px minmax(0, 1fr) 270px;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline-dark);
}
.ledger-card .ledger-row:last-child { border-bottom: none; }
.ledger-head {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding: 16px 0 12px;
}
.lg-time { font-size: 13px; font-weight: 500; color: var(--gold); font-variant-numeric: tabular-nums; }
.lg-unit { font-size: 13px; color: var(--muted-dark); }
.lg-query { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: #f5f5f7; line-height: 1.4; }
.lg-res {
  font-size: 14px;
  color: var(--muted-dark);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.dot-ok  { background: #30d158; }
.dot-esc { background: var(--gold); }


/* ── DASHBOARD FRAME ─────────────────────────── */
.dash-frame {
  max-width: 940px;
  margin: 64px auto 22px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 44px 100px rgba(0, 0, 0, 0.6),
    0 14px 36px rgba(0, 0, 0, 0.45),
    0 0 70px rgba(201, 162, 92, 0.08);
}
.dash-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: #161617;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dash-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.dash-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--muted-dark);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 5px 16px;
  white-space: nowrap;
}
.dash-img { display: block; width: 100%; }


/* ── CAPABILITY CARDS ────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.cap-card {
  background: var(--card-dark);
  border-radius: 28px;
  padding: 40px 36px;
  text-align: left;
}
.cap-icon {
  display: inline-flex;
  width: 30px; height: 30px;
  color: var(--gold);
  margin-bottom: 18px;
}
.cap-icon svg { width: 100%; height: 100%; }
.cap-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #f5f5f7;
}
.cap-card p {
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-dark);
}


/* ── STEPS ───────────────────────────────────── */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}
.step-card {
  background: var(--card-light);
  border-radius: 28px;
  padding: 36px 28px;
  text-align: left;
}
.step-day {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
}
.step-card h3 {
  margin-top: 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.step-card p {
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}


/* ── IMAGE BAND ──────────────────────────────── */
.band {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    image-set(
      url('hero@2x.webp') type('image/webp'),
      url('hero.png') type('image/png')
    ) center 38% / cover no-repeat;
}
.band-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}
.band-copy { position: relative; padding: 120px 24px; }
.band-copy h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: #f5f5f7;
}
.band-copy p {
  margin-top: 12px;
  font-size: clamp(16px, 2vw, 21px);
  color: rgba(245, 245, 247, 0.82);
}


/* ── CONTACT FORM ────────────────────────────── */
.contact-form {
  position: relative;
  margin-top: 56px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-field .opt { font-weight: 400; color: var(--muted-dark); }

.form-field input,
.form-field select {
  width: 100%;
  font-family: var(--font);
  font-size: 17px;
  color: var(--ink);
  background: var(--card-light);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 15px 16px;
  outline: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.form-field input::placeholder { color: var(--muted-dark); }
.form-field input:focus,
.form-field select:focus {
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 92, 0.22);
}
.form-field select:has(option[value=""]:checked) { color: var(--muted-dark); }

.form-submit {
  width: 100%;
  margin-top: 18px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #161617;
  background: var(--gold);
  border: none;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.form-submit:hover { background: #d6b06a; }
.form-submit:disabled { cursor: default; }

.form-note {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.form-trust {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-light);
  text-align: center;
  font-size: 12px;
  color: var(--muted-dark);
}


/* ── FOOTER ──────────────────────────────────── */
.footer {
  background: var(--card-light);
  padding: 36px 0 42px;
}
.footer-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline-light);
}
.footer-bar {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.footer-links span { color: var(--hairline-light); }
.footer-links a,
.footer-links button {
  font-family: var(--font);
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.footer-links a:hover,
.footer-links button:hover { color: var(--ink); text-decoration: underline; }


/* ── SCROLL REVEAL ───────────────────────────── */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.revealed,
.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.revealed > *:nth-child(7) { transition-delay: 0.48s; }


/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .sec { padding: 100px 0; }

  .stat-grid { grid-template-columns: 1fr; gap: 16px; }
  .stat-card { padding: 44px 24px 40px; }

  .cap-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .ledger-card { padding: 8px 24px; }
  .ledger-row { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; }
  .ledger-head { display: none; }
  .lg-unit { display: none; }
  .lg-query { grid-column: 2; }
  .lg-res { grid-column: 2; white-space: normal; }
  .lg-time { grid-row: 1; padding-top: 2px; }
}

@media (max-width: 560px) {
  .hero { padding: 120px 20px 72px; }
  .hero-ctas { gap: 18px; }

  .phone-stage { width: 336px; height: 600px; margin: 64px auto 0; }
  .phone-frame { position: absolute; top: 0; left: 0; transform: scale(0.8); transform-origin: top left; }
  .phone-iframe { transform: none; }

  .step-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .dash-frame { margin-top: 44px; border-radius: 12px; }
  .dash-bar { height: 34px; }
  .dash-url { display: none; }

  .band { min-height: 52vh; }

  .footer-bar { flex-direction: column; align-items: flex-start; }
}

/* ── REDUCED MOTION ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; transform: none; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}
