@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@300;400;500&family=Space+Mono:wght@400;700&display=swap');

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

:root {
  --bg: #000000;
  --text: #EAEAEA;
  --accent: #6FE6FF;
  --muted: rgba(234, 234, 234, 0.35);
  --border: rgba(111, 230, 255, 0.15);
  --glow: rgba(111, 230, 255, 0.08);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: var(--bg);
}

/* ─── FADE IN ─── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade {
  animation: fadeIn 1.2s ease both;
}

.fade-delay-1 { animation-delay: 0.2s; }
.fade-delay-2 { animation-delay: 0.45s; }
.fade-delay-3 { animation-delay: 0.7s; }
.fade-delay-4 { animation-delay: 0.95s; }
.fade-delay-5 { animation-delay: 1.2s; }

/* ─── CURSOR BLINK (terminal) ─── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── HERO ─── */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
}

/* barely-there radial glow behind title */
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 720px 480px at 50% 46%,
    rgba(111, 230, 255, 0.028) 0%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── boot overlay ── */
#hero-boot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  z-index: 20;
  transition: opacity 0.7s ease;
}

#hero-boot.done {
  opacity: 0;
  pointer-events: none;
}

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

#hero-boot-lines {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', 'Space Mono', monospace;
  font-size: 0.68rem;
  line-height: 2.1;
  letter-spacing: 0.13em;
  text-align: left;
  width: 300px;
}

.boot-line {
  color: rgba(111, 230, 255, 0.4);
  opacity: 0;
  animation: bootFadeUp 0.22s ease forwards;
}

.boot-line.ready {
  color: rgba(111, 230, 255, 0.78);
}

/* ── hero content ── */
#hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
}

#hero-content.visible {
  opacity: 1;
}

/* ── title lockup: two-line hierarchy ── */
.hero-title {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  margin: 0;
}

.hero-title .title-line-1 {
  display: block;
  font-size: clamp(0.7rem, 1.6vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.5em;
  color: rgba(234, 234, 234, 0.38);
  margin-bottom: 14px;
}

.hero-title .title-line-2 {
  display: block;
  font-size: clamp(3.2rem, 8.5vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text);
}

/* ── status ── */
.hero-status {
  margin-top: 32px;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: var(--accent);
  text-transform: uppercase;
  opacity: 0.68;
  animation: statusPulse 12s ease-in-out 7s infinite;
}

.status-online {
  color: var(--accent);
}

@keyframes statusPulse {
  0%, 76%, 100% { opacity: 0.68; }
  84%            { opacity: 0.32; }
  92%            { opacity: 0.68; }
}

.tagline {
  margin-top: 32px;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.04em;
  max-width: 440px;
}

.pipeline {
  margin-top: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.btn-enter {
  margin-top: 52px;
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 14px 40px;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn-enter:hover {
  background: rgba(111, 230, 255, 0.06);
  box-shadow: 0 0 20px rgba(111, 230, 255, 0.18), inset 0 0 12px rgba(111, 230, 255, 0.04);
}

/* ─── SECTIONS ─── */
section {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 48px;
}

section + section {
  padding-top: 0;
}

/* ─── SYSTEM DESCRIPTION ─── */
#description p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.9;
}

#description .spacer {
  margin-bottom: 28px;
}

#description .keyword {
  color: var(--accent);
  font-style: normal;
}

/* ─── TERMINAL ─── */
#terminal {
  padding-top: 80px;
  padding-bottom: 120px;
  max-width: 700px;
}

.term-window {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(111, 230, 255, 0.05);
}

/* ── title bar ── */
.term-bar {
  background: #0A0A0A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: 36px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  user-select: none;
}

.term-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.term-title {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  text-align: center;
}

/* ── terminal body ── */
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93%            { opacity: 0.965; }
  94%            { opacity: 1; }
  95.5%          { opacity: 0.98; }
  96%            { opacity: 1; }
}

.term-body {
  background: #000000;
  padding: 24px 28px 28px;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  position: relative;
  min-height: 300px;
  animation: flicker 18s ease-in-out infinite;
}

/* scanlines — barely visible */
.term-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* ── line types ── */
.tl-line,
.tl-blank,
.tl-rule {
  display: block;
}

.tl-line {
  position: relative;
  z-index: 1;
  color: #6FE6FF;
  text-shadow: 0 0 8px rgba(111, 230, 255, 0.15);
}

/* empty line = one full line-height of space */
.tl-blank {
  height: 1.6em;
}

/* [SYSTEM LABELS] */
.tl-system {
  color: rgba(111, 230, 255, 0.45);
  text-shadow: none;
}

/* > commands */
.tl-prompt {
  color: rgba(111, 230, 255, 0.6);
  text-shadow: 0 0 8px rgba(111, 230, 255, 0.1);
}

/* main output text */
.tl-output {
  color: #6FE6FF;
  text-shadow: 0 0 8px rgba(111, 230, 255, 0.15);
}

/* key: value status lines */
.tl-data {
  color: rgba(111, 230, 255, 0.6);
  text-shadow: 0 0 8px rgba(111, 230, 255, 0.1);
  font-variant-numeric: tabular-nums;
}

/* section divider */
.tl-rule {
  display: block;
  height: 1px;
  background: rgba(111, 230, 255, 0.08);
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

/* blinking block cursor */
.tl-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #6FE6FF;
  vertical-align: text-bottom;
  animation: blink 1s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(111, 230, 255, 0.6);
  position: relative;
  z-index: 1;
  margin-left: 1px;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 28px 24px;
  text-align: center;
}

footer a {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ─── PRIVACY PAGE ─── */
.page-privacy {
  max-width: 860px;
  margin: 0 auto;
  padding: 120px 48px 100px;
}

.page-privacy .page-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 80px;
  opacity: 0.85;
}

.privacy-section {
  margin-bottom: 72px;
}

.privacy-section .section-id {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: block;
}

.privacy-section p {
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(234, 234, 234, 0.75);
  line-height: 1.9;
  margin-bottom: 12px;
}

.privacy-section ul {
  list-style: none;
  margin-top: 14px;
}

.privacy-section ul li {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(234, 234, 234, 0.65);
  line-height: 1.9;
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}

.privacy-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.delete-block {
  margin-top: 20px;
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 12px 28px;
  text-transform: uppercase;
}

.page-privacy footer {
  border: none;
  padding-top: 60px;
  text-align: left;
}

.back-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
  section, .page-privacy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .term-body {
    padding: 22px 18px 28px;
    font-size: 0.74rem;
  }

  .tagline {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .pipeline {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
}
