:root {
  --bg: #080c14;
  --bg-subtle: #0d1320;
  --surface: #121a29;
  --surface-hover: #182236;
  --surface-card: rgba(18, 26, 41, 0.75);
  --surface-border: rgba(255, 255, 255, 0.09);
  --surface-border-hover: rgba(0, 191, 165, 0.35);
  --primary: #00bfa5;
  --primary-glow: rgba(0, 191, 165, 0.22);
  --primary-glow-strong: rgba(0, 191, 165, 0.45);
  --primary-text: #00e5c5;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --badge-bg: rgba(0, 191, 165, 0.12);
  --badge-border: rgba(0, 191, 165, 0.3);
  --error: #f87171;
  --error-bg: rgba(239, 68, 68, 0.16);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.16);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, -apple-system-subheadline, Helvetica, Arial, sans-serif;
  --container-max: 1160px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  /* The ambient orbs and the language marquee are deliberately wider than the
     viewport; clip on html as well as body so no phone can scroll sideways. */
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(0, 191, 165, 0.06) 0%, transparent 60%);
  background-size: 32px 32px, 100% 100%;
  background-position: 0 0, 0 0;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Typography & Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Ambient Background Lights */
.bg-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.orb-1 {
  top: 60px;
  right: -60px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--primary-glow-strong) 0%, rgba(16, 185, 129, 0.1) 50%, transparent 70%);
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.orb-2 {
  top: 450px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(0, 191, 165, 0.08) 50%, transparent 70%);
  animation: floatOrbReverse 18s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.08); }
  100% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes floatOrbReverse {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.05); }
  100% { transform: translate(-20px, 20px) scale(0.92); }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #00bfa5 0%, #00897b 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--primary-glow);
  color: #051b14;
}

.brand-logo .teal {
  color: var(--primary-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  color: var(--text-main);
  padding: 8px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00bfa5 0%, #00d6b9 100%);
  color: #041d15;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00d6b9 0%, #34d399 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow-strong);
}

.btn-store {
  background: #0d121c;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-store:hover {
  border-color: var(--primary);
  background: #131b29;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: rgba(18, 26, 41, 0.8);
  color: var(--text-main);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-disabled {
  background: rgba(18, 26, 41, 0.5);
  color: var(--text-dim);
  border: 1px solid var(--surface-border);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--primary-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 0 rgba(0, 191, 165, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 191, 165, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 191, 165, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 191, 165, 0); }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #00e5c5 0%, #00bfa5 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 34px;
}

.hero-desc a {
  color: var(--primary-text);
  border-bottom: 1px solid rgba(0, 229, 197, 0.35);
}

.hero-desc a:hover {
  border-bottom-color: var(--primary-text);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Interactive Phone Mockup Area */
.mockup-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

/* Scenario Switcher Tabs */
.scenario-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 26, 41, 0.85);
  border: 1px solid var(--surface-border);
  padding: 5px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.scenario-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scenario-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.scenario-tab.active {
  background: var(--primary);
  color: #041d15;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* Phone Card */
.phone-card {
  width: 100%;
  max-width: 375px;
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 40px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.85),
    0 0 50px -10px var(--primary-glow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 14px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  animation: floatPhone 6s ease-in-out infinite alternate;
}

.phone-card:hover {
  animation-play-state: paused;
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.9),
    0 0 70px -5px var(--primary-glow-strong),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@keyframes floatPhone {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.4deg); }
  100% { transform: translateY(2px) rotate(-0.3deg); }
}

/* Realistic Dynamic Island / Notch */
.phone-island {
  width: 100px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  margin: 4px auto 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  gap: 6px;
}

.island-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #111a28;
  box-shadow: inset 0 0 2px rgba(0, 191, 165, 0.8);
}

/* Chat Header Inside Phone */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(18, 26, 41, 0.6);
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  margin-bottom: 14px;
}

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

.chat-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #103328 0%, #174235 100%);
  color: var(--primary-text);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid var(--badge-border);
}

.chat-name {
  font-size: 0.85rem;
  font-weight: 700;
}

.chat-status {
  font-size: 0.68rem;
  color: var(--primary-text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.lang-tag {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--primary-text);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-full);
}

/* Scenario Panels inside Mockup */
.scenario-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  animation: fadeIn 0.3s ease;
}

.scenario-panel.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Chat Messages */
.msg-bubble {
  max-width: 86%;
  padding: 10px 14px;
  font-size: 0.84rem;
  line-height: 1.45;
  position: relative;
}

.msg-received {
  align-self: flex-start;
  background: #18202e;
  border-radius: 18px 18px 18px 4px;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.msg-sent {
  align-self: flex-end;
  background: #0f3026;
  border-radius: 18px 18px 4px 18px;
  color: #ecfdf5;
  border: 1px solid rgba(0, 191, 165, 0.25);
}

.msg-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.68rem;
  gap: 8px;
}

.msg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.msg-action-btn {
  color: var(--primary-text);
  background: transparent;
  border: none;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.85;
  padding: 0;
}

.msg-action-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

.msg-time-ticks {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.66rem;
}

.msg-tick-read {
  color: var(--primary-text);
  font-weight: bold;
}

/* Grammar Coach Feedback Card (Grounded in App's Real UI) */
.coach-feedback-card {
  background: #091a15;
  border: 1px solid rgba(0, 191, 165, 0.4);
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 2px;
  box-shadow: 0 4px 16px rgba(0, 191, 165, 0.1);
}

.coach-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.coach-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-text);
}

.category-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(52, 211, 153, 0.16);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.coach-diff {
  background: #0f1622;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.diff-line {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.diff-line:last-child {
  margin-bottom: 0;
}

.diff-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  width: 58px;
  flex-shrink: 0;
}

.diff-strike {
  color: var(--error);
  text-decoration: line-through;
  font-weight: 600;
}

.diff-correct {
  color: var(--primary-text);
  font-weight: 700;
}

.coach-comment {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Tap to Translate Panel (In Mockup) */
.translation-card {
  background: #111a28;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.78rem;
  animation: fadeIn 0.25s ease;
}

.translation-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.68rem;
  color: #38bdf8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Coach Chat Bubble (@coach) */
.coach-bubble {
  align-self: flex-start;
  background: #101e2e;
  border: 1px solid rgba(0, 191, 165, 0.35);
  border-radius: 18px 18px 18px 4px;
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-main);
}

.coach-sender-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Chat Input Bar inside Phone */
.chat-input-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #131b28;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.send-btn-icon {
  width: 26px;
  height: 26px;
  background: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #041d15;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Infinite Language Marquee Section */
.marquee-section {
  padding: 36px 0;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  background: rgba(13, 19, 32, 0.6);
  position: relative;
  overflow: hidden;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: scrollMarquee 32s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-dupe {
  display: flex;
  gap: 16px;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.lang-chip:hover {
  border-color: var(--surface-border-hover);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.lang-chip-greeting {
  font-size: 0.78rem;
  color: var(--text-dim);
  border-left: 1px solid var(--surface-border);
  padding-left: 8px;
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Steps (How It Works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--surface-border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
}

.step-badge {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.step-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-mini-visual {
  margin-top: 24px;
  background: #090f19;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.8rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--surface-border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px var(--primary-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--primary-text);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.feature-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  max-width: 820px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.faq-item.active {
  border-color: var(--surface-border-hover);
  background: #111a2a;
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.faq-chevron {
  color: var(--primary);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Platform Download Cards */
.download-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.platform-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.platform-card.featured {
  border-color: rgba(0, 191, 165, 0.45);
  box-shadow: 0 10px 32px var(--primary-glow);
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-main);
}

.platform-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.platform-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 11px 20px;
  border-radius: var(--radius-full);
}

/* Legal Page Content Styling */
.legal-page {
  padding: 60px 0 100px;
  flex: 1;
}

.legal-article {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.legal-article h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--surface-border);
}

.legal-article h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text-main);
}

.legal-article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text-main);
}

.legal-article p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.legal-article ul {
  margin: 0 0 20px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-article li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  margin-top: auto;
  background: var(--bg);
  border-top: 1px solid var(--surface-border);
  padding: 56px 0 36px;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 340px;
}

.footer-nav {
  display: flex;
  gap: 56px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--primary-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--surface-border);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Language Grid (home section + /learn hub) */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 20px;
}

.lang-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lang-card:hover {
  transform: translateY(-4px);
  border-color: var(--surface-border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 22px var(--primary-glow);
}

.lang-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lang-card-flag {
  font-size: 1.9rem;
  line-height: 1;
}

.lang-card-greeting {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.lang-card h2,
.lang-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.lang-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.lang-card-cta {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-text);
}

/* Learn Page Hero */
.learn-hero {
  position: relative;
  z-index: 1;
  padding: 36px 0 80px;
}

.learn-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.learn-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.learn-hero h1 .highlight {
  background: linear-gradient(135deg, #00e5c5 0%, #00bfa5 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

/* Static Example Chat (learn pages) */
.example-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85), 0 0 40px -14px var(--primary-glow);
}

.example-chat .msg-bubble {
  max-width: 92%;
}

/* Common Mistake Cards */
.mistake-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.mistake-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  backdrop-filter: blur(12px);
}

.mistake-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.mistake-line {
  font-size: 0.95rem;
  line-height: 1.5;
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.mistake-wrong {
  color: var(--error);
}

.mistake-right {
  color: var(--success);
  margin-bottom: 12px;
}

.mistake-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Highlight Panel (language-specific note) */
.highlight-panel {
  margin-top: 32px;
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.1), rgba(56, 189, 248, 0.06));
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
}

.highlight-panel h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-text);
}

.highlight-panel p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 760px;
}

/* Closing CTA Band */
.cta-band {
  text-align: center;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  backdrop-filter: blur(12px);
}

.cta-band h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin: 0 auto 28px;
  max-width: 560px;
}

/* Other Languages Footer Block */
.other-langs {
  margin-top: 64px;
  text-align: center;
}

.other-langs h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.other-langs-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Scroll-Reveal Base Classes */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-desc {
    margin: 0 auto 32px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-row {
    justify-content: center;
  }

  .steps-grid,
  .features-grid,
  .download-cards,
  .mistake-grid {
    grid-template-columns: 1fr;
  }

  .learn-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .learn-hero h1 {
    font-size: 2.5rem;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  /* The brand + store button + menu button have to fit a 375px viewport
     without pushing the page sideways. */
  .brand-logo {
    font-size: 1.28rem;
    gap: 8px;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .btn-store {
    padding: 9px 14px;
    font-size: 0.85rem;
    gap: 7px;
  }

  .navbar .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(8, 12, 20, 0.96);
    border-bottom: 1px solid var(--surface-border);
    padding: 24px;
    gap: 18px;
    backdrop-filter: blur(20px);
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .learn-hero h1 {
    font-size: 2.1rem;
  }

  .cta-band {
    padding: 40px 22px;
  }

  .cta-band h2 {
    font-size: 1.7rem;
  }

  .legal-article {
    padding: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

/* Reduced Motion Support for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .phone-card {
    animation: none !important;
  }

  .marquee-track {
    animation: none !important;
    overflow-x: auto;
  }
}
