/* ========================================
   Silentium9 - Secure Offline Voice Dictation
   Dark navy + teal cyberpunk aesthetic
   ======================================== */

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

:root {
  --bg: #0a1628;
  --bg-darker: #060f1d;
  --bg-card: #0d1f3c;
  --bg-card-hover: #112847;
  --border: rgba(78, 232, 228, 0.10);
  --border-bright: rgba(78, 232, 228, 0.25);
  --accent: #4ee8e4;
  --accent-dim: #36b4b1;
  --accent-faint: rgba(78, 232, 228, 0.08);
  --text: #7a9ab0;
  --text-bright: #c8dce8;
  --text-dim: #3d5a70;
  --white: #e8f0f8;
  --red: #f87171;
  --yellow: #fbbf24;
  --green: #4ee8e4;
  --glow-sm: 0 0 8px rgba(78, 232, 228, 0.2);
  --glow-md: 0 0 20px rgba(78, 232, 228, 0.15);
  --glow-lg: 0 0 40px rgba(78, 232, 228, 0.1), 0 0 80px rgba(78, 232, 228, 0.05);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;
}

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

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

body.modal-open {
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
  top: var(--modal-lock-top, 0);
}

body.modal-open main,
body.modal-open #nav,
body.modal-open #webgl-container {
  pointer-events: none;
}

main {
  position: relative;
  z-index: 10;
}

a { color: inherit; text-decoration: none; }

::selection {
  background: rgba(78, 232, 228, 0.25);
  color: var(--accent);
}

/* ── Decorative Frame + Corner Dots ────── */

.frame {
  position: fixed;
  inset: 16px;
  border: 1px solid var(--border);
  pointer-events: none;
  z-index: 9990;
  border-radius: 2px;
}

.corner-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 9991;
  box-shadow: 0 0 8px var(--accent), 0 0 20px rgba(78, 232, 228, 0.3);
  animation: dotPulse 3s ease-in-out infinite;
}

.corner-dot.tl { top: 13px; left: 13px; }
.corner-dot.tr { top: 13px; right: 13px; animation-delay: 0.75s; }
.corner-dot.bl { bottom: 13px; left: 13px; animation-delay: 1.5s; }
.corner-dot.br { bottom: 13px; right: 13px; animation-delay: 2.25s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* ── Background Grid Pattern ─────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(78, 232, 228, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 232, 228, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: panGrid 60s linear infinite;
}

@keyframes panGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-60px, -60px); }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, transparent 50%, var(--bg) 100%);
}

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

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s, border-color 0.4s;
}

#nav.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 140px;
  width: auto;
  object-fit: contain;
  position: relative;
  left: -60px;
  margin-top: -30px;
  margin-bottom: -50px;
  filter: saturate(3) hue-rotate(-12deg) brightness(1.4);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text);
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
  text-shadow: var(--glow-sm);
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 2rem 60px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1rem;
  align-items: center;
}

.hero-content {
  background: rgba(10, 22, 40, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-bright);
  padding: 3rem;
  border-radius: 4px;
  box-shadow: var(--glow-sm);
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: var(--glow-lg);
  position: relative;
  animation: terminalFlicker 0.15s 2;
}

@keyframes terminalFlicker {
  0%, 100% { opacity: 1; text-shadow: var(--glow-lg); }
  50% { opacity: 0.8; text-shadow: none; }
}

.hero-tagline {
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  color: var(--text);
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  border-left: 2px solid var(--border-bright);
  padding-left: 1rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 14px 32px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: rgba(78, 232, 228, 0.05);
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(78, 232, 228, 0.05);
}

.btn-download .btn-text {
  position: relative;
  z-index: 2;
}

.btn-download .btn-scanline {
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(78, 232, 228, 0.3), transparent);
  transform: skewX(-20deg);
  transition: none;
  z-index: 1;
}

.btn-download:hover {
  background: rgba(78, 232, 228, 0.12);
  box-shadow: var(--glow-md), inset 0 0 20px rgba(78, 232, 228, 0.1);
  color: var(--white);
  border-color: var(--white);
}

.btn-download:hover .btn-scanline {
  animation: scanHover 1s ease-in-out infinite;
}

@keyframes scanHover {
  0% { left: -100%; }
  100% { left: 200%; }
}

.hero-desc {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 2.5rem;
}

/* ── Modal ────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 2rem 1.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal h3 {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.modal > p {
  font-size: 0.75rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover { color: var(--accent); }

.modal-logo {
  display: block;
  height: 80px;
  width: auto;
  margin: -10px auto -15px;
  opacity: 0.6;
  filter: saturate(2.8) hue-rotate(-12deg) brightness(1.4);
}

.modal .btn-download {
  display: block;
  width: 100%;
  margin-bottom: 0;
}

main {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-form input {
  padding: 12px 16px;
  background: rgba(10, 22, 40, 0.72);
  border: 1px solid var(--border-bright);
  border-radius: 2px;
  color: var(--white);
  font-size: 0.8rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.3s;
}

.modal-form input:focus {
  border-color: var(--accent);
}

.modal-form input:-webkit-autofill,
.modal-form input:-webkit-autofill:hover,
.modal-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  box-shadow: 0 0 0 1000px rgba(10, 22, 40, 0.92) inset;
  transition: background-color 9999s ease-out 0s;
}

.modal-form input::placeholder {
  color: var(--text-dim);
}

.modal-form .btn-download {
  margin-bottom: 0;
}

.waitlist-success p {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 1rem 0;
  font-family: var(--mono);
}

.hero-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent-dim);
  letter-spacing: 0.06em;
  margin-top: 1.5rem;
}

/* ── Brain Visualization ─────────────── */

.hero-visual {
  position: relative;
  width: 100%;
  height: 500px;
  max-width: none;
  justify-self: center;
  /* overflow: hidden; Removed so Three.js can span page */
  transform-origin: center center;
  will-change: transform, opacity;
}

#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#webgl-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.brain-label {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text);
  opacity: 0;
  animation: fadeInLabel 1s ease forwards;
}

.label-crypto {
  top: 10%;
  right: 5%;
  animation-delay: 1.5s;
}

.label-local {
  bottom: 25%;
  right: 0%;
  animation-delay: 2s;
}

.label-line {
  display: block;
  width: 30px;
  height: 1px;
  background: var(--border-bright);
  margin-top: 0.4em;
  flex-shrink: 0;
}

@keyframes fadeInLabel {
  to { opacity: 1; }
}

/* ── Sections ────────────────────────── */

.section {
  position: relative;
  z-index: 1;
  padding: 100px 2rem;
}

.section-alt {
  background: transparent;
  border-top: 1px solid var(--border-bright);
  border-bottom: 1px solid var(--border-bright);
}

.container {
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.centered {
  text-align: center;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section h2 {
  font-family: var(--mono);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.section-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 1.5rem;
}

/* ── Feature Cards ───────────────────── */

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.35s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--accent);
  opacity: 0.8;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px var(--accent));
}

/* Premium Icon SVG Animations */
.premium-icon .cpu-core {
  transform-origin: 32px 32px;
  animation: coreProcess 2s infinite ease-in-out alternate;
}

.premium-icon .pin {
  animation: pinFlash 1.5s infinite linear;
}

@keyframes coreProcess {
  0% { fill: rgba(78, 232, 228, 0.05); filter: drop-shadow(0 0 2px var(--accent)); }
  100% { fill: rgba(78, 232, 228, 0.4); filter: drop-shadow(0 0 10px var(--accent)); }
}

@keyframes pinFlash {
  0%, 100% { stroke: rgba(78, 232, 228, 0.2); filter: none; }
  50% { stroke: rgba(78, 232, 228, 1); filter: drop-shadow(0 0 4px var(--accent)); }
}

.premium-icon .ring-spin {
  transform-origin: 32px 32px;
  animation: spinSlow 8s linear infinite;
}

.premium-icon .pulse-node {
  transform-origin: 32px 32px;
  animation: pulseScale 3s ease-in-out infinite alternate;
}

.premium-icon .strike-line {
  stroke: #ff3366;
  filter: drop-shadow(0 0 4px #ff3366);
  animation: flickerRed 4s infinite alternate;
}

.premium-icon .audio-bar {
  transform-origin: 32px 32px;
  animation: audioBounce 1s ease-in-out infinite alternate;
}
.premium-icon .b1 { animation-delay: 0.1s; }
.premium-icon .b2 { animation-delay: 0.3s; }
.premium-icon .b3 { animation-delay: 0.5s; }
.premium-icon .b4 { animation-delay: 0.2s; }
.premium-icon .b5 { animation-delay: 0.4s; }

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseScale {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes flickerRed {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
  52% { opacity: 0.4; }
  54% { opacity: 0.9; }
}

@keyframes audioBounce {
  0% { transform: scaleY(0.5); }
  100% { transform: scaleY(1.4); }
}
.feature-card h3 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

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

/* ── Comparison Table ────────────────── */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.compare-table th,
.compare-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  font-family: var(--mono);
  font-size: 0.95rem; /* Increased size to differentiate from table cells */
  font-weight: 700;
  color: var(--accent); /* Make header column stand out more */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border-bright);
}

.compare-table th.col-highlight {
  color: var(--accent);
  text-shadow: var(--glow-sm);
}

.compare-table td:first-child {
  color: var(--text-bright);
  font-weight: 500;
  font-size: 0.8rem;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table tbody tr {
  transition: background 0.2s;
}

.compare-table tbody tr:hover {
  background: var(--accent-faint);
}

.cell-bad { color: var(--text); }
.cell-warn { color: var(--text); }
.cell-good { color: var(--green); font-weight: 500; }

/* ── Technical Specifications ────────── */

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.specs-visual {
  background: var(--bg-card);
  min-height: 280px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.stealth-terminal {
  font-family: var(--mono);
  position: relative;
  overflow: hidden;
}

.stealth-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(78, 232, 228, 0.03) 2px,
    rgba(78, 232, 228, 0.03) 4px
  );
  pointer-events: none;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

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

.dot.red { background-color: var(--red); opacity: 0.8; }
.dot.yellow { background-color: var(--yellow); opacity: 0.8; }
.dot.green { background-color: var(--green); box-shadow: var(--glow-sm); }

.terminal-title {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.terminal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8rem;
}

.terminal-body p {
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.term-time {
  color: var(--text-dim);
  margin-right: 8px;
}

.term-ok {
  color: var(--accent);
  text-shadow: var(--glow-sm);
  margin-left: 8px;
}

.term-cursor {
  display: inline-block;
  width: 8px;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.specs-list {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.spec-value {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* ── Waitlist ────────────────────────── */

.waitlist-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.waitlist-block h2 {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: var(--glow-md);
  margin-bottom: 1rem;
}

.waitlist-block > p {
  color: var(--text);
  margin-bottom: 2rem;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
}

.waitlist-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 2px;
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.waitlist-form input:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

.waitlist-form input::placeholder {
  color: var(--text-dim);
}

.btn-submit {
  flex-shrink: 0;
}

.waitlist-note {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.waitlist-success p {
  color: var(--accent);
  font-weight: 500;
  margin-top: 1rem;
  font-family: var(--mono);
}

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

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: color 0.3s;
}

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

.footer-copy {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.footer-copy a {
  color: var(--accent-dim);
  transition: color 0.3s;
}

.footer-copy a:hover {
  color: var(--accent);
}

/* ── Scroll Reveal ───────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    max-width: 400px;
    order: -1;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .specs-visual {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .hero {
    align-items: flex-start;
    padding: 48px 1.25rem 36px;
  }

  .hero-grid {
    gap: 0.4rem;
  }

  .frame { inset: 8px; }
  .corner-dot.tl { top: 5px; left: 5px; }
  .corner-dot.tr { top: 5px; right: 5px; }
  .corner-dot.bl { bottom: 5px; left: 5px; }
  .corner-dot.br { bottom: 5px; right: 5px; }

  .nav-logo-img {
    left: -30px;
    height: 100px;
    margin-top: -20px;
    margin-bottom: -30px;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

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

  .hero-visual {
    height: 180px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .compare-table {
    font-size: 0.75rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
  }

  .specs-visual {
    display: none;
  }

  .specs-list {
    padding: 1.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .modal-overlay {
    padding: 1rem;
    align-items: flex-start;
  }

  .modal {
    width: min(100%, 22rem);
    margin-top: max(1rem, calc(env(safe-area-inset-top) + 0.75rem));
    padding: 1rem 1rem 1.25rem;
  }

  .modal-close {
    top: 10px;
    right: 12px;
  }

  .modal-form input {
    min-height: 44px;
    font-size: 16px;
    background: rgba(10, 22, 40, 0.92);
  }

  .section { padding: 60px 1.5rem; }

  .hero-title {
    font-size: 1.6rem;
  }

  .brain-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  #brain-canvas, #spec-brain { display: none; }
}
