/* ==========================================================================
   Timeframe — Ambient Border Clock · Landing page
   Design contract: DESIGN.md — all tokens verbatim from the extension UI.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens (design contract)
   -------------------------------------------------------------------------- */
:root {
  --bg: #0a0e17;                 /* page background (deep navy-black) */
  --panel: #101724;              /* card surfaces */
  --panel-2: #0c1220;            /* secondary surfaces / inputs */
  --text: #e6edf3;               /* primary text (off-white) */
  --muted: #94a3b8;              /* secondary text (slate-400) */
  --accent: #22d3ee;             /* cyan — primary brand color */
  --accent-ink: #04141a;         /* dark text on accent background */
  --danger: #dc2626;
  --success: #22c55e;
  --border: rgba(148, 163, 184, 0.16);
  --accent-hover: #67e8f9;
  --gold: #fbbf24;

  /* Typography */
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC",
             "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape & elevation */
  --radius-card: 10px;
  --radius-btn: 6px;
  --radius-pill: 999px;
  --card-glow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
               inset 0 0 20px rgba(34, 211, 238, 0.04);

  /* Motion */
  --ease: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;

  /* Layout */
  --nav-h: 64px;
}

/* --------------------------------------------------------------------------
   Theme palette — hour / minute / second track colors.
   Applied to the live demo (.demo) and the mini previews (.theme-card).
   -------------------------------------------------------------------------- */
.demo,
.theme-card {
  --th-hour: #22d3ee;
  --th-min: #a78bfa;
  --th-sec: #fbbf24;
}
.theme-aurora { --th-hour: #34d399; --th-min: #60a5fa; --th-sec: #c084fc; }
.theme-silver { --th-hour: #94a3b8; --th-min: #cbd5e1; --th-sec: #f8fafc; }
.theme-sunset { --th-hour: #fb923c; --th-min: #f472b6; --th-sec: #a78bfa; }
.theme-matrix { --th-hour: #22c55e; --th-min: #4ade80; --th-sec: #a3e635; }
.theme-blood { --th-hour: #ef4444; --th-min: #991b1b; --th-sec: #f43f5e; }

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

::selection { background: rgba(34, 211, 238, 0.28); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.skip-link {
  position: fixed; top: -48px; left: 16px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; padding: 0.6rem 1rem;
  border-radius: var(--radius-btn); text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* Ambient background — soft palette glows only */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50rem 34rem at 12% -6%, rgba(34, 211, 238, 0.07), transparent 62%),
    radial-gradient(44rem 30rem at 96% 12%, rgba(167, 139, 250, 0.05), transparent 60%),
    radial-gradient(40rem 32rem at 55% 108%, rgba(251, 191, 36, 0.04), transparent 60%);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2536; border-radius: 5px; }

.wrap {
  width: min(1120px, 100% - clamp(2rem, 6vw, 3rem));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1 {
  font-size: clamp(2.35rem, 5vw + 0.75rem, 4.35rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.8rem, 2.4vw + 0.7rem, 2.5rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.015em;
}
h3 { font-size: 1.22rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}

.lead { color: var(--muted); font-size: 1.02rem; }

/* --------------------------------------------------------------------------
   Buttons & badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius-btn);
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 0.85rem 1.45rem;
  text-decoration: none; border: 1px solid transparent;
  transition: var(--ease);
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 24px -10px rgba(34, 211, 238, 0.55);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px -8px rgba(34, 211, 238, 0.7);
}
.btn-secondary { background: #334155; color: var(--text); }
.btn-secondary:hover { background: #475569; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }

.tag-pro {
  display: inline-block; margin-left: 0.3rem; vertical-align: 0.18em;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--gold); padding: 0.12rem 0.38rem;
  border: 1px solid rgba(251, 191, 36, 0.4); border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.section-head {
  max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.section-head h2 { margin: 1rem 0 0.75rem; }

/* --------------------------------------------------------------------------
   Sticky nav
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 23, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--nav-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-weight: 650; font-size: 1.05rem; letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.cn-nod { color: var(--muted); font-size: 0.8rem; font-weight: 500; }

.nav-links {
  display: flex; gap: 1.75rem; margin-left: auto;
  list-style: none;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 1.5rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(3rem, 6vw, 4.5rem); text-align: center; }

.hero-copy { max-width: 820px; margin-inline: auto; }

.hero-flag {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 1.05rem;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted); font-size: 0.8rem; letter-spacing: 0.05em;
}
.flag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}

.hero h1 { margin: 1.6rem auto 1.1rem; }

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.14rem);
  max-width: 640px; margin: 0 auto 2.2rem;
}

.hero-cta {
  display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

/* --------------------------------------------------------------------------
   Demo — live animated browser mockup
   -------------------------------------------------------------------------- */
.demo-wrap { max-width: 880px; margin-inline: auto; }

.demo { position: relative; }

.demo-glow {
  position: absolute; inset: -14% -8%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 46% at 50% 46%, rgba(34, 211, 238, 0.1), transparent 68%),
    radial-gradient(30% 30% at 18% 22%, rgba(167, 139, 250, 0.06), transparent 68%),
    radial-gradient(28% 28% at 82% 80%, rgba(251, 191, 36, 0.05), transparent 68%);
}

.browser {
  position: relative; z-index: 1;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.07),
    0 34px 90px -24px rgba(0, 0, 0, 0.75),
    0 0 110px -45px rgba(34, 211, 238, 0.35);
}

.titlebar {
  display: flex; align-items: center; gap: 0.9rem;
  height: 46px; padding: 0 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}
.traffic { display: flex; gap: 7px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.url-pill {
  flex: 1; max-width: 340px; margin-inline: auto;
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  padding: 0.32rem 0.9rem;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.04em; color: #cbd5e1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.url-icon { width: 12px; height: 12px; border-radius: 2px; flex: none; }
.titlebar-spacer { width: 47px; flex: none; }

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(34, 211, 238, 0.055), transparent 62%),
    var(--panel-2);
}
.trails { position: absolute; inset: 0; width: 100%; height: 100%; }

.stage-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 0.85rem; padding: 0 9%; width: 60%;
  animation: skel-breathe 4.5s ease-in-out infinite;
}
.skel { height: 10px; border-radius: 5px; background: rgba(148, 163, 184, 0.13); }
.skel-title { width: 55%; height: 17px; border-radius: 6px; background: rgba(34, 211, 238, 0.14); }
.skel-line.w-90 { width: 90%; }
.skel-line.w-70 { width: 70%; }
.skel-btn {
  width: 96px; height: 24px; border-radius: var(--radius-btn);
  background: rgba(148, 163, 184, 0.18); border: 1px solid rgba(148, 163, 184, 0.18);
}
@keyframes skel-breathe {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.62; }
}

.clock-chip {
  position: absolute; right: 1.5rem; bottom: 1.25rem; z-index: 2;
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: rgba(10, 14, 23, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
}
.demo-clock {
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.1vw + 0.4rem, 0.95rem);
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  text-shadow: 0 0 10px rgba(226, 232, 240, 0.35);
}

/* Track layers (built by script.js) */
.track-base { opacity: 0.09; }

/* Seconds-wrap pulse */
.demo.is-pulsing { animation: demo-pulse 620ms ease-out; }
@keyframes demo-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Theme chips */
.theme-chips {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
  margin-top: 1.6rem;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em;
  transition: var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(148, 163, 184, 0.3); }
.chip.is-active {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: inset 0 0 14px rgba(34, 211, 238, 0.08);
}
.chip-pro {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--gold);
  padding: 0.14rem 0.4rem;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust { padding-top: 0; }

.trust-card {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-glow);
  overflow: hidden;
}
.trust-item {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1.1rem 0.8rem;
  text-align: center;
  color: var(--muted); font-size: 0.88rem; font-weight: 500;
}
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-icon { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-glow);
  padding: 1.75rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.28); }
.feature-icon { width: 30px; height: 30px; color: var(--muted); margin-bottom: 1.1rem; }
.feature-icon .accent { color: var(--accent); }
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Themes gallery
   -------------------------------------------------------------------------- */
.themes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.theme-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-glow);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.theme-card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.28); }
.theme-preview { width: 72px; height: 72px; margin: 0 auto 1.1rem; display: block; }

.pv { fill: none; stroke-width: 7; stroke-linecap: round; }
.pv-h {
  stroke: var(--th-hour);
  filter: drop-shadow(0 0 4px var(--th-hour)) drop-shadow(0 0 9px var(--th-hour));
}
.pv-m {
  stroke: var(--th-min);
  filter: drop-shadow(0 0 4px var(--th-min)) drop-shadow(0 0 9px var(--th-min));
}
.pv-s,
.pv-s2 {
  stroke: var(--th-sec);
  filter: drop-shadow(0 0 4px var(--th-sec)) drop-shadow(0 0 9px var(--th-sec));
}

.theme-card h3 { margin-bottom: 0.15rem; }
.theme-tier {
  display: inline-block; margin-top: 0.55rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; font-weight: 600;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--muted);
}
.theme-tier.pro {
  color: var(--gold);
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
}
.theme-card p { color: var(--muted); font-size: 0.85rem; margin-top: 0.7rem; }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.how-step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-glow);
  padding: 1.75rem 1.5rem 1.75rem 3.4rem;
}
.how-num {
  position: absolute; left: 1.4rem; top: 1.6rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--accent); opacity: 0.9;
}
.how-step h3 { margin-bottom: 0.5rem; }
.how-step p { color: var(--muted); font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  align-items: stretch;
  max-width: 920px; margin-inline: auto;
}
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-glow);
  padding: 2.25rem 2rem;
}
.price-card.pro {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: var(--card-glow), 0 0 70px -35px rgba(34, 211, 238, 0.45);
}
.price-badge {
  position: absolute; top: -13px; right: 1.5rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.7rem;
}
.price-name {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.price-amount {
  margin: 0.7rem 0 0.3rem;
  font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1;
}
.price-amount small { font-size: 0.9rem; color: var(--muted); font-weight: 500; margin-left: 0.3rem; }
.price-sub { color: var(--muted); font-size: 0.9rem; }

.promo-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.9rem; align-self: flex-start;
  padding: 0.4rem 0.75rem;
  border: 1px dashed var(--accent); border-radius: var(--radius-btn);
  color: var(--accent); font-size: 0.85rem; font-weight: 500;
  background: rgba(34, 211, 238, 0.05);
}
.promo-pill code { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.08em; }

.price-feats {
  list-style: none;
  margin: 1.6rem 0 2rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.price-feats li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--text); font-size: 0.93rem; }
.check { flex: none; width: 16px; height: 16px; margin-top: 0.18rem; color: var(--accent); }
.price-cta { margin-top: auto; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 760px; margin-inline: auto;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-glow);
  overflow: hidden;
}
.faq-q { margin: 0; }
.faq-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  text-align: left;
  font-size: 1.02rem; font-weight: 600; letter-spacing: -0.005em;
  transition: color 0.15s ease;
}
.faq-btn:hover { color: var(--accent); }
.faq-icon {
  flex: none; width: 18px; height: 18px; color: var(--muted);
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(180deg); }
.faq-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.32s ease;
}
.faq-item.is-open .faq-panel { max-height: 320px; }
.faq-panel-inner { padding: 0 1.4rem 1.3rem; color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.cta-banner { padding-top: 0; }
.cta-panel {
  position: relative; overflow: hidden;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--card-glow);
  padding: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.cta-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 90% at 50% -20%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(40% 70% at 85% 110%, rgba(167, 139, 250, 0.08), transparent 60%),
    radial-gradient(40% 70% at 12% 110%, rgba(251, 191, 36, 0.06), transparent 60%);
}
.cta-panel > * { position: relative; }
.cta-panel h2 { margin-bottom: 0.9rem; }
.cta-panel .lead { max-width: 520px; margin: 0 auto 2rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 0.7rem; max-width: 34ch; }
.footer .footer-col-title {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.footer-links a {
  color: var(--muted); font-size: 0.9rem; text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  color: var(--muted); font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .features-grid,
  .themes-grid,
  .how-grid { grid-template-columns: repeat(2, 1fr); }

  .trust-card { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: none; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .features-grid,
  .themes-grid,
  .how-grid { grid-template-columns: 1fr; }

  .trust-item { flex-direction: column; gap: 0.4rem; }
  .trust-item:nth-child(2) { border-left: none; }

  .url-pill { display: none; }
  .titlebar-spacer { display: none; }
  .stage-content { width: 78%; padding: 0 8%; }

  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .stage-content { animation: none; }
  .demo.is-pulsing { animation: none; }
}
