/* ── Tokens ───────────────────────────────────────── */
:root {
  --bg:          #0a0e0f;
  --surface:     #1a2a22;
  --accent:      #00ff88;
  --accent-dim:  #00cc6a;
  --text:        #ffffff;
  --muted:       #8892a4;
  --border:      rgba(0, 255, 136, 0.18);
  --font-mono:   'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-body:   'Inter', system-ui, sans-serif;
}

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ───────────────────────────────────── */
h1, h2, h3, .mono { font-family: var(--font-mono); }

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1rem; font-weight: 500; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ── Layout ───────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(0,255,136,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

/* Boot sequence — signature element */
.boot-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: type-in 1.2s steps(40, end) 0.3s forwards;
}

@keyframes type-in {
  from { width: 0; opacity: 1; }
  to   { width: 100%; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-line { animation: none; width: auto; opacity: 1; }
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-up 0.5s ease 1.6s forwards;
}

.hero h1 {
  opacity: 0;
  animation: fade-up 0.6s ease 1.8s forwards;
}

.hero-sub {
  margin-top: 1.25rem;
  color: var(--muted);
  max-width: 520px;
  font-size: 1.05rem;
  opacity: 0;
  animation: fade-up 0.6s ease 2s forwards;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.6s ease 2.2s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero-sub, .hero-actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--accent);
  color: #0a0e0f;
  border: 1px solid var(--accent);
  font-weight: 700;
}
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); color: #0a0e0f; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); text-decoration: none; }

/* ── Project Cards ────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.projects { display: grid; gap: 1.5rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.15s, background 0.15s;
}

.card:hover {
  border-color: var(--accent);
  background: rgba(26,42,34,0.9);
}

.card-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.card-title { font-size: 1.1rem; font-weight: 600; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(0,255,136,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,255,136,0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.card-body { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.card-body p + p { margin-top: 0.5rem; }

.card-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.card-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.card-links a::before { content: '→ '; }

/* ── About strip ──────────────────────────────────── */
.about { border-top: 1px solid var(--border); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.about-grid p { color: var(--muted); margin-top: 0.75rem; font-size: 0.95rem; }
.stat-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }

/* ── Footer ───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); font-size: 0.78rem; }
.footer-links a:hover { color: var(--accent); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
