/* ==========================================================================
   TRAFFICTALKING PTE. LTD. — Global stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand-500: #6366f1;
  --brand-400: #818cf8;
  --brand-600: #4f46e5;
  --accent-cyan: #22d3ee;
  --accent-pink: #f472b6;
  --accent-amber: #fbbf24;

  /* Surfaces */
  --bg: #07070c;
  --bg-elev: #0d0d16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f4f4f7;
  --text-muted: #a2a2b4;
  --text-dim: #71718a;

  /* Metrics */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1160px;
  --gutter: 24px;
  --nav-h: 68px;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;

  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

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

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px circle at 12% -5%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(560px circle at 92% 8%, rgba(34, 211, 238, 0.12), transparent 62%),
    radial-gradient(720px circle at 50% 110%, rgba(244, 114, 182, 0.09), transparent 60%);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

p { margin: 0 0 1.1em; color: var(--text-muted); }

ul, ol { color: var(--text-muted); }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

::selection {
  background: rgba(99, 102, 241, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding: clamp(64px, 9vw, 116px) 0;
  position: relative;
}

.section--tight { padding: clamp(48px, 6vw, 76px) 0; }

.section-head {
  max-width: 660px;
  margin-bottom: 52px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-400);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-head--center .eyebrow::before { display: none; }

.lede {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 58ch;
}

.section-head--center .lede { margin-inline: auto; }

.grid {
  display: grid;
  gap: 22px;
}

/* Grid items default to min-width:auto, which lets wide children (tables,
   long strings) blow the track out past the container. Opt out everywhere. */
.grid > *,
.legal > *,
.split > *,
.hero__inner > *,
.footer__grid > *,
.stats > * {
  min-width: 0;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s,
    box-shadow 0.25s, opacity 0.25s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.8);
}

.btn--primary:hover {
  box-shadow: 0 16px 38px -12px rgba(99, 102, 241, 0.9);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover { background: var(--surface-hover); }

.btn--sm { padding: 10px 18px; font-size: 0.87rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-400);
}

.arrow-link span {
  transition: transform 0.25s var(--ease);
}

.arrow-link:hover span { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 12, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 0.98rem;
}

.brand__mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand__text small {
  display: block;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: uppercase;
  line-height: 1.3;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.is-active { color: var(--text); }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav__toggle span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.2s;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.28s var(--ease);
}

.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 104px));
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }

.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-400) 10%, var(--accent-cyan) 55%, var(--accent-pink) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  backdrop-filter: blur(10px);
}

.pill b {
  color: var(--text);
  font-weight: 600;
  background: rgba(99, 102, 241, 0.22);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

/* Phone mock stack */
.hero__art {
  position: relative;
  display: grid;
  grid-template-areas: "stack";
  place-items: center;
  min-height: 420px;
}

/* All mockups share one grid cell so they overlap rather than stack */
.hero__art > .phone { grid-area: stack; }

.phone {
  position: relative;
  width: 226px;
  aspect-ratio: 9 / 19;
  border-radius: 34px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, #16162a, #0b0b14);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}

.phone::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.phone__screen {
  position: absolute;
  inset: 8px;
  border-radius: 27px;
  padding: 30px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone--wall {
  transform: rotate(-9deg) translateX(-96px) scale(0.86);
  z-index: 1;
}
.phone--wall .phone__screen {
  background:
    radial-gradient(120px circle at 30% 25%, rgba(244, 114, 182, 0.55), transparent 70%),
    linear-gradient(180deg, #4c1d95, #1e1b4b 60%, #0b1120);
}

.phone--comic {
  transform: rotate(8deg) translateX(96px) scale(0.86);
  z-index: 1;
}
.phone--comic .phone__screen {
  background:
    radial-gradient(140px circle at 70% 20%, rgba(34, 211, 238, 0.4), transparent 70%),
    linear-gradient(180deg, #0f172a, #082f49 70%, #020617);
}

.phone--ai {
  z-index: 3;
  transform: translateY(-8px);
}
.phone--ai .phone__screen {
  background:
    radial-gradient(160px circle at 50% 0%, rgba(99, 102, 241, 0.55), transparent 70%),
    linear-gradient(180deg, #111827, #0b0b14);
}

.hero__art:hover .phone--wall { transform: rotate(-13deg) translateX(-112px) scale(0.88); }
.hero__art:hover .phone--comic { transform: rotate(12deg) translateX(112px) scale(0.88); }
.hero__art:hover .phone--ai { transform: translateY(-16px) scale(1.02); }

.sk {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}
.sk--title { height: 12px; width: 62%; }
.sk--line { height: 8px; width: 100%; background: rgba(255, 255, 255, 0.09); }
.sk--line.s { width: 74%; }
.sk--block { flex: 1; border-radius: 14px; background: rgba(255, 255, 255, 0.08); }
.sk--row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 62px; }
.sk--row div { border-radius: 10px; background: rgba(255, 255, 255, 0.12); }

.phone__badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  z-index: 2;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 64px);
}

.stat {
  background: var(--bg-elev);
  padding: 26px 24px;
}

.stat__num {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, var(--brand-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.94rem; }

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: var(--brand-400);
}

.card__icon svg { width: 22px; height: 22px; }

.card--cyan .card__icon {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.28);
  color: var(--accent-cyan);
}
.card--pink .card__icon {
  background: rgba(244, 114, 182, 0.12);
  border-color: rgba(244, 114, 182, 0.28);
  color: var(--accent-pink);
}
.card--amber .card__icon {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
  color: var(--accent-amber);
}

/* Product cards */
.product {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}

.product:hover { transform: translateY(-5px); border-color: var(--border-strong); }

.product__top {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product__logo {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.9);
}

.product__logo svg { width: 28px; height: 28px; }

.lg-wall { background: linear-gradient(140deg, #f472b6, #7c3aed); }
.lg-comic { background: linear-gradient(140deg, #22d3ee, #2563eb); }
.lg-ai { background: linear-gradient(140deg, #818cf8, #4f46e5); }
.lg-tools { background: linear-gradient(140deg, #fbbf24, #f97316); }

.product__name { font-size: 1.12rem; font-weight: 700; margin: 0; }
.product__cat { font-size: 0.8rem; color: var(--text-dim); }

.product p { font-size: 0.94rem; margin: 0; flex: 1; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags li {
  font-size: 0.75rem;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.25s, transform 0.25s var(--ease);
}

.store-btn:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.store-btn svg { width: 17px; height: 17px; flex: none; }
.store-btn small { display: block; font-size: 0.64rem; font-weight: 500; color: var(--text-dim); }
.store-btn.is-soon { opacity: 0.55; cursor: default; }
.store-btn.is-soon:hover { transform: none; background: rgba(255, 255, 255, 0.04); }

/* Steps / process */
.steps { counter-reset: step; }

.step {
  position: relative;
  padding: 26px 26px 26px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-400);
  margin-bottom: 12px;
}

/* Value / split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.checklist svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--brand-400);
}

.checklist b { color: var(--text); font-weight: 600; }

/* Glass panel */
.panel {
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px);
}

/* --------------------------------------------------------------------------
   8. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding: clamp(44px, 6vw, 68px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px circle at 20% 0%, rgba(99, 102, 241, 0.28), transparent 65%),
    radial-gradient(500px circle at 90% 100%, rgba(34, 211, 238, 0.16), transparent 60%),
    var(--bg-elev);
  text-align: center;
  overflow: hidden;
}

.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 52ch; margin-inline: auto; margin-bottom: 28px; }
.cta .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   9. Page header (inner pages)
   -------------------------------------------------------------------------- */
.page-head {
  padding-top: calc(var(--nav-h) + clamp(50px, 7vw, 84px));
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
}

.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 16px; }
.page-head .lede { font-size: 1.05rem; margin-bottom: 0; }

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.breadcrumb a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   10. Legal / long-form documents
   -------------------------------------------------------------------------- */
.legal {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.toc h4 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: toc;
}

.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.toc a:hover { background: var(--surface-hover); color: var(--text); }

.prose { max-width: 74ch; }
.prose h2 {
  font-size: 1.4rem;
  margin-top: 46px;
  padding-top: 6px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 28px; }
.prose p, .prose li { font-size: 0.97rem; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand-400); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.doc-meta b { color: var(--text-muted); font-weight: 600; }

.note {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.08);
  font-size: 0.92rem;
}
.note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 22px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}

td { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   11. Contact
   -------------------------------------------------------------------------- */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.35s var(--ease);
}

.contact-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 2px; }
.contact-card p { font-size: 0.92rem; margin-bottom: 6px; }

.contact-card a.mail {
  font-weight: 600;
  color: var(--brand-400);
  word-break: break-all;
}

.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }

.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  transition: background 0.2s;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-hover); }

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform 0.25s var(--ease);
  line-height: 1;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .faq__body { padding: 0 22px 20px; }
.faq .faq__body p { font-size: 0.94rem; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 34px;
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.28);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 46px;
}

.footer__about p {
  font-size: 0.9rem;
  max-width: 34ch;
  margin: 16px 0 0;
}

.footer h4 {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-dim);
}

.footer__bottom p { margin: 0; font-size: 0.84rem; color: var(--text-dim); }

.footer__legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__legal a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   13. 404
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: var(--nav-h);
}

.error-code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, var(--brand-400), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   14. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { min-height: 380px; order: 2; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn { display: none; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(11, 11, 20, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links a { padding: 12px 14px; border-radius: 10px; font-size: 0.98rem; }
}

@media (max-width: 680px) {
  :root { --gutter: 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .phone { width: 190px; }
  .phone--wall { transform: rotate(-10deg) translateX(-66px) scale(0.8); }
  .phone--comic { transform: rotate(9deg) translateX(66px) scale(0.8); }
  .panel { padding: 24px; }
  .doc-meta { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
