/* ============================================
   ORIGIXAI — style.css
   Gray Palette Design System
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Dark theme (default) */
  --bg:             #000000;
  --bg-surface:     #1e1e1c;
  --bg-card:        #111111;
  --bg-elevated:    #1a1a1a;
  --border:         #2C2C2A;
  --border-soft:    rgba(255,255,255,0.06);
  --border-med:     #444441;

  --text-primary:   #ffffff;
  --text-secondary: #888780;
  --text-muted:     #5F5E5A;
  --text-faint:     #444441;

  --accent:         #5F5E5A;
  --accent-hover:   #888780;

  --nav-bg:         rgba(0, 0, 0, 0.75);
  --divider:        linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);

  --btn-primary-bg: #ffffff;
  --btn-primary-text: #141413;
  --btn-outline-bg: #1e1e1c;
  --btn-outline-border: rgba(255,255,255,0.15);
  --btn-outline-text: #D3D1C7;

  --preview-bg:     #111111;
  --preview-bar-bg: #0d0d0d;
  --preview-input-bg: #1a1a1a;
  --preview-dot:    #2a2a2a;

  --card-bg:        #111111;
  --bubble-ai-bg:   #1e1e1e;
  --bubble-ai-text: #B4B2A9;
  --bubble-user-bg: #2C2C2A;
  --bubble-user-text:#D3D1C7;

  --stat-border:    rgba(255,255,255,0.06);
  --cta-bg:         #111111;
  --cta-border:     rgba(255, 255, 255, 0.5);
  --cta-shadow:     0 0 40px rgba(183, 179, 179, 0.299);

  --toggle-track:   #2C2C2A;
  --toggle-thumb:   #888780;
  --toggle-border:  #444441;
}

[data-theme="light"] {
  --bg:             #ffffff;
  --bg-surface:     #F9F9F9;
  --bg-card:        #F9F9F9;
  --bg-elevated:    #F1EFE8;
  --border:         #E8E8E8;
  --border-soft:    rgba(0,0,0,0.06);
  --border-med:     #D3D1C7;

  --text-primary:   #2C2C2A;
  --text-secondary: #888780;
  --text-muted:     #B4B2A9;
  --text-faint:     #D3D1C7;

  --accent:         #444441;
  --accent-hover:   #2C2C2A;

  --nav-bg:         rgba(255,255,255,0.90);
  --divider:        linear-gradient(to right, transparent, rgba(0,0,0,0.10), transparent);

  --btn-primary-bg: #2C2C2A;
  --btn-primary-text: #F1EFE8;
  --btn-outline-bg: #F1EFE8;
  --btn-outline-border: #D3D1C7;
  --btn-outline-text: #2C2C2A;

  --preview-bg:     #F9F9F9;
  --preview-bar-bg: #F1EFE8;
  --preview-input-bg: #ffffff;
  --preview-dot:    #D3D1C7;

  --card-bg:        #F9F9F9;
  --bubble-ai-bg:   #F1EFE8;
  --bubble-ai-text: #5F5E5A;
  --bubble-user-bg: #E8E8E8;
  --bubble-user-text:#2C2C2A;

  --stat-border:    rgba(0,0,0,0.06);
  --cta-bg:         linear-gradient(145deg, #F1EFE8, #ffffff);
  --cta-border:     #D3D1C7;
  --cta-shadow:     0 0 40px rgba(0,0,0,0.06);

  --toggle-track:   #E8E8E8;
  --toggle-thumb:   #2C2C2A;
  --toggle-border:  #D3D1C7;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; scroll-behavior: smooth; }
html { background: #141413; }
html[data-theme="light"] { background: #ffffff; }
body {
  background: var(--bg) !important;
  color: var(--text-primary);
  font-family: 'Sora', sans-serif;
  padding-top: 80px;
  min-height: 100vh;
  transition: background 0.35s ease, color 0.35s ease;
}

/* ---------- DIVIDERS ---------- */
.section-divider,
.hero::after,
.about-section::after,
.features-section::after,
.credits-section::after {
  content: "";
  display: block;
  width: 60%;
  height: 1px;
  margin: 80px auto 0;
  background: var(--divider);
}
.hero::after,
.about-section::after,
.features-section::after,
.credits-section::after { content: ""; }

/* ---------- NAVBAR ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 60px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.35s ease, border-color 0.35s ease;
  will-change: transform;
  transform: translateZ(0); /* promote to own GPU layer — eliminates scroll repaint */
  -webkit-transform: translateZ(0);
}
.logo {
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
}
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-img { width: 100%; height: 100%; object-fit: contain; }

/* Show/hide logo variants per theme */
[data-theme="dark"]  .logo-img--dark  { display: none; }
[data-theme="dark"]  .logo-img--white { display: block; }
[data-theme="light"] .logo-img--white { display: none; }
[data-theme="light"] .logo-img--dark  { display: block; }

.logo-text { color: var(--text-secondary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.btn-nav {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }

/* ---------- THEME TOGGLE ---------- */
.theme-toggle { cursor: pointer; display: flex; align-items: center; }
.toggle-track {
  width: 52px;
  height: 28px;
  background: var(--toggle-track);
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  padding: 0 4px;
  justify-content: space-between;
}
.toggle-icon {
  font-size: 12px;
  z-index: 1;
  line-height: 1;
  transition: opacity 0.3s;
}
.toggle-icon--moon { color: #888780; }
.toggle-icon--sun  { color: #B4B2A9; }
.toggle-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--toggle-thumb);
  border-radius: 50%;
  top: 3px;
  left: 4px;
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1), background 0.3s;
}
[data-theme="light"] .toggle-thumb { left: 28px; }

/* ---------- HAMBURGER (mobile) ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: background 0.2s;
}

/* ---------- MOBILE NAV ---------- */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: 80px; left: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-link {
  padding: 14px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.mobile-link:hover { background: var(--bg-surface); color: var(--text-primary); }
.mobile-cta {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text) !important;
  font-weight: 600;
  text-align: center;
}

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: 80px 20px 120px;
  position: relative;
  overflow: hidden;
}
.hero::after { margin-top: 80px; }
.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  color: #22c55e;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
}
.badge-ai .dot { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; }
.hero h1 {
  font-size: clamp(32px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.hero p {
  font-size: 17px;
  max-width: 620px;
  margin: 16px auto 36px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 13px 30px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s, box-shadow 0.25s;
  font-family: 'Sora', sans-serif;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.btn-outline {
  background: var(--btn-outline-bg);
  border: 1px solid var(--btn-outline-border);
  color: var(--btn-outline-text);
  padding: 13px 28px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s;
  font-family: 'Sora', sans-serif;
}
.btn-outline:hover { transform: translateY(-2px); }
.hero-note { font-size: 12px; color: var(--text-faint); margin-top: 16px; }

/* ---------- CHAT PREVIEW ---------- */
.preview-wrap { max-width: 640px; margin: 52px auto 0; }
.preview-frame {
  background: var(--preview-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
  transition: background 0.35s, border-color 0.35s;
  border: 1px solid var(--cta-border);
  box-shadow: var(--cta-shadow);
}
.preview-bar {
  background: var(--preview-bar-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preview-dots { display: flex; gap: 5px; }
.preview-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--preview-dot); }
.preview-url { font-size: 11px; color: var(--text-faint); background: var(--bg-elevated); padding: 3px 12px; border-radius: 20px; }
.preview-body { padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px;

}
.preview-heading { font-size: 20px; font-weight: 600; color: var(--text-secondary); text-align: center; }
.preview-sub { font-size: 12px; color: var(--text-muted); text-align: center; }
.preview-input {
  background: var(--preview-input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}
.preview-input i { color: var(--text-faint); }
.preview-ph { flex: 1; font-size: 12px; color: var(--text-faint); }
.preview-voice {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--border);
  border: 1px solid var(--border-med);
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.preview-send {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg);
  font-size: 13px;
}
.preview-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.preview-chip {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
  background: transparent;
}

/* ---------- STATS BAR ---------- */
.stats-bar {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
  max-width: 220px;
  min-width: 100px;
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 26px; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---------- ABOUT ---------- */
.about-section { padding: 110px 20px; position: relative; }
.about-container { max-width: 1100px; margin: auto; text-align: center; }
.section-title { font-size: clamp(26px, 4vw, 36px); font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.section-subtitle { color: var(--text-secondary); max-width: 700px; margin: 16px auto 30px; font-size: 15px; line-height: 1.6; }
.about-highlight { font-size: 13px; color: #10be78; margin: 20px 0 36px; opacity: 0.85; }
.about-stats { display: flex; justify-content: center; gap: 60px; margin: 36px 0 52px; flex-wrap: wrap; }
.about-stats h3 { font-size: 26px; font-weight: 600; color: var(--text-primary); }
.about-stats p { font-size: 13px; color: var(--text-secondary); margin-top: 5px; }
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; margin-top: 52px; }
.about-card { padding: 20px; text-align: center; cursor: pointer; transition: transform 0.3s ease; }
.about-card:hover { transform: translateY(-10px) scale(1.03); }
.about-icon { font-size: 24px; margin-bottom: 12px; color: var(--text-muted); transition: 0.3s; }
.about-card:hover .about-icon { color: var(--text-secondary); transform: translateY(-3px); }
.about-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.about-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; max-width: 260px; margin: auto; }

/* ---------- FEATURES ---------- */
.features-section { padding: 100px 20px; }
.features-container { max-width: 1100px; margin: auto; text-align: center; }
.feature-row { display: flex; align-items: center; justify-content: space-between; gap: 60px; margin: 80px 0; text-align: left; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.feature-icon-box {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; font-size: 20px; color: white;
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.3s;
}
.feature-icon-box:hover { transform: scale(1.1); filter: brightness(1.2); }
.icon-purple { background: linear-gradient(135deg,#4f46e5,#3b82f6); }
.icon-green  { background: linear-gradient(135deg,#059669,#14b8a6); }
.icon-orange { background: linear-gradient(135deg,#f97316,#ef4444); }
.feature-badge {
  margin-top: 5px;
  font-size: 12px;
  background: var(--bg-elevated);
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.status-dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; }
.feature-text h3 { font-size: 26px; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.feature-text p { color: var(--text-secondary); line-height: 1.7; font-size: 15px; margin-bottom: 16px; }
.feature-list { display: flex; gap: 36px; margin-bottom: 18px; }
.feature-list ul { list-style: none; }
.feature-list li { position: relative; padding-left: 20px; margin-bottom: 10px; color: var(--text-secondary); font-size: 14px; }
.feature-list li::before { content: "✔"; position: absolute; left: 0; color: #22c55e; font-size: 11px; }
.feature-link { color: #3b82f6; text-decoration: none; font-weight: 500; font-size: 14px; }
.feature-visual { flex: 1; display: flex; justify-content: center; }

/* ---------- VERONICA CARD ---------- */
.v-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  max-width: 420px; width: 100%;
  border: 1px solid var(--cta-border);
  box-shadow: var(--cta-shadow);
}
.v-header { display: flex; align-items: center; gap: 12px; }
.v-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 18px;
}
.v-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.v-status { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.v-status span { width: 5px; height: 5px; border-radius: 50%; background: #22c55e; display: inline-block; }
.bubble-ai {
  background: var(--bubble-ai-bg);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 14px;
  font-size: 12px; color: var(--bubble-ai-text);
  max-width: 88%; line-height: 1.6;
}
.bubble-user {
  background: var(--bubble-user-bg);
  border-radius: 12px 12px 4px 12px;
  padding: 10px 14px;
  font-size: 12px; color: var(--bubble-user-text);
  max-width: 78%; align-self: flex-end; line-height: 1.6;
}
.v-input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 12px;
  display: flex; align-items: center; gap: 8px;
}
.v-ph { flex: 1; font-size: 11px; color: var(--text-faint); }
.v-mic {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 13px;
}
.vibe-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.vibe-pill {
  font-size: 11px; color: var(--text-secondary);
  padding: 5px 12px; border: 1px solid var(--border);
  border-radius: 20px; cursor: pointer;
  transition: 0.2s;
}
.vibe-pill.active { color: var(--text-primary); border-color: var(--accent); background: var(--border); }

/* ---------- AI PERSONA CARD ---------- */
.persona-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 24px;
  max-width: 420px; width: 100%;
  display: flex; flex-direction: column; gap: 16px;
}
.persona-header { display: flex; align-items: center; gap: 12px; }
.persona-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 18px;
}
.persona-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.persona-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.persona-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ptag {
  font-size: 11px; color: var(--text-secondary);
  padding: 4px 10px; border: 1px solid var(--border);
  border-radius: 20px; background: transparent;
}
.ptag.active { color: var(--text-primary); background: var(--border); border-color: var(--border-med); }
.persona-bar-section { display: flex; flex-direction: column; gap: 8px; }
.pbar-row { display: flex; align-items: center; gap: 10px; }
.pbar-label { font-size: 11px; color: var(--text-muted); width: 80px; flex-shrink: 0; }
.pbar-wrap { flex: 1; background: var(--bg-elevated); border-radius: 4px; height: 4px; overflow: hidden; }
.pbar { height: 100%; border-radius: 4px; background: var(--accent); }
.persona-insight {
  background: var(--bg-elevated); border-radius: 10px;
  padding: 12px 14px; font-size: 12px; color: var(--text-secondary);
  line-height: 1.6; border-left: 2px solid var(--border-med);
}

/* ---------- WAKEWORD CARD ---------- */
.wakeword-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 24px;
  max-width: 420px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  border: 1px solid var(--cta-border);
  box-shadow: var(--cta-shadow);
}
.ww-orb {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--text-secondary); position: relative;
}
.ww-orb::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--border); }
.ww-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.ww-sub { font-size: 12px; color: var(--text-muted); line-height: 1.6; max-width: 300px; }
.ww-cmd {
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  background: var(--bg-elevated); border: 1px solid var(--border);
  padding: 10px 24px; border-radius: 20px; letter-spacing: 0.02em;
}
.ww-features { display: flex; flex-direction: column; gap: 7px; width: 100%; text-align: left; }
.ww-feat { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-secondary); }
.ww-feat i { color: var(--text-muted); font-size: 13px; }

/* ---------- CREDITS ---------- */
.credits-section { padding: 80px 20px; text-align: center; position: relative; }
.credits-inner { max-width: 500px; margin: 0 auto; }
.credits-eyebrow { font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.credits-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; margin-top: 32px; text-align: center;
  border: 1px solid var(--cta-border);
  box-shadow: var(--cta-shadow);
}
.credits-num { font-size: 52px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.credits-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.credits-bar-wrap { background: var(--bg-elevated); border-radius: 4px; height: 4px; margin: 20px 0; overflow: hidden; }
.credits-bar { height: 100%; background: var(--accent); border-radius: 4px; width: 68%; }
.credits-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); }
.credits-feats { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; text-align: left; }
.cfeat { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); }
.cfeat i { color: var(--text-muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta-section { padding: 80px 20px; display: flex; justify-content: center; }
.cta-box {
  max-width: 860px; width: 100%;
  padding: 80px 60px; border-radius: 22px; text-align: center;
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  box-shadow: var(--cta-shadow);
}
.cta-box h2 { font-size: 34px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.cta-box p { color: var(--text-secondary); margin-bottom: 30px; }
.cta-legal { font-size: 11px; color: var(--text-faint); margin-top: 14px; }

/* ---------- FOOTER ---------- */
footer {
  padding: 32px 60px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 16px;
}
.footer-left { font-size: 14px; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--text-faint); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-right { font-size: 12px; color: var(--text-faint); }

/* ---------- SCROLL FADE (fade-up / fade-down) ---------- */


/* ---------- ANIMATIONS ---------- */
@keyframes pulse { 0%,100%{opacity:0.3;transform:scale(0.85)} 50%{opacity:1;transform:scale(1)} }
@keyframes wave  { 0%,100%{height:6px} 50%{height:18px} }
.wave-bars { display: flex; align-items: center; gap: 3px; height: 24px; }
.wave-bar { width: 3px; background: var(--accent); border-radius: 2px; animation: wave 1.2s ease-in-out infinite; will-change: transform; transform: translateZ(0); }
.wave-bar:nth-child(2){animation-delay:0.1s}
.wave-bar:nth-child(3){animation-delay:0.2s}
.wave-bar:nth-child(4){animation-delay:0.3s}
.wave-bar:nth-child(5){animation-delay:0.4s}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .navbar { padding: 14px 30px; }
  .nav-links { gap: 14px; }
  .feature-row, .feature-row.reverse { flex-direction: column; gap: 40px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  footer { padding: 24px 30px; }
  .cta-box { padding: 60px 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 36px; }
  .feature-list { flex-direction: column; gap: 0; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  footer { flex-direction: column; align-items: center; text-align: center; }
  .cta-box { padding: 48px 24px; }
  .cta-box h2 { font-size: 26px; }
  .hero h1 { letter-spacing: -1px; }
}

@media (max-width: 480px) {
  .navbar { padding: 14px 20px; }
  .hero { padding: 60px 16px 100px; }
  .about-section, .features-section { padding: 80px 16px; }
  .credits-section { padding: 60px 16px; }
}

/* ---------- MOBILE TOGGLE + HAMBURGER GROUP ---------- */
.mobile-right {
  display: none;
  align-items: center;
  gap: 10px;
}
.theme-toggle--mobile { cursor: pointer; display: flex; align-items: center; }

@media (max-width: 768px) {
  /* Show mobile right group */
  .mobile-right { display: flex; }
  /* Hide desktop toggle inside nav-links */
  .nav-links .theme-toggle { display: none; }
  /* Solid navbar on mobile — no see-through */
  .navbar {
    background: var(--bg) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (min-width: 769px) {
  /* Hide mobile toggle on desktop */
  .theme-toggle--mobile { display: none; }
  .mobile-right { display: none; }
}

.v-card,
.study-card{
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.v-card:hover,
.study-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255,255,255,0.12);
}


.feature-visual > div{
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.feature-visual > div:hover{
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255,255,255,0.12);
}


@media (max-width: 768px) {
    .preview-frame,
    .v-card,
    .study-card,
    .wakeword-card,
    .credits-card {
        border: 1px solid var(--cta-border) !important;
        box-shadow: var(--cta-shadow) !important;
    }
}