:root {
  --background: oklch(0.985 0.008 90);
  --foreground: oklch(0.18 0 0);
  --surface: #ffffff;
  --muted: oklch(0.62 0 0);
  --accent: oklch(0.66 0.19 42);
  --accent-foreground: #ffffff;
  --border: rgba(0,0,0,0.1);
  --radius: 0.75rem;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
::selection { background: var(--accent); color: var(--accent-foreground); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }
.accent { color: var(--accent); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { animation: reveal-up .8s var(--ease-out-expo) both; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(252, 250, 244, 0.8);
  backdrop-filter: blur(12px);
}
.nav-inner { height: 4rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .5rem; }
.brand-mark { width: 1.5rem; height: 1.5rem; background: var(--foreground); border-radius: 4px; }
.brand-mark.sm { width: 1.25rem; height: 1.25rem; }
.brand-name { font-family: 'JetBrains Mono', monospace; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; font-size: 1.125rem; }
.nav-links { display: none; align-items: center; gap: 2rem; font-size: .875rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
@media (min-width: 768px) { .nav-links { display: flex; } }

.btn-pill-dark {
  background: var(--foreground); color: var(--background);
  padding: .5rem 1rem; border-radius: 9999px;
  transition: background .3s;
}
.btn-pill-dark:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-pill-outline {
  border: 1px solid var(--border); padding: .5rem 1rem; border-radius: 9999px;
  transition: background .2s;
}
.btn-pill-outline:hover { background: var(--surface); }
.btn-lg { padding: 1rem 2rem; font-weight: 600; display: inline-block; }

/* Hero */
.hero { padding: 6rem 1.5rem 4rem; max-width: 80rem; margin: 0 auto; }
.hero-content { max-width: 48rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .25rem .75rem; border: 1px solid var(--border);
  background: var(--surface); border-radius: 9999px; margin-bottom: 2rem;
}
.eyebrow span:last-child {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .5; } }

.hero-title {
  font-size: 3.75rem; font-weight: 500; letter-spacing: -0.025em;
  line-height: 0.9; margin-bottom: 2rem; text-wrap: balance;
}
@media (min-width: 768px) { .hero-title { font-size: 6rem; } }
.hero-sub {
  font-size: 1.25rem; color: var(--muted); max-width: 50ch;
  line-height: 1.625; margin-bottom: 2.5rem; text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-image { margin-top: 5rem; }
.hero-image img {
  width: 100%; aspect-ratio: 21/9; object-fit: cover;
  border-radius: 1rem; outline: 1px solid rgba(0,0,0,0.05); outline-offset: -1px;
}

/* Sections */
.section { padding: 6rem 0; }
.bordered { border-top: 1px solid var(--border); }
.section-head {
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: flex-start; justify-content: space-between; margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; }
}
.section-head h2 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; }
.mono-tag {
  font-family: 'JetBrains Mono', monospace; font-size: .75rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.2em;
}

/* Services */
.services-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: .75rem; overflow: hidden;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service { background: var(--background); padding: 2rem; transition: background .2s; }
.service:hover { background: var(--surface); }
.service .code { font-family: 'JetBrains Mono', monospace; font-size: .75rem; color: var(--accent); margin-bottom: 1rem; }
.service h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.service p { color: var(--muted); font-size: .875rem; line-height: 1.625; }

/* Curriculum */
.dark-section { background: var(--foreground); color: var(--background); }
.curriculum-grid {
  display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center;
}
@media (min-width: 768px) { .curriculum-grid { grid-template-columns: 1fr 1fr; } }
.dark-section h2 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 2rem; }
.curriculum-sub { color: rgba(252,250,244,0.6); max-width: 40ch; margin-bottom: 3rem; }
.stages { display: flex; flex-direction: column; gap: 1.5rem; }
.stage { display: flex; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.stage.last { border-bottom: 0; }
.stage-key { font-family: 'JetBrains Mono', monospace; color: var(--accent); }
.stage h4 { font-weight: 700; margin-bottom: .25rem; }
.stage p { font-size: .875rem; color: rgba(252,250,244,0.5); }
.dark-section img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: .75rem; border: 1px solid rgba(255,255,255,0.1);
}

/* Credentials */
.credentials-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .credentials-grid { grid-template-columns: 2fr 1fr; } }
.credentials-quote blockquote {
  font-size: 1.875rem; font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.25; text-wrap: pretty;
}
.author { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }
.avatar { width: 3rem; height: 3rem; border-radius: 9999px; background: oklch(0.95 0.005 90); }
.name { font-weight: 700; }
.role { font-size: .875rem; color: var(--muted); }
.stats { border-left: 1px solid var(--border); padding-left: 3rem; display: flex; flex-direction: column; justify-content: center; gap: 2rem; }
.stat-num { font-size: 2.25rem; font-weight: 700; color: var(--accent); margin-bottom: .25rem; }
.stat-label { font-family: 'JetBrains Mono', monospace; font-size: .75rem; text-transform: uppercase; letter-spacing: 0.15em; }

/* Contact */
.contact-wrap { max-width: 48rem; margin: 0 auto; text-align: center; }
.contact-title { font-size: 3rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 2rem; }
.contact-sub { font-size: 1.125rem; color: var(--muted); margin-bottom: 2.5rem; text-wrap: pretty; }
.contact-form { display: grid; gap: 1rem; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.contact-form input, .contact-form select {
  width: 100%; padding: 1rem 1.5rem; border-radius: .75rem;
  border: 1px solid var(--border); background: var(--surface);
  font-family: inherit; font-size: 1rem;
}
.contact-form input:focus, .contact-form select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.contact-form button {
  width: 100%; padding: 1.25rem; background: var(--accent); color: var(--accent-foreground);
  border: 0; border-radius: .75rem; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: filter .2s; font-family: inherit;
}
.contact-form button:hover { filter: brightness(1.1); }

/* Footer */
.footer { padding: 3rem 0; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner {
  display: flex; flex-direction: column; gap: 2rem;
  justify-content: space-between; align-items: center;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
.footer-links { display: flex; gap: 2rem; font-family: 'JetBrains Mono', monospace;
  font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; }
.footer-links a:hover { color: var(--foreground); }
.copy { font-size: .75rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
