:root {
  color-scheme: dark;
  --ink: #050505;
  --paper: #f3f2ec;
  --muted: #a5a59f;
  --line: rgba(255, 255, 255, 0.16);
  --acid: #f4ef37;
  --violet: #9a7cff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: Inter, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }

.landing-header {
  position: relative;
  z-index: 10;
  min-height: 84px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-brand { display: flex; align-items: center; gap: 13px; text-transform: uppercase; }
.landing-brand img { width: 34px; height: 34px; object-fit: contain; }
.landing-brand span { display: grid; gap: 2px; }
.landing-brand strong { font-size: 15px; letter-spacing: .08em; }
.landing-brand small { color: var(--muted); font-size: 9px; letter-spacing: .2em; }
.landing-header nav { display: flex; align-items: center; gap: 28px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.landing-header nav > a:not(.login-button):hover { color: var(--acid); }

.login-button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--acid);
  color: #080808;
  border: 1px solid var(--acid);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.login-button:hover { background: transparent; color: var(--acid); }
.login-button-small { min-height: 40px; padding: 0 16px; gap: 18px; }

.hero { position: relative; padding: 9vw 4vw 5vw; overflow: hidden; }
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .35;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12.5vw 12.5vw;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.hero-copy { position: relative; max-width: 1120px; }
.overline { margin: 0 0 22px; color: var(--acid); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 1100px; font-size: clamp(54px, 8.7vw, 132px); line-height: .87; letter-spacing: -.065em; font-weight: 600; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(243, 242, 236, .56); }
.hero-intro { margin: 40px 0 0; max-width: 650px; color: #c1c1ba; font-size: clamp(17px, 1.5vw, 23px); line-height: 1.45; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 30px; }
.text-link { border-bottom: 1px solid #777; padding: 12px 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.text-link:hover { border-color: var(--acid); color: var(--acid); }

.command-preview { position: relative; margin-top: 7vw; border: 1px solid rgba(255,255,255,.3); background: #0d0d0d; box-shadow: 0 50px 120px rgba(0,0,0,.55); }
.preview-topbar { min-height: 54px; padding: 0 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: #797972; font-size: 9px; letter-spacing: .14em; }
.preview-topbar > :nth-child(2) { justify-self: center; }
.preview-brand { color: #fff; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.preview-brand img { width: 20px; height: 20px; object-fit: contain; }
.preview-dot { justify-self: end; width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 18px var(--acid); }
.preview-body { min-height: 430px; display: grid; grid-template-columns: 180px 1fr; }
.preview-body aside { padding: 28px 22px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 19px; color: #707069; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.preview-body aside strong { color: var(--acid); }
.preview-index { margin-bottom: 22px; color: #fff; font-size: 30px; font-weight: 300; }
.preview-workspace { padding: 44px; overflow: hidden; }
.preview-heading { display: flex; justify-content: space-between; align-items: end; }
.preview-heading small { color: #73736c; font-size: 9px; letter-spacing: .18em; }
.preview-heading h2 { margin: 9px 0 0; font-size: clamp(30px, 4vw, 58px); letter-spacing: -.045em; font-weight: 500; }
.preview-heading > span { padding-bottom: 8px; color: #777; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.preview-cards { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; }
.preview-cards article { min-height: 150px; padding: 17px; border: 1px solid var(--line); display: grid; align-content: space-between; }
.preview-cards article > span { color: #686861; font-size: 10px; }
.preview-cards small { color: var(--acid); font-size: 8px; letter-spacing: .14em; }
.preview-cards strong { font-size: 18px; font-weight: 500; }
.preview-cards i { color: #76766f; font-size: 10px; font-style: normal; }
.preview-line { margin-top: 42px; display: grid; gap: 9px; }
.preview-line span { height: 1px; background: linear-gradient(90deg, var(--violet) 0 22%, #2b2b29 22%); }
.preview-line span:nth-child(2) { background: linear-gradient(90deg, var(--acid) 0 48%, #2b2b29 48%); }
.preview-line span:nth-child(3) { background: linear-gradient(90deg, #fff 0 73%, #2b2b29 73%); }

.proof-strip { min-height: 80px; padding: 0 4vw; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #909089; font-size: 9px; letter-spacing: .13em; white-space: nowrap; overflow: hidden; }
.proof-strip i { width: 4px; height: 4px; background: var(--acid); transform: rotate(45deg); flex: 0 0 auto; }

.system-section, .paths-section { padding: 9vw 4vw; }
.section-heading { max-width: 850px; margin-bottom: 60px; }
.section-heading h2, .closing-section h2 { margin: 0; font-size: clamp(44px, 6vw, 86px); line-height: .96; letter-spacing: -.055em; font-weight: 500; }
.section-heading > p:last-child { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.section-heading.compact { margin-bottom: 44px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.module-card { position: relative; min-height: 260px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 54px 1fr; gap: 20px; overflow: hidden; }
.module-card-wide { grid-column: span 2; min-height: 340px; grid-template-columns: 54px minmax(260px, .7fr) 1fr; }
.module-number { color: #5d5d58; font-size: 11px; }
.module-card p { margin: 0 0 14px; color: var(--acid); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.module-card h3 { margin: 0 0 18px; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.04em; font-weight: 500; }
.module-card div > span { display: block; max-width: 430px; color: var(--muted); line-height: 1.55; }
.blueprint-mark { position: relative; min-height: 250px; }
.blueprint-mark b { position: absolute; width: 100px; height: 54px; border: 1px solid #60605b; background: #111; }
.blueprint-mark b::after { content: ""; position: absolute; inset: 10px; border-top: 1px solid var(--acid); }
.blueprint-mark b:nth-child(1) { left: 3%; top: 38%; }
.blueprint-mark b:nth-child(2) { left: 40%; top: 8%; }
.blueprint-mark b:nth-child(3) { right: 3%; top: 38%; }
.blueprint-mark b:nth-child(4) { left: 40%; bottom: 8%; }
.blueprint-mark i { position: absolute; height: 1px; background: #555; transform-origin: left; width: 35%; left: 18%; top: 47%; }
.blueprint-mark i:nth-of-type(1) { transform: rotate(-28deg); }
.blueprint-mark i:nth-of-type(2) { transform: rotate(28deg); }
.blueprint-mark i:nth-of-type(3) { left: 52%; transform: rotate(28deg); }

.paths-section { background: var(--paper); color: #090909; }
.paths-section .overline { color: #60605b; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #b9b8b1; border: 1px solid #b9b8b1; }
.path-card { min-height: 560px; padding: clamp(28px, 4vw, 58px); background: #e9e8e1; display: flex; flex-direction: column; }
.path-event { background: #0b0b0b; color: var(--paper); }
.path-top { display: flex; justify-content: space-between; color: #6c6c66; font-size: 10px; letter-spacing: .16em; }
.path-top strong { font-size: 34px; font-weight: 300; }
.path-card h3 { margin: auto 0 24px; max-width: 570px; font-size: clamp(34px, 4vw, 58px); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.path-card p { max-width: 570px; color: #5c5c57; font-size: 17px; line-height: 1.5; }
.path-event p { color: #aaa; }
.path-card ul { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(0,0,0,.18); }
.path-event ul { border-color: var(--line); }
.path-card li { padding: 13px 0; border-bottom: 1px solid rgba(0,0,0,.12); font-size: 12px; }
.path-event li { border-color: var(--line); }
.path-card li::before { content: "+"; margin-right: 14px; color: #777; }
.path-event li::before { color: var(--acid); }

.closing-section { min-height: 650px; padding: 10vw 4vw; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: radial-gradient(circle at 75% 45%, rgba(154,124,255,.15), transparent 28%), #050505; }
.closing-section h2 { margin-bottom: 46px; font-size: clamp(62px, 9vw, 138px); }
.landing-footer { min-height: 76px; padding: 0 4vw; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #676762; font-size: 8px; letter-spacing: .16em; }

@media (max-width: 820px) {
  .landing-header nav > a:not(.login-button) { display: none; }
  .hero { padding-top: 18vw; }
  .hero h1 { font-size: clamp(50px, 15vw, 92px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-body aside { display: none; }
  .preview-workspace { padding: 25px; }
  .preview-cards { grid-template-columns: repeat(2, 1fr); }
  .proof-strip { justify-content: flex-start; }
  .module-grid, .path-grid { grid-template-columns: 1fr; }
  .module-card-wide { grid-column: auto; grid-template-columns: 46px 1fr; }
  .blueprint-mark { display: none; }
  .path-card { min-height: 500px; }
  .landing-footer span:nth-child(2) { display: none; }
}

@media (max-width: 520px) {
  .landing-header { padding: 0 20px; }
  .landing-brand small { display: none; }
  .login-button-small { min-height: 38px; }
  .hero, .system-section, .paths-section, .closing-section { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 90px; }
  .hero h1 { font-size: 50px; }
  .hero-intro { font-size: 16px; }
  .command-preview { margin-top: 70px; }
  .preview-topbar { grid-template-columns: 1fr auto; }
  .preview-topbar > :nth-child(2) { display: none; }
  .preview-workspace { padding: 20px 14px; }
  .preview-cards { grid-template-columns: 1fr 1fr; }
  .preview-cards article { min-height: 125px; padding: 13px; }
  .module-card { grid-template-columns: 35px 1fr; padding: 22px 18px; }
  .landing-footer { padding: 0 20px; }
}
