/* =========================================================
   爱拼单 · AI 智能拼单平台 — Design System
   UI Designer · 温暖 · 聪明 · 省心
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand — 柑橘橙 (tangerine) */
  --brand-50:  oklch(97% 0.02 45);
  --brand-100: oklch(93% 0.05 45);
  --brand-200: oklch(87% 0.09 45);
  --brand-300: oklch(79% 0.13 45);
  --brand-400: oklch(72% 0.16 45);
  --brand-500: oklch(66% 0.18 45);  /* brand */
  --brand-600: oklch(59% 0.17 45);
  --brand-700: oklch(51% 0.15 45);
  --brand-800: oklch(44% 0.13 45);
  --brand-900: oklch(37% 0.11 45);

  /* AI accent — 靛蓝 (indigo), used sparingly */
  --ai-50:  oklch(96% 0.03 285);
  --ai-100: oklch(91% 0.06 285);
  --ai-300: oklch(74% 0.13 285);
  --ai-500: oklch(54% 0.19 285);
  --ai-600: oklch(47% 0.18 285);
  --ai-700: oklch(41% 0.16 285);

  /* Neutrals — warm-tinted */
  --gray-50:  oklch(98.5% 0.004 70);
  --gray-100: oklch(96% 0.006 70);
  --gray-200: oklch(92% 0.008 65);
  --gray-300: oklch(87% 0.01 65);
  --gray-400: oklch(73% 0.012 65);
  --gray-500: oklch(60% 0.012 65);
  --gray-600: oklch(49% 0.012 65);
  --gray-700: oklch(39% 0.012 65);
  --gray-800: oklch(31% 0.01 65);
  --gray-900: oklch(24% 0.01 65);
  --gray-950: oklch(17% 0.01 65);

  /* Semantic */
  --success: oklch(60% 0.15 150);
  --warning: oklch(74% 0.15 75);
  --danger:  oklch(57% 0.21 25);
  --info:    var(--ai-500);

  /* Surfaces & text (semantic) */
  --bg:         oklch(98.5% 0.008 75);
  --bg-soft:    oklch(96.5% 0.012 80);
  --surface:    oklch(100% 0 0);
  --surface-2:  oklch(98% 0.006 75);
  --border:        oklch(91% 0.01 70);
  --border-strong: oklch(85% 0.012 70);
  --text:        oklch(26% 0.015 65);
  --text-strong: oklch(20% 0.015 65);
  --text-muted:  oklch(50% 0.012 65);
  --text-faint:  oklch(64% 0.012 65);

  /* Effects */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-sm:  0 1px 2px oklch(40% 0.05 45 / 0.06), 0 2px 6px oklch(40% 0.05 45 / 0.05);
  --shadow-md:  0 8px 24px -8px oklch(40% 0.08 45 / 0.18);
  --shadow-lg:  0 24px 48px -16px oklch(40% 0.1 45 / 0.28);
  --shadow-brand: 0 16px 36px -12px oklch(66% 0.18 45 / 0.5);
  --ring: 0 0 0 3px oklch(66% 0.18 45 / 0.35);

  /* Fonts */
  --font-display: "Plus Jakarta Sans", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", "Noto Sans SC", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-theme="dark"] {
  --bg:         oklch(17% 0.012 65);
  --bg-soft:    oklch(20% 0.014 65);
  --surface:    oklch(22% 0.013 65);
  --surface-2:  oklch(26% 0.014 65);
  --border:        oklch(32% 0.012 65);
  --border-strong: oklch(38% 0.013 65);
  --text:        oklch(92% 0.01 75);
  --text-strong: oklch(98% 0.008 75);
  --text-muted:  oklch(70% 0.012 65);
  --text-faint:  oklch(58% 0.012 65);
  --brand-500: oklch(70% 0.17 45);
  --brand-600: oklch(64% 0.17 45);
  --ai-500: oklch(62% 0.17 285);
  --ai-600: oklch(56% 0.17 285);
  --shadow-md: 0 8px 24px -8px oklch(0% 0 0 / 0.5);
  --shadow-lg: 0 24px 48px -16px oklch(0% 0 0 / 0.6);
  --shadow-brand: 0 16px 36px -12px oklch(70% 0.17 45 / 0.4);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
input { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.stack > * + * { margin-top: var(--gap, 1rem); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-strong); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.display {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); line-height: 1.65; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--brand-700); text-transform: uppercase;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
}
[data-theme="dark"] .eyebrow { color: var(--brand-200); background: oklch(28% 0.05 45); border-color: oklch(34% 0.06 45); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lead { margin-top: 0.75rem; }
.text-brand { color: var(--brand-600); }

/* Compact utilities for the simplified homepage */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cat-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } }
.text-ai { color: var(--ai-600); }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--brand-500); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 22px 44px -12px oklch(66% 0.18 45 / 0.6); }
.btn--ghost { background: var(--surface); color: var(--text-strong); border: 1px solid var(--border-strong); }
.btn--ghost:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--surface-2); }
.btn--ai { background: var(--ai-500); color: #fff; box-shadow: 0 16px 36px -12px oklch(54% 0.19 285 / 0.5); }
.btn--ai:hover { background: var(--ai-600); transform: translateY(-2px); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ---------- Chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill); background: var(--gray-100); color: var(--text-muted);
  border: 1px solid var(--border);
}
.chip--ai { background: var(--ai-50); color: var(--ai-700); border-color: var(--ai-100); }
[data-theme="dark"] .chip--ai { background: oklch(28% 0.06 285); color: var(--ai-300); border-color: oklch(34% 0.07 285); }
.chip--hot { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
[data-theme="dark"] .chip--hot { background: oklch(28% 0.05 45); color: var(--brand-200); border-color: oklch(34% 0.06 45); }
.chip--success { background: oklch(95% 0.04 150); color: oklch(45% 0.13 150); border-color: oklch(88% 0.07 150); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 1.25rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--text-strong); letter-spacing: -0.02em; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(140deg, var(--brand-400), var(--brand-600));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-brand);
  position: relative; overflow: hidden;
}
.brand__mark svg { width: 22px; height: 22px; }
.nav__links { display: flex; gap: 0.25rem; margin-left: 1rem; }
.nav__links a {
  padding: 0.5rem 0.85rem; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.95rem;
  color: var(--text-muted); transition: color 0.2s, background 0.2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--brand-700); background: var(--brand-50); }
[data-theme="dark"] .nav__links a:hover, [data-theme="dark"] .nav__links a.is-active { background: oklch(28% 0.05 45); color: var(--brand-200); }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 0.6rem; }
.icon-btn {
  width: 42px; height: 42px; border-radius: var(--radius-pill); display: grid; place-items: center;
  color: var(--text-muted); border: 1px solid var(--border); background: var(--surface);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { color: var(--brand-600); border-color: var(--brand-300); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
.nav__burger { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before, .hero__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5;
}
.hero__bg::before { width: 460px; height: 460px; background: var(--brand-200); top: -160px; right: -80px; }
.hero__bg::after { width: 400px; height: 400px; background: var(--ai-100); bottom: -180px; left: -120px; opacity: 0.6; }
.hero__grid {
  position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.05fr 0.95fr; align-items: center;
}
.hero__copy { max-width: 38rem; }
.hero__copy .eyebrow { margin-bottom: 1.25rem; }
.hero__title { margin-bottom: 1.25rem; }
.hero__title .grad {
  background: linear-gradient(120deg, var(--brand-500), var(--brand-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-bottom: 2rem; max-width: 32rem; }
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero__note { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.5rem; color: var(--text-faint); font-size: 0.9rem; }
.hero__note svg { width: 18px; height: 18px; color: var(--success); flex: none; }

/* Hero visual — 拼单卡片 + AI */
.hero__visual { position: relative; }
.hv-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 1.4rem; position: relative; z-index: 2;
}
.hv-card__top { display: flex; gap: 1rem; align-items: center; }
.hv-thumb { width: 76px; height: 76px; border-radius: var(--radius-md); flex: none; background: linear-gradient(140deg, var(--brand-200), var(--brand-400)); display: grid; place-items: center; font-size: 2rem; }
.hv-card__title { font-weight: 700; color: var(--text-strong); font-size: 1.05rem; }
.hv-card__sub { color: var(--text-muted); font-size: 0.85rem; }
.hv-price { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 1rem; }
.hv-price__now { font-size: 1.8rem; font-weight: 800; color: var(--brand-600); }
.hv-price__now small { font-size: 1rem; }
.hv-price__old { color: var(--text-faint); text-decoration: line-through; font-size: 0.95rem; }
.hv-price__save { margin-left: auto; }
.hv-progress { margin-top: 1.1rem; }
.hv-progress__row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--text-muted); }
.hv-bar { height: 10px; border-radius: var(--radius-pill); background: var(--gray-200); overflow: hidden; }
.hv-bar__fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); width: 0; transition: width 1.2s var(--ease-out-quart); }
.hv-members { display: flex; align-items: center; margin-top: 1rem; }
.hv-avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -10px; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: #fff; }
.hv-avatar:first-child { margin-left: 0; }
.hv-avatar--more { background: var(--gray-300); color: var(--text-muted); }
.hv-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--border); }

.hv-ai {
  position: absolute; z-index: 3; top: -22px; right: -14px;
  background: var(--ai-600); color: #fff; border-radius: var(--radius-pill);
  padding: 0.5rem 0.9rem; font-size: 0.8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem;
  box-shadow: 0 12px 28px -10px oklch(54% 0.19 285 / 0.7);
}
.hv-ai svg { width: 15px; height: 15px; }
.hv-float {
  position: absolute; z-index: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 0.6rem 0.9rem; font-size: 0.82rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.45rem; animation: float 5s ease-in-out infinite;
}
.hv-float svg { width: 16px; height: 16px; color: var(--brand-500); }
.hv-float--1 { bottom: 18px; left: -42px; }
.hv-float--2 { top: 60px; right: -56px; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =========================================================
   STATS BAR
   ========================================================= */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 2.2rem; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; }
.stat__num .accent { color: var(--brand-600); }
.stat__label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* =========================================================
   FEATURES
   ========================================================= */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.feat {
  padding: 1.75rem; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feat__icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--brand-50); color: var(--brand-600);
}
[data-theme="dark"] .feat__icon { background: oklch(28% 0.05 45); }
.feat__icon svg { width: 26px; height: 26px; }
.feat--ai .feat__icon { background: var(--ai-50); color: var(--ai-600); }
[data-theme="dark"] .feat--ai .feat__icon { background: oklch(28% 0.06 285); }
.feat h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feat p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================================
   DEAL CARDS (拼单)
   ========================================================= */
.deal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.deal {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.deal:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.deal__media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 3.2rem; background: linear-gradient(140deg, var(--brand-100), var(--brand-300)); }
.deal__media .emoji { filter: drop-shadow(0 8px 16px oklch(40% 0.1 45 / 0.25)); }
.deal__tags { position: absolute; top: 0.8rem; left: 0.8rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.deal__tags .chip { backdrop-filter: blur(4px); }
.deal__countdown { position: absolute; top: 0.8rem; right: 0.8rem; background: oklch(20% 0.01 65 / 0.78); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.6rem; border-radius: var(--radius-pill); display: inline-flex; gap: 0.3rem; align-items: center; }
.deal__countdown svg { width: 13px; height: 13px; }
.deal__body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.deal__title { font-weight: 700; color: var(--text-strong); font-size: 1.02rem; line-height: 1.35; min-height: 2.7em; }
.deal__meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; color: var(--text-faint); font-size: 0.82rem; }
.deal__price { display: flex; align-items: baseline; gap: 0.55rem; margin-top: 0.8rem; }
.deal__now { font-size: 1.5rem; font-weight: 800; color: var(--brand-600); }
.deal__now small { font-size: 0.9rem; }
.deal__old { color: var(--text-faint); text-decoration: line-through; font-size: 0.9rem; }
.deal__save { margin-left: auto; font-size: 0.8rem; font-weight: 700; color: var(--success); background: oklch(95% 0.04 150); padding: 0.25rem 0.55rem; border-radius: var(--radius-pill); }
.deal__progress { margin-top: 0.9rem; }
.deal__prow { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.deal__prow b { color: var(--text-strong); }
.deal__bar { height: 8px; border-radius: var(--radius-pill); background: var(--gray-200); overflow: hidden; }
.deal__barfill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); width: 0; transition: width 1s var(--ease-out-quart); }
.deal__foot { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.deal__members { display: flex; align-items: center; }
.deal__av { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; color: #fff; }
.deal__av:first-child { margin-left: 0; }
.deal__av--more { background: var(--gray-300); color: var(--text-muted); }

/* =========================================================
   STEPS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step__num { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #fff; background: linear-gradient(140deg, var(--brand-400), var(--brand-600)); margin-bottom: 1rem; box-shadow: var(--shadow-brand); }
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.92rem; }
.step__connect { display: none; }

/* =========================================================
   AI ASSISTANT PREVIEW
   ========================================================= */
.ai-preview { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.chat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.chat__avatar { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(140deg, var(--ai-400, var(--ai-500)), var(--ai-600)); display: grid; place-items: center; color: #fff; }
.chat__avatar svg { width: 20px; height: 20px; }
.chat__name { font-weight: 700; color: var(--text-strong); }
.chat__status { font-size: 0.78rem; color: var(--success); display: inline-flex; align-items: center; gap: 0.3rem; }
.chat__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.chat__body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.bubble { max-width: 86%; padding: 0.8rem 1rem; border-radius: 16px; font-size: 0.92rem; line-height: 1.5; }
.bubble--user { align-self: flex-end; background: var(--brand-500); color: #fff; border-bottom-right-radius: 5px; }
.bubble--ai { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 5px; }
.bubble--ai b { color: var(--ai-700); }
.bubble--ai .hl { color: var(--brand-600); font-weight: 700; }
.chat__pick { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0 1.2rem 1.2rem; }
.chat__pick .chip { cursor: default; }

/* =========================================================
   CATEGORIES
   ========================================================= */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 1.4rem 0.8rem;
  border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cat:hover { transform: translateY(-3px); border-color: var(--brand-300); background: var(--brand-50); }
[data-theme="dark"] .cat:hover { background: oklch(28% 0.05 45); }
.cat__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--bg-soft); }
.cat span { font-weight: 600; font-size: 0.9rem; color: var(--text); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.quote__top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.quote__av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.quote__name { font-weight: 700; color: var(--text-strong); font-size: 0.95rem; }
.quote__role { font-size: 0.8rem; color: var(--text-faint); }
.quote__save { margin-left: auto; font-weight: 800; color: var(--brand-600); font-size: 1.05rem; }
.quote p { color: var(--text-muted); font-size: 0.92rem; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; padding: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.cta-band::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: oklch(100% 0 0 / 0.12); top: -160px; right: -80px; }
.cta-band::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: oklch(100% 0 0 / 0.1); bottom: -140px; left: -60px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: oklch(100% 0 0 / 0.9); max-width: 34rem; margin: 0 auto 1.75rem; }
.cta-search { display: flex; gap: 0.6rem; max-width: 32rem; margin: 0 auto; background: #fff; padding: 0.5rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); }
.cta-search input { flex: 1; border: none; outline: none; padding: 0.6rem 1rem; font-size: 1rem; color: var(--text-strong); background: transparent; }
.cta-search input::placeholder { color: var(--text-faint); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: 3rem 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer__brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.9rem; max-width: 22rem; }
.footer__col h4 { font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer__col a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 0.3rem 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--brand-600); }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; color: var(--text-faint); font-size: 0.85rem; }

/* =========================================================
   HALL PAGE
   ========================================================= */
.page-head { padding-block: clamp(2rem, 5vw, 3rem) 1rem; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.page-head p { color: var(--text-muted); margin-top: 0.5rem; max-width: 40rem; }
.hall-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }

.ai-banner {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--ai-50), var(--surface)); border: 1px solid var(--ai-100); margin-bottom: 1.5rem;
}
[data-theme="dark"] .ai-banner { background: linear-gradient(120deg, oklch(26% 0.06 285), var(--surface)); border-color: oklch(34% 0.07 285); }
.ai-banner__ico { width: 46px; height: 46px; border-radius: 13px; background: var(--ai-500); color: #fff; display: grid; place-items: center; flex: none; }
.ai-banner__ico svg { width: 24px; height: 24px; }
.ai-banner__txt { flex: 1; }
.ai-banner__txt b { color: var(--ai-700); }
.ai-banner__txt p { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.15rem; }

.hall-toolbar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.search-box { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0.5rem 1rem; }
.search-box svg { width: 18px; height: 18px; color: var(--text-faint); flex: none; }
.search-box input { flex: 1; border: none; outline: none; background: transparent; color: var(--text-strong); font-size: 0.95rem; }
.sort-tabs { display: inline-flex; gap: 0.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0.25rem; }
.sort-tabs button { padding: 0.45rem 0.9rem; border-radius: var(--radius-pill); font-size: 0.88rem; font-weight: 600; color: var(--text-muted); transition: all 0.2s; }
.sort-tabs button.is-active { background: var(--brand-500); color: #fff; }

.cat-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 0.35rem; }
.cat-side h4 { font-size: 0.85rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; padding-left: 0.6rem; }
.cat-side a { padding: 0.6rem 0.85rem; border-radius: var(--radius-md); font-weight: 600; font-size: 0.92rem; color: var(--text-muted); transition: all 0.2s; display: flex; justify-content: space-between; }
.cat-side a:hover { background: var(--surface); color: var(--text-strong); }
.cat-side a.is-active { background: var(--brand-50); color: var(--brand-700); }
[data-theme="dark"] .cat-side a.is-active { background: oklch(28% 0.05 45); }
.cat-side a span { color: var(--text-faint); font-size: 0.8rem; }

.my-panel { margin-top: 1.5rem; padding: 1.2rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.my-panel h4 { font-size: 0.95rem; margin-bottom: 0.9rem; }
.my-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--border); }
.my-row:last-child { border-bottom: none; }
.my-row__emoji { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-100); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.my-row__t { font-size: 0.85rem; font-weight: 600; color: var(--text-strong); line-height: 1.3; }
.my-row__s { font-size: 0.78rem; color: var(--text-faint); }
.my-row__pct { margin-left: auto; font-weight: 800; color: var(--brand-600); font-size: 0.9rem; }

.load-more { text-align: center; margin-top: 2.5rem; }

/* =========================================================
   TOAST
   ========================================================= */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.toast { display: flex; align-items: center; gap: 0.6rem; background: var(--text-strong); color: var(--bg); padding: 0.8rem 1.2rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 0.92rem; animation: toastIn 0.35s var(--ease) both; }
.toast svg { width: 18px; height: 18px; color: var(--brand-400); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin-inline: auto; }
  .ai-preview { grid-template-columns: 1fr; }
  .deal-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .hall-layout { grid-template-columns: 1fr; }
  .cat-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .cat-side h4 { width: 100%; }
  .cat-side a { width: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links, .nav__actions .btn--ghost { display: none; }
  .nav__burger { display: grid; }
  .feat-grid, .steps, .quotes { grid-template-columns: 1fr; }
  .deal-grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
  .mobile-menu { display: none; }
  .mobile-menu.is-open { display: block; }
}
.mobile-menu { border-top: 1px solid var(--border); background: var(--surface); padding: 0.75rem 1rem 1rem; }
.mobile-menu a { display: block; padding: 0.7rem 0.5rem; font-weight: 600; color: var(--text-muted); border-radius: var(--radius-md); }
.mobile-menu a:hover { background: var(--bg-soft); color: var(--brand-700); }

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