:root {
  --bg: #0a0d12;
  --surface: #111722;
  --surface-2: #171f2d;
  --text: #f5f7fb;
  --muted: #9aa6b5;
  --line: #273142;
  --accent: #7ee787;
  --accent-2: #58a6ff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(88,166,255,.10), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgba(126,231,135,.08), transparent 24rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,13,18,.78);
  backdrop-filter: blur(14px);
}

.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -.04em; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 28px; color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--text); }
.menu-button { display: none; background: none; border: 0; color: var(--text); font-size: 1.4rem; }

.section { max-width: var(--max); margin: 0 auto; padding: 100px 24px; }
.hero { min-height: 78vh; display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; }
.eyebrow { color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .16em; margin-bottom: 18px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; margin-top: 0; }
h1 { font-size: clamp(3.1rem, 7vw, 6.7rem); margin-bottom: 28px; max-width: 940px; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); margin-bottom: 22px; }
h3 { font-size: 1.65rem; margin: 14px 0; }
.hero-text, .section-heading > p:last-child, .about-copy { color: var(--muted); font-size: 1.08rem; max-width: 730px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.button { padding: 13px 18px; border-radius: 9px; border: 1px solid var(--line); font-weight: 700; }
.button.primary { background: var(--text); color: var(--bg); }
.button.secondary { background: transparent; }
.button:hover { transform: translateY(-2px); transition: .2s ease; }

.hero-panel { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(17,23,34,.78); box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.terminal-top { display: flex; gap: 7px; padding: 14px; border-bottom: 1px solid var(--line); }
.terminal-top span { width: 9px; height: 9px; border-radius: 50%; background: #536070; }
.terminal-body { padding: 26px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.terminal-body strong, .success { color: var(--accent); }
.muted { color: var(--muted); }

.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; border-top: 1px solid var(--line); }
.about-copy p { margin-top: 0; margin-bottom: 18px; }

.project-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { position: relative; padding: 28px; min-height: 320px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(23,31,45,.76), rgba(17,23,34,.62)); display: flex; flex-direction: column; justify-content: flex-end; }
.project-card.featured { grid-column: span 2; min-height: 390px; }
.project-card p { color: var(--muted); max-width: 780px; }
.project-number { position: absolute; top: 22px; right: 24px; font-size: .82rem; color: #667387; font-weight: 700; }
.status { display: inline-flex; width: max-content; padding: 5px 9px; border: 1px solid rgba(126,231,135,.3); color: var(--accent); border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.status.planned { color: var(--accent-2); border-color: rgba(88,166,255,.3); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { padding: 6px 9px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 7px; color: #b9c3cf; font-size: .78rem; }

.stack-section { border-top: 1px solid var(--line); }
.stack-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.stack-list span { font-size: 1rem; padding: 10px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; }

.contact { margin-top: 40px; margin-bottom: 80px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, rgba(88,166,255,.08), rgba(126,231,135,.06)); }
.contact p { color: var(--muted); }
footer { max-width: var(--max); margin: 0 auto; padding: 28px 24px 50px; border-top: 1px solid var(--line); color: #778394; font-size: .85rem; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
  .hero, .two-columns { grid-template-columns: 1fr; }
  .hero { gap: 42px; padding-top: 70px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .nav { display: none; position: absolute; top: 70px; left: 20px; right: 20px; padding: 18px; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .nav.open { display: flex; }
  .menu-button { display: block; }
  .section { padding: 75px 20px; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.6rem); }
}
