:root {
  --bg: #050608;
  --surface: rgba(12, 14, 18, 0.92);
  --glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.07);
  --border-bright: rgba(255, 102, 0, 0.35);
  --text: #e8eaef;
  --muted: #6b7280;
  --dim: #3d4450;
  --accent: #ff6600;
  --accent-dim: rgba(255, 102, 0, 0.12);
  --green: #34d399;
  --blue: #38bdf8;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 102, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 102, 0, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black, transparent);
}

.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(255, 102, 0, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 90% 80%, rgba(56, 189, 248, 0.05), transparent);
}

/* ── Shell ── */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

.term-window {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(255, 102, 0, 0.04);
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

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

.term-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.term-dots span:nth-child(1) { background: #ff5f57; }
.term-dots span:nth-child(2) { background: #febc2e; }
.term-dots span:nth-child(3) { background: #28c840; }

.term-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex: 1;
  text-align: center;
}

.term-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  padding: 0.25rem 0.45rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.term-body {
  padding: 1.5rem 1.25rem 2rem;
}

@media (min-width: 640px) {
  .term-body { padding: 2rem 2rem 2.5rem; }
}

/* ── Prompt / hero ── */
.prompt-line {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.prompt-line .user { color: var(--green); }
.prompt-line .path { color: var(--blue); }
.prompt-line .cmd { color: var(--text); }

.hero-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-bright);
  background: var(--accent-dim);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 18ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  margin-top: 1rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary {
  background: var(--accent);
  color: #0a0604;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: #ff7722;
  box-shadow: 0 0 24px rgba(255, 102, 0, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-bright);
  background: var(--accent-dim);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
}

.metric {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: var(--glass);
  font-family: var(--mono);
}

.metric strong {
  display: block;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
}

.metric span {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.15rem;
  display: block;
}

/* ── Sections ── */
.section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.section-head::before {
  content: "//";
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
}

/* ── Pillars grid ── */
.pillar-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

.pillar {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.15rem;
  background: var(--glass);
  transition: border-color 0.2s;
}

.pillar:hover { border-color: rgba(255, 102, 0, 0.2); }

.pillar-id {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pillar h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.35rem 0 0.4rem;
}

.pillar p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Brands ── */
.brand-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--glass);
  color: var(--text);
  text-decoration: none;
  font-family: var(--mono);
  transition: all 0.15s;
}

.brand:hover {
  border-color: var(--border-bright);
  background: var(--accent-dim);
}

.brand-name { font-size: 0.78rem; font-weight: 600; }
.brand-desc { font-size: 0.62rem; color: var(--muted); }

/* ── Roadmap timeline ── */
.roadmap-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.roadmap-tab {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.roadmap-tab.active {
  border-color: var(--border-bright);
  background: var(--accent-dim);
  color: var(--accent);
}

.roadmap-panel { display: none; }
.roadmap-panel.active { display: block; }

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.tl-item {
  position: relative;
  padding-bottom: 1.25rem;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
}

.tl-item.future::before {
  border-color: var(--blue);
  background: rgba(56, 189, 248, 0.15);
}

.tl-year {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.tl-item.future .tl-year { color: var(--blue); }

.tl-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0.15rem 0 0.2rem;
}

.tl-desc {
  font-size: 0.78rem;
  color: var(--muted);
}

.tl-status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  margin-top: 0.35rem;
}

.tl-status.live {
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.tl-status.planned {
  color: var(--blue);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* ── Contact ── */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.contact-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.contact-links a:hover { border-color: var(--accent); }

/* ── Footer ── */
.term-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
}

.term-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.blink {
  animation: blink 1.2s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Mobile ── */
@media (max-width: 639px) {
  .shell { padding: 0.5rem 0.65rem 2.5rem; }

  .term-bar {
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }

  .term-dots { display: none; }

  .term-title {
    font-size: 0.62rem;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .term-body { padding: 1.15rem 0.85rem 1.75rem; }

  .prompt-line {
    font-size: 0.65rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .hero h1 { max-width: none; font-size: clamp(1.75rem, 8vw, 2.5rem); }

  .hero-lead { font-size: 0.88rem; }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: calc(50% - 0.35rem);
  }

  .roadmap-tabs {
    flex-wrap: wrap;
  }

  .roadmap-tab {
    flex: 1 1 auto;
    text-align: center;
    min-width: calc(50% - 0.25rem);
  }

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

  .term-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.85rem 0.85rem;
  }

  .term-footer .blink { display: none; }
}

@media (max-width: 380px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; min-width: 0; }
  .brand-grid { grid-template-columns: 1fr; }
}
