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

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #151515;
  --bg-card-hover: #1a1a1a;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --text-1: #f0f0ec;
  --text-2: #9a9a95;
  --text-3: #5a5a55;
  --accent-bg: #f0f0ec;
  --accent-fg: #0a0a0a;
  --sphere-text: rgba(240,240,236,VAR);
  --sphere-line: rgba(240,240,236,VAR);
  --icon-bg: #f0f0ec;
  --icon-fg: #0a0a0a;
  --toggle-icon: "☀";
}

[data-theme="light"] {
  --bg: #f5f5f0;
  --bg-elevated: #eeeee9;
  --bg-card: #f5f5f0;
  --bg-card-hover: #eaeae4;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --text-1: #0a0a0a;
  --text-2: #6a6a65;
  --text-3: #9a9a95;
  --accent-bg: #0a0a0a;
  --accent-fg: #f0f0ec;
  --icon-bg: #e8e8e2;
  --icon-fg: #2a2a2a;
  --toggle-icon: "☾";
}

html {
  scroll-behavior: smooth;
  transition: background 0.4s;
}

body {
  font-family: 'Figtree', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s, color 0.4s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

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

.nav-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-icon {
  width: 24px;
  height: 24px;
}

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

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

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--text-1); }

.nav-cta {
  padding: 8px 22px !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 100px;
  color: var(--text-1) !important;
  font-weight: 500 !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--accent-bg) !important;
  color: var(--accent-fg) !important;
  border-color: var(--accent-bg) !important;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.show { opacity: 1; pointer-events: auto; }

.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text-1); }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 0;
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Space Mono', monospace;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-sphere-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-sphere-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-sphere-wrap h1 {
  position: relative;
  z-index: 2;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  pointer-events: none;
  text-align: center;
  padding: 0 16px;
}

.hero-sphere-wrap h1 em {
  font-style: italic;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 440px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 100px;
  background: var(--accent-bg);
  color: var(--accent-fg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.3s;
  border: 1px solid var(--accent-bg);
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-primary svg { width: 17px; height: 17px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--text-1);
  color: var(--text-1);
}

#sphereCanvas {
  width: 100%;
  height: 100%;
}

.section-pad { padding: 100px 0; }

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

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-3);
  margin-bottom: 20px;
  display: block;
}

.section-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 300;
  max-width: 460px;
  margin: 14px auto 0;
  line-height: 1.6;
  color: var(--text-2);
}

.section-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.bento-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 28px 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  display: block;
  margin-bottom: 10px;
}

.bento-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.bento-card p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
  font-weight: 300;
}

.bento-big {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem) !important;
  font-weight: 400 !important;
  line-height: 1.1;
  margin-bottom: 12px !important;
  letter-spacing: -0.02em !important;
}

.bento-hero {
  grid-column: 1;
  grid-row: 1 / 3;
  background: linear-gradient(160deg, #0a0a1a 0%, #141432 50%, #1a1a3e 100%);
  border-color: transparent;
  color: #fff;
  padding: 36px 32px;
  min-height: 320px;
}
.bento-text-split {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-hero .bento-tag { color: rgba(255,255,255,0.35); }
.bento-hero p { color: rgba(255,255,255,0.5); font-size: 0.82rem; max-width: 55%; }

.bento-ar {
  grid-column: 2 / 4;
  grid-row: 2;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-color: transparent;
  color: #fff;
  padding: 32px 28px;
}
.bento-ar .bento-tag { color: rgba(255,255,255,0.35); }
.bento-ar p { color: rgba(255,255,255,0.5); }

.bento-swatches {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
}
.bento-swatches span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* === Bento Card Visuals === */
.bento-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bento-text {
  position: relative;
  z-index: 2;
}

/* Wireframe Sphere (Hero Card) */
.sphere-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 25% 65%, rgba(255,255,255,0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 40% 8%, rgba(255,255,255,0.25) 50%, transparent 100%),
    radial-gradient(1px 1px at 55% 80%, rgba(255,255,255,0.35) 50%, transparent 100%),
    radial-gradient(1px 1px at 70% 25%, rgba(255,255,255,0.2) 50%, transparent 100%),
    radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 15% 45%, rgba(255,255,255,0.15) 50%, transparent 100%),
    radial-gradient(1px 1px at 60% 35%, rgba(255,255,255,0.2) 50%, transparent 100%),
    radial-gradient(1px 1px at 33% 90%, rgba(255,255,255,0.25) 50%, transparent 100%),
    radial-gradient(1px 1px at 78% 70%, rgba(255,255,255,0.15) 50%, transparent 100%),
    radial-gradient(1px 1px at 92% 12%, rgba(255,255,255,0.3) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 52%, rgba(255,255,255,0.45) 50%, transparent 100%),
    radial-gradient(1px 1px at 5% 85%, rgba(255,255,255,0.2) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 38%, rgba(255,255,255,0.35) 50%, transparent 100%);
  animation: starsTwinkle 6s ease-in-out infinite alternate;
}
@keyframes starsTwinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}
.sphere-glow {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(100, 140, 255, 0.12) 0%, transparent 65%);
  border-radius: 50%;
}
.sphere-wireframe {
  position: absolute;
  top: 50%;
  left: 75%;
  width: 240px;
  height: 240px;
  transform-style: preserve-3d;
  animation: sphereRotate 30s linear infinite;
}
.sphere-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
}
.sphere-ring:nth-child(1) { transform: rotateY(0deg); }
.sphere-ring:nth-child(2) { transform: rotateY(36deg); }
.sphere-ring:nth-child(3) { transform: rotateY(72deg); }
.sphere-ring:nth-child(4) { transform: rotateY(108deg); }
.sphere-ring:nth-child(5) { transform: rotateY(144deg); }
.sphere-equator {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  transform: rotateX(90deg);
}
@keyframes sphereRotate {
  from { transform: translate(-50%, -50%) rotateX(20deg) rotateY(0deg); }
  to { transform: translate(-50%, -50%) rotateX(20deg) rotateY(360deg); }
}
@keyframes sphereRotateMobile {
  from { transform: rotateX(20deg) rotateY(0deg); }
  to { transform: rotateX(20deg) rotateY(360deg); }
}

/* AI Nodes (AI Card) */
.ai-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 5px;
  height: 5px;
  background: var(--text-3);
  border-radius: 50%;
  animation: aiPulse 4s ease-in-out infinite;
  animation-delay: var(--d);
}
.ai-node::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-3);
  opacity: 0.08;
}
.ai-visual::before,
.ai-visual::after {
  content: '';
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0.5;
}
.ai-visual::before {
  top: 28%;
  left: 18%;
  width: 58%;
  transform: rotate(22deg);
}
.ai-visual::after {
  top: 52%;
  left: 22%;
  width: 50%;
  transform: rotate(-18deg);
}
@keyframes aiPulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-6px) scale(1.15); opacity: 0.9; }
}

/* Note Mockup (Notes Card) */
.note-card {
  position: absolute;
  width: 62%;
  padding: 14px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.note-card-back {
  right: 20px;
  top: 6px;
  background: var(--bg-card);
  opacity: 0.35;
  transform: rotate(-3deg) scale(0.96);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.note-card-front {
  right: 10px;
  top: 16px;
  background: var(--bg-card);
  box-shadow: 0 6px 24px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  z-index: 1;
  transform: rotate(1deg);
}
.note-line {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 7px;
  opacity: 0.7;
}
.note-title-line {
  width: 45%;
  height: 6px;
  background: var(--text-3);
  opacity: 0.4;
  margin-bottom: 12px;
  border-radius: 4px;
}
.note-short-line {
  width: 60%;
  margin-bottom: 0;
}

/* AR Viewfinder (AR Card) */
.ar-viewfinder {
  position: absolute;
  top: 45%;
  right: 28px;
  transform: translateY(-50%);
  width: 130px;
  height: 95px;
}
.ar-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(255,255,255,0.35);
  border-style: solid;
  border-width: 0;
}
.ar-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 3px; }
.ar-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 3px; }
.ar-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 3px; }
.ar-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 3px; }
.ar-scan {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.7), transparent);
  box-shadow: 0 0 8px rgba(100, 200, 255, 0.3);
  animation: arScan 3.5s ease-in-out infinite;
}
.ar-globe-hint {
  position: absolute;
  top: 45%;
  right: 60px;
  width: 65px;
  height: 65px;
  transform-style: preserve-3d;
  animation: arGlobeSpin 12s linear infinite;
}
.ar-globe-hint::after {
  content: '';
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(100, 200, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.ar-globe-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
}
.ar-globe-ring:nth-child(1) { transform: rotateY(0deg); }
.ar-globe-ring:nth-child(2) { transform: rotateY(45deg); }
.ar-globe-ring:nth-child(3) { transform: rotateY(90deg); }
.ar-globe-equator { transform: rotateX(90deg); border-color: rgba(255,255,255,0.12); }
@keyframes arScan {
  0%, 100% { top: 8%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { top: 88%; }
}
@keyframes arGlobeSpin {
  from { transform: translateY(-50%) rotateX(15deg) rotateY(0deg); }
  to { transform: translateY(-50%) rotateX(15deg) rotateY(360deg); }
}

/* Theme Orbs (Themes Card) */
.theme-orb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--c);
  opacity: 0.15;
  filter: blur(12px);
  animation: orbFloat 6s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.1); }
}

/* Language Characters (Lang Card) */
.lang-char {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: 1.3rem;
  color: var(--text-3);
  opacity: 0.18;
  animation: charDrift 5s ease-in-out infinite;
  animation-delay: var(--d);
  font-weight: 300;
  user-select: none;
}
@keyframes charDrift {
  0%, 100% { transform: translateY(0); opacity: 0.15; }
  50% { transform: translateY(-5px); opacity: 0.35; }
}

.steps-track {
  display: flex;
  gap: 0;
}

.step-item {
  flex: 1;
  text-align: center;
  padding: 36px 16px;
  border-left: 1px solid var(--border);
}

.step-item:first-child { border-left: none; }

.step-number {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--border-strong);
  line-height: 1;
  margin-bottom: 18px;
  display: block;
}

.step-item h3 {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
  font-weight: 300;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.theme-card {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s;
  border: 1px solid rgba(255,255,255,0.06);
}

.theme-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 2;
}

.theme-swatch {
  position: absolute;
  inset: 0;
}

.theme-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

/* Theme Sphere Wireframe */
.theme-sphere-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.theme-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 20%, rgba(255,255,255,0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.2) 50%, transparent 100%),
    radial-gradient(1px 1px at 55% 12%, rgba(255,255,255,0.25) 50%, transparent 100%),
    radial-gradient(1px 1px at 75% 65%, rgba(255,255,255,0.15) 50%, transparent 100%),
    radial-gradient(1px 1px at 88% 30%, rgba(255,255,255,0.2) 50%, transparent 100%),
    radial-gradient(1px 1px at 42% 85%, rgba(255,255,255,0.18) 50%, transparent 100%),
    radial-gradient(1px 1px at 65% 40%, rgba(255,255,255,0.22) 50%, transparent 100%);
  animation: starsTwinkle 6s ease-in-out infinite alternate;
}
.theme-sphere-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: 50%;
}
.theme-wireframe {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 60%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  animation: themeSphereRotate 25s linear infinite;
}
.theme-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50%;
}
.theme-ring:nth-child(1) { transform: rotateY(0deg); }
.theme-ring:nth-child(2) { transform: rotateY(36deg); }
.theme-ring:nth-child(3) { transform: rotateY(72deg); }
.theme-ring:nth-child(4) { transform: rotateY(108deg); }
.theme-ring:nth-child(5) { transform: rotateY(144deg); }
.theme-equator {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  transform: rotateX(90deg);
}
@keyframes themeSphereRotate {
  from { transform: translate(-50%, -50%) rotateX(15deg) rotateY(0deg); }
  to { transform: translate(-50%, -50%) rotateX(15deg) rotateY(360deg); }
}

/* Light-background themes: dark wireframe */
.ts-vintage ~ .theme-sphere-wrap .theme-ring,
.ts-vintage ~ .theme-sphere-wrap .theme-equator {
  border-color: rgba(0,0,0,0.13);
}
.ts-vintage ~ .theme-sphere-wrap .theme-stars {
  background-image:
    radial-gradient(1px 1px at 12% 20%, rgba(0,0,0,0.15) 50%, transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(0,0,0,0.1) 50%, transparent 100%),
    radial-gradient(1px 1px at 55% 12%, rgba(0,0,0,0.12) 50%, transparent 100%),
    radial-gradient(1px 1px at 75% 65%, rgba(0,0,0,0.08) 50%, transparent 100%),
    radial-gradient(1px 1px at 88% 30%, rgba(0,0,0,0.1) 50%, transparent 100%),
    radial-gradient(1px 1px at 42% 85%, rgba(0,0,0,0.09) 50%, transparent 100%),
    radial-gradient(1px 1px at 65% 40%, rgba(0,0,0,0.11) 50%, transparent 100%);
}
.ts-vintage ~ .theme-sphere-wrap .theme-sphere-glow {
  background: radial-gradient(circle, rgba(0,0,0,0.06) 0%, transparent 60%);
}

.theme-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 0.58rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  z-index: 2;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.02em;
}

.theme-number {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.52rem;
  color: rgba(255,255,255,0.35);
  z-index: 2;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
}

.ts-deepspace { background: linear-gradient(160deg, #0a0a1a 0%, #1a1a3e 50%, #0d0d2b 100%); }
.ts-oceandepth { background: linear-gradient(160deg, #0d3b4f 0%, #2193b0 45%, #6dd5ed 100%); }
.ts-galaxy { background: linear-gradient(160deg, #0f0c29 0%, #302b63 50%, #24243e 100%); }
.ts-northern { background: linear-gradient(160deg, #005c4b 0%, #00c9ff 40%, #92fe9d 100%); }
.ts-vintage { background: linear-gradient(160deg, #8e7a5a 0%, #f5e6c8 45%, #d4c5a0 100%); }
.ts-sunset { background: linear-gradient(160deg, #7b2d26 0%, #fc4a1a 45%, #f7b733 100%); }
.ts-matrix { background: linear-gradient(160deg, #0a1a0a 0%, #003300 45%, #00cc44 100%); }

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.privacy-card {
  padding: 36px 32px;
  background: var(--bg);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.privacy-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--icon-bg);
  color: var(--icon-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-card h3 {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.privacy-card p {
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.6;
  font-weight: 300;
}

.quote-section { padding: 60px 0; }

.quote-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quote-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 18px;
  font-weight: 400;
}

.quote-attr {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: none;
  border: none;
  color: var(--text-1);
  font-family: 'Figtree', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--text-2); }

.faq-icon {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  color: var(--text-3);
  transition: transform 0.4s;
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 0 22px;
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.7;
  font-weight: 300;
  max-width: 560px;
}

.faq-item.open .faq-answer { max-height: 300px; }

.final-cta {
  padding: 100px 0;
  text-align: center;
}

.final-cta .section-title { margin-bottom: 14px; }

.cta-sub {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 36px;
  font-weight: 300;
}

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

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

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.72rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.3s;
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-hero {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 220px;
  }
  .bento-ar {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .sphere-wireframe { width: 190px; height: 190px; }
  .sphere-glow { width: 260px; height: 260px; }
  .themes-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
  .theme-card { width: calc(25% - 4px); aspect-ratio: 1; }
  .steps-track { flex-wrap: wrap; }
  .step-item { flex: 0 0 50%; border-left: none; border-bottom: 1px solid var(--border); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu { display: block; }
  .theme-toggle { order: -1; }
}

@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bento-hero { grid-column: 1 / -1; min-height: 200px; padding: 28px 24px; }
  .bento-ar { grid-column: 1 / -1; }
  .bento-card { padding: 20px 18px; }
  .bento-card h3 { font-size: 0.88rem; }
  .bento-card p { font-size: 0.76rem; }
  .bento-big { font-size: 1.4rem !important; }
  .sphere-wireframe { width: 100px; height: 100px; top: 20px; left: auto; right: 20px; animation-name: sphereRotateMobile; }
  .sphere-glow { width: 145px; height: 145px; top: 10px; left: auto; right: 0; transform: translate(0, 0); }
  .bento-hero p { max-width: 80%; }
  .ar-viewfinder { width: 100px; height: 70px; right: 16px; top: 35%; }
  .ar-globe-hint { width: 35px; height: 35px; right: 48px; top: 35%; }
  .note-card { width: 58%; }
  .lang-char { font-size: 1.1rem; }
  .themes-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
  .theme-card { width: calc(25% - 3px); aspect-ratio: 1; }
  .privacy-grid { grid-template-columns: 1fr; }
  .step-item { flex: 0 0 100%; }
  .hero { padding: 100px 20px 40px; }
  .hero-sphere-wrap { max-width: 360px; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .container { padding: 0 20px; }
  .section-pad { padding: 72px 0; }
}

.bento-card, .privacy-card, .nav, .mobile-menu, .theme-toggle, .nav-cta,
.btn-primary, .btn-secondary, .faq-question, .hero-badge, .footer {
  transition-property: background, color, border-color, opacity, transform;
  transition-duration: 0.4s;
}

