:root {
  /* Palette inherited from the-neuro.com (Webflow): #006d9a, #00b3ff, #13E8E9 on #211E21 */
  --bg: #211E21;
  --bg-elev: #2a272a;
  --bg-elev-2: #322e32;
  --fg: #f1f4f7;
  --fg-muted: #a7b1bd;
  --line: #3a3539;
  --accent: #006d9a;
  --accent-2: #00b3ff;
  --accent-3: #13E8E9;
  --accent-soft: rgba(0, 179, 255, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --pad-x: clamp(20px, 4vw, 48px);
  --t-micro: 160ms;
  --t-interact: 180ms;
  --t-reveal: 700ms;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 44px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --bg-elev: #ffffff;
    --bg-elev-2: #eaf1f6;
    --fg: #0f1922;
    --fg-muted: #4d6072;
    --line: #d8e0e8;
    --accent-soft: rgba(0, 109, 154, 0.10);
    --shadow: 0 1px 2px rgba(0, 109, 154, 0.05), 0 12px 36px rgba(0, 109, 154, 0.10);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-interact) ease, border-color var(--t-interact) ease;
}
a:hover { color: var(--accent); border-bottom-color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  background: var(--bg-elev-2);
  border-radius: 5px;
  border: 1px solid var(--line);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad-x);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-bottom: 0;
}
.brand-mark {
  height: clamp(40px, 5vw, 64px);
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-name { letter-spacing: 0.2px; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--fg-muted); }
.site-nav a:hover { color: var(--fg); border-bottom-color: transparent; }

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { padding: clamp(48px, 8vw, 96px) 0; }

.section-eyebrow,
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.section-lede {
  color: var(--fg-muted);
  max-width: 64ch;
  margin: 0 0 28px;
}

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 110px); }
.hero-title {
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 4px 0 18px;
  max-width: 18ch;
}
.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  color: var(--fg-muted);
  max-width: 60ch;
  font-size: clamp(16px, 1.3vw, 19px);
  margin: 0 0 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-interact) ease, background var(--t-interact) ease, border-color var(--t-interact) ease, color var(--t-interact) ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, white); border-bottom-color: transparent; }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); border-bottom-color: var(--accent); }

/* Featured / emo card */
.emo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.emo-card h3 {
  font-size: 16px;
  margin: 18px 0 8px;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.emo-card h3:first-child { margin-top: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 6px; }
.checklist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--fg-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.checklist li code { color: var(--fg); }

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-list li {
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-muted);
  background: var(--bg-elev-2);
}

.emo-card-meta {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  align-self: start;
}
.emo-card-meta dl { margin: 0; }
.emo-card-meta dl > div + div {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.emo-card-meta dt { font-size: 12px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.emo-card-meta dd { margin: 4px 0 0; font-weight: 500; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: color var(--t-interact) ease, border-color var(--t-interact) ease, background var(--t-interact) ease;
}
.filter:hover { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.filter.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Build grid */
.build-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.build {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--t-interact) ease, border-color var(--t-interact) ease, box-shadow var(--t-interact) ease;
}
.build:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: var(--shadow);
}
.build.is-hidden { display: none; }
.build.is-featured {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 1px var(--accent-soft) inset;
}
.build-title { margin: 0; font-size: 18px; letter-spacing: -0.005em; }
.build-tag { margin: 0; font-size: 12px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.build p { margin: 0; color: var(--fg-muted); }
.build-links { margin-top: auto !important; }
.build-links a { color: var(--accent-2); border-bottom-color: transparent; }
.build-links a:hover { border-bottom-color: var(--accent-2); }

/* Order page — research stages */
.stage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.stage {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.stage-num {
  flex-shrink: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: 0.06em;
}
.stage h3 { margin: 0 0 4px; font-size: 16px; }
.stage p { margin: 0; color: var(--fg-muted); font-size: 14px; }

/* Order page — tiers */
.tier-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.tier {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier.is-featured {
  border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line));
  box-shadow: 0 0 0 1px var(--accent-soft) inset, var(--shadow);
}
.tier-tag {
  margin: 0;
  font-size: 12px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.tier-name { margin: 4px 0 0; font-size: 20px; letter-spacing: -0.005em; }
.tier-price {
  margin: 6px 0 14px;
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
}
.tier .checklist li { color: var(--fg-muted); }

/* Order page — material download card */
.material-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
  gap: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.material-body h3 { margin: 0 0 8px; font-size: 18px; }
.material-body p { margin: 0 0 8px; color: var(--fg-muted); }
.material-meta {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  align-self: start;
}
.material-meta dl { margin: 0; }
.material-meta dl > div + div {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.material-meta dt {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.material-meta dd { margin: 4px 0 0; font-weight: 500; }

/* Order page — form */
.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.field input,
.field select,
.field textarea {
  appearance: none;
  width: 100%;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  transition: border-color var(--t-interact) ease, box-shadow var(--t-interact) ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.order-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.order-fallback { margin: 0; color: var(--fg-muted); font-size: 14px; }
.order-fallback a { color: var(--accent-2); }

@media (max-width: 760px) {
  .order-form { grid-template-columns: 1fr; }
  .material-card { grid-template-columns: 1fr; }
  .material-meta { order: -1; }
}

/* About */
.about p { color: var(--fg-muted); max-width: 60ch; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg-muted);
  font-size: 14px;
}
.site-footer a { color: var(--fg-muted); }
.site-footer a:hover { color: var(--accent); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-reveal) ease, transform var(--t-reveal) ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Breakpoints */
@media (max-width: 1080px) {
  .emo-card { grid-template-columns: 1fr; }
  .emo-card-meta { order: -1; }
}

@media (max-width: 760px) {
  .site-nav { gap: 14px; font-size: 14px; }
  .hero-title { font-size: clamp(30px, 9vw, 40px); }
  .build-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
