/* ==========================================================
   Lakewind Press — Tech-Minimalist v2
   ========================================================== */

:root {
  /* Type */
  --font-display: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Palette — LIGHT (paper) */
  --paper: #f4f3ef;
  --paper-2: #ebeae5;
  --paper-3: #e3e1da;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #6b6e74;
  --muted-2: #8d9098;
  --border: #d4d1c9;
  --border-2: #c5c1b7;
  --accent: #00bfa6;
  --accent-2: #00d4c4;
  --accent-soft: rgba(0, 191, 166, 0.08);
  --accent-glow: rgba(0, 212, 196, 0.16);
  --shadow-sm: 0 1px 2px rgba(10,10,10,0.04);
  --shadow-md: 0 8px 24px rgba(10,10,10,0.06);
  --terminal-bg: #0a0d12;
  --terminal-fg: #e8eaed;
  --terminal-muted: #6b7280;
  --terminal-line: #1a2028;

  --radius: 4px;
  --radius-lg: 8px;
  --max-w: 1280px;
  --grid-gap: 24px;
  --section-y: clamp(80px, 10vw, 144px);
}

[data-theme='dark'] {
  --paper: #0a0a0a;
  --paper-2: #111111;
  --paper-3: #161616;
  --ink: #f5f5f3;
  --ink-2: #e8e7e3;
  --muted: #9a9da3;
  --muted-2: #6b6e74;
  --border: #2a2a2a;
  --border-2: #3a3a3a;
  --accent: #00d4c4;
  --accent-2: #4dffec;
  --accent-soft: rgba(0, 212, 196, 0.1);
  --accent-glow: rgba(77, 255, 236, 0.18);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --terminal-bg: #050709;
  --terminal-fg: #e8eaed;
  --terminal-muted: #6b7280;
  --terminal-line: #131820;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  transition: background-color .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

button { font: inherit; cursor: pointer; }

/* Utility */
.mono { font-family: var(--font-mono); font-feature-settings: 'zero', 'ss01'; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.container--wide {
  max-width: 1440px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  transition: border-color .2s ease, background-color .2s ease;
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
}

.nav__rule {
  height: 1px;
  background: var(--border);
  opacity: 0;
  transition: opacity .25s ease;
}

.nav.is-scrolled .nav__rule { opacity: 1; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo {
  width: 32px;
  height: 19px;
  color: var(--accent);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.brand__slash {
  color: var(--muted-2);
  font-weight: 400;
  margin: 0 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav__links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color .15s ease;
  position: relative;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: relative;
  margin-left: auto;
}

.mobile-toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
  transform: translateX(-50%);
}

.mobile-toggle span:nth-child(1) { top: 13px; }
.mobile-toggle span:nth-child(2) { bottom: 13px; }

.mobile-toggle.is-open span:nth-child(1) { top: 17px; transform: translateX(-50%) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { bottom: 17px; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--border);
    padding: 16px 24px 32px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__links a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
  }
  .nav__actions { display: none; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--accent);
  color: var(--ink);
}

[data-theme='dark'] .btn--primary:hover {
  color: #0a0a0a;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

.btn--magnetic {
  transition: transform .18s cubic-bezier(.22,.61,.36,1), background .15s, color .15s;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 0 64px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero__bg svg {
  width: 100%;
  height: 100%;
  color: var(--accent);
}

.wave {
  stroke-linecap: round;
  animation: drift 18s ease-in-out infinite alternate;
}

.wave--1 { animation-duration: 16s; }
.wave--2 { animation-duration: 22s; animation-delay: -3s; }
.wave--3 { animation-duration: 19s; animation-delay: -6s; }
.wave--4 { animation-duration: 25s; animation-delay: -2s; }
.wave--5 { animation-duration: 21s; animation-delay: -9s; }

@keyframes drift {
  0%   { transform: translate3d(-40px, 0, 0); opacity: .8; }
  50%  { opacity: 1; }
  100% { transform: translate3d(40px, -10px, 0); opacity: .6; }
}

.hero__bar {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 32px 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: lowercase;
}

.hero__bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 9px transparent; }
}

.hero__bar .sep {
  color: var(--border-2);
  margin: 0 4px;
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: auto auto 0;
  padding: 0 32px;
  width: 100%;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 13vw, 184px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.18em;
  color: var(--ink);
}

.hero__title .reveal {
  display: inline-block;
}

.reveal--accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

[data-theme='dark'] .reveal--accent { color: var(--accent-2); }

.hero__lede {
  margin: 40px 0 0;
  max-width: 640px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}

.hero__lede .reveal { display: block; }

.hero__cta {
  margin: 40px 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__stats {
  margin: 64px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 24px;
}

.stat dt {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}

.stat dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat dd .count,
.stat dd .dash {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1) var(--d, 0ms),
              transform .7s cubic-bezier(.22,.61,.36,1) var(--d, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__scroll {
  position: absolute;
  left: 32px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: var(--border-2);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollline 2.2s ease-in-out infinite;
}

@keyframes scrollline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@media (max-width: 720px) {
  .hero__scroll { display: none; }
}

/* ============ MARQUEE ============ */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--paper);
  overflow: hidden;
  padding: 28px 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee__row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
}

.marquee__row > span:nth-child(odd) {
  color: var(--ink);
}

.marquee__row > .marquee__dot {
  font-size: 14px;
  color: var(--accent);
  vertical-align: middle;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ SECTION ============ */
.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section__head {
  margin-bottom: 64px;
}

.section__head--split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
}

.section__head--center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section__head--center .section__sub { margin: 16px auto 0; }

@media (max-width: 880px) {
  .section__head--split { grid-template-columns: 1fr; gap: 24px; }
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: lowercase;
  margin-bottom: 16px;
}

.eyebrow--light { color: var(--accent-2); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
  max-width: 18ch;
}

.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  max-width: 48ch;
}

/* ============ PILLARS ============ */
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.pillar {
  padding: 40px 28px 32px 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  transition: background .25s ease, padding .25s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease, background .25s ease;
}

.pillar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pillar:last-child {
  border-right: none;
  padding-right: 0;
}

.pillar:hover {
  background: var(--paper-2);
  padding-left: 16px;
}

.pillar:hover:last-child {
  padding-right: 16px;
}

.pillar__num {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  text-transform: lowercase;
}

.pillar__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  line-height: 1.1;
}

.pillar p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  flex: 1;
  line-height: 1.55;
}

.pillar__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.pillar__meta .arrow {
  color: var(--ink);
  font-size: 14px;
  transition: transform .2s ease;
}

.pillar:hover .pillar__meta .arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.pillar--accent .pillar__title {
  color: var(--accent);
}

[data-theme='dark'] .pillar--accent .pillar__title { color: var(--accent-2); }

@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-bottom: 1px solid var(--border); }
  .pillar:nth-child(2) { border-right: none; }
  .pillar:nth-child(3) { border-right: 1px solid var(--border); padding-right: 28px; }
  .pillar:nth-child(3), .pillar:nth-child(4) { border-bottom: none; }
}

@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none !important; padding-right: 0 !important; border-bottom: 1px solid var(--border); }
  .pillar:last-child { border-bottom: none; }
}

/* ============ BOOKS ============ */
.section--books {
  background: var(--paper-2);
  border-block: 1px solid var(--border);
}

.books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.book {
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.book.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.book__cover {
  aspect-ratio: 3 / 4;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}

.book__cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.06) 100%);
  pointer-events: none;
}

.book:hover .book__cover {
  transform: translateY(-6px);
}

.book--01 .book__cover {
  background: linear-gradient(180deg, #0d8479 0%, #066e64 100%);
  color: #e5f3f1;
}

.book--02 .book__cover {
  background: linear-gradient(180deg, #181818 0%, #0a0a0a 100%);
  color: #e8e7e3;
}

.book--03 .book__cover {
  background: linear-gradient(180deg, #e3dfd0 0%, #d4cebb 100%);
  color: #1a1a1a;
}

.book__meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.7;
  text-transform: lowercase;
}

.book__title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 12px;
}

.book__author {
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.7;
  text-transform: lowercase;
}

.book__tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding: 0 4px;
}

.book__tags .arrow {
  color: var(--ink);
  transition: transform .2s ease, color .2s ease;
}

.book:hover .book__tags .arrow {
  color: var(--accent);
  transform: translateX(4px);
}

@media (max-width: 880px) {
  .books { grid-template-columns: repeat(2, 1fr); }
  .book:last-child { grid-column: 1 / -1; max-width: 380px; }
}

@media (max-width: 560px) {
  .books { grid-template-columns: 1fr; }
  .book:last-child { max-width: none; }
}

/* ============ COURSES ============ */
.courses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.course {
  background: var(--paper);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .25s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease, background .25s ease;
}

.course.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.course:hover {
  background: var(--paper-2);
}

.course__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: lowercase;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
}

.tag--accent {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme='dark'] .tag--accent { color: var(--accent-2); border-color: var(--accent-2); }

.course__dur {
  color: var(--muted-2);
}

.course__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 8px 0 0;
}

.course p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.course__pts {
  list-style: none;
  margin: 8px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.course__pts li::before {
  content: '— ';
  color: var(--accent);
}

.course__cta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: lowercase;
}

.course__cta .arrow {
  transition: transform .2s ease;
}

.course:hover .course__cta {
  color: var(--accent);
}

.course:hover .course__cta .arrow {
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .courses { grid-template-columns: 1fr; }
}

/* ============ INTERACTIVE / TERMINAL ============ */
.section--interactive {
  background: var(--paper);
}

.interactive {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 980px) {
  .interactive { grid-template-columns: 1fr; gap: 48px; }
}

.interactive__copy .section__title { max-width: none; }

.features {
  margin: 32px 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

.features div {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}

.features div.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.features dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.features dt .mono {
  color: var(--accent);
  font-weight: 500;
  margin-right: 4px;
}

.features dd {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; }
}

.terminal {
  background: var(--terminal-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 60px var(--accent-glow);
  font-family: var(--font-mono);
  font-size: 13px;
}

.terminal__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--terminal-line);
  color: var(--terminal-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.terminal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.terminal__head span:nth-child(2) { color: var(--terminal-fg); flex: 1; }
.terminal__time { color: var(--accent); }

.terminal__body {
  padding: 28px 24px 32px;
  color: var(--terminal-fg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.terminal__line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.terminal__prompt {
  color: var(--accent);
}

.terminal__cmd {
  color: var(--terminal-fg);
}

.terminal__caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.terminal__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 16px;
}

.terminal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terminal__list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--terminal-line);
  padding-bottom: 8px;
}

.terminal__list span { color: var(--terminal-muted); }
.terminal__list b { color: var(--terminal-fg); font-weight: 500; }
.terminal__list b.hi { color: var(--accent); }

.terminal__choices {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terminal__choices li {
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--terminal-line);
  border-radius: 4px;
  transition: border-color .2s ease, background .2s ease;
}

.terminal__choices li:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 196, 0.06);
}

.terminal__choices .key {
  color: var(--accent);
  margin-right: 12px;
}

/* ============ PARTNERS ============ */
.section--partners {
  background: var(--paper-2);
  border-block: 1px solid var(--border);
}

.partners-marquee {
  border-block: 1px solid var(--border);
  background: var(--paper);
  overflow: hidden;
  padding: 32px 0;
  margin: 48px 0 56px;
}

.partners-marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.partner--accent {
  color: var(--accent);
  font-style: italic;
}

[data-theme='dark'] .partner--accent { color: var(--accent-2); }

.bullet {
  font-size: 12px;
  color: var(--accent);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.partner-card {
  background: var(--paper);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .25s ease;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease, background .25s ease;
}

.partner-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.partner-card:hover {
  background: var(--paper-2);
}

.partner-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.partner-card--accent .partner-card__name {
  color: var(--accent);
  font-style: italic;
}

[data-theme='dark'] .partner-card--accent .partner-card__name { color: var(--accent-2); }

.partner-card__type {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (max-width: 920px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .partners-grid { grid-template-columns: 1fr 1fr; }
}

.partners-note {
  text-align: center;
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--muted-2);
}

/* ============ ABOUT / ROADMAP ============ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 920px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
}

.about__copy .section__title { max-width: none; }

.about__copy p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 16px 0 0;
  max-width: 44ch;
}

.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-left: 1px solid var(--border);
  padding-left: 32px;
}

.phase {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .6s ease, transform .6s ease;
}

.phase.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.phase::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--border-2);
}

.phase--active::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.phase__when {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  text-transform: lowercase;
}

.phase__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.phase p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.phase__bar {
  height: 2px;
  background: var(--border);
  margin-top: 4px;
  overflow: hidden;
  border-radius: 1px;
}

.phase__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1.2s cubic-bezier(.22,.61,.36,1);
}

.phase.is-visible .phase__bar span {
  width: var(--p, 0);
}

/* ============ SUBSCRIBE ============ */
.section--subscribe {
  padding-bottom: 0;
}

.subscribe {
  position: relative;
  background: #0a0a0a;
  color: #fafaf8;
  border-radius: var(--radius-lg);
  padding: 80px 56px;
  text-align: center;
  overflow: hidden;
}

[data-theme='dark'] .subscribe {
  background: #161616;
  border: 1px solid var(--border);
}

.subscribe__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at top, var(--accent-glow) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(0, 191, 166, 0.1) 0%, transparent 50%);
}

.subscribe > * { position: relative; z-index: 1; }

.subscribe__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}

.subscribe p {
  max-width: 480px;
  margin: 0 auto;
  color: rgba(250, 250, 248, 0.65);
  font-size: 15px;
  line-height: 1.6;
}

.subscribe__form {
  margin: 40px auto 0;
  display: flex;
  gap: 8px;
  max-width: 480px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px;
  border-radius: 999px;
}

.subscribe__form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 12px 16px;
  color: #fafaf8;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.subscribe__form input::placeholder {
  color: rgba(250, 250, 248, 0.4);
}

.subscribe__form .btn--primary {
  background: var(--accent);
  color: #0a0a0a;
}

.subscribe__form .btn--primary:hover {
  background: var(--accent-2);
}

.subscribe__note {
  margin: 24px 0 0;
  font-size: 11px;
  color: rgba(250, 250, 248, 0.4);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .subscribe { padding: 56px 24px; }
  .subscribe__form { flex-direction: column; background: transparent; border: none; padding: 0; gap: 12px; }
  .subscribe__form input { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 14px 20px; }
  .subscribe__form .btn { width: 100%; justify-content: center; }
}

/* ============ FOOTER ============ */
.footer {
  padding: 96px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: var(--section-y);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  margin-bottom: 80px;
}

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr; gap: 48px; }
}

.footer__brand .brand { margin-bottom: 16px; }

.footer__brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 32ch;
  margin: 0 0 16px;
}

.footer__url {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

[data-theme='dark'] .footer__url { color: var(--accent-2); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}

.footer__cols a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
  transition: color .15s ease;
}

.footer__cols a:hover { color: var(--ink); }

.footer__h {
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: lowercase;
}

.footer__bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  flex-wrap: wrap;
}

.footer__sep { color: var(--border-2); }
.footer__spacer { flex: 1; }
.footer__bottom a { color: var(--ink); }

/* ============ MOTION PREFERENCE ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .pillar, .book, .course, .partner-card, .phase, .features div {
    opacity: 1 !important;
    transform: none !important;
  }
}
