/* ==========================================================================
   Jina Connect — Design System
   Premium light SaaS. Tokens, layout, components, motion.
   Shared across every page. Edit here once → whole site updates.
   ========================================================================== */

:root {
  /* Brand */
  --green-50:  #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #b9f6d6;
  --green-300: #6ee7b7;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;

  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;

  --violet-500: #7c5cff;
  --violet-600: #6d28d9;

  /* Neutrals */
  --ink:       #0a1f1a;
  --ink-soft:  #1b2b27;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --bg:        #f7f9fb;
  --bg-alt:    #ffffff;
  --surface:   #ffffff;

  /* Semantic */
  --text:        var(--ink);
  --text-soft:   #475569;
  --text-muted:  #6b7a8d;
  --border:      rgba(13, 41, 35, 0.08);
  --border-strong: rgba(13, 41, 35, 0.14);

  --accent:      var(--green-500);
  --accent-deep: var(--green-600);
  --accent-2:    var(--cyan-500);

  /* Gradients */
  --grad-brand: linear-gradient(120deg, #10b981 0%, #06b6d4 60%, #7c5cff 120%);
  --grad-soft:  linear-gradient(135deg, #ecfdf5 0%, #e0f7fb 50%, #f1ecff 100%);
  --grad-text:  linear-gradient(100deg, #059669 0%, #06b6d4 55%, #7c5cff 110%);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(13,41,35,.06);
  --shadow-sm: 0 2px 8px rgba(13,41,35,.06);
  --shadow-md: 0 10px 30px -12px rgba(13,41,35,.18);
  --shadow-lg: 0 30px 60px -24px rgba(13,41,35,.28);
  --shadow-glow: 0 18px 50px -16px rgba(16,185,129,.45);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: var(--green-200); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.07; letter-spacing: -.02em; color: var(--ink); }
.display {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -.035em;
}
.h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.03em; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-soft); line-height: 1.55; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-deep);
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--green-50); border: 1px solid var(--green-100);
  margin-bottom: 20px;
}
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  background: var(--b-bg); color: var(--b-fg);
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .25s, color .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--primary {
  --b-bg: transparent; --b-fg: #fff;
  background: var(--grad-brand); background-size: 160% 160%;
  box-shadow: var(--shadow-glow);
  animation: gradShift 8s ease infinite;
}
.btn--primary:hover { box-shadow: 0 22px 60px -14px rgba(16,185,129,.6); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { background: #fff; border-color: var(--accent); color: var(--accent-deep); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
  position: relative; overflow: hidden;
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-200); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--grad-soft); border: 1px solid var(--border);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: .98rem; }

/* glass surface */
.glass {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow-md);
}

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--border);
  font-size: .85rem; font-weight: 500; color: var(--text-soft);
  box-shadow: var(--shadow-xs);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.badge-live { color: var(--green-700); background: var(--green-50); border:1px solid var(--green-100); padding:3px 9px; border-radius: var(--r-pill); font-size:.72rem; font-weight:700; }
.badge-soon { color: #92681a; background: #fef6e6; border:1px solid #fbe7bf; padding:3px 9px; border-radius: var(--r-pill); font-size:.72rem; font-weight:700; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, border-color .35s, height .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247,249,251,.8);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -18px rgba(13,41,35,.4);
}
.nav__inner { display: flex; align-items: center; gap: 28px; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
.brand img { height: 44px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav__links a {
  padding: 8px 14px; border-radius: var(--r-pill); font-size: .94rem; font-weight: 500; color: var(--text-soft);
  position: relative; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(13,41,35,.04); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: #fff; align-items: center; justify-content: center; }
.nav__burger span { display:block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: .3s; }
.nav__burger span::before, .nav__burger span::after { content:""; position:absolute; left:0; width:18px; height:2px; background: var(--ink); transition:.3s; }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }
.nav-open .nav__burger span { background: transparent; }
.nav-open .nav__burger span::before { top:0; transform: rotate(45deg); }
.nav-open .nav__burger span::after { top:0; transform: rotate(-45deg); }

/* mobile sheet */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 999;
  background: rgba(247,249,251,.96); backdrop-filter: blur(20px);
  padding: 28px var(--gutter); display: none; flex-direction: column; gap: 6px;
  transform: translateY(-10px); opacity: 0; transition: opacity .3s, transform .3s;
}
.nav-open .mobile-menu { display: flex; opacity: 1; transform: translateY(0); }
.mobile-menu a { padding: 14px 4px; font-size: 1.25rem; font-family: var(--font-display); border-bottom: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(60px, 8vw, 120px); overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; z-index: 0; opacity: .42; pointer-events: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(110% 80% at 78% 25%, transparent 0%, rgba(247,249,251,.15) 45%, rgba(247,249,251,.78) 80%),
    linear-gradient(90deg, rgba(247,249,251,.96) 0%, rgba(247,249,251,.7) 26%, rgba(247,249,251,.15) 52%, transparent 64%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__bg-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .3; z-index: 0; pointer-events: none; }
.orb-a { width: 360px; height: 360px; background: radial-gradient(circle, #6ee7b7, transparent 70%); top: -100px; right: -40px; }
.orb-b { width: 320px; height: 320px; background: radial-gradient(circle, #a5b4fc, transparent 70%); bottom: -140px; left: -100px; }
.orb-c { width: 260px; height: 260px; background: radial-gradient(circle, #67e8f9, transparent 70%); top: 24%; right: 18%; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 4vw, 60px); align-items: start; }
.hero .hero-grid { align-items: center; }

.pill-banner {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.7); backdrop-filter: blur(10px);
  border: 1px solid var(--border); font-size: .86rem; font-weight: 500; color: var(--text-soft);
  box-shadow: var(--shadow-xs); margin-bottom: 26px;
}
.pill-banner b { color: var(--accent-deep); }
.pill-banner .go { background: var(--ink); color:#fff; border-radius: var(--r-pill); padding: 4px 12px; font-size:.8rem; font-weight:600; }

.stat-row { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); margin-top: 40px; }
.stat .n { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; }
.stat .l { font-size: .82rem; color: var(--text-muted); letter-spacing: .02em; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: scrollX 36s linear infinite; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }
.logo-pill { display: flex; align-items: center; gap: 9px; padding: 11px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); font-weight: 600; font-size: .92rem; color: var(--text-soft); white-space: nowrap; box-shadow: var(--shadow-xs); }
.logo-pill img { width: 20px; height: 20px; border-radius: 5px; }
/* real partner logos in marquee */
.logo-img { height: 30px; width: auto; object-fit: contain; opacity: .82; filter: grayscale(100%); transition: opacity .25s, filter .25s; flex-shrink: 0; }
.logo-img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Channel cards ---------- */
.channel-card { display: flex; flex-direction: column; gap: 12px; }
.channel-card .head { display: flex; align-items: center; gap: 12px; }
.channel-card .emoji { font-size: 1.7rem; }
.channel-card .meta { font-size: .8rem; color: var(--text-muted); font-family: var(--font-mono); margin-top: 6px; }

/* ---------- Architecture diagram ---------- */
.arch { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: center; }
.arch__col { display: grid; gap: 12px; }
.arch__node { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-xs); display:flex; align-items:center; gap:10px; justify-content:space-between; }
.arch__core { background: var(--ink); color: #fff; border:none; text-align: center; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.arch__core .t { font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; font-size: .8rem; color: var(--green-300); }
.arch__core .big { font-size: 1.3rem; margin: 8px 0; }
.arch__arrow { color: var(--slate-400); font-size: 1.4rem; text-align:center; }

/* ---------- Code block ---------- */
.code {
  background: #0c1614; color: #d7e6e0; border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: .86rem; line-height: 1.7; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow-lg);
}
.code__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06); }
.code__bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.code__bar .name { margin-left: 10px; font-size: .78rem; color: #8aa39a; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.code .k { color: #6ee7b7; } .code .s { color: #93c5fd; } .code .c { color: #5f7a72; } .code .n { color: #fcd34d; }

/* ---------- Stat band ---------- */
.statband { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(34px, 5vw, 56px); position: relative; overflow: hidden; }
.statband::before { content:""; position:absolute; inset:0; background: var(--grad-brand); opacity:.14; }
.statband .grid { position: relative; z-index: 1; }
.statband .n { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); font-weight: 700; background: var(--grad-text); -webkit-background-clip:text; background-clip:text; color: transparent; }
.statband .l { color: #9fb3ab; font-size: .9rem; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 1.5px solid var(--green-400); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price-card .amt { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; margin: 8px 0; }
.price-card .amt span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.price-card ul { display: grid; gap: 11px; margin: 20px 0 26px; }
.price-card li { display: flex; gap: 10px; font-size: .94rem; color: var(--text-soft); }
.price-card li::before { content: "✓"; color: var(--green-600); font-weight: 800; }
.tag-top { position: absolute; top: 16px; right: 16px; background: var(--grad-brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); }

/* pricing calculator controls */
.range { -webkit-appearance:none; appearance:none; width:100%; height:8px; border-radius:99px; background:var(--slate-200); outline:none; }
.range::-webkit-slider-thumb { -webkit-appearance:none; width:26px; height:26px; border-radius:50%; background:var(--grad-brand); cursor:pointer; box-shadow:var(--shadow-glow); border:3px solid #fff; }
.range::-moz-range-thumb { width:26px; height:26px; border-radius:50%; background:#10b981; cursor:pointer; border:3px solid #fff; }
.seg { display:inline-flex; background:var(--slate-100); border-radius:99px; padding:4px; gap:4px; }
.seg button { border:none; background:none; padding:8px 18px; border-radius:99px; font-weight:600; font-size:.9rem; color:var(--text-muted); transition:.25s; }
.seg button.active { background:#fff; color:var(--ink); box-shadow:var(--shadow-xs); }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); background:#fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
table.compare th, table.compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: .92rem; }
table.compare thead th { font-family: var(--font-display); font-size: .9rem; position: sticky; top: 0; background: #fff; }
table.compare thead th.us { background: var(--green-50); color: var(--green-700); border-radius: 10px 10px 0 0; }
table.compare td.us { background: var(--green-50); font-weight: 600; }
table.compare tr:last-child td { border-bottom: none; }
.yes { color: var(--green-600); font-weight: 700; } .no { color: var(--slate-400); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; margin-bottom: 12px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-item.open { border-color: var(--green-300); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 1.02rem; color: var(--ink); font-family: var(--font-display); }
.faq-q .ico { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; transition: transform .3s, background .3s, color .3s; }
.faq-item.open .faq-q .ico { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a .inner { padding: 0 24px 22px; color: var(--text-soft); }

/* ---------- Tabs ---------- */
.tabs { display:inline-flex; flex-wrap:wrap; gap:8px; background:var(--slate-100); border-radius:var(--r-pill); padding:5px; margin-bottom:32px; }
.tab-btn { border:none; background:none; padding:10px 20px; border-radius:var(--r-pill); font-weight:600; font-size:.92rem; color:var(--text-muted); transition:.25s; }
.tab-btn.active { background:#fff; color:var(--ink); box-shadow:var(--shadow-xs); }
.tab-panel { display:none; }
.tab-panel.active { display:block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c6d4cf; padding-top: clamp(56px, 7vw, 90px); position: relative; overflow: hidden; }
.footer::before { content:""; position:absolute; top:0; left:0; right:0; height:1px; background: var(--grad-brand); opacity:.6; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px 28px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.footer a { color: #9fb3ab; font-size: .94rem; line-height: 2.1; transition: color .2s; }
/* footer column links stack vertically (one per line) — not the brand column */
.footer__grid > div:not(.footer__brand) a { display: block; }
.footer a:hover { color: var(--green-300); }
.footer__brand .brand { color: #fff; margin-bottom: 14px; }
.footer__brand .brand img { height: 40px; filter: brightness(0) invert(1); }
.footer__brand p { color: #8aa39a; max-width: 340px; font-size: .94rem; }
.footer__brand .fbb { display:inline-block; margin-top:12px; color: var(--green-300); font-size:.85rem; font-weight:600; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; color: #7e948c; font-size: .85rem; }
.footer__bottom a { color: #7e948c; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 1200; display: flex; align-items: center; gap: 10px; }
.wa-float-label { background:#fff; border:1px solid var(--border); box-shadow:var(--shadow-md); border-radius:var(--r-pill); padding:8px 14px; font-size:.84rem; font-weight:600; color:var(--ink); white-space:nowrap; opacity:0; transform:translateX(8px); transition:.3s; pointer-events:none; }
.wa-float:hover .wa-float-label { opacity:1; transform:none; }
.wa-float-btn { width:58px; height:58px; border-radius:50%; border:none; background:#25d366; box-shadow:0 14px 34px -10px rgba(37,211,102,.7); display:grid; place-items:center; transition:transform .25s; }
.wa-float-btn:hover { transform:translateY(-3px) scale(1.04); }

/* ---------- Reveal animations (IntersectionObserver-driven; robust) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* staggered children — parent gets .in when scrolled into view */
[data-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1) { transition-delay: .04s; }
[data-stagger].in > *:nth-child(2) { transition-delay: .10s; }
[data-stagger].in > *:nth-child(3) { transition-delay: .16s; }
[data-stagger].in > *:nth-child(4) { transition-delay: .22s; }
[data-stagger].in > *:nth-child(5) { transition-delay: .28s; }
[data-stagger].in > *:nth-child(6) { transition-delay: .34s; }
[data-stagger].in > *:nth-child(7) { transition-delay: .40s; }
[data-stagger].in > *:nth-child(8) { transition-delay: .46s; }
.no-js [data-stagger] > * { opacity: 1; transform: none; }

/* magnetic / tilt helpers */
.tilt { transition: transform .2s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }

/* scroll progress */
.scroll-prog { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad-brand); z-index: 1100; box-shadow: 0 0 12px rgba(16,185,129,.6); }

/* page header (subpages) */
.page-hero { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px)); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero__canvas { position: absolute; inset: 0; z-index: 0; opacity: .32; pointer-events: none; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(247,249,251,.55) 0%, rgba(247,249,251,.82) 100%); }
.page-hero .wrap { position: relative; z-index: 2; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent-deep); }

/* prose (legal/docs) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-soft); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--font-mono); background: var(--slate-100); padding: 2px 7px; border-radius: 6px; font-size: .88em; }

/* docs layout */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.docs-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.docs-side h5 { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin: 18px 0 8px; }
.docs-side a { display: block; padding: 7px 12px; border-radius: 9px; font-size: .92rem; color: var(--text-soft); transition: .2s; }
.docs-side a:hover, .docs-side a.active { background: var(--green-50); color: var(--green-700); }

/* utility */
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.muted { color: var(--text-muted); }
.tcenter { text-align:center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .arch { grid-template-columns: 1fr; }
  .arch__arrow { transform: rotate(90deg); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .wa-float-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}
