/* ============================================================
   Prophosor — clean light design system (Ghost.org style)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8f9;
  --surface: #ffffff;
  --surface-2: #f1f2f3;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #15171a;
  --muted: #738a94;
  --faint: #9ba8b0;
  --primary: #15171a;
  --primary-2: #343f44;
  --cyan: #3eb0ef;
  --green: #5dcf1f;
  --amber: #ffd400;
  --red: #f05230;
  --grad: linear-gradient(135deg, #15171a 0%, #343f44 100%);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 60px rgba(0, 0, 0, 0.06);
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

::selection { background: rgba(21, 23, 26, 0.12); }

/* ---------- background decorations ---------- */
.bg-grid {
  display: none;
}

body::before {
  display: none;
}

/* ---------- layout ---------- */
.container {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tight { padding: 40px 0 96px; }

.section-header {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-header.left { margin: 0 0 44px; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }

h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
h3 { font-size: 20px; letter-spacing: -0.01em; }

.section-header p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 17px;
}

.gradient-text {
  background: linear-gradient(100deg, #15171a 0%, #343f44 50%, #3eb0ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(100deg, #1f136d, #5a18a5);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 20, 130, 0.35);
  background: linear-gradient(100deg, #2a1a8a, #6b1fbd);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--text);
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }

/* purple gradient button (Astro-style) */
.btn-astro {
  background: linear-gradient(115deg, #1b1369 0%, #3b1285 48%, #5d19a8 100%);
  border-color: transparent;
  color: #fff;
}
.btn-astro:hover {
  color: #fff;
  box-shadow: 0 6px 22px rgba(93, 25, 168, 0.45);
}

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}
.brand-mark { flex-shrink: 0; }
.brand-logo {
  height: 68px;
  width: auto;
  border-radius: 10px;
  display: block;
}
.site-footer .brand-logo { height: 64px; }
@media (max-width: 720px) {
  .header-inner { height: 76px; }
  .brand-logo { height: 52px; }
  .site-footer .brand-logo { height: 52px; }
}

/* ---------- brand story (About page) ---------- */
.brand-story { max-width: 820px; }
.brand-story .bs-manifesto {
  font-size: clamp(26px, 3.4vw, 38px);
  font-style: italic;
  color: #16155e;
  letter-spacing: -0.02em;
  margin-bottom: 44px;
}
.brand-story h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.brand-story .bs-name ul { margin-bottom: 44px; }
.brand-story .bs-name li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.7;
}
.brand-story .bs-name li:last-child { border-bottom: none; }
.brand-story .bs-name b {
  flex: 0 0 56px;
  color: #16155e;
  font-style: italic;
  font-weight: 800;
}
.brand-story .bs-body p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 16.5px;
}
.brand-story .bs-body p.bs-slogan {
  color: #16155e;
  font-weight: 700;
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 0;
}
.brand span {
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #16155e;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 8px;
  transition: color 0.15s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }

.nav-cta { margin-left: 10px; }

.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
}
.has-dropdown.open .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-link {
  display: block;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 9px;
}
.dropdown-link:hover { color: var(--text); background: var(--surface-2); }
.dropdown-link:first-child { color: var(--text); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 92px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  gap: 32px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-trust .ht {
  font-size: 14px;
  color: var(--faint);
}
.hero-trust .ht b {
  display: block;
  font-family: var(--font-head);
  color: var(--text);
  font-size: 24px;
  margin-bottom: 2px;
}

/* hero visual: browser mockup */
.hero-visual { position: relative; }

.mock-window {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), var(--shadow-glow);
  position: relative;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mock-titlebar i {
  width: 11px; height: 11px; border-radius: 50%;
}
.mock-titlebar i:nth-child(1) { background: #ff5f57; }
.mock-titlebar i:nth-child(2) { background: #febc2e; }
.mock-titlebar i:nth-child(3) { background: #28c840; }
.mock-url {
  margin-left: 12px;
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
}

.mock-body { padding: 26px; }
.mock-hero-line {
  height: 16px;
  width: 70%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.06));
  margin-bottom: 12px;
}
.mock-line {
  height: 11px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.06);
  margin-bottom: 9px;
}
.mock-line.w90 { width: 90%; }
.mock-line.w75 { width: 75%; }
.mock-line.w50 { width: 50%; }

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.mock-card {
  aspect-ratio: 1.2;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 10px;
}
.mock-card i {
  display: block;
  height: 8px;
  width: 60%;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  margin-bottom: 7px;
}
.mock-card i:last-child { width: 35%; margin-bottom: 0; }

.hero-visual .glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
}
.hero-visual .glow.g1 { background: rgba(62, 176, 239, 0.2); top: -60px; right: -40px; }
.hero-visual .glow.g2 { background: rgba(93, 207, 31, 0.15); bottom: -70px; left: -50px; }

.mock-float {
  position: absolute;
  right: -24px;
  bottom: -28px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}
.mock-float .up { color: var(--green); font-weight: 700; font-size: 17px; font-family: var(--font-head); }
.mock-float small { color: var(--faint); font-size: 12px; }

/* ============================================================
   Trusted strip / stats band
   ============================================================ */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}
.trust-strip p {
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.trust-logos {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-logos span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--faint);
  opacity: 0.75;
}

.stats-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* About页数据条：白色在上、粉色波浪在下的底图（参考图风格） */
.stats-band-wave {
  position: relative;
  background: #fff;
  overflow: hidden;
}
.stats-band-wave::before {
  content: '';
  position: absolute;
  left: -25%;
  top: 58%;
  width: 170%;
  height: 400%;
  background: #f9a8d3;
  border-radius: 50%;
  transform: rotate(-7deg);
}
.stats-band-wave .container { position: relative; z-index: 1; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-head);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-label { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* ============================================================
   Service cards
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.service-card { display: flex; flex-direction: column; }
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 22px;
}
.service-card h3 { margin-bottom: 11px; }
.service-card p { color: var(--muted); font-size: 15px; margin-bottom: 20px; flex: 1; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}
.card-link:hover { gap: 10px; }

/* feature list (why us) */
.feature-item { display: flex; gap: 16px; }
.feature-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.feature-item h4 { font-size: 16.5px; margin-bottom: 5px; }
.feature-item p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   Process
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 8px; }
.step-num {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-2);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.step h4 { font-size: 17.5px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 56px;
  right: -12px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* ============================================================
   Case cards
   ============================================================ */
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.case-visual {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  padding: 26px 26px 0;
}
.case-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ga, #6366f1), var(--gb, #8b5cf6));
  opacity: 0.92;
}
.case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 30px 30px;
}
.case-visual .cv-window {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 11px 11px 0 0;
  padding: 11px 14px;
  height: 100%;
}
.cv-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.cv-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, 0.2); }
.cv-url {
  height: 8px; width: 46%; border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  margin-bottom: 14px;
}
.cv-bar { height: 9px; border-radius: 4px; background: rgba(0, 0, 0, 0.12); margin-bottom: 8px; }
.cv-bar.w60 { width: 60%; }
.cv-bar.w80 { width: 80%; }
.cv-hero { margin-bottom: 14px; }
.cv-btn {
  width: 36%; height: 13px; border-radius: 7px; margin-top: 5px;
  background: linear-gradient(135deg, rgba(21, 23, 26, 0.7), rgba(52, 63, 68, 0.5));
}
.cv-cards { display: flex; gap: 8px; }
.cv-cards i {
  flex: 1; height: 36px; border-radius: 7px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.cv-tech {
  position: absolute; right: 14px; bottom: 12px; z-index: 2;
  display: flex; gap: 6px;
}
.cv-tech span {
  font-size: 10.5px; font-weight: 600; color: #fff;
  background: rgba(21, 23, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 9px; border-radius: 99px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Template thumbnails (real screenshots) */
.case-visual > img.tpl-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
}
.case-hero-visual > img.tpl-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}

/* Live Demo floating button on template hero */
.tpl-hero-wrap {
  position: relative;
}
.tpl-demo-float {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: #fff;
  color: #111;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tpl-demo-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.3), 0 4px 10px rgba(0,0,0,.18);
}

/* Demo badge on template list cards */
.tpl-demo-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.tpl-demo-badge svg { margin-right: 4px; }

/* Attribution + disclaimer */
.tpl-attribution {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--faint);
}
.tpl-attribution a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tpl-attribution a:hover { color: var(--text); }
.tpl-disclaimer {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 760px;
}

.case-body { padding: 24px 26px 27px; }
.case-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--faint);
  margin-bottom: 11px;
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.case-body h3 { font-size: 18.5px; margin-bottom: 8px; }
.case-body p { color: var(--muted); font-size: 14.5px; }

/* filters */
.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.16s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

/* ============================================================
   Packages (no prices)
   ============================================================ */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.package {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.package.featured {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 45%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.package-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
}
.package h3 { font-size: 21px; margin-bottom: 8px; }
.package .for { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.package ul { margin-bottom: 28px; flex: 1; }
.package li {
  display: flex;
  gap: 11px;
  font-size: 14.5px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.package li svg { flex-shrink: 0; margin-top: 3px; color: var(--green); }
.package li.off { color: var(--faint); }
.package li.off svg { color: var(--faint); }

/* ============================================================
   Testimonials
   ============================================================ */
.t-carousel { position: relative; max-width: 860px; margin: 0 auto; overflow: hidden; }
.t-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.t-slide {
  flex: 0 0 100%;
  padding: 8px;
}
.t-quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 42px 46px;
  text-align: center;
}
.t-stars {
  color: var(--amber);
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 20px;
}
.t-text {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 26px;
}
.t-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.t-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}
.t-author b { display: block; font-size: 15px; }
.t-author small { color: var(--faint); font-size: 13.5px; }

.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.t-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.15); border: none;
  transition: width 0.25s ease, background 0.25s ease;
}
.t-dots button.active { width: 24px; border-radius: 999px; background: var(--text); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 13px;
  margin-bottom: 12px;
  background: var(--surface);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16.5px;
  font-weight: 600;
  font-family: var(--font-head);
  padding: 20px 24px;
}
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-q .faq-icon::before,
.faq-q .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .faq-icon::before { width: 11px; height: 2px; }
.faq-q .faq-icon::after { width: 2px; height: 11px; transition: transform 0.25s ease; }
.faq-item.open .faq-q .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item.open .faq-q { color: var(--primary-2); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 72px 48px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.cta-band p { color: var(--muted); font-size: 17.5px; max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* per-page CTA band tints */
.cta-tint-blue   { background: #ecf4fb; border-color: #d9e8f4; }
.cta-tint-indigo { background: #3eafbd; border-color: transparent; }
.cta-tint-indigo h2 { color: #fff; }
.cta-tint-indigo p { color: rgba(255, 255, 255, 0.88); }
.cta-tint-indigo .btn-primary { background: #fff; color: #3eafbd; }
.cta-tint-indigo .btn-primary:hover { background: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22); }
.cta-tint-indigo .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: transparent; }
.cta-tint-indigo .btn-outline:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.cta-tint-teal   { background: #e9f6f3; border-color: #d4eae5; }
.cta-tint-green  { background: #eef8ec; border-color: #dcefd9; }
.cta-tint-red    { background: #ef3529; border-color: transparent; }
.cta-tint-red h2 { color: #fff; }
.cta-tint-red p { color: rgba(255, 255, 255, 0.85); }
.cta-tint-red .btn-primary { background: #fff; color: #d92b1c; }
.cta-tint-red .btn-primary:hover { background: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28); }
.cta-tint-red .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: transparent; }
.cta-tint-red .btn-outline:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.cta-tint-yellow { background: #ffc800; border-color: transparent; }
.cta-tint-yellow p { color: rgba(21, 23, 26, 0.68); }
.cta-tint-yellow .btn-primary { background: #fff; color: #ffc800; }
.cta-tint-yellow .btn-primary:hover { background: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16); }
.cta-tint-yellow .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: transparent; }
.cta-tint-yellow .btn-outline:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.cta-tint-astro {
  background-color: #0e2036;
  background-image:
    radial-gradient(1.3px 1.3px at 18% 28%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 32% 62%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.2px 1.2px at 55% 18%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 72% 70%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.4px 1.4px at 86% 30%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 44% 82%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(ellipse 62% 92% at 10% 62%, rgba(37, 105, 130, 0.55), transparent 62%),
    radial-gradient(ellipse 58% 88% at 90% 38%, rgba(45, 100, 155, 0.62), transparent 66%),
    linear-gradient(165deg, #122c43 0%, #0e2036 55%, #122e52 100%);
  border-color: rgba(255, 255, 255, 0.1);
}
.cta-tint-astro h2 { color: #fff; }
.cta-tint-astro p { color: rgba(255, 255, 255, 0.75); }
.cta-tint-astro .btn-primary { background: #fff; color: #122c43; }
.cta-tint-astro .btn-primary:hover { background: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); }
.cta-tint-astro .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: transparent; }
.cta-tint-astro .btn-outline:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.cta-tint-amber  { background: #2861ad; border-color: transparent; }
.cta-tint-amber h2 { color: #fff; }
.cta-tint-amber p { color: rgba(255, 255, 255, 0.88); }
.cta-tint-amber .btn-primary { background: #fff; color: #2861ad; }
.cta-tint-amber .btn-primary:hover { background: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28); }
.cta-tint-rose   { background: #faeeef; border-color: #f2dbdd; }

/* founding-client band */
.founding-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 40px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--surface-2);
}
.founding-band h3 { font-size: 23px; margin-bottom: 8px; }
.founding-band p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0; max-width: 660px; }
.founding-band .btn { flex-shrink: 0; }
@media (max-width: 820px) {
  .founding-band { flex-direction: column; text-align: center; padding: 28px 22px; }
}

/* ============================================================
   Forms
   ============================================================ */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field label .req { color: var(--red); }

.input, textarea, select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input::placeholder, textarea::placeholder { color: var(--faint); }
.input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(21, 23, 26, 0.08);
}
textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 13px; color: var(--faint); margin-top: 14px; }
.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  display: none;
}
.form-message.show { display: block; }
.form-message.ok { background: rgba(93, 207, 31, 0.08); border: 1px solid rgba(93, 207, 31, 0.3); color: #2d6a0e; }
.form-message.err { background: rgba(240, 82, 48, 0.08); border: 1px solid rgba(240, 82, 48, 0.3); color: #c0392b; }

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.checkbox-row input { margin-top: 3px; accent-color: var(--primary); }

/* ============================================================
   Quote wizard
   ============================================================ */
.wizard {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}
.wizard-progress::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--border);
}
.wizard-bar {
  position: absolute;
  top: 15px;
  left: 24px;
  height: 2px;
  background: var(--text);
  transition: width 0.35s ease;
}
.wp-dot {
  position: relative;
  z-index: 1;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-strong);
  color: var(--faint);
  font-size: 13.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
}
.wp-dot.done { background: var(--text); border-color: var(--text); color: #fff; }
.wp-dot.current { border-color: var(--text); color: var(--text); box-shadow: 0 0 0 4px rgba(21, 23, 26, 0.08); }

.wpanel { display: none; }
.wpanel.current { display: block; animation: fadeUp 0.3s ease; }
.wpanel h3 { font-size: 23px; margin-bottom: 8px; }
.wpanel .wsub { color: var(--muted); font-size: 15px; margin-bottom: 26px; }

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.option-grid.three { grid-template-columns: repeat(3, 1fr); }

.option {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
  font-size: 15px;
  color: var(--text);
}
.option:hover { border-color: var(--text); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .opt-check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.option.multi .opt-check { border-radius: 6px; }
.option.single .opt-check { border-radius: 50%; }
.option.selected {
  border-color: var(--text);
  background: var(--surface-2);
}
.option.selected .opt-check {
  background: var(--text);
  border-color: var(--text);
}
.option.selected .opt-check::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.option b { display: block; font-weight: 600; }
.option small { color: var(--faint); font-size: 13px; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
}
.wizard-error {
  color: var(--red);
  font-size: 13.5px;
  margin-top: 14px;
  display: none;
}
.wizard-error.show { display: block; }

.wsuccess { text-align: center; padding: 24px 0 8px; }
.wsuccess .ws-icon {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(93, 207, 31, 0.1);
  border: 1px solid rgba(93, 207, 31, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: #2d6a0e;
}
.wsuccess h3 { font-size: 26px; margin-bottom: 12px; }
.wsuccess p { color: var(--muted); font-size: 15.5px; margin-bottom: 8px; }
.wsuccess .ref-id {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 7px 18px;
  border-radius: 999px;
}

/* ============================================================
   Breadcrumb & page hero (inner pages)
   ============================================================ */
.page-hero {
  padding: 72px 0 56px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--faint);
  margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--primary-2); }

/* ============================================================
   Prose (blog / legal)
   ============================================================ */
.prose {
  max-width: 740px;
  margin: 0 auto;
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.8;
}
.prose h2 {
  font-size: 25px;
  margin: 40px 0 14px;
}
.prose h3 { font-size: 20px; margin: 32px 0 12px; }
.prose p { margin-bottom: 20px; }
.prose ul { margin: 0 0 20px 22px; list-style: disc; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }

.post-head { text-align: center; margin-bottom: 42px; }
.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--faint);
  font-size: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.post-meta .t-avatar { width: 38px; height: 38px; font-size: 14px; }

.post-cover {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ga), var(--gb));
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.post-cover::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  border-radius: var(--radius-lg);
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 4.2;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual .big-stat {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-head);
  text-align: left;
}
.about-visual .big-stat b {
  display: flex;
  align-items: center;
  gap: 0.05em;
  font-size: clamp(72px, 20vw, 118px);
  font-weight: 700;
  line-height: 1;
  color: #c9f24e;
}
/* 粗斜体笔画 + 荧光，模拟参考图的超粗斜体感 */
.about-visual .big-stat b i {
  font-style: italic;
  -webkit-text-stroke: 2px currentColor;
  text-shadow: 0 0 24px rgba(201, 242, 78, 0.35), 0 0 90px rgba(201, 242, 78, 0.18);
}
.about-visual .big-stat b .plus {
  font-size: 0.58em;
  align-self: flex-start;
  margin-top: 0.14em;
}
/* “0”渲染为实心大圆，字形本身透明保留排版宽度 */
.about-visual .big-stat .zero {
  position: relative;
  color: transparent;
}
.about-visual .big-stat .zero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.76em;
  height: 0.76em;
  transform: translate(-50%, -64%);
  background: #c9f24e;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(201, 242, 78, 0.35), 0 0 90px rgba(201, 242, 78, 0.18);
}
.about-visual .big-stat small { color: #c9f24e; font-size: 17px; font-weight: 500; line-height: 1.45; max-width: 160px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.value-card .num {
  font-family: var(--font-head);
  color: var(--primary-2);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.value-card h4 { font-size: 17px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 14px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.member .t-avatar {
  width: 68px; height: 68px;
  font-size: 23px;
  margin: 0 auto 16px;
}
.member .member-avatar {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  margin: 0 0 16px;
}
.member b { display: block; font-size: 16px; }
.member small { color: var(--faint); font-size: 13.5px; display: block; margin-top: 3px; }

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  justify-content: center;
}
.tech-pill {
  padding: 9px 19px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
.info-list { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.info-card .ic {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.info-card h4 { font-size: 15.5px; margin-bottom: 3px; }
.info-card p, .info-card a { color: var(--muted); font-size: 14.5px; }
.info-card a:hover { color: var(--text); }

.quick-quote {
  margin-top: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.quick-quote h4 { margin-bottom: 8px; }
.quick-quote p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* ============================================================
   Case detail
   ============================================================ */
.case-result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 36px 0;
}
.result-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.result-box b {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  background: linear-gradient(100deg, #15171a, #3eb0ef);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.result-box small { color: var(--muted); font-size: 13px; }

.case-section { margin-bottom: 48px; }
.case-section h2 { font-size: 26px; margin-bottom: 16px; }
.case-section p { color: var(--muted); font-size: 16px; }
.case-section ul { display: flex; flex-direction: column; gap: 12px; }
.case-section li {
  display: flex;
  gap: 12px;
  color: var(--text);
  font-size: 15.5px;
}
.case-section li svg { flex-shrink: 0; margin-top: 4px; color: var(--green); }

.tech-row { display: flex; gap: 9px; flex-wrap: wrap; }

.case-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 48px;
  align-items: start;
}
.case-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 96px;
}
.case-side dl { display: flex; flex-direction: column; gap: 14px; }
.case-side dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.case-side dd { font-size: 14.5px; }

.case-hero-visual {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ga), var(--gb));
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}
.case-hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #15171a;
  padding-top: 72px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 52px;
}
.footer-tag {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14.5px;
  margin: 18px 0 22px;
  max-width: 320px;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.16s ease;
}
.social-row a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #fff; }

.site-footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #fff;
  margin-bottom: 18px;
}
.site-footer li { margin-bottom: 11px; }
.site-footer li a { color: rgba(255, 255, 255, 0.62); font-size: 14.5px; transition: color 0.15s ease; }
.site-footer li a:hover { color: #fff; }
.footer-contact li { color: rgba(255, 255, 255, 0.62); font-size: 14.5px; }
.footer-hours { color: rgba(255, 255, 255, 0.4); font-size: 13.5px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255, 255, 255, 0.4); font-size: 13.5px; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255, 255, 255, 0.4); font-size: 13.5px; }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(720px, calc(100% - 32px));
}
body.cookie-visible { padding-bottom: 130px; }
.cookie-inner {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
.cookie-inner p { font-size: 14px; color: var(--muted); flex: 1; }
.cookie-inner a { color: var(--cyan); text-decoration: underline; }
.cookie-actions { display: flex; gap: 9px; flex-shrink: 0; }

/* ============================================================
   404
   ============================================================ */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 22px;
}
.error-code {
  font-family: var(--font-head);
  font-size: clamp(90px, 16vw, 170px);
  font-weight: 700;
  background: linear-gradient(100deg, #15171a, #3eb0ef);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.error-page h1 { font-size: 26px; margin: 10px 0 12px; }
.error-page p { color: var(--muted); margin-bottom: 28px; }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 560px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .step:not(:last-child)::after { display: none; }
  .packages-grid, .grid-3 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .case-layout { grid-template-columns: 1fr; }
  .case-side { position: static; }
  .case-result-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 480px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 18px 22px 26px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-cta { margin: 12px 0 0; }
  .has-dropdown { position: static; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 4px 0 4px 14px;
    min-width: 0;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown-link { padding: 9px 12px; }
}

@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card, .wizard { padding: 28px 22px; }
  .option-grid, .option-grid.three { grid-template-columns: 1fr; }
  .cta-band { padding: 52px 26px; }
  .stats-grid, .team-grid, .grid-4, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .case-result-grid { grid-template-columns: 1fr; }
  .t-quote { padding: 32px 24px; }
  .t-text { font-size: 16.5px; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
  .mock-float { right: 8px; bottom: -24px; padding: 10px 14px; }
  .hero-trust { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
