/* ============================================================
   Clyve Marketing Site — style.css
   Editorial SaaS look: soft shadows, hairlines, weight-300 type,
   pill buttons, gradient-mesh hero. See vora/CLAUDE.md's
   "Clyve Brand & UI System" section for the full spec.
   ============================================================ */

:root {
  /* Color */
  --primary:        #533afd;
  --primary-deep:    #4434d4;
  --primary-soft:    #665efd;
  --primary-subdued: #b9b9f9;
  --brand-dark:      #1c1e54;
  --ruby:            #ea2261;
  --canvas:          #ffffff;
  --canvas-soft:     #f6f9fc;
  --canvas-cream:    #f5e9d4;
  --hairline:        #e3e8ee;
  --ink:             #0d253d;
  --ink-secondary:   #273951;
  --ink-mute:        #64748d;

  /* Type */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Bricolage Grotesque', var(--font-sans);

  /* Shape */
  --radius-pill: 9999px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --shadow-1: 0 2px 10px rgba(13,37,61,.06);
  --shadow-2: 0 10px 28px rgba(13,37,61,.09);
  --shadow-3: 0 28px 64px rgba(13,37,61,.14);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--canvas);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 96px 0; }
@media (max-width: 768px) { .sec { padding: 64px 0; } }

/* ---- Type scale ---- */
.display-xxl { font-family: var(--font-sans); font-weight: 300; font-size: 60px; line-height: 1.04; letter-spacing: -0.025em; }
.display-xl  { font-family: var(--font-sans); font-weight: 300; font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; }
.display-lg  { font-family: var(--font-sans); font-weight: 300; font-size: 34px; line-height: 1.1;  letter-spacing: -0.015em; }
.display-md  { font-family: var(--font-sans); font-weight: 300; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.heading-lg  { font-family: var(--font-sans); font-weight: 400; font-size: 21px; line-height: 1.3; }
.body-lg     { font-family: var(--font-sans); font-weight: 300; font-size: 18px; line-height: 1.6; }
.body-md     { font-family: var(--font-sans); font-weight: 300; font-size: 16px; line-height: 1.65; }
.caption     { font-family: var(--font-sans); font-weight: 400; font-size: 13px; line-height: 1.5; }
.micro-cap   { font-family: var(--font-sans); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.tnum        { font-feature-settings: 'tnum' 1; }
@media (max-width: 768px) {
  .display-xxl { font-size: 38px; }
  .display-xl  { font-size: 32px; }
  .display-lg  { font-size: 26px; }
}

/* ---- Wordmark ---- */
.wordmark {
  display: inline-flex; align-items: baseline; font-family: var(--font-display);
  font-weight: 700; letter-spacing: -0.02em; user-select: none;
}
.wordmark .dot { color: var(--primary); }
.wordmark.on-light { color: var(--primary); }
.wordmark.on-light .dot { color: var(--ink); }
.wordmark.on-dark { color: #fff; }
.wordmark.on-dark .dot { color: var(--primary-soft); }

/* ---- Eyebrow / tag ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-subdued); color: var(--primary-deep);
  border-radius: var(--radius-pill); padding: 6px 14px;
}
.eyebrow.on-dark { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-pill); padding: 14px 26px;
  font-family: var(--font-sans); font-weight: 500; font-size: 15px;
  border: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-on-dark { background: #fff; color: var(--brand-dark); }
.btn-on-dark:hover { background: var(--canvas-soft); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---- Cards ---- */
.card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-1);
}
.card-flat { background: var(--canvas-soft); border-radius: var(--radius-xl); }
.card-dark { background: var(--brand-dark); border-radius: var(--radius-xl); color: #fff; }
.card-cream { background: var(--canvas-cream); border-radius: var(--radius-xl); }

/* ---- Gradient mesh (hero backdrop) ---- */
.mesh {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.mesh::before {
  content: ''; position: absolute; inset: -10%;
  background:
    radial-gradient(circle at 12% 18%, rgba(245,233,212,.9), transparent 38%),
    radial-gradient(circle at 78% 8%,  rgba(185,185,249,.85), transparent 42%),
    radial-gradient(circle at 92% 55%, rgba(234,34,97,.18), transparent 40%),
    radial-gradient(circle at 35% 70%, rgba(83,58,253,.16), transparent 45%);
  filter: blur(60px);
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; background: rgba(255,255,255,0);
  transition: background .2s ease, box-shadow .2s ease, padding .2s ease;
}
#nav.scrolled {
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline); padding: 12px 24px;
}
.nav-inner { max-width: 1180px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--ink-secondary); }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* Mobile sticky bottom CTA */
#mobile-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 998;
  opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
#mobile-bar.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#mobile-bar a {
  display: block; text-align: center; background: var(--primary); color: #fff;
  border-radius: var(--radius-pill); padding: 15px 0; font-weight: 500; box-shadow: var(--shadow-3);
}
@media (min-width: 860px) { #mobile-bar { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
#hero { position: relative; padding: 140px 0 100px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero-copy h1 { color: var(--ink); margin: 18px 0 0; text-wrap: balance; }
.hero-copy p { color: var(--ink-secondary); max-width: 460px; margin: 20px 0 0; }
.hero-ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.trust-row { display: flex; align-items: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.trust-chip {
  font-size: 13px; color: var(--ink-mute); background: var(--canvas-soft);
  border-radius: var(--radius-pill); padding: 6px 13px;
}

/* Call composite mockup */
.call-composite { position: relative; max-width: 460px; margin: 0 auto; }
.call-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius-xl); box-shadow: var(--shadow-3); overflow: hidden; }
.call-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.call-agent { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.call-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; background: rgba(234,34,97,.12); color: var(--ruby); border-radius: var(--radius-pill); padding: 4px 11px; font-size: 12px; font-weight: 500; }
.badge-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ruby); animation: pulse 1.4s infinite; }
.call-stage { position: relative; height: 230px; background: linear-gradient(160deg, #1c1e54, #0d253d); }
.call-stage-avatar { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.call-stage-avatar span { width: 86px; height: 86px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 300; font-size: 28px; letter-spacing: -.02em; }
.call-pip { position: absolute; right: 12px; bottom: 12px; width: 78px; height: 98px; border-radius: 10px; background: linear-gradient(160deg,#3a4a63,#273951); border: 2px solid rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 300; }
.call-timer { position: absolute; left: 12px; top: 12px; padding: 4px 11px; border-radius: var(--radius-pill); background: rgba(13,37,61,.55); color: #fff; font-size: 12px; }
.call-cart-row { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.call-cart-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); }
.call-cart-amt { font-weight: 300; font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.float-chip {
  position: absolute; left: -24px; bottom: 36px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2); padding: 12px 16px; display: none;
}
@media (min-width: 900px) { .float-chip { display: block; } }
.float-chip .num { font-weight: 300; font-size: 22px; color: var(--ink); }
.float-chip .lbl { font-size: 11px; color: var(--ink-mute); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ============================================================
   LOGO / TRUST STRIP
   ============================================================ */
#logos { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 28px 0; }
.logo-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo-row span { font-weight: 300; font-size: 17px; color: var(--ink-mute); opacity: .8; letter-spacing: -.01em; }

/* ============================================================
   ROI / STATS BAND
   ============================================================ */
#roi { background: var(--brand-dark); color: #fff; }
.roi-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.roi-head h2 { color: #fff; margin: 16px 0 12px; }
.roi-head p { color: rgba(255,255,255,.7); }
.roi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .roi-grid { grid-template-columns: 1fr; } }
.roi-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-xl); padding: 32px 28px; }
.roi-num { font-weight: 300; font-size: 48px; color: #fff; letter-spacing: -.02em; margin-bottom: 8px; }
.roi-num .accent { color: var(--primary-soft); }
.roi-label { font-size: 15px; color: rgba(255,255,255,.62); line-height: 1.5; }
.roi-foot { text-align: center; margin-top: 36px; }
.roi-foot p { color: rgba(255,255,255,.5); font-size: 13px; }

/* ============================================================
   PROBLEM
   ============================================================ */
#problem { background: var(--canvas-soft); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; gap: 36px; } }
.problem-copy h2 { color: var(--ink); margin: 16px 0 18px; max-width: 460px; }
.problem-copy p { color: var(--ink-secondary); margin-bottom: 14px; max-width: 460px; }
.problem-stat { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-2); padding: 32px; text-align: center; }
.problem-stat .num { font-weight: 300; font-size: 56px; color: var(--ruby); letter-spacing: -.02em; }
.problem-stat .lbl { font-size: 14px; color: var(--ink-mute); margin-top: 6px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { background: var(--canvas-soft); border-radius: var(--radius-xl); padding: 28px; }
.step-num { font-weight: 300; font-size: 15px; color: var(--primary); margin-bottom: 16px; }
.step-card h3 { color: var(--ink); margin-bottom: 8px; }
.step-card p { color: var(--ink-secondary); font-size: 15px; }

/* ============================================================
   FEATURES
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
@media (max-width: 860px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px; }
@media (max-width: 700px) { .feat-wide { grid-template-columns: 1fr; gap: 24px; } }
.feat-pad { padding: 36px; }
.feat-grid h3 { margin: 14px 0 10px; }
.feat-grid p { font-size: 15px; }
.feat-grid .card-dark p { color: rgba(255,255,255,.78); }
.mini-cart-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; font-weight: 300; }
.mini-cart-row + .mini-cart-row { border-top: 1px solid var(--hairline); }
.mini-cart { background: var(--canvas-soft); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 18px 20px; }

/* ============================================================
   WHO IT'S FOR
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { background: var(--canvas-soft); border-radius: var(--radius-lg); padding: 22px; }
.cat-name { font-weight: 400; font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.cat-q { font-size: 13px; color: var(--ink-mute); margin-bottom: 6px; font-style: italic; }

/* ============================================================
   FOUNDER STORY
   ============================================================ */
#founder { background: var(--canvas-cream); }
.founder-grid { max-width: 660px; margin: 0 auto; }
.founder-grid p { color: var(--ink-secondary); margin-bottom: 16px; }
.founder-quotes { margin: 20px 0; padding-left: 18px; border-left: 2px solid var(--primary); }
.founder-quotes p { font-style: italic; color: var(--ink); margin-bottom: 8px; }
.founder-built { font-weight: 400; font-size: 19px; color: var(--ink); margin: 24px 0 16px; }

/* ============================================================
   PRICING
   ============================================================ */
#pricing { background: var(--canvas-soft); }
.pricing-head { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.pricing-head h2 { margin: 16px 0 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { padding: 32px; }
.price-card-head { display: flex; align-items: center; gap: 10px; }
.price-card .tag-popular { background: var(--brand-dark); color: #fff; border-radius: var(--radius-pill); font-size: 11px; padding: 3px 10px; }
.price-amt { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.price-amt .num { font-weight: 300; font-size: 32px; }
.price-amt .sub { font-size: 13px; color: var(--ink-mute); }
.price-card.card-dark .price-amt .sub { color: rgba(255,255,255,.7); }
.price-hr { height: 1px; background: var(--hairline); margin: 20px 0; }
.price-card.card-dark .price-hr { background: rgba(255,255,255,.14); }
.price-feats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.price-feat { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-secondary); }
.price-card.card-dark .price-feat { color: rgba(255,255,255,.85); }
.price-feat svg { flex-shrink: 0; }

/* ============================================================
   WAITLIST / CTA
   ============================================================ */
#waitlist { background: var(--brand-dark); color: #fff; }
.waitlist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: flex-start; }
@media (max-width: 900px) { .waitlist-grid { grid-template-columns: 1fr; gap: 36px; } }
.waitlist-copy h2 { color: #fff; margin: 16px 0 16px; }
.waitlist-copy p { color: rgba(255,255,255,.7); margin-bottom: 14px; }
.perks-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.perk-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.85); }
.perk-item svg { flex-shrink: 0; margin-top: 2px; }

.wl-form-card { background: #fff; border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-3); }
.wl-input {
  width: 100%; border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 13px 16px; font-size: 15px; font-family: var(--font-sans); font-weight: 300;
  color: var(--ink); margin-bottom: 14px; outline: none; transition: border-color .15s ease;
}
.wl-input:focus { border-color: var(--primary); }
.wl-note { font-size: 12px; color: var(--ink-mute); margin-top: 12px; text-align: center; }
.wl-success { text-align: center; padding: 12px 0; }
.wl-success .wordmark { margin-bottom: 16px; }
.wl-success p { color: var(--ink-secondary); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--canvas); border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding: 64px 0 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col-head { color: var(--ink); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink-mute); font-size: 13px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--primary); }
.footer-tagline { color: var(--ink-mute); margin-top: 12px; max-width: 220px; font-size: 13px; }
.footer-bottom { border-top: 1px solid var(--hairline); padding: 24px 0 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ink-mute); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
