/* Base */
:root {
  --bg: #0C0E14;
  --surface: #13161F;
  --surface-alt: #1A1E2A;
  --border: #1F2333;
  --fg: #E2E5F0;
  --fg-muted: #8890A8;
  --accent: #0A84FF;
  --accent-dim: rgba(10, 132, 255, 0.12);
  --green: #34C759;
  --amber: #FFB340;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* Hero */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px 72px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* Hero Search */
.hero-search-block {
  margin-bottom: 56px;
}
.search-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 8px 8px 16px;
  max-width: 540px;
  width: 100%;
  cursor: text;
  transition: border-color 0.2s;
}
.search-pill:hover { border-color: #2A3048; }
.search-icon { flex-shrink: 0; }
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  cursor: text;
}
.search-input::placeholder { color: var(--fg-muted); }
.search-badge {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  flex-shrink: 0;
  cursor: pointer;
}
.hero-hint {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 14px;
  opacity: 0.7;
}

/* Hero Visual - DNS Timeline */
.hero-visual {
  display: flex;
  justify-content: center;
}
.dns-timeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  width: 100%;
  max-width: 640px;
}
.timeline-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.timeline-track {
  position: relative;
}
.timeline-years {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.timeline-years span {
  font-size: 11px;
  color: var(--fg-muted);
  font-family: 'Courier New', monospace;
}
.timeline-bar {
  position: relative;
  height: 10px;
  background: var(--surface-alt);
  border-radius: 5px;
  overflow: visible;
}
.timeline-segments {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}
.segment { height: 100%; }
.seg-a { background: #1E3A5F; }
.seg-b { background: #0A84FF; }
.seg-c { background: #1A4D3E; }
.seg-d { background: #0A84FF; opacity: 0.5; }
.seg-e { background: #1E3A5F; opacity: 0.6; }
.timeline-scrubber {
  position: absolute;
  top: -4px;
  left: 52%;
}
.scrubber-line {
  width: 1px;
  height: 18px;
  background: var(--accent);
  margin: 0 auto;
}
.scrubber-handle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto;
  box-shadow: 0 0 8px rgba(10, 132, 255, 0.6);
}
.timeline-record {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface-alt);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.record-label {
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.record-value {
  display: flex;
  align-items: center;
  gap: 10px;
}
.record-dots {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 2px;
}
.record-value code {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  color: var(--fg);
  font-weight: 600;
}
.record-meta {
  font-size: 12px;
  color: var(--fg-muted);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.record-ttl {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 6px;
  opacity: 0.6;
}

/* Timeline Demo Section */
.timeline-demo {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 32px;
}
.timeline-demo-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.timeline-demo-copy h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--fg);
  margin-bottom: 20px;
}
.timeline-demo-copy p {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Change Log */
.change-log {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.change-entry {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.change-entry:last-child { border-bottom: none; }
.change-entry.fade { opacity: 0.35; }
.change-date {
  font-size: 11px;
  color: var(--fg-muted);
  font-family: 'Courier New', monospace;
}
.change-detail {
  display: flex;
  align-items: center;
  gap: 10px;
}
.record-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}
.change-detail code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--fg);
}
.change-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.change-tag.new { color: var(--green); border-color: rgba(52, 199, 89, 0.3); background: rgba(52, 199, 89, 0.08); }

/* Features */
.features {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px;
}
.features-header {
  text-align: center;
  margin-bottom: 56px;
}
.features-header h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 16px;
}
.features-header p {
  font-size: 17px;
  color: var(--fg-muted);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: #2A3048; }
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Use Cases */
.usecases {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 32px;
}
.usecases h2 {
  max-width: 1080px;
  margin: 0 auto 48px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--fg);
}
.usecase-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.usecase-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.usecase-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.usecase-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.usecase-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* Manifesto */
.manifesto {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 32px;
  text-align: center;
}
.manifesto-inner { max-width: 680px; margin: 0 auto; }
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 32px;
}
.manifesto-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--fg);
}
.footer-note {
  font-size: 13px;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 56px 24px 48px; }
  .hero-headline { letter-spacing: -1px; }
  .timeline-demo-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner { padding: 0 24px; }
  .manifesto { padding: 64px 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .dns-timeline { padding: 16px; }
}