:root {
  --bg: #0b1020;
  --bg-2: #111733;
  --surface: #ffffff;
  --surface-alt: #f6f7fb;
  --ink: #0e1430;
  --ink-soft: #4a5170;
  --muted: #7a8099;
  --line: #e5e7f0;
  --brand: #2c5cff;
  --brand-2: #6f3cff;
  --accent: #00d3a7;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(14, 20, 48, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white; font-weight: 700; font-size: 14px;
}
.site-nav a {
  color: var(--ink-soft);
  margin-left: 22px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--brand); }
.cta-link {
  background: var(--ink);
  color: white !important;
  padding: 8px 14px;
  border-radius: 8px;
}
.cta-link:hover { background: var(--brand); }

/* HERO */
.hero {
  background: linear-gradient(180deg, #f4f6ff 0%, #ffffff 100%);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 800px) { .hero-inner { grid-template-columns: 1fr; } }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 12px; font-weight: 600; color: var(--brand);
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.lede { color: var(--ink-soft); font-size: 18px; max-width: 60ch; }
.hero-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 22px; color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 8px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.hero-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.card-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.card-row:last-child { border-bottom: none; }
.card-row .k { color: var(--muted); }
.card-row .v { color: var(--ink); font-weight: 500; }

/* PAGE HERO */
.page-hero {
  padding: 60px 0 32px;
  background: linear-gradient(180deg, #f4f6ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(28px, 3.8vw, 42px); margin: 0 0 14px; letter-spacing: -0.02em; }

/* SECTIONS */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-alt); }
.section-title { font-size: 24px; margin: 0 0 28px; letter-spacing: -0.01em; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.feature {
  background: white; border: 1px solid var(--line);
  padding: 24px; border-radius: var(--radius);
}
.feature-num { font-family: 'JetBrains Mono', monospace; color: var(--brand); font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--ink-soft); }

.comp-card { background: white; border: 1px solid var(--line); padding: 22px; border-radius: var(--radius); }
.comp-card h3 { margin: 0 0 12px; font-size: 16px; color: var(--brand); }
.comp-card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.comp-card li { margin: 4px 0; }

.project-card {
  display: block; background: white; border: 1px solid var(--line);
  padding: 24px; border-radius: var(--radius);
  color: var(--ink); transition: transform 0.1s ease, border-color 0.15s ease;
}
.project-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand); }
.project-card h3 { margin: 0 0 8px; font-size: 18px; }
.project-card p { margin: 0 0 12px; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  background: var(--surface-alt); color: var(--ink-soft);
  padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line);
}
.project-link { margin-top: 14px; color: var(--brand); font-weight: 500; font-size: 14px; }

/* TIMELINE */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.timeline-item:first-child { border-top: none; padding-top: 0; }
@media (max-width: 800px) { .timeline-item { grid-template-columns: 1fr; gap: 8px; } }
.t-dates { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--brand); font-weight: 600; }
.t-loc { font-size: 13px; color: var(--muted); margin-top: 4px; }
.t-body h3 { margin: 0 0 4px; font-size: 18px; }
.t-company { color: var(--ink-soft); margin-bottom: 12px; font-weight: 500; }
.t-body ul { margin: 0 0 14px; padding-left: 18px; color: var(--ink-soft); }
.t-body li { margin: 5px 0; }
.t-stack { font-size: 13px; color: var(--ink-soft); padding-top: 8px; border-top: 1px dashed var(--line); }

.list-bare { list-style: none; padding: 0; margin: 0; }
.list-bare li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.list-bare li:last-child { border-bottom: none; }

.muted { color: var(--muted); }
.center { text-align: center; }

/* FORM */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form label > span { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.form input, .form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: white;
  outline: none;
}
.form input:focus, .form textarea:focus { border-color: var(--brand); }
.form button { align-self: flex-start; }

.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; }
.alert.success { background: #e6fffa; border: 1px solid var(--accent); color: #065f50; }

.contact-list li { padding: 12px 0; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: var(--surface-alt);
  margin-top: 32px;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; }
.footer-links a { color: var(--ink-soft); }
.sep { color: var(--line); margin: 0 8px; }
