﻿:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --panel: rgba(20, 20, 20, 0.72);
  --panel-strong: #171717;
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --line: rgba(255, 255, 255, 0.08);
  --green: #34d399;
  --red: #ff4d4d;
  --red-soft: rgba(255, 77, 77, 0.14);
  --shadow: rgba(0, 0, 0, 0.28);
  --page-bg-start: #090909;
  --page-bg-end: #0d0d0d;
  --page-glow: rgba(255, 255, 255, 0.05);
  --brand-gradient: linear-gradient(135deg, #fff, #d8d8d8);
  --brand-text: #0a0a0a;
  --primary-button-gradient: linear-gradient(135deg, #fff, #d9d9d9);
  --primary-button-text: #090909;
  --primary-button-glow: rgba(255,255,255,0.14);
  --nav-highlight: linear-gradient(90deg, #fff, rgba(255,255,255,0.5));
  --glitch-a: rgba(255, 255, 255, 0.98);
  --glitch-b: rgba(0, 0, 0, 0.95);
  --typewriter-text: rgba(245, 245, 245, 0.96);
  --typewriter-caret: rgba(255,255,255,0.8);
  --toggle-bg: rgba(17, 17, 17, 0.9);
  --toggle-border: rgba(255,255,255,0.12);
  --toggle-text: #f5f5f5;
}

body.light-theme {
  --page-bg-start: #f7f5f2;
  --page-bg-end: #efeae3;
  --page-glow: rgba(17, 17, 17, 0.1);
  --brand-gradient: linear-gradient(135deg, #111111, #444444);
  --brand-text: #f5f5f5;
  --primary-button-gradient: linear-gradient(135deg, #111111, #2f2f2f);
  --primary-button-text: #f7f7f7;
  --primary-button-glow: rgba(17,17,17,0.14);
  --nav-highlight: linear-gradient(90deg, #111111, rgba(17,17,17,0.45));
  --text: #111111;
  --muted: #4d4d4d;
  --line: rgba(17, 17, 17, 0.12);
  --glitch-a: rgba(17, 17, 17, 0.98);
  --glitch-b: rgba(255, 255, 255, 0.95);
  --typewriter-text: rgba(17, 17, 17, 0.96);
  --typewriter-caret: rgba(17,17,17,0.8);
  --panel: rgba(255,255,255,0.72);
  --panel-strong: #f9f9f9;
  --toggle-bg: rgba(255,255,255,0.78);
  --toggle-border: rgba(17, 17, 17, 0.12);
  --toggle-text: #111111;
}

.warning-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 5, 8, 0.62);
  backdrop-filter: blur(24px) saturate(0.7) brightness(0.42);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.warning-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 80, 80, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.warning-overlay:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.warning-overlay.is-visible ~ .page-shell {
  filter: blur(18px) saturate(0.55) brightness(0.5);
  transform: scale(1.02);
  transition: filter 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.warning-panel {
  position: relative;
  width: min(680px, 100%);
  padding: 2rem 2rem 1.75rem;
  border: 1px solid rgba(255, 120, 120, 0.38);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(20, 10, 12, 0.96), rgba(10, 7, 8, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 77, 77, 0.12),
    0 26px 60px rgba(0, 0, 0, 0.76),
    0 0 28px rgba(255, 77, 77, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: scale(0.96) translateY(16px);
  opacity: 0;
  animation: panel-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.warning-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.05), transparent 28%, rgba(255,77,77,0.12) 48%, transparent 62%, rgba(255,255,255,0.04));
  pointer-events: none;
}

.warning-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.warning-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.warning-kicker::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 77, 77, 0.9);
}

.warning-code {
  color: rgba(255, 177, 177, 0.85);
}

.warning-title {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  color: #fff5f5;
  font-size: clamp(2.6rem, 4vw, 4.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 77, 77, 0.45), 0 0 32px rgba(255, 77, 77, 0.18);
  animation: warning-flicker 2.8s steps(1, end) infinite;
}

.warning-title::before,
.warning-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.warning-title::before {
  color: rgba(255, 90, 90, 0.8);
  transform: translate(-4px, 0);
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 41%);
  filter: blur(0.5px);
  animation: warning-glitch-1 0.9s infinite steps(1, end);
}

.warning-title::after {
  color: rgba(255, 220, 220, 0.72);
  transform: translate(4px, 0);
  clip-path: polygon(0 58%, 100% 52%, 100% 100%, 0 100%);
  filter: blur(0.4px);
  animation: warning-glitch-2 1.1s infinite steps(1, end);
}

.warning-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 620px;
}

.warning-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  min-width: 186px;
  min-height: 56px;
  padding: 0.95rem 1.5rem;
  border: 1px solid rgba(255, 90, 90, 0.9);
  border-radius: 0;
  background: linear-gradient(180deg, #ff2929 0%, #f20808 38%, #a60606 100%);
  color: #fff4f4;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 8px 18px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(255, 33, 33, 0.9),
    inset 0 0 0 rgba(255,255,255,0);
}

.warning-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

.warning-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.22), transparent 45%);
  pointer-events: none;
}

.warning-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 130, 130, 1);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 12px 26px rgba(0, 0, 0, 0.35),
    0 0 26px rgba(255, 33, 33, 1),
    inset 0 0 0 rgba(255,255,255,0);
}

.warning-btn:active {
  transform: translateY(0) scale(0.99);
}

.theme-toggle-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--toggle-border);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(234,234,234,0.92));
  color: #111111;
  box-shadow: 0 10px 18px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.35s ease, opacity 0.35s ease;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.22), transparent 38%);
  pointer-events: none;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.12);
}

.theme-toggle:active {
  transform: translateY(0) scale(0.98);
}

.theme-icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  transition: opacity 0.32s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease;
}

.theme-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
  overflow: visible;
}

.theme-icon-sun {
  color: #111111;
  opacity: 1;
  transform: rotate(0deg) scale(1);
  filter: drop-shadow(0 0 7px rgba(255,255,255,0.18));
}

.theme-icon-sun svg {
  stroke-linecap: round;
}

.theme-icon-moon {
  color: #111111;
  opacity: 0;
  transform: rotate(-28deg) scale(0.75);
  filter: drop-shadow(0 0 8px rgba(255,198,90,0.3));
}

.theme-icon-moon svg {
  fill: currentColor;
  stroke: none;
}

body.light-theme .theme-toggle {
  background: linear-gradient(180deg, rgba(17,17,17,0.96), rgba(30,30,30,0.94));
  color: #f5f5f5;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}

body.light-theme .theme-icon-sun {
  color: #f5f5f5;
  opacity: 0;
  transform: rotate(30deg) scale(0.7);
}

body.light-theme .theme-icon-moon {
  color: #f5f5f5;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

@keyframes warning-glitch-1 {
  0%, 100% { transform: translate(0, 0); opacity: 0.8; }
  12% { transform: translate(-5px, 2px); opacity: 1; }
  24% { transform: translate(3px, -1px); opacity: 0.7; }
  38% { transform: translate(-7px, 1px); opacity: 1; }
  52% { transform: translate(1px, 3px); opacity: 0.8; }
  66% { transform: translate(5px, -2px); opacity: 1; }
  80% { transform: translate(-2px, 1px); opacity: 0.9; }
}

@keyframes warning-glitch-2 {
  0%, 100% { transform: translate(0, 0); opacity: 0.7; }
  16% { transform: translate(5px, -2px); opacity: 1; }
  32% { transform: translate(-4px, 1px); opacity: 0.8; }
  48% { transform: translate(7px, 0); opacity: 1; }
  64% { transform: translate(-3px, -2px); opacity: 0.8; }
  82% { transform: translate(2px, 2px); opacity: 1; }
}

@keyframes warning-flicker {
  0%, 100% { opacity: 1; }
  10% { opacity: 0.96; }
  12% { opacity: 0.88; }
  14% { opacity: 1; }
  42% { opacity: 0.94; }
  45% { opacity: 1; }
  80% { opacity: 0.97; }
  82% { opacity: 0.88; }
  84% { opacity: 1; }
}

@keyframes panel-enter {
  0% {
    transform: scale(0.96) translateY(18px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

body[data-lang="ko"] {
  --page-bg-start: #070b12;
  --page-bg-end: #111827;
  --page-glow: rgba(96, 165, 250, 0.16);
  --brand-gradient: linear-gradient(135deg, #f87171 0%, #60a5fa 100%);
  --brand-text: #ffffff;
  --primary-button-gradient: linear-gradient(135deg, #fca5a5 0%, #93c5fd 100%);
  --primary-button-text: #0b1020;
  --primary-button-glow: rgba(96, 165, 250, 0.35);
  --nav-highlight: linear-gradient(90deg, #fca5a5, #93c5fd);
  --line: rgba(255, 255, 255, 0.12);
  --glitch-a: rgba(239, 68, 68, 0.96);
  --glitch-b: rgba(59, 130, 246, 0.94);
  --typewriter-text: rgba(255, 217, 217, 0.96);
  --typewriter-caret: rgba(96, 165, 250, 0.8);
}

body[data-lang="zh"] {
  --page-bg-start: #140909;
  --page-bg-end: #2a0b0b;
  --page-glow: rgba(239, 68, 68, 0.16);
  --brand-gradient: linear-gradient(135deg, #fca5a5 0%, #ef4444 100%);
  --brand-text: #fff7f7;
  --primary-button-gradient: linear-gradient(135deg, #fca5a5 0%, #ef4444 100%);
  --primary-button-text: #1b0a0a;
  --primary-button-glow: rgba(239, 68, 68, 0.28);
  --nav-highlight: linear-gradient(90deg, #fca5a5, #ef4444);
  --line: rgba(255, 255, 255, 0.12);
  --glitch-a: rgba(248, 113, 113, 0.96);
  --glitch-b: rgba(127, 29, 29, 0.9);
  --typewriter-text: rgba(255, 220, 220, 0.96);
  --typewriter-caret: rgba(239, 68, 68, 0.8);
}

body.light-theme[data-lang="en"] {
  --page-bg-start: #f7f5f2;
  --page-bg-end: #efeae3;
  --page-glow: rgba(17, 17, 17, 0.1);
  --brand-gradient: linear-gradient(135deg, #111111, #444444);
  --brand-text: #f5f5f5;
  --primary-button-gradient: linear-gradient(135deg, #111111, #2f2f2f);
  --primary-button-text: #f7f7f7;
  --primary-button-glow: rgba(17,17,17,0.14);
  --nav-highlight: linear-gradient(90deg, #111111, rgba(17,17,17,0.45));
  --text: #111111;
  --muted: #4d4d4d;
  --line: rgba(17, 17, 17, 0.12);
  --glitch-a: rgba(17, 17, 17, 0.98);
  --glitch-b: rgba(255, 255, 255, 0.95);
  --typewriter-text: rgba(17, 17, 17, 0.96);
  --typewriter-caret: rgba(17,17,17,0.8);
  --panel: rgba(255,255,255,0.72);
  --panel-strong: #f9f9f9;
  --toggle-bg: rgba(255,255,255,0.78);
  --toggle-border: rgba(17, 17, 17, 0.12);
  --toggle-text: #111111;
}

body[data-lang="zh"] .theme-toggle-wrap {
  display: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--page-bg-start) 0%, var(--page-bg-end) 100%);
  transition: background 0.35s ease, color 0.35s ease;
}

body.light-theme {
  background: linear-gradient(180deg, #f5f3ef 0%, #eee9e1 100%);
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(to right, rgba(17,17,17,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,0.03) 1px, transparent 1px),
    radial-gradient(circle at top, rgba(17,17,17,0.04), transparent 28%),
    var(--page-bg-start);
  background-size: 64px 64px, 64px 64px, auto, auto;
  transition: background 0.35s ease;
}

body.light-theme .page-shell {
  background:
    linear-gradient(to right, rgba(17,17,17,0.016) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,0.016) 1px, transparent 1px),
    radial-gradient(circle at top, rgba(17,17,17,0.04), transparent 28%),
    var(--page-bg-start);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.04), transparent 30%);
  pointer-events: none;
}

.page-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(72px);
  background: var(--page-glow);
  pointer-events: none;
}

.page-glow-left {
  left: 8%;
  top: 4%;
}

.page-glow-right {
  right: 10%;
  bottom: 8%;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 2rem));
  padding: 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(16, 16, 16, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px var(--shadow);
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme .topbar {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.07);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  background: var(--brand-gradient);
  color: var(--brand-text);
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #b8b8b8;
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--nav-highlight);
  transition: width 0.2s ease;
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255,255,255,0.02);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 0.6rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.is-active {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  min-width: 8rem;
  padding: 0 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nav-actions .btn {
  min-width: 8.2rem;
  width: 8.2rem;
}

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

.btn-primary {
  background: var(--primary-button-gradient);
  color: var(--primary-button-text);
  box-shadow: 0 12px 24px var(--primary-button-glow);
}

.btn-ghost,
.btn-secondary {
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

main {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8.5rem 0 5rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 0 3rem;
  min-height: 720px;
}

.spacer-lower {
  height: 420px;
  width: 100%;
}

.terminal-section {
  margin-top: 7rem;
  padding: 2.5rem 0 4rem;
}

.terminal-window {
  position: relative;
  width: min(1160px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(18,18,20,0.98), rgba(8,8,10,1));
  box-shadow: 0 30px 90px rgba(0,0,0,0.48);
  overflow: hidden;
}

.terminal-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 24%,
    rgba(255,255,255,0.08) 38%,
    rgba(255,255,255,0.18) 45%,
    rgba(0,0,0,0.18) 52%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-135%);
  animation: beam-sweep 8s ease-in-out infinite;
  pointer-events: none;
}

.terminal-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.6;
  pointer-events: none;
}

@keyframes beam-sweep {
  0% { transform: translateX(-135%); }
  30% { transform: translateX(110%); }
  100% { transform: translateX(110%); }
}

.terminal-titlebar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 58px;
  padding: 0 1.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(37,37,41,0.96), rgba(25,25,29,0.94));
}

.traffic-lights {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  padding-right: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.24);
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.title-text {
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.78);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.terminal-body {
  position: relative;
  z-index: 1;
  padding: 1.8rem 1.35rem 2rem;
  background: rgba(7,7,9,0.98);
}

.access-group {
  margin-bottom: 1.5rem;
}

.access-group:last-child {
  margin-bottom: 0;
}

.group-label {
  margin: 0 0 0.8rem;
  padding-left: 0.25rem;
  color: rgba(255,255,255,0.78);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.terminal-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 64px;
  padding: 1rem 1.15rem 1rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.015);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  color: #eff5fb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}

.terminal-option::before {
  content: ">";
  color: rgba(255,255,255,0.86);
  font-weight: 700;
  margin-right: 0.15rem;
}

.terminal-option + .terminal-option {
  margin-top: 0.85rem;
}

.option-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.option-name {
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.option-separator {
  color: rgba(255,255,255,0.5);
}

.option-copy {
  color: rgba(255,255,255,0.92);
}

@media (max-width: 640px) {
  .terminal-section {
    margin-top: 4.5rem;
  }

  .terminal-option {
    flex-wrap: wrap;
    gap: 0.2rem 0.6rem;
    padding: 0.9rem 0.8rem;
  }

  .option-copy {
    width: 100%;
    line-height: 1.5;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.85);
}

.hero h1 {
  margin: 2rem auto 1.25rem;
  max-width: 900px;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.065em;
  font-weight: 800;
  transition: color 0.3s ease;
}

body.light-theme .hero h1,
body.light-theme .feature-copy h2,
body.light-theme .feature-copy li,
body.light-theme .terminal-option,
body.light-theme .group-label,
body.light-theme .title-text,
body.light-theme .terminal-option .option-prefix,
body.light-theme .terminal-option .option-name,
body.light-theme .terminal-option .option-copy {
  color: #111111;
}

.hero h1 span {
  color: #d9d9d9;
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.typewriter {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  min-height: 1.8em;
  color: var(--typewriter-text);
  border-right: 2px solid var(--typewriter-caret);
  white-space: normal;
  overflow: hidden;
  animation: blink-caret 0.8s step-end infinite;
}

.glitch-text {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--text);
  text-shadow: none;
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
}

@keyframes blink-caret {
  0%, 50% { border-color: rgba(255,255,255,0.9); }
  50.01%, 100% { border-color: transparent; }
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-large {
  min-width: 180px;
  min-height: 52px;
  font-size: 1rem;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 25%),
    linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
  color: var(--text);
}

.auth-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  box-sizing: border-box;
}

.auth-card {
  width: min(760px, 92vw);
  max-width: 760px;
  margin: 0;
  padding: 2rem 1.6rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(17,17,17,0.9);
  box-shadow: 0 30px 80px rgba(0,0,0,0.42);
  box-sizing: border-box;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.8rem;
  background: var(--primary-button-gradient);
  color: var(--primary-button-text);
  font-weight: 800;
}

.auth-card h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.1;
}

.auth-subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
  text-align: left;
}

.auth-field label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font: inherit;
}

.verification-box {
  padding: 0.9rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.02);
}

.verification-question {
  margin-bottom: 0.6rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.auth-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0.2rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-meta a,
.auth-switch a,
.auth-back a {
  color: var(--text);
  text-decoration: none;
}

.auth-actions {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.auth-switch,
.auth-back {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-switch a,
.auth-back a {
  font-weight: 700;
}

@media (max-width: 640px) {
  .nav-actions .btn {
    min-width: 7rem;
    width: 7rem;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 1.2rem;
  max-width: 900px;
  margin: 3rem auto 0;
}

.stats article {
  padding: 1.6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(22, 22, 22, 0.7);
}

.stats strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: rgba(22, 22, 22, 0.7);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme .feature-panel,
body.light-theme .stats article,
body.light-theme .visual-card,
body.light-theme .terminal-window,
body.light-theme .terminal-body {
  background: rgba(255,255,255,0.6);
  border-color: rgba(17,17,17,0.08);
}

.tag {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-copy h2 {
  margin: 1.1rem 0 0.9rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.06em;
}

.feature-copy p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.8rem;
  color: #ebebeb;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text);
  font-weight: 700;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(12,12,12,0.8);
  overflow: hidden;
}

.visual-glow {
  position: absolute;
  top: 18%;
  right: 18%;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  filter: blur(38px);
}

.visual-block {
  position: absolute;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.visual-block-lg {
  width: 58%;
  height: 52%;
  left: 18%;
  top: 18%;
}

.visual-block-sm {
  width: 24%;
  height: 24%;
  right: 18%;
  bottom: 18%;
}

.visual-block-sm.alt {
  left: 18%;
  right: auto;
}

@media (max-width: 820px) {
  .topbar {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .feature-panel {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 0.85rem 1rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .btn {
    flex: 1;
  }

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

  main {
    padding-top: 9rem;
  }
}
