/* ============================================
   AIJP — AI Janata Party
   Design Language: Government Lab Terminal
   ============================================ */

/* --- TYPEFACES (self-hosted, variable) --- */
/* Two families, two subsets each. Latin-ext is only fetched when a
   character in that range appears, so English pages pay for latin alone. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-raised: #111111;
  --bg-card: #0f0f0f;
  --border: #1a1a1a;
  --border-bright: #2a2a2a;
  --text: #e0e0e0;
  --text-dim: #a4a4a4;
  --text-muted: #808080;
  --accent: #FF6B00;
  --accent-dim: #FF6B0033;
  --green: #00FF88;
  --green-dim: #00FF8833;
  --yellow: #FFD600;
  --yellow-dim: #FFD60033;
  --red: #FF3333;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1200px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }
.dim { color: var(--text-dim); }
.prompt { color: var(--accent); font-family: var(--mono); }

/* --- TICKER --- */
.ticker {
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  overflow: hidden;
  white-space: nowrap;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 32px;
  line-height: 32px;
}

.ticker-track {
  display: inline-flex;
  gap: 60px;
  animation: ticker-scroll 60s linear infinite;
}

.ticker-track span {
  flex-shrink: 0;
}

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

/* --- NAV --- */
.nav {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
}

.logo-bracket {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.nav-links a {
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.2s !important;
}

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

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

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  flex-direction: column;
  gap: 20px;
  font-family: var(--mono);
  font-size: 14px;
  z-index: 998;
}

.mobile-menu a {
  color: var(--text-dim);
}

.mobile-menu.active {
  display: flex;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover {
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #FF8533;
  border-color: #FF8533;
}

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

.btn-icon {
  font-size: 10px;
}

.version-tag {
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border-bright);
  padding: 2px 8px;
  margin-left: 4px;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 108px 24px 64px;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  max-width: var(--max-w);
  width: 100%;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 8px 20px;
  margin-bottom: 40px;
  background: var(--accent-dim);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.live {
  background: var(--green);
  box-shadow: 0 0 8px var(--green-dim);
}

.status-dot.building {
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow-dim);
}

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

.hero-title {
  font-family: var(--mono);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -1px;
}

.hero-line-1 {
  display: block;
  color: var(--text);
}

.hero-line-2 {
  display: block;
  color: var(--text);
}

.hero-strong {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Glitch effect */
.glitch {
  position: relative;
  display: inline-block;
  color: var(--accent);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.glitch::before {
  color: var(--green);
  animation: glitch-1 3s infinite linear alternate-reverse;
  clip-path: inset(0 0 65% 0);
}

.glitch::after {
  color: var(--red);
  animation: glitch-2 3s infinite linear alternate-reverse;
  clip-path: inset(65% 0 0 0);
}

@keyframes glitch-1 {
  0%, 94% { transform: translate(0); }
  95% { transform: translate(-3px, 1px); }
  96% { transform: translate(3px, -1px); }
  97% { transform: translate(-1px, 2px); }
  98% { transform: translate(1px, -2px); }
  100% { transform: translate(0); }
}

@keyframes glitch-2 {
  0%, 94% { transform: translate(0); }
  95% { transform: translate(3px, -1px); }
  96% { transform: translate(-3px, 1px); }
  97% { transform: translate(1px, -2px); }
  98% { transform: translate(-1px, 2px); }
  100% { transform: translate(0); }
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 820px;
  margin: 0 auto 32px;
  line-height: 1.65;
  text-wrap: pretty;
}

.typing-line {
  display: block;
  margin-top: 14px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

/* The count closes the first scroll instead of being cropped by the fold.
   Top border matches the section rhythm below it. */
.stats-band {
  padding: 44px 24px 72px;
  border-top: 1px solid var(--border);
}

.stat {
  background: var(--bg);
  padding: 24px;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-note {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- SECTIONS --- */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 36px;
}

.section-tag {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-desc {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 640px;
  margin-top: 10px;
  line-height: 1.6;
}

/* --- ABOUT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text p {
  margin-bottom: 14px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.62;
}

.about-text .lead {
  font-size: 22px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

/* `p` in the selector is load-bearing: without it, `.about-text p` outranks
   this rule and the highlighted line renders in body grey on the accent tint. */
p.terminal-line {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  padding: 16px;
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
}

/* Terminal window */
.terminal-window {
  border: 1px solid var(--border-bright);
  background: var(--bg-card);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-bright);
}

.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #28CA41; }

.terminal-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 8px;
}

.terminal-body {
  padding: 16px;
}

.terminal-output p {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
}

.terminal-output .dim {
  color: var(--text-dim);
}

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

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

/* --- AGENTS / WHY --- */
.agents {
  background: var(--bg-raised);
}

.agents-list {
  max-width: 800px;
}

.agent-point {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.agent-point.visible {
  opacity: 1;
  transform: translateY(0);
}

.point-marker {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 2px;
}

.agent-point p {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.55;
}

.agent-point .punchline {
  color: var(--text);
  font-weight: 500;
}

/* --- INTERFACE --- */
.interface-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.interface-text p {
  margin-bottom: 14px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.62;
}

.interface-text .lead {
  font-size: 22px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

/* --- CANDIDATE TEST --- */
.test-block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.test-intro h3 {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.test-intro p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 18px;
}

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

.test-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 18px;
  transition: border-color 0.3s;
}

.test-card:hover {
  border-color: var(--border-bright);
}

.test-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 6px;
}

.test-card h4 {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.test-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* --- LAB --- */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.lab-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 22px;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.lab-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.lab-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.lab-card.visible:hover {
  transform: translateY(-2px);
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-dim);
}

.lab-card h3 {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.lab-card p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.lab-footer {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 700px;
  line-height: 1.8;
}

/* --- MANIFESTO --- */
.manifesto {
  background: var(--bg-raised);
}

.manifesto-list {
  max-width: 800px;
}

.manifesto-item {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.manifesto-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.manifesto-num {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  /* 3.3:1 on the raised background — legible at this size without
     shouting over the demand it labels. */
  color: #666666;
  flex-shrink: 0;
  line-height: 1;
}

.manifesto-content h3 {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.manifesto-content p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 8px;
}

.manifesto-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* --- ENROLLMENT --- */
.enroll-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.enroll-reqs h3 {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text);
}

.req-item {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.req-check {
  font-family: var(--mono);
  color: var(--green);
  font-size: 16px;
  flex-shrink: 0;
  padding-top: 2px;
}

.req-item strong {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}

.req-item p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

.enroll-note {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 22px;
  line-height: 1.6;
}

/* Form */
.terminal-init {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.enroll-form {
  margin-top: 12px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 10px 6px;
}

.form-group select:focus {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23FF6B00' stroke-width='1.5'/%3E%3C/svg%3E");
}

.form-group select:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.form-group select option {
  background: #0f0f0f;
  color: var(--text);
}

/* Nothing chosen yet: the placeholder reads as a hint, not as a value.
   Both selects are required, so :invalid is exactly "still on the placeholder".
   A picked option falls back to the green from the rule above. */
.form-group select:invalid {
  color: var(--text-muted);
}

.form-group select option[value=""] {
  color: var(--text-muted);
}

.form-group select optgroup {
  background: #0f0f0f;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  position: relative;
}

/* --- CONSENT --- */
.form-consent {
  margin-top: 4px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-dim);
}

.consent-label:hover {
  color: var(--text);
}

.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-bright);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}

.consent-label input[type="checkbox"]:checked {
  border-color: var(--accent);
  padding: 3px;
  background: var(--accent);
  background-clip: content-box;
}

.consent-label input[type="checkbox"]:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

/* --- CONTACT --- */
.contact {
  background: var(--bg-raised);
}

.contact-block {
  max-width: 760px;
  padding-top: 8px;
}

.contact-email {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(17px, 2.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 6px;
  transition: border-color 0.2s;
  word-break: break-word;
}

.contact-email:hover,
.contact-email:focus-visible {
  border-bottom-color: var(--accent);
}

.contact-note {
  margin-top: 28px;
  max-width: 620px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-muted);
}

.btn-loading,
.btn-success {
  display: none;
}

.btn-submit.loading .btn-default { display: none; }
.btn-submit.loading .btn-loading { display: inline-flex; align-items: center; gap: 4px; }

.btn-submit.success {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg);
}
.btn-submit.success .btn-default { display: none; }
.btn-submit.success .btn-success { display: inline; }

.loading-dots {
  animation: loading-dots 1.5s steps(4, end) infinite;
  display: inline-block;
  width: 1.5em;
  text-align: left;
  overflow: hidden;
  vertical-align: bottom;
}

@keyframes loading-dots {
  0% { width: 0; }
  25% { width: 0.5em; }
  50% { width: 1em; }
  75% { width: 1.5em; }
  100% { width: 0; }
}

.form-message {
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 16px;
  min-height: 20px;
}

.form-message.success {
  color: var(--green);
}

.form-message.error {
  color: var(--red);
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.footer-brand p {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 13px;
}

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

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

.footer-meta {
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.footer-meta p {
  margin-bottom: 4px;
}

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-legal p {
  max-width: 780px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  color: var(--text-muted);
}

/* --- REVEAL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

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

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .about-grid,
  .interface-grid,
  .lab-grid,
  .enroll-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

  .manifesto-item {
    gap: 20px;
  }

  .manifesto-num {
    font-size: 32px;
  }

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

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 16px 60px;
  }

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

  .stat {
    padding: 16px;
  }

  .stat-value {
    font-size: 24px;
  }

  .agent-point,
  .manifesto-item {
    flex-direction: column;
    gap: 12px;
  }

  .manifesto-num {
    font-size: 24px;
  }

  .section {
    padding: 80px 0;
  }
}
