/* ============================================================
   NeuroForge — content pages (About / The Project)
   Shares the instrument's design language, but as a calm,
   scrollable document instead of a fixed full-viewport tool.
   Tokens are mirrored from styles.css so the two never drift.
   ============================================================ */
:root {
  --bg: #05080f;
  --bg-2: #070b15;
  --panel: rgba(146, 167, 200, 0.045);
  --panel-edge: rgba(148, 169, 205, 0.12);
  --panel-edge-strong: rgba(148, 169, 205, 0.22);
  --ink: #eaf0fa;
  --muted: #93a1b8;
  --faint: #5b6678;
  --accent: #f5a524;
  --accent-soft: rgba(245, 165, 36, 0.14);
  --warm: #fb923c;
  --cool: #38bdf8;
  --good: #34d399;
  --r: 14px;
  --r-sm: 9px;
  --r-xs: 6px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100%;
}

/* ambient background layers (identical to the app) */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(148, 169, 205, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 169, 205, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 90%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 40% at 12% 0%, rgba(245, 165, 36, 0.10), transparent 70%),
    radial-gradient(45% 40% at 90% 6%, rgba(56, 189, 248, 0.10), transparent 70%);
}

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

/* ---------- top bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--panel-edge);
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.86), rgba(8, 12, 22, 0.6));
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { filter: drop-shadow(0 4px 12px rgba(245, 165, 36, 0.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-name span { color: var(--accent); }
.brand-tag { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; }
.hnav { display: flex; align-items: center; gap: 4px; }
.navlink {
  font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 7px 12px; border-radius: 8px; border: 1px solid transparent; transition: 0.14s; white-space: nowrap;
}
.navlink:hover { color: var(--ink); border-color: var(--panel-edge-strong); background: rgba(255, 255, 255, 0.03); }
.navlink.active { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
.navlink.launch { color: var(--ink); border-color: var(--panel-edge); }
.navlink.launch:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- layout ---------- */
.wrap { max-width: 880px; margin: 0 auto; padding: 0 22px 100px; }
.page-hero { padding: 72px 0 26px; border-bottom: 1px solid var(--panel-edge); margin-bottom: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-soft);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 20px;
}
.page-hero h1 {
  margin: 0 0 16px; font-size: clamp(32px, 6vw, 50px); line-height: 1.05;
  letter-spacing: -0.03em; font-weight: 800;
}
.page-hero h1 .hl { color: var(--accent); }
.lede { margin: 0; font-size: clamp(16px, 2.4vw, 19px); color: var(--muted); max-width: 60ch; }

/* ---------- generic content ---------- */
section.block { margin: 0 0 46px; scroll-margin-top: 80px; }
.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 18px; height: 1px; background: var(--accent); opacity: 0.7; }
h2.title { margin: 0 0 18px; font-size: clamp(22px, 4vw, 30px); letter-spacing: -0.02em; font-weight: 800; }
.prose p { margin: 0 0 16px; color: #c3cee0; font-size: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { color: var(--ink); font-style: normal; border-bottom: 1px dashed var(--panel-edge-strong); }
.muted { color: var(--muted); }

/* card / panel */
.card {
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--r);
  padding: 22px 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.card + .card { margin-top: 14px; }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--panel-edge);
  padding: 11px 17px; border-radius: var(--r-sm); cursor: pointer; transition: 0.14s; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.btn:hover { border-color: var(--panel-edge-strong); background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn.primary {
  background: linear-gradient(180deg, #f8b84e, #f0930f); color: #20160a; border-color: #f0930f;
  box-shadow: 0 8px 22px -10px rgba(245, 165, 36, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn.primary:hover { filter: brightness(1.05); }

/* ---------- "what I learned" ---------- */
.learned { display: grid; gap: 12px; }
.learned-item {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--r);
  padding: 18px 20px; transition: 0.16s;
}
.learned-item:hover { border-color: var(--panel-edge-strong); transform: translateY(-2px); }
.learned-item .n {
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-soft);
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
}
.learned-item h3 { margin: 2px 0 5px; font-size: 15.5px; font-weight: 700; }
.learned-item p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- timeline ---------- */
.timeline { position: relative; margin: 0; padding: 4px 0 0 0; list-style: none; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(245, 165, 36, 0.08));
}
.timeline li { position: relative; padding: 0 0 26px 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.12);
}
.timeline .when { font-family: var(--mono); font-size: 11.5px; color: var(--accent); letter-spacing: 0.03em; text-transform: uppercase; }
.timeline h3 { margin: 4px 0 5px; font-size: 16px; font-weight: 700; }
.timeline p { margin: 0; color: var(--muted); font-size: 14.5px; }
.timeline .hard { border-color: var(--warm); box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14); }

/* ---------- feature grid ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat {
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--r); padding: 16px 18px; transition: 0.16s;
}
.feat:hover { border-color: var(--panel-edge-strong); transform: translateY(-2px); }
.feat h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.feat h3 .ic { color: var(--accent); }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- tech stack ---------- */
.stack { display: grid; gap: 10px; }
.stack-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: baseline;
  padding: 13px 16px; border: 1px solid var(--panel-edge); border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.015);
}
.stack-row .what { font-family: var(--mono); font-size: 13.5px; color: var(--ink); font-weight: 600; }
.stack-row .why { color: var(--muted); font-size: 14px; }

/* ---------- challenge blocks ---------- */
.challenge { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; margin: 0 0 22px; }
.challenge:last-child { margin-bottom: 0; }
.challenge h3 { margin: 0 0 7px; font-size: 16px; font-weight: 700; }
.challenge p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; }
.challenge p:last-child { margin-bottom: 0; }
.challenge .tag { font-family: var(--mono); font-size: 11px; color: var(--cool); }

/* ---------- portfolio tease ---------- */
.tease {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 140% at 90% -10%, rgba(245, 165, 36, 0.12), transparent 60%),
    var(--panel);
  border: 1px solid var(--panel-edge-strong); border-radius: var(--r);
  padding: 26px 26px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.tease p { margin: 0; font-size: 17px; max-width: 46ch; }
.tease p .hl { color: var(--accent); font-weight: 700; }

/* ---------- contact ---------- */
.contact-card {
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(56, 189, 248, 0.07), transparent 55%),
    var(--panel);
  border: 1px solid var(--panel-edge-strong); border-radius: var(--r); padding: 30px 28px;
}
.contact-card h2 { margin: 0 0 8px; font-size: clamp(22px, 4vw, 30px); letter-spacing: -0.02em; font-weight: 800; }
.contact-card .sub { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.form { display: grid; gap: 14px; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-l { display: flex; flex-direction: column; gap: 6px; }
.field-l label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 600; }
.form input, .form textarea {
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--panel-edge);
  border-radius: var(--r-sm); padding: 11px 13px; transition: 0.14s; width: 100%; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.05); }
.form textarea { min-height: 120px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.form-note { font-size: 12.5px; color: var(--faint); }
.form-status { font-size: 13.5px; color: var(--good); min-height: 18px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--panel-edge); padding: 30px 22px;
}
.site-footer .inner { max-width: 880px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .crafted { font-size: 13.5px; color: var(--muted); }
.site-footer .crafted b { color: var(--ink); font-weight: 600; }
.site-footer .avail {
  font-family: var(--mono); font-size: 12px; color: var(--good);
  display: inline-flex; align-items: center; gap: 8px;
}
.site-footer .avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
.site-footer .foot-links { display: flex; gap: 16px; }
.site-footer .foot-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; transition: 0.14s; }
.site-footer .foot-links a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 680px) {
  .grid2, .form .pair { grid-template-columns: 1fr; }
  .stack-row { grid-template-columns: 1fr; gap: 4px; }
  .page-hero { padding: 48px 0 22px; }
  .brand-tag { display: none; }
  .tease { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
