/* ==========================================================================
   ZIVOX — Design System (light theme, premium)
   Pure CSS. No frameworks. Mobile-first.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-400: #38bdf8;
  --blue-500: #0ea5e9;
  --blue-600: #1d6ff2;
  --blue-700: #1657c9;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;

  /* Neutrals */
  --navy-900: #0b1220;
  --navy-800: #111a2e;
  --navy-700: #1b2743;
  --ink-900: #0d1526;
  --ink-700: #33415c;
  --ink-500: #5b6b87;
  --ink-400: #7c8aa3;
  --line: #e5eaf2;
  --line-soft: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #f1f5fb;

  /* Signal */
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(13, 21, 38, .05);
  --shadow-sm: 0 2px 8px rgba(13, 21, 38, .06);
  --shadow: 0 8px 24px rgba(13, 21, 38, .08);
  --shadow-lg: 0 20px 48px rgba(13, 21, 38, .12);
  --shadow-glow: 0 12px 34px rgba(29, 111, 242, .22);

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 820px;
  --header-h: 72px;

  --grad-brand: linear-gradient(120deg, var(--blue-600) 0%, var(--blue-500) 42%, var(--violet-500) 100%);
  --grad-soft: linear-gradient(120deg, rgba(29,111,242,.10), rgba(139,92,246,.10));
  --grad-text: linear-gradient(100deg, var(--blue-600), var(--violet-600));
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
/* Inline icons are decorative and must never inherit block layout + auto sizing,
   which would let a viewBox-only SVG expand to fill its container. */
svg.inline, svg.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.18em; }
h1 > svg, h2 > svg, h3 > svg, h4 > svg, p > svg, li > svg, span > svg, summary > svg, a > svg, strong > svg {
  width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.18em;
}
.btn svg, .card-link svg, .pill svg { width: 1em; height: 1em; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: var(--ink-900); }
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; color: var(--ink-700); }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--ink-700); }
li { margin-bottom: .4rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code, pre { font-family: var(--mono); font-size: .9em; }
pre { background: var(--surface-3); padding: 1rem; border-radius: var(--r); overflow-x: auto; border: 1px solid var(--line); }

/* Focus visibility (accessibility) */
:focus-visible {
  outline: 3px solid rgba(29, 111, 242, .55);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue-600); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--surface-2); }
.section-tint { background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%); }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { font-size: 1.06rem; color: var(--ink-500); margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: .35rem .8rem; border-radius: var(--r-pill); margin-bottom: 1rem;
}
.eyebrow.violet { color: var(--violet-600); background: #f5f3ff; border-color: #ede9fe; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-xs); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink-900); }
.brand:hover { color: var(--ink-900); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand-name { font-size: 1.16rem; letter-spacing: -.02em; }
.brand-name span { color: var(--blue-600); }

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 2px; }
}
.nav a, .nav button.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  padding: .55rem .8rem; border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 550; color: var(--ink-700);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav a:hover, .nav button.nav-trigger:hover { color: var(--blue-600); background: var(--surface-3); }
.nav a[aria-current="page"] { color: var(--blue-600); font-weight: 650; }
.nav-item { position: relative; }
.nav-item > .dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 8px; display: none;
}
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown { display: block; }
.dropdown a {
  display: block; padding: .55rem .7rem; border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 500;
}
.dropdown a small { display: block; font-size: .78rem; color: var(--ink-400); font-weight: 400; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { display: none; }
@media (min-width: 640px) { .header-cta .btn { display: inline-flex; } }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; cursor: pointer; padding: 0 11px;
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger span { height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: #fff;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-nav.open { display: block; }
@media (min-width: 1024px) { .mobile-nav.open { display: none; } }
.mobile-nav .wrap { padding-top: 12px; padding-bottom: 24px; }
.mobile-nav a {
  display: block; padding: .8rem .25rem; border-bottom: 1px solid var(--line-soft);
  font-weight: 550; color: var(--ink-900);
}
.mobile-nav details summary {
  padding: .8rem .25rem; border-bottom: 1px solid var(--line-soft);
  font-weight: 550; cursor: pointer; list-style: none;
}
.mobile-nav details summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] summary { color: var(--blue-600); }
.mobile-nav details a { padding-left: 1rem; font-weight: 450; font-size: .95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.35rem;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 650; font-size: .95rem; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s, background .2s, color .2s, border-color .2s;
  text-align: center; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 40px rgba(29,111,242,.30); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink-900); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { color: var(--blue-600); border-color: var(--blue-100); background: var(--blue-50); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--navy-800); }
.btn-sm { min-height: 38px; padding: .45rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  position: relative;
}
.card.interactive:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-flush { padding: 0; overflow: hidden; }
.card-glass {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6);
}
.card-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--blue-600); margin-bottom: 1rem; flex: none;
  border: 1px solid var(--blue-100);
}
.card-icon svg { width: 24px; height: 24px; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; font-size: .93rem; margin-top: 1rem; }
.card-link svg { width: 15px; height: 15px; transition: transform .2s; }
.card-link:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
@media (min-width: 900px) { .hero { padding: 84px 0 96px; } }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto -10%; height: 620px;
  background:
    radial-gradient(560px 300px at 18% 12%, rgba(29,111,242,.16), transparent 65%),
    radial-gradient(520px 300px at 82% 4%, rgba(139,92,246,.15), transparent 65%),
    radial-gradient(400px 260px at 55% 60%, rgba(6,182,212,.10), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; } }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--ink-500); max-width: 56ch; margin-bottom: 1.6rem; }

.hero-visual { position: relative; }
.hero-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 22px;
}
.hero-panel-top { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dot.b { background: var(--blue-400); }
.dot.v { background: var(--violet-400); }
.dot.c { background: var(--cyan-400); }
.hero-metric { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-soft); }
.hero-metric:last-child { border-bottom: 0; }
.hero-metric-label { font-size: .9rem; color: var(--ink-500); font-weight: 500; }
.hero-metric-bar { flex: 1; height: 7px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; margin: 0 10px; }
.hero-metric-bar i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--grad-brand); }
.badge-float {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: .6rem .9rem; font-size: .82rem; font-weight: 650;
  display: inline-flex; align-items: center; gap: .45rem;
}
.badge-float svg { width: 15px; height: 15px; color: var(--blue-600); }
.badge-float.one { top: -14px; right: 14px; }
.badge-float.two { bottom: -14px; left: 14px; }
@media (max-width: 520px) { .badge-float { display: none; } }

/* ---------- Logo cloud / trust row ---------- */
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.trust-row span { font-size: .85rem; color: var(--ink-400); font-weight: 600; letter-spacing: .02em; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.stat { text-align: center; padding: 22px 14px; }
.stat-num { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: .88rem; color: var(--ink-500); font-weight: 550; }

/* ---------- Lists / features ---------- */
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; color: var(--ink-700); }
.tick-list li::before {
  content: ''; position: absolute; left: 0; top: .45em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d6ff2' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: .8rem; font-weight: 600; color: var(--ink-700);
  background: var(--surface-3); border: 1px solid var(--line);
  padding: .28rem .7rem; border-radius: var(--r-pill);
}
.pill.b { color: var(--blue-700); background: var(--blue-50); border-color: var(--blue-100); }
.pill.v { color: var(--violet-600); background: #f5f3ff; border-color: #ede9fe; }
.pill.ok { color: var(--ok); background: #f0fdf4; border-color: #dcfce7; }
.pill.warn { color: var(--warn); background: #fffbeb; border-color: #fef3c7; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.step { position: relative; padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--grad-brand); color: #fff;
  font-weight: 800; font-size: .9rem; margin-bottom: .8rem;
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 28px 24px; }
.price-card.popular { border-color: var(--blue-600); box-shadow: var(--shadow); }
.price-card.popular::after {
  content: 'Most popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .25rem .8rem; border-radius: var(--r-pill); letter-spacing: .04em; white-space: nowrap;
}
.price-cat { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); margin-bottom: .4rem; }
.price-val { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.price-period { font-size: .88rem; color: var(--ink-400); font-weight: 500; }
.price-features { list-style: none; padding: 0; margin: 1.2rem 0; flex: 1; }
.price-features li { display: flex; gap: .55rem; align-items: flex-start; padding: .42rem 0; font-size: .93rem; color: var(--ink-700); }
.price-features li::before { content: '✓'; color: var(--blue-600); font-weight: 800; flex: none; }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.project-thumb {
  aspect-ratio: 16/10; width: 100%; object-fit: cover; background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
}
.project-body { padding: 20px 22px 24px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: .6rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); }
.post-card { display: flex; flex-direction: column; }
.post-cover { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: var(--grad-soft); border-bottom: 1px solid var(--line); }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .82rem; color: var(--ink-400); display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: .5rem; }
.post-title { font-size: 1.12rem; margin-bottom: .45rem; }
.post-excerpt { font-size: .93rem; color: var(--ink-500); flex: 1; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { margin-top: 2rem; }
.article-body h3 { margin-top: 1.6rem; }
.article-body img { border-radius: var(--r); margin: 1.4rem 0; }
.article-body blockquote {
  margin: 1.4rem 0; padding: .9rem 1.2rem; border-left: 4px solid var(--blue-600);
  background: var(--blue-50); border-radius: 0 var(--r) var(--r) 0; color: var(--ink-700);
}
.article-body a { text-decoration: underline; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink-900); }
.field .req { color: var(--danger); }
.field .hint { font-size: .8rem; color: var(--ink-400); }
.field .err { font-size: .82rem; color: var(--danger); font-weight: 550; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: #fff5f5; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="password"], input[type="date"], input[type="search"],
input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 46px; padding: .65rem .85rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; color: var(--ink-900); font-size: .95rem;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: #d3dced; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(29,111,242,.14);
}
input::placeholder, textarea::placeholder { color: var(--ink-400); }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b87' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 17px;
  padding-right: 2.3rem;
}
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-700); }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: .22rem; flex: none; accent-color: var(--blue-600); }
.check label { font-weight: 450; }
.form-note { font-size: .84rem; color: var(--ink-400); }
.form-status { display: none; padding: .85rem 1rem; border-radius: var(--r); font-size: .92rem; font-weight: 550; }
.form-status.show { display: block; }
.form-status.ok { background: #f0fdf4; color: #15803d; border: 1px solid #dcfce7; }
.form-status.bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fee2e2; }
.form-card { max-width: 720px; margin: 0 auto; padding: 30px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--navy-900); color: #fff; padding: 48px 32px; text-align: center;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(420px 240px at 12% 8%, rgba(29,111,242,.34), transparent 66%),
    radial-gradient(420px 240px at 88% 96%, rgba(139,92,246,.30), transparent 66%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.76); max-width: 58ch; margin-inline: auto; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 52px 0 40px;
  background: linear-gradient(180deg, var(--surface-2) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ''; position: absolute; inset: -60% 0 auto 0; height: 460px;
  background: radial-gradient(480px 260px at 22% 30%, rgba(29,111,242,.14), transparent 66%),
              radial-gradient(400px 240px at 78% 10%, rgba(139,92,246,.12), transparent 68%);
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: .6rem; }
.page-hero p { font-size: 1.06rem; color: var(--ink-500); max-width: 68ch; margin-bottom: 0; }

.breadcrumbs { font-size: .85rem; color: var(--ink-400); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--ink-500); font-weight: 500; }
.breadcrumbs a:hover { color: var(--blue-600); }
.breadcrumbs span[aria-hidden] { color: var(--ink-400); }

/* ---------- Tables / legal ---------- */
.legal-body { max-width: 800px; }
.legal-body h2 { font-size: 1.3rem; margin-top: 2.2rem; padding-top: .2rem; }
.legal-body h3 { font-size: 1.08rem; margin-top: 1.4rem; }
.legal-body p, .legal-body li { font-size: .96rem; }
.legal-body .updated { font-size: .88rem; color: var(--ink-400); }
.legal-toc {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 24px; margin-bottom: 2rem;
}
.legal-toc h2 { font-size: .82rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 .7rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; font-size: .92rem; }
.legal-toc a { font-weight: 500; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; font-size: .86rem; color: var(--ink-700); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow-xs); }
.faq summary {
  padding: 1rem 1.2rem; cursor: pointer; font-weight: 650; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--blue-600); font-weight: 500; flex: none; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq .faq-body { padding: 0 1.2rem 1.1rem; color: var(--ink-700); font-size: .95rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Notices / alerts ---------- */
.alert {
  border: 1px solid var(--line); border-left: 4px solid var(--blue-600);
  background: var(--blue-50); border-radius: var(--r); padding: 1rem 1.2rem; margin-bottom: 1.4rem;
}
.alert.warn { border-left-color: var(--warn); background: #fffbeb; }
.alert.info { border-left-color: var(--blue-600); background: var(--blue-50); }
.alert h3 { font-size: 1rem; margin-bottom: .3rem; }
.alert p:last-child { margin-bottom: 0; }

/* ---------- Modal / popup ---------- */
.modal {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(11, 18, 32, .55); backdrop-filter: blur(3px);
}
.modal.open { display: flex; }
.modal-card {
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 480px; max-height: 86vh; overflow-y: auto;
  padding: 30px 28px; position: relative;
  animation: modalIn .28s cubic-bezier(.2,.7,.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px;
  border: 0; background: var(--surface-3); border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--ink-500); font-size: 1.2rem; line-height: 1;
}
.modal-close:hover { background: var(--line); color: var(--ink-900); }
.modal-tag { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-600); }

/* ---------- Toast ---------- */
.toast-host { position: fixed; z-index: 400; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 40px); }
.toast {
  background: var(--navy-900); color: #fff; padding: .8rem 1.1rem; border-radius: var(--r);
  box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 550;
  display: flex; align-items: center; gap: .6rem;
  animation: toastIn .26s ease;
}
.toast.ok { background: #14532d; }
.toast.bad { background: #7f1d1d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Skeleton / empty ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, #e9eef7 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--r); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.skel-card { height: 190px; }
.skel-line { height: 13px; margin-bottom: 9px; }
.empty { text-align: center; padding: 44px 20px; color: var(--ink-400); }
.empty svg { width: 42px; height: 42px; margin: 0 auto 12px; color: var(--line); }
.empty h3 { color: var(--ink-500); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 56px 0 0; margin-top: 0; }
.footer h2, .footer h3 { color: #fff; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: #fff; }
.footer-top { display: grid; gap: 34px; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-top { grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: .9rem; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; }
.footer-brand strong { font-size: 1.24rem; color: #fff; letter-spacing: -.02em; }
.footer-tag { font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 1.1rem; }
.footer-col h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .9rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; font-size: .93rem; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.footer-contact li { font-size: .93rem; margin-bottom: .5rem; display: flex; gap: .55rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: .22rem; color: var(--blue-400); }
.footer-founder { font-size: .93rem; margin-bottom: 1.1rem; }
.footer-founder strong { color: #fff; display: block; }
.footer-founder span { color: rgba(255,255,255,.55); font-size: .85rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between;
  font-size: .87rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.social-row a:hover { background: var(--blue-600); border-color: var(--blue-600); }
.social-row svg { width: 17px; height: 17px; }

/* ---------- Utilities ---------- */
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.muted { color: var(--ink-500); }
.small { font-size: .88rem; }
.tiny { font-size: .8rem; }
.strong { font-weight: 650; }
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.flex-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.divider { height: 1px; background: var(--line); margin: 2rem 0; border: 0; }
.chip-status { font-size: .76rem; font-weight: 700; padding: .18rem .6rem; border-radius: var(--r-pill); }

/* ---------- Reveal animation (respects reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .header, .footer, .modal, .toast-host, .btn { display: none !important; }
  body { color: #000; }
  a::after { content: ' (' attr(href) ')'; font-size: .8em; }
}
