:root {
  --bg: #07080d;
  --bg-alt: #0d0f17;
  --surface: #12151f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef0f6;
  --muted: #8b93a7;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Subtle grid background */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, black 20%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 8, 13, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.site-header nav a:hover { color: var(--text); }
.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.menu-toggle {
  display: none;
  background: none; border: 0; color: var(--text);
  font-size: 1.5rem; cursor: pointer;
}

/* Hero */
.hero { padding: 110px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent); font-size: 0.85rem; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 24px;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin-bottom: 36px; }

.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--bg); box-shadow: 0 10px 30px rgba(94, 234, 212, 0.2); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn.big { font-size: 1.15rem; padding: 16px 30px; }

/* Terminal card */
.terminal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.terminal-bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a2f3d; }
.terminal pre { padding: 22px; font-size: 0.95rem; color: var(--muted); }
.terminal code { color: var(--text); }
.terminal pre { white-space: pre-wrap; }

/* Sections */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 40px; }
.intro { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin-bottom: 48px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.stat strong { display: block; font-size: 2.6rem; color: var(--accent); font-weight: 700; }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* Timeline */
.timeline { list-style: none; border-left: 1px solid var(--line); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 48px 36px; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 5px rgba(94, 234, 212, 0.15);
}
.when { color: var(--accent); font-size: 0.85rem; }
.timeline h3 { font-size: 1.25rem; margin: 6px 0 4px; }
.org { color: var(--accent-2); margin-bottom: 8px; }
.timeline p:last-child { color: var(--muted); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips span {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.chips span:hover { border-color: var(--accent); color: var(--text); }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s, border-color 0.3s;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.tag { font-size: 0.75rem; color: var(--accent-2); }
.project-card h3 { font-size: 1.3rem; margin: 14px 0 10px; }
.project-card p { color: var(--muted); margin-bottom: 18px; }
.more { color: var(--accent); font-weight: 600; }

/* Contact & footer */
.contact { text-align: center; }
.contact .eyebrow, .contact .intro { margin-left: auto; margin-right: auto; }
.contact h2 { margin-bottom: 14px; }
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .site-header nav {
    display: none;
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav-cta { margin: 12px 24px; text-align: center; }
}
