/* ═══════════════════════════════════════════════
   NextStar — styles.css
   Kinso-inspired layout · Stage/spotlight brand
═══════════════════════════════════════════════ */

:root {
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg:          #f0ece5;
  --surface:     #e4ddd4;
  --surface2:    #d8d0c6;
  --border:      rgba(46,44,42,0.11);
  --text:        #1a1a1a;
  --muted:       #7a7570;
  --button:      #FE8C00;
  --teal:        #4a9e80;
  --amber:       #c8821a;
  --accent:      #e8a87c;
  --card-bg:     #ffffff;
  --card-shadow: 0 8px 48px rgba(26,26,26,0.10);
  --mesh-a:      rgba(254,140,0,0.14);
  --mesh-b:      rgba(74,158,128,0.10);
  --mesh-c:      rgba(200,130,26,0.08);
  --star-op:     0.4;
}

[data-theme="dark"] {
  --bg:          #0d0f14;
  --surface:     #141720;
  --surface2:    #1c2030;
  --border:      #252a3a;
  --text:        #eef0f6;
  --muted:       #5a6180;
  --button:      #f5a623;
  --teal:        #3ee8b5;
  --amber:       #f5a623;
  --accent:      #3ee8b5;
  --card-bg:     #1c2030;
  --card-shadow: 0 8px 48px rgba(0,0,0,0.55);
  --mesh-a:      rgba(245,166,35,0.10);
  --mesh-b:      rgba(62,232,181,0.08);
  --mesh-c:      rgba(91,141,238,0.06);
  --star-op:     0.9;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out);
  overflow-x: hidden;
}

/* ════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════ */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 28px rgba(0,0,0,0.07); }
[data-theme="dark"] nav.scrolled { box-shadow: 0 2px 28px rgba(0,0,0,0.35); }

.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-logo-icon {
  width: 34px; height: 34px;
  background: var(--button);
  border-radius: 9px;
  display: grid; place-items: center;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--button) 40%, transparent);
  transition: transform 0.2s var(--ease-spring);
}
.nav-logo-icon:hover { transform: scale(1.1); }
.nav-logo-name {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.4s;
}

.nav-center { display: flex; gap: 1.75rem; list-style: none; }
.nav-center a { font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.18s; }
.nav-center a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 0.875rem; }

.theme-pill {
  width: 50px; height: 27px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: background 0.4s;
  flex-shrink: 0;
}
.theme-pill::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--button);
  transition: transform 0.32s var(--ease-spring);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
[data-theme="dark"] .theme-pill::after { transform: translateX(23px); }

.theme-icon { position: absolute; top: 50%; transform: translateY(-50%); font-size: 0.58rem; pointer-events: none; transition: opacity 0.3s; }
.theme-icon.sun { right: 6px; opacity: 1; }
.theme-icon.moon { left: 5px; opacity: 0; }
[data-theme="dark"] .theme-icon.sun { opacity: 0; }
[data-theme="dark"] .theme-icon.moon { opacity: 1; }

.btn-join {
  padding: 0.5rem 1.2rem;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.2s var(--ease-spring);
}
.btn-join:hover { opacity: 0.82; transform: translateY(-1px); }

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

/* ════════════════════════════════════════════════
   HERO — two-column Kinso layout
════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding-top: 64px;
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: center;
  padding-left: clamp(1.5rem, 6vw, 6rem);
  padding-right: clamp(1rem, 3vw, 3rem);
  position: relative;
  overflow: hidden;
  gap: 0;
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding: 100px 1.5rem 4rem; }
}

#heroCanvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-mesh {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
}
.hero-mesh::before {
  content: '';
  position: absolute;
  width: 55%; height: 80%;
  top: 5%; left: -10%;
  background: radial-gradient(ellipse, var(--mesh-a), transparent 65%);
  filter: blur(50px);
  animation: blobDrift 11s ease-in-out infinite;
}
.hero-mesh::after {
  content: '';
  position: absolute;
  width: 45%; height: 70%;
  bottom: 0; right: 5%;
  background: radial-gradient(ellipse, var(--mesh-b), transparent 65%);
  filter: blur(60px);
  animation: blobDrift 14s ease-in-out infinite reverse;
}
@keyframes blobDrift { 0%,100%{transform:translate(0,0);} 50%{transform:translate(18px,-14px);} }

/* Left: text */
.hero-text {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.875rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.7s var(--ease-out) 0.1s both;
}
.badge-star { color: var(--button); display: inline-block; animation: rotateStar 5s linear infinite; }
@keyframes rotateStar { to { transform: rotate(360deg); } }

.hero-headline {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: clamp(2.75rem, 4.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s var(--ease-out) 0.2s both;
}
.hero-headline em {
  font-style: italic;
  background: linear-gradient(120deg, var(--button), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.25rem;
  animation: fadeUp 0.7s var(--ease-out) 0.3s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s var(--ease-out) 0.42s both;
}

.btn-primary {
  padding: 0.85rem 1.875rem;
  background: var(--button);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.2s;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--button) 38%, transparent);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--button) 50%, transparent);
}

.btn-ghost {
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}
.btn-ghost:hover { background: var(--surface); transform: translateY(-1px); }

.hero-waitlist {
  margin-top: 1.5rem;
  font-size: 0.87rem;
  color: var(--muted);
  animation: fadeUp 0.7s var(--ease-out) 0.55s both;
}
.hero-waitlist strong { color: var(--button); font-weight: 700; }

/* Right: floating mock cards */
.hero-visual {
  position: relative;
  z-index: 2;
  height: 580px;
  animation: fadeUp 0.9s var(--ease-out) 0.35s both;
}
@media (max-width: 880px) { .hero-visual { height: 420px; } }

/* ── Mock card base ─────────────────────────── */
.mock-card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  transition: background 0.4s, border-color 0.4s;
  overflow: hidden;
}

/* Main room card — center */
.mock-main {
  width: 320px;
  padding: 1.25rem;
  top: 50%; left: 50%;
  transform: translate(-46%, -50%);
  z-index: 3;
}

.mock-room-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.mock-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: livePulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse { 0%,100%{opacity:1;} 50%{opacity:0.2;} }
.mock-live-txt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
}
.mock-topic-chip {
  margin-left: auto;
  padding: 0.18rem 0.6rem;
  background: var(--surface);
  border-radius: 10px;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  transition: background 0.4s;
}

.mock-participants { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.875rem; }

.mock-p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: var(--surface);
  transition: background 0.4s;
}
.mock-p.speaking { background: color-mix(in srgb, var(--teal) 10%, var(--surface)); }

.mock-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.mock-p-name { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.mock-p-flag { font-size: 0.65rem; color: var(--muted); margin-left: 0.25rem; }

.mock-p-wave {
  display: flex; align-items: center; gap: 2px; height: 16px; margin-left: auto;
}
.mock-pw-bar {
  width: 2px; border-radius: 2px; background: var(--teal);
  animation: miniWave 1.1s ease-in-out infinite;
}
@keyframes miniWave { 0%,100%{height:2px;} 50%{height:var(--mh);} }

.mock-full-wave {
  display: flex; align-items: center; gap: 2.5px; height: 36px;
  border-top: 1px solid var(--border); padding-top: 0.5rem;
}
.mock-fw-bar {
  width: 3px; border-radius: 2px;
  background: linear-gradient(to top, var(--button), var(--amber));
  animation: fullWave 1.4s ease-in-out infinite;
}
@keyframes fullWave { 0%,100%{height:3px;opacity:0.4;} 50%{height:var(--wh);opacity:1;} }

/* Sora coaching card — top right */
.mock-notif {
  width: 220px;
  padding: 0.875rem;
  top: 5%; right: 0%;
  z-index: 4;
  display: flex; gap: 0.6rem; align-items: flex-start;
  animation: floatY 5s ease-in-out infinite;
}
.mock-notif-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: color-mix(in srgb, var(--button) 15%, transparent);
  display: grid; place-items: center;
  font-size: 0.85rem; color: var(--button); flex-shrink: 0;
}
.mock-notif-from {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 700; color: var(--button);
  text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.2rem;
}
.mock-notif-text { font-size: 0.76rem; color: var(--text); line-height: 1.45; }

/* Transcript badge — bottom left */
.mock-badge {
  width: 205px;
  padding: 0.75rem 1rem;
  bottom: 10%; left: -2%;
  z-index: 4;
  display: flex; align-items: center; gap: 0.55rem;
  animation: floatY 6.5s ease-in-out infinite reverse;
}
.mock-badge-text { font-size: 0.76rem; font-weight: 500; color: var(--text); flex: 1; }
.mock-new {
  padding: 0.15rem 0.45rem;
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  color: var(--teal);
  border-radius: 4px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
}

/* Topic starter card — top left */
.mock-topic-card {
  width: 180px;
  padding: 0.875rem;
  top: 15%; left: -2%;
  z-index: 4;
  animation: floatY 7s ease-in-out infinite;
  animation-delay: -3s;
}
.mock-tc-label { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.35rem; }
.mock-tc-text { font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.3; font-family: 'Lora', serif; font-style: italic; }

@keyframes floatY { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

/* ════════════════════════════════════════════════
   FEATURE SECTIONS (Kinso alternating)
════════════════════════════════════════════════ */
.feature-section {
  padding: clamp(5rem, 10vw, 7rem) clamp(1.5rem, 6vw, 6rem);
  background: var(--bg);
  transition: background 0.4s;
  overflow: hidden;
}
.feature-section.alt { background: var(--surface); }
[data-theme="dark"] .feature-section.alt { background: color-mix(in srgb, var(--surface2) 60%, var(--surface)); }

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}
.feature-inner.flip { direction: rtl; }
.feature-inner.flip > * { direction: ltr; }
@media (max-width: 820px) { .feature-inner, .feature-inner.flip { grid-template-columns: 1fr; direction: ltr; } }

.feature-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.875rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.feature-eyebrow::before { content:''; width:18px; height:1.5px; background:var(--teal); display:block; }

.feature-title {
  font-family: 'Lora', serif; font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.12; letter-spacing: -0.025em;
  color: var(--text); margin-bottom: 1rem;
}
.feature-title em { font-style: italic; color: var(--button); }

.feature-desc { font-size: 0.98rem; color: var(--muted); line-height: 1.75; margin-bottom: 0.875rem; }

/* Gradient bg blob behind the visual */
.feature-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
}
.feature-visual::before {
  content: '';
  position: absolute;
  inset: -1.5rem;
  border-radius: 28px;
  z-index: 0;
}
.blob-amber::before {
  background: radial-gradient(ellipse at 30% 30%, var(--mesh-a), transparent 60%),
              radial-gradient(ellipse at 75% 75%, var(--mesh-c), transparent 60%);
}
.blob-teal::before {
  background: radial-gradient(ellipse at 70% 25%, var(--mesh-b), transparent 60%),
              radial-gradient(ellipse at 25% 75%, var(--mesh-a), transparent 60%);
}

/* ─── Chat mockup ─────────────────────────────── */
.mock-chat-wrap {
  position: relative; z-index: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  width: 100%; max-width: 400px;
  transition: background 0.4s, border-color 0.4s;
}
.mock-chat-header {
  display: flex; align-items: center; gap: 0.6rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem;
}
.mock-chat-av {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--button); display: grid; place-items: center;
  font-size: 0.9rem; color: #fff; flex-shrink: 0;
}
.mock-chat-name { font-weight: 600; font-size: 0.88rem; color: var(--text); display: block; }
.mock-chat-status { font-size: 0.7rem; color: var(--teal); display: flex; align-items: center; gap: 0.3rem; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

.chat-bubbles { display: flex; flex-direction: column; gap: 0.7rem; }
.bubble {
  max-width: 88%;
  padding: 0.65rem 0.875rem;
  border-radius: 14px;
  font-size: 0.83rem; line-height: 1.55;
}
.bubble.sora {
  background: var(--surface); color: var(--text);
  border-radius: 4px 14px 14px 14px;
  align-self: flex-start;
  transition: background 0.4s;
}
.bubble.user {
  background: var(--button); color: #fff;
  border-radius: 14px 14px 4px 14px;
  align-self: flex-end;
}
.bubble-from {
  font-size: 0.65rem; font-weight: 700; color: var(--button);
  display: block; margin-bottom: 0.2rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.typing-wrap { display: flex; gap: 3px; padding: 4px 0; align-self: flex-start; }
.t-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: tdBounce 1.2s ease-in-out infinite;
}
.t-dot:nth-child(2){animation-delay:0.18s;} .t-dot:nth-child(3){animation-delay:0.36s;}
@keyframes tdBounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-5px);} }

/* ─── Transcript mockup ──────────────────────── */
.mock-transcript-wrap {
  position: relative; z-index: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  width: 100%; max-width: 420px;
  transition: background 0.4s, border-color 0.4s;
}
.tr-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.4s;
}
.tr-title { font-weight: 600; font-size: 0.85rem; color: var(--text); }
.tr-meta { font-size: 0.7rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.tr-row {
  display: grid; grid-template-columns: 52px 1fr auto;
  align-items: start; gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.tr-row:last-child { border-bottom: none; }
.tr-row:hover { background: var(--surface); }
.tr-who { font-size: 0.7rem; font-weight: 700; color: var(--button); font-family: 'JetBrains Mono', monospace; padding-top: 0.1rem; }
.tr-text { font-size: 0.79rem; color: var(--text); line-height: 1.45; }
.tr-time { font-size: 0.65rem; color: var(--muted); white-space: nowrap; font-family: 'JetBrains Mono', monospace; padding-top: 0.1rem; }
.tr-note {
  grid-column: 2 / -1;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.6rem; margin-top: 0.25rem;
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  border-radius: 6px;
  font-size: 0.7rem; color: var(--teal);
}

/* ─── Rooms list mockup ──────────────────────── */
.mock-rooms-wrap {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 0.625rem;
  width: 100%; max-width: 390px;
}
.room-row {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem 1.125rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: background 0.4s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
[data-theme="dark"] .room-row { box-shadow: 0 2px 16px rgba(0,0,0,0.3); }
.room-row:hover { transform: translateX(5px); box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
[data-theme="dark"] .room-row:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.45); }
.room-row.active { border-color: var(--teal); }
.room-row-emoji { font-size: 1.3rem; flex-shrink: 0; }
.room-row-info { flex: 1; }
.room-row-topic { font-weight: 600; font-size: 0.85rem; color: var(--text); display: block; }
.room-row-sub { font-size: 0.72rem; color: var(--muted); display: block; margin-top: 0.1rem; }
.room-row-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.badge-live { color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); }
.badge-open { color: var(--muted); background: var(--surface); }

/* ════════════════════════════════════════════════
   LANGUAGE TICKER
════════════════════════════════════════════════ */
.langs-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--surface);
  overflow: hidden;
  transition: background 0.4s;
}
.langs-header { text-align: center; padding: 0 1.5rem; margin-bottom: 2.75rem; }

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.875rem;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.section-eyebrow::before, .section-eyebrow::after { content:''; width:18px; height:1.5px; background:var(--teal); display:block; }
.section-title {
  font-family: 'Lora', serif; font-weight: 500;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  line-height: 1.12; letter-spacing: -0.025em; color: var(--text);
}

.ticker-outer { overflow: hidden; position: relative; }
.ticker-outer::before, .ticker-outer::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.ticker-outer::before { left: 0; background: linear-gradient(to right, var(--surface), transparent); }
.ticker-outer::after  { right: 0; background: linear-gradient(to left, var(--surface), transparent); }

.ticker-track {
  display: flex; gap: 0.75rem; width: max-content;
  animation: tickerMove 28s linear infinite;
}
@keyframes tickerMove { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

.lang-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; font-size: 0.82rem; font-weight: 500;
  color: var(--text); white-space: nowrap;
  transition: background 0.4s;
}

/* ════════════════════════════════════════════════
   STATS
════════════════════════════════════════════════ */
.stats-section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 6vw, 6rem);
  background: var(--bg); transition: background 0.4s;
}
.stats-header { text-align: center; margin-bottom: 3.5rem; }
.stats-desc { font-size: 1rem; color: var(--muted); margin-top: 0.5rem; }

.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  max-width: 860px; margin: 0 auto;
}
@media (max-width: 580px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  text-align: center; padding: 2.25rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px;
  transition: background 0.4s, transform 0.28s var(--ease-spring);
}
.stat-card:hover { transform: translateY(-5px); }
.stat-num {
  font-family: 'Lora', serif; font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500; color: var(--text);
  letter-spacing: -0.03em; line-height: 1;
}
.stat-acc { color: var(--button); }
.stat-lbl { font-size: 0.84rem; color: var(--muted); margin-top: 0.5rem; font-weight: 500; }

/* ════════════════════════════════════════════════
   SECURITY
════════════════════════════════════════════════ */
.security-section {
  padding: clamp(5rem, 10vw, 7rem) clamp(1.5rem, 6vw, 6rem);
  background: var(--surface); transition: background 0.4s;
}
[data-theme="dark"] .security-section { background: var(--surface2); }

.security-inner { max-width: 1160px; margin: 0 auto; }
.security-header { max-width: 520px; margin-bottom: 3.5rem; }

.security-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem;
}
@media (max-width: 620px) { .security-grid { grid-template-columns: 1fr; } }

.sec-card {
  display: flex; gap: 1rem; padding: 1.625rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: background 0.4s, transform 0.25s var(--ease-spring);
}
[data-theme="dark"] .sec-card { box-shadow: 0 2px 16px rgba(0,0,0,0.3); }
.sec-card:hover { transform: translateY(-3px); }
.sec-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.sec-card h3 { font-weight: 600; font-size: 0.93rem; color: var(--text); margin-bottom: 0.35rem; }
.sec-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.trust-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 500; color: var(--muted); }

/* ════════════════════════════════════════════════
   CTA
════════════════════════════════════════════════ */
.cta-section {
  padding: clamp(6rem, 12vw, 9rem) clamp(1.5rem, 6vw, 6rem);
  text-align: center; position: relative; overflow: hidden;
}
[data-theme="light"] .cta-section { background: #1a1a1a; }
[data-theme="dark"]  .cta-section { background: var(--surface2); }

.cta-glow {
  position: absolute; width: 600px; height: 400px; border-radius: 50%;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, color-mix(in srgb, var(--button) 18%, transparent), transparent 70%);
  pointer-events: none; animation: ctaGlow 7s ease-in-out infinite;
}
@keyframes ctaGlow { 0%,100%{opacity:0.6;} 50%{opacity:1;} }
.cta-inner { position: relative; z-index: 2; }

.cta-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--button);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.cta-eyebrow::before, .cta-eyebrow::after { content:''; width:20px; height:1.5px; background:var(--button); display:block; }

.cta-title {
  font-family: 'Lora', serif; font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500; line-height: 1.1; letter-spacing: -0.025em;
  color: #fff; margin-bottom: 1rem;
}
[data-theme="dark"] .cta-title { color: var(--text); }
.cta-sub { font-size: 1.05rem; color: rgba(255,255,255,0.5); line-height: 1.65; max-width: 420px; margin: 0 auto 2.75rem; }
[data-theme="dark"] .cta-sub { color: var(--muted); }

.dl-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.dl-btn {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem 1.625rem;
  border: 1.5px solid rgba(255,255,255,0.15); border-radius: 12px;
  color: #fff; background: rgba(255,255,255,0.07);
  cursor: pointer; text-decoration: none; backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.22s var(--ease-spring), border-color 0.2s;
}
[data-theme="dark"] .dl-btn { border-color: var(--border); color: var(--text); background: var(--surface); }
.dl-btn:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); border-color: rgba(255,255,255,0.35); }
[data-theme="dark"] .dl-btn:hover { background: var(--surface2); }
.dl-small { font-size: 0.67rem; opacity: 0.6; display: block; }
.dl-big { font-size: 0.98rem; font-weight: 600; display: block; line-height: 1.4; }

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 2rem clamp(1.5rem, 6vw, 6rem);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  transition: background 0.4s, border-color 0.4s;
}
.footer-brand { font-family: 'Lora', serif; font-weight: 500; font-size: 1.05rem; color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.18s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.8rem; color: var(--muted); }

/* ════════════════════════════════════════════════
   ANIMATION UTILITIES
════════════════════════════════════════════════ */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }

.reveal       { opacity:0; transform:translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-left  { opacity:0; transform:translateX(-32px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-right { opacity:0; transform:translateX(32px);  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity:1; transform:none; }

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

.stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-card:nth-child(3) { transition-delay: 0.2s; }
.sec-card:nth-child(2)  { transition-delay: 0.08s; }
.sec-card:nth-child(3)  { transition-delay: 0.16s; }

/* ════════════════════════════════════════════════
   CHAT BUBBLE & WINDOW
════════════════════════════════════════════════ */
#chatBubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--button);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(254,140,0,0.42), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out);
  user-select: none;
}
#chatBubble:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(254,140,0,0.55), 0 3px 10px rgba(0,0,0,0.15);
}
#chatBubble:active { transform: scale(0.96); }

.chat-icon-open  { display: block; transition: opacity 0.2s, transform 0.2s; }
.chat-icon-close { display: none;  transition: opacity 0.2s, transform 0.2s; }
#chatBubble.open .chat-icon-open  { display: none; }
#chatBubble.open .chat-icon-close { display: block; }

/* Ripple pulse when closed */
#chatBubble:not(.open)::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--button);
  opacity: 0;
  animation: chatPulse 2.6s ease-out infinite;
}
@keyframes chatPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.55); }
}

/* ── Chat window ─────────────────────────────── */
#chatWindow {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 8999;
  width: 360px;
  max-height: 560px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 64px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-spring);
}
#chatWindow.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.chat-win-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem 0.875rem 1.125rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--button) 6%, var(--card-bg));
  flex-shrink: 0;
}
.chat-win-identity { display: flex; align-items: center; gap: 0.7rem; }
.chat-win-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--button), var(--amber));
  display: grid; place-items: center;
  font-size: 1rem; color: #fff; font-weight: 700;
  flex-shrink: 0;
}
.chat-win-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.chat-win-status {
  font-size: 0.7rem; color: var(--teal);
  display: flex; align-items: center; gap: 0.3rem;
  margin-top: 1px;
}
.chat-win-close {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 5px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  display: flex;
}
.chat-win-close:hover { color: var(--text); background: var(--surface); }

/* Messages area */
.chat-win-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-behavior: smooth;
}
.chat-win-messages::-webkit-scrollbar { width: 4px; }
.chat-win-messages::-webkit-scrollbar-track { background: transparent; }
.chat-win-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Message rows */
.chat-msg { display: flex; align-items: flex-end; gap: 0.5rem; animation: chatMsgIn 0.22s var(--ease-out); }
.chat-msg.user { flex-direction: row-reverse; }
@keyframes chatMsgIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: none; } }

.chat-msg-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--button), var(--amber));
  display: grid; place-items: center;
  font-size: 0.7rem; color: #fff; font-weight: 700;
  flex-shrink: 0;
}
.chat-msg-bubble {
  max-width: 78%;
  padding: 0.6rem 0.875rem;
  border-radius: 16px;
  font-size: 0.845rem;
  line-height: 1.55;
  color: var(--text);
  word-break: break-word;
}
.chat-msg.sora .chat-msg-bubble {
  background: var(--surface);
  border-radius: 4px 16px 16px 16px;
}
.chat-msg.user .chat-msg-bubble {
  background: var(--button);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}

/* Typing indicator */
.chat-typing {
  display: flex; align-items: center; gap: 0.5rem;
  animation: chatMsgIn 0.22s var(--ease-out);
}
.chat-typing-dots {
  display: flex; gap: 3px;
  background: var(--surface);
  padding: 0.55rem 0.75rem;
  border-radius: 4px 14px 14px 14px;
}
.chat-typing-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: tdBounce 1.2s ease-in-out infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.36s; }

/* Input row */
.chat-win-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
  flex-shrink: 0;
}
.chat-win-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.575rem 0.875rem;
  font-family: inherit;
  font-size: 0.855rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-win-input::placeholder { color: var(--muted); }
.chat-win-input:focus {
  border-color: var(--button);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--button) 14%, transparent);
}
.chat-win-send {
  width: 38px; height: 38px;
  border: none;
  border-radius: 11px;
  background: var(--button);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.chat-win-send:hover { background: var(--amber); transform: scale(1.06); }
.chat-win-send:active { transform: scale(0.94); }
.chat-win-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Mobile adjustments */
@media (max-width: 480px) {
  #chatWindow { width: calc(100vw - 24px); right: 12px; bottom: 88px; }
  #chatBubble { right: 16px; bottom: 20px; }
}
.sec-card:nth-child(4)  { transition-delay: 0.24s; }