/* ─── Reset & Base ──────────────────────────────────────── */

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

:root {
  --bg-deep: #0a0f0d;
  --bg-base: #0d1210;
  --bg-surface: #131a17;
  --bg-card: rgba(0, 255, 136, 0.03);
  --bg-card-hover: rgba(0, 255, 136, 0.06);
  --border: rgba(0, 255, 136, 0.1);
  --border-hover: rgba(0, 255, 136, 0.22);

  --green-300: #86efac;
  --green-400: #00ff88;
  --green-500: #00e676;
  --green-600: #00c853;
  --green-dim: #1a3a2a;
  --cyan-400: #22d3ee;
  --yellow-400: #fbbf24;

  --text-primary: #e8fce8;
  --text-secondary: #a3c4b0;
  --text-muted: #5a7a68;

  --font-display: 'JetBrains Mono', monospace;
  --font-body: 'DM Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --glow: 0 0 20px rgba(0, 255, 136, 0.15);
  --glow-strong: 0 0 40px rgba(0, 255, 136, 0.2), 0 0 80px rgba(0, 255, 136, 0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: rgba(0, 255, 136, 0.25);
  color: var(--green-400);
}

a {
  color: var(--green-400);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
  color: var(--green-300);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

code {
  font-family: var(--font-display);
  font-size: 0.82em;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--green-400);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Reveal Animation ─────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Navigation ───────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 15, 13, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-400);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.nav-logo svg {
  color: var(--green-400);
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.3));
}

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

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--green-400);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.nav-github {
  display: flex;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.2s, filter 0.2s;
}

.nav-github:hover {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.3));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-400);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 40px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  pointer-events: none;
}

.hero-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 136, 0.015) 2px,
    rgba(0, 255, 136, 0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-400);
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 6px 18px;
  border-radius: 4px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  animation: fadeInDown 0.8s var(--ease-out) both;
}

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.mono-accent {
  color: var(--green-400);
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.gradient-text {
  background: linear-gradient(135deg, var(--green-400), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--green-400);
  color: #0a0f0d;
  box-shadow: var(--glow);
}

.btn--primary:hover {
  background: var(--green-300);
  box-shadow: var(--glow-strong);
  transform: translateY(-2px);
  color: #0a0f0d;
}

.btn--ghost {
  background: transparent;
  color: var(--green-400);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(0, 255, 136, 0.06);
  border-color: var(--border-hover);
  color: var(--green-300);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.btn--sm {
  font-size: 0.78rem;
  padding: 10px 18px;
}

/* ─── Trust Bar ────────────────────────────────────────── */

.trust-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 18px 28px;
  background: rgba(0, 255, 136, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.trust-check {
  color: var(--green-400);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

/* ─── Feature Grid ─────────────────────────────────────── */

.features {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

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

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

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  color: var(--green-400);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

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

/* ─── How It Works ─────────────────────────────────────── */

.steps {
  max-width: 860px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr 300px;
  gap: 20px;
  align-items: center;
}

.step--reverse {
  grid-template-columns: 56px 300px 1fr;
}

.step--reverse .step-content {
  order: 2;
}

.step--reverse .step-visual {
  order: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-400);
  background: rgba(0, 255, 136, 0.08);
  border: 2px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-connector {
  display: flex;
  justify-content: center;
  padding-left: 24px;
}

.step-connector svg line {
  stroke: var(--green-400);
  opacity: 0.3;
}

/* Step screen mockups — terminal style */

.step-screen {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--glow);
}

.screen-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 255, 136, 0.02);
}

.screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.screen-dot:nth-child(1) { background: #ff5f57; }
.screen-dot:nth-child(2) { background: #ffbd2e; }
.screen-dot:nth-child(3) { background: #28c840; }

.screen-body {
  padding: 14px;
}

.screen-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-400);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(0, 255, 136, 0.2);
}

.screen-device {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(0, 255, 136, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-family: var(--font-display);
  color: var(--text-secondary);
}

.device-signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 8px var(--green-400);
  flex-shrink: 0;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px var(--green-400); }
  50% { box-shadow: 0 0 14px var(--green-400), 0 0 24px rgba(0, 255, 136, 0.3); }
}

.device-rssi {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.screen-input-group {
  margin-bottom: 12px;
}

.screen-input-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.screen-input {
  padding: 7px 11px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--green-400);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
}

.screen-btn {
  display: block;
  text-align: center;
  padding: 8px;
  background: var(--green-400);
  color: var(--bg-deep);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Chat screen */
.screen-body--chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.screen-body--chat .screen-title {
  margin-bottom: 4px;
}

.chat-bubble {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.4;
  max-width: 82%;
  font-family: var(--font-display);
}

.chat-bubble--in {
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-bubble--out {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--green-300);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.how-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 640px;
  margin: 48px auto 0;
  padding: 18px 22px;
  background: rgba(0, 255, 136, 0.03);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-400);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.how-note svg {
  color: var(--green-400);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── Download ─────────────────────────────────────────── */

.download {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.download-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.download-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  color: var(--green-400);
}

.download-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.download-card > p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.download-buttons .btn {
  justify-content: center;
  width: 100%;
}

.download-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Build from source */

.build-source {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.build-source h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.code-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  text-align: left;
  margin-bottom: 16px;
  overflow-x: auto;
  position: relative;
}

.code-block::before {
  content: '$ ';
  color: var(--green-400);
  opacity: 0.5;
}

.code-block code {
  font-size: 0.8rem;
  color: var(--green-400);
  background: none;
  border: none;
  padding: 0;
  line-height: 1.9;
}

.build-source > p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Devices ──────────────────────────────────────────── */

.devices {
  padding: 60px 0 80px;
}

.devices-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.devices-inner h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.devices-inner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.devices-note {
  margin-top: 12px;
  font-size: 0.8rem !important;
  opacity: 0.7;
}

/* ─── Footer ───────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-400);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.footer-brand svg {
  color: var(--green-400);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--green-400);
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--green-400);
}

/* ─── Theme Toggle Button ──────────────────────────────── */

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.theme-toggle-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  white-space: nowrap;
}

.theme-toggle:hover .theme-toggle-label {
  color: var(--text-secondary);
}

.theme-toggle-track {
  position: relative;
  width: 38px;
  height: 20px;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: background 0.3s, border-color 0.3s;
}

.theme-toggle:hover .theme-toggle-track {
  border-color: var(--border-hover);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
  transition: transform 0.3s var(--ease-out), background 0.3s, box-shadow 0.3s;
}

/* ─── Light Theme ──────────────────────────────────────── */

body.light {
  --bg-deep: #f4f7f5;
  --bg-base: #eaf0ec;
  --bg-surface: #ffffff;
  --bg-card: rgba(0, 100, 60, 0.04);
  --bg-card-hover: rgba(0, 100, 60, 0.07);
  --border: rgba(0, 80, 50, 0.1);
  --border-hover: rgba(0, 80, 50, 0.2);

  --green-300: #10b981;
  --green-400: #059669;
  --green-500: #047857;
  --green-600: #065f46;
  --cyan-400: #0891b2;

  --text-primary: #1a2e23;
  --text-secondary: #3d5a4a;
  --text-muted: #6b8f7a;

  --glow: 0 2px 12px rgba(5, 150, 105, 0.1);
  --glow-strong: 0 4px 24px rgba(5, 150, 105, 0.15);
}

body.light .hero-canvas {
  opacity: 0.04;
}

body.light .hero-scanline {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 80, 50, 0.015) 2px,
    rgba(0, 80, 50, 0.015) 4px
  );
}

body.light .nav.scrolled {
  background: rgba(244, 247, 245, 0.9);
}

body.light .nav-logo {
  text-shadow: none;
}

body.light .nav-logo svg {
  filter: none;
}

body.light .mono-accent {
  text-shadow: none;
}

body.light .trust-check {
  text-shadow: none;
}

body.light .footer-brand {
  text-shadow: none;
}

body.light .btn--primary {
  background: var(--green-400);
  color: #ffffff;
}

body.light .btn--primary:hover {
  background: var(--green-500);
  color: #ffffff;
}

body.light .btn--ghost {
  color: var(--green-600);
  border-color: var(--border);
}

body.light .btn--ghost:hover {
  background: rgba(5, 150, 105, 0.06);
  color: var(--green-500);
  box-shadow: none;
}

body.light .device-signal {
  box-shadow: 0 0 6px var(--green-400);
}

body.light .screen-header {
  background: rgba(0, 0, 0, 0.02);
}

body.light .screen-dot:nth-child(1) { background: #ff5f57; }
body.light .screen-dot:nth-child(2) { background: #ffbd2e; }
body.light .screen-dot:nth-child(3) { background: #28c840; }

body.light .screen-input {
  background: rgba(0, 0, 0, 0.04);
  color: var(--green-400);
}

body.light .screen-btn {
  background: var(--green-400);
  color: #ffffff;
}

body.light .chat-bubble--out {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.2);
  color: var(--green-600);
}

body.light .step-screen {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light .code-block {
  background: #f0f5f2;
}

body.light ::selection {
  background: rgba(5, 150, 105, 0.2);
  color: var(--green-600);
}

body.light .nav-links {
  background: var(--bg-surface);
}

body.light .nav-toggle span {
  background: var(--text-primary);
}

/* Toggle button in light mode */
body.light .theme-toggle-track {
  background: rgba(5, 150, 105, 0.15);
}

body.light .theme-toggle-thumb {
  transform: translateX(18px);
  background: var(--green-400);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ─── Responsive ───────────────────────────────────────── */

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-grid .download-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .step--reverse {
    grid-template-columns: 48px 1fr;
  }

  .step-visual {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 0 auto;
  }

  .step--reverse .step-content { order: unset; }
  .step--reverse .step-visual { order: unset; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 240px;
    height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 28px 28px;
    gap: 18px;
    transition: right 0.35s var(--ease-out);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open { right: 0; }

  .nav-links a { font-size: 0.9rem; }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .hero-sub br { display: none; }

  .trust-bar { gap: 12px; padding: 16px 20px; }
  .trust-item { font-size: 0.72rem; }

  .feature-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .download-grid .download-card:last-child { max-width: none; }

  .step {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .step-number { margin: 0 auto; }
  .step-connector { padding-left: 0; }

  .footer-inner {
    flex-direction: column;
    gap: 18px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
}
