@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --ink: #101114;
  --paper: #f4f2ea;
  --white: #fffefa;
  --blue: #3157ff;
  --acid: #28b77a;
  --lavender: #c8bdff;
  color-scheme: light;
  --text: #101114;
  --muted: #66676c;
  --outline: #101114;
  --shadow-color: #101114;
  --map-surface: var(--lavender);
  --lavender-surface: var(--lavender);
  --green-surface: var(--acid);
  --blue-surface: var(--blue);
  --divider: #cccac3;
  --link: var(--blue);
  --line: 2px solid var(--outline);
  --shadow: 7px 7px 0 var(--shadow-color);
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--acid); border: var(--line); font: 600 13px var(--mono); }
.skip-link:focus { top: 12px; }

.shell { width: min(1440px, calc(100% - 40px)); margin: 20px auto 40px; border: var(--line); background: var(--white); box-shadow: 10px 10px 0 var(--shadow-color); overflow: hidden; }
.topbar { min-height: 76px; padding: 13px 22px; border-bottom: var(--line); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.brand img, .footer-brand img { width: 43px; height: 43px; border: 1.5px solid var(--outline); border-radius: 10px; }
nav { display: flex; align-items: center; gap: 28px; font: 500 12px var(--mono); }
nav a { text-decoration: none; padding: 8px 2px; }
nav a:hover { color: var(--link); }
.nav-cta { color: white; background: var(--blue); border: var(--line); padding: 11px 14px !important; box-shadow: 3px 3px 0 var(--shadow-color); }
.nav-cta:hover { color: var(--ink); background: var(--acid); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow-color); }
.menu-button { display: none; background: var(--acid); border: var(--line); padding: 9px 12px; font: 600 12px var(--mono); }

.hero { display: grid; grid-template-columns: .91fr 1.09fr; min-height: 680px; border-bottom: var(--line); }
.hero-copy { padding: clamp(55px, 7vw, 104px) clamp(34px, 5vw, 76px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.eyebrow, .kicker, .section-index { font: 500 11px var(--mono); letter-spacing: .08em; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; }
.eyebrow span, .section-index { display: inline-grid; place-items: center; width: 36px; height: 28px; background: var(--acid); border: 1.5px solid var(--outline); }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -.075em; line-height: .94; }
h1 { font-size: clamp(62px, 7vw, 112px); }
h1 em, h2 em { color: var(--blue); font-style: normal; }
.hero-lede { max-width: 610px; margin: 32px 0 34px; font-size: clamp(17px, 1.7vw, 23px); line-height: 1.5; letter-spacing: -.025em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 19px; border: var(--line); box-shadow: 4px 4px 0 var(--shadow-color); text-decoration: none; font: 600 12px var(--mono); transition: .15s ease; }
.button:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow-color); }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: var(--acid); color: var(--ink); }
.button-secondary { background: var(--white); }
.microcopy { margin: 2px 0 0; font: 400 10px var(--mono); color: var(--muted); }

.control-map { position: relative; min-height: 620px; border-left: var(--line); overflow: hidden; background: var(--map-surface); }
.window-bar { position: relative; z-index: 5; height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--white); border-bottom: var(--line); font: 500 10px var(--mono); }
.window-bar > span:last-child { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.traffic { width: 11px; height: 11px; border: 1.5px solid var(--outline); border-radius: 50%; }
.red { background: #ff6b5e; }.yellow { background: #ffd45f; }.green { background: var(--acid); }
.map-grid { position: absolute; inset: 42px 0 0; opacity: .26; background-image: linear-gradient(var(--ink) 1px, transparent 1px),linear-gradient(90deg,var(--ink) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, black, transparent 94%); }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-lines line { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 8 9; vector-effect: non-scaling-stroke; animation: dash 14s linear infinite; }
.core { position: absolute; z-index: 3; left: 50%; top: 52%; transform: translate(-50%,-50%); width: 180px; height: 190px; background: var(--white); border: var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.core::before { content: ''; position: absolute; inset: 8px; border: 1px dashed var(--outline); pointer-events: none; }
.core img { width: 82px; height: 82px; border: 1.5px solid var(--outline); border-radius: 18px; }
.core strong { margin-top: 8px; font-size: 25px; letter-spacing: -.05em; }
.module-node { position: absolute; z-index: 2; padding: 9px 12px; background: var(--white); border: var(--line); box-shadow: 3px 3px 0 var(--shadow-color); font: 500 10px var(--mono); animation: float 4s ease-in-out infinite; }
.module-node span { color: var(--link); margin-right: 6px; }
/* Mirror the eight anchors around the central app. */
.control-map .module-node { right: auto; bottom: auto; translate: -50% -50%; }
.node-display { left: 20%; top: 27%; }
.node-window { left: 80%; top: 27%; animation-delay: 0s; }
.node-mouse { left: 12%; top: 53%; animation-delay: -.8s; }
.node-keys { left: 88%; top: 53%; animation-delay: -.8s; }
.node-power { left: 20%; top: 79%; animation-delay: -1.6s; }
.node-notch { left: 80%; top: 79%; animation-delay: -1.6s; }

.section { padding: clamp(72px, 9vw, 130px) clamp(28px, 6vw, 90px); border-bottom: var(--line); }
.section-heading { display: grid; grid-template-columns: .55fr 1.2fr 1fr; gap: 55px; align-items: end; margin-bottom: 70px; }
.section-index { margin-bottom: 18px; }
.kicker { margin: 0; }
h2 { font-size: clamp(50px, 6.3vw, 92px); }
.modules .section-heading { display: block; position: relative; text-align: center; }
.toolkit-heading { margin: 0; text-align: center; font-size: clamp(54px, 6vw, 96px); }
.section-heading > p { margin: 0; max-width: 390px; font-size: 17px; line-height: 1.55; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.module-card { min-height: 395px; display: flex; flex-direction: column; padding: 20px; border: var(--line); background: var(--white); box-shadow: 5px 5px 0 var(--shadow-color); transition: transform .18s ease, box-shadow .18s ease; }
.module-card:hover { transform: translate(-2px,-3px); box-shadow: 8px 9px 0 var(--shadow-color); }
.module-card.featured { background: var(--lavender-surface); }.module-card.acid { background: var(--green-surface); }.module-card.blue { background: var(--blue-surface); color: white; }
.card-top { display: flex; justify-content: space-between; font: 500 9px var(--mono); }
.card-top i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor; background: var(--acid); }
.blue .card-top i { background: white; }
.card-icon { height: 120px; margin: 25px 0 22px; display: grid; place-items: center; }
.module-card h3 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.055em; }
.module-card p { margin: 0; max-width: 330px; font-size: 14px; line-height: 1.55; }
.display-icon { width: 148px; height: 94px; border: var(--line); background: var(--ink); box-shadow: 5px 5px 0 var(--blue); }
.display-icon span { width: 65px; height: 65px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 10px color-mix(in srgb, var(--acid) 22%, transparent); }
.window-icon { display: flex; align-items: center; justify-content: center; gap: 0; width: 155px; }
.window-icon span { display:block; width: 50px; height: 84px; border: var(--line); background: var(--blue); margin-left: -2px; }
.window-icon span:nth-child(2) { height: 108px; background: var(--acid); }
.window-icon span:nth-child(3) { background: var(--lavender); }
.mouse-icon { position: relative; width: 68px; height: 110px; border: var(--line); border-radius: 40px; background: var(--white); }
.mouse-icon span { position:absolute; top: 17px; left: 50%; width: 7px; height: 24px; transform: translateX(-50%); background: var(--blue); border: 1px solid var(--outline); }
.key-icon { width: 110px; height: 110px; background: var(--ink); color: white; border: var(--line); box-shadow: 6px 6px 0 var(--lavender); font: 400 56px var(--sans); }
.bolt-icon { width: 106px; height: 106px; border: 2px solid white; background: var(--acid); color: var(--ink); font: 800 70px/1 var(--sans); box-shadow: 6px 6px 0 white; }
.clip-icon { position: relative; width: 90px; height: 110px; border: var(--line); background: var(--lavender); }
.clip-icon::before { content:''; position:absolute; width:38px;height:18px;left:24px;top:-12px;background:var(--acid);border:var(--line); }
.clip-icon span { position:absolute; left:20px;right:20px;top:33px;height:2px;background:var(--ink);box-shadow:0 17px var(--shadow-color),0 34px var(--shadow-color); }
.fake-slider { margin-top: auto; height: 11px; border: 1.5px solid var(--outline); background: white; }
.fake-slider span { display: block; width: 72%; height: 100%; background: var(--blue); border-right: 1.5px solid var(--outline); }
.key-row { margin-top:auto;display:flex;gap:7px; }.key-row kbd { width:35px;height:31px;display:grid;place-items:center;background:var(--paper);border:1.5px solid var(--outline);box-shadow:2px 2px 0 var(--shadow-color);font:500 13px var(--mono); }
.meter { margin-top:auto;display:flex;gap:5px;align-items:end;height:28px; }.meter span { flex:1;background:var(--ink);height:25%; }.meter span:nth-child(2){height:45%}.meter span:nth-child(3){height:65%}.meter span:nth-child(4){height:85%}.meter span:nth-child(5){height:100%;background:var(--blue)}
.mini-label { align-self:flex-start;margin-top:auto;padding:7px 9px;background:var(--acid);border:1.5px solid var(--outline);font:500 9px var(--mono); }
.battery { margin-top:auto;width:100%;height:15px;border:1.5px solid white;padding:2px; }.battery span{display:block;width:82%;height:100%;background:var(--acid)}
.clip-lines { margin-top:auto;display:grid;gap:5px }.clip-lines span{height:5px;background:var(--ink)}.clip-lines span:nth-child(2){width:77%}.clip-lines span:nth-child(3){width:48%}

.principles { background: var(--ink); color: white; }
.section-heading.compact { grid-template-columns: .55fr 2.2fr; align-items:start; margin-bottom: 80px; }
.principles .section-index { color: var(--ink); }
.principle-list { border-top: 1px solid #4b4c51; }
.principle-list article { display: grid; grid-template-columns: .3fr .9fr 1.2fr; gap: 40px; align-items: center; min-height: 132px; border-bottom: 1px solid #4b4c51; }
.principle-list article > span { color: var(--acid); font: 500 11px var(--mono); }
.principle-list h3 { margin:0;font-size:30px;letter-spacing:-.045em }.principle-list p{margin:0;color:#c7c8cb;line-height:1.55;max-width:520px}

.launch { display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(60px,10vw,160px);align-items:center;background:var(--lavender-surface) }
.launch-copy { position: relative; min-height: 360px; display: grid; place-items: center; perspective: 1000px; }
.launch-logo { width: clamp(180px, 20vw, 310px); height: auto; border-radius: 23%; filter: drop-shadow(18px 22px 0 var(--shadow-color)); transform-style: preserve-3d; animation: cube-logo 8s cubic-bezier(.45, .05, .55, .95) infinite; }
.terminal-card { border:var(--line);background:var(--white);box-shadow:10px 10px 0 var(--shadow-color) }
.terminal-body{min-height:285px;padding:32px;background:var(--ink);color:white;font:400 13px/1.8 var(--mono)}.terminal-body p{margin:0 0 14px}.terminal-body>p>span{color:var(--acid)}.terminal-result{color:#aeb0b7}.caret{display:inline-block;width:9px;height:16px;background:var(--acid);vertical-align:middle;animation:blink 1s steps(1) infinite}.button.full{margin:20px}
.release-notice { margin: 20px; font: 500 12px/1.5 var(--mono); }

footer { min-height:130px;padding:26px 30px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:30px;background:var(--acid) }
.footer-brand { display:flex;align-items:center;gap:10px;font-size:22px }
.footer-meta { display:flex;flex-wrap:wrap;justify-content:flex-end;gap:16px 24px;font:500 14px/1.6 var(--mono) }
.footer-legal { grid-column:1 / -1;border-top:1px solid var(--outline);padding-top:20px;font-size:14px;line-height:1.6 }
.footer-legal p { margin:0 }
footer>p{text-align:center;font-size:13px}

.contact { padding:clamp(48px, 7vw, 96px) clamp(24px, 6vw, 90px);border-bottom:var(--line) }
.contact-body { max-width:760px }
.contact h1 { margin:0 0 28px;font-size:clamp(40px, 6vw, 72px);line-height:1;letter-spacing:-.03em }
.contact p { font-size:16px;line-height:1.6 }
.contact a { overflow-wrap:anywhere }
.back-link { font:600 14px var(--mono);text-decoration:none }

@keyframes dash{to{stroke-dashoffset:-200}}@keyframes float{50%{transform:translateY(-6px)}}@keyframes blink{50%{opacity:0}}
@keyframes cube-logo { 0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(-12deg) rotateZ(-2deg); } 25% { transform: translateY(-12px) rotateX(7deg) rotateY(12deg) rotateZ(2deg); } 50% { transform: translateY(-4px) rotateX(-8deg) rotateY(20deg) rotateZ(-2deg); } 75% { transform: translateY(-10px) rotateX(6deg) rotateY(-18deg) rotateZ(2deg); } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (max-width: 980px) {
  .shell{width:calc(100% - 24px);margin:12px auto 30px;box-shadow:6px 6px 0 var(--shadow-color)}
  .hero{grid-template-columns:1fr}.control-map{border-left:0;border-top:var(--line);min-height:570px}
  .section-heading{grid-template-columns:.5fr 1.5fr}.section-heading>p{grid-column:2}.module-grid{grid-template-columns:repeat(2,1fr)}.launch{grid-template-columns:1fr}.terminal-card{max-width:650px}.principle-list article{grid-template-columns:.2fr .8fr 1.2fr}
}
@media (max-width: 700px) {
  .topbar{min-height:64px;padding:10px 14px}.brand img{width:38px;height:38px}.menu-button{display:block}nav{display:none;position:absolute;z-index:20;left:12px;right:12px;top:80px;padding:18px;flex-direction:column;align-items:stretch;gap:5px;background:var(--white);border:var(--line);box-shadow:5px 5px 0 var(--shadow-color)}nav.open{display:flex}.nav-cta{text-align:center}
  .hero-copy{padding:60px 24px}.hero{min-height:unset}h1{font-size:clamp(54px,17vw,82px)}.hero-actions{flex-direction:column}.button{width:100%}.control-map{min-height:510px}.module-node{font-size:8px;padding:7px}.core{width:145px;height:155px}.core img{width:63px;height:63px}
  .section{padding:74px 22px}.section-heading,.section-heading.compact{grid-template-columns:1fr;gap:30px;margin-bottom:48px}.section-heading>p{grid-column:auto}.module-grid{grid-template-columns:1fr}.module-card{min-height:360px}.principle-list article{grid-template-columns:40px 1fr;gap:15px;padding:25px 0}.principle-list p{grid-column:2}.launch{gap:55px}.terminal-body{padding:23px;font-size:10px;min-height:245px}footer{grid-template-columns:1fr;text-align:center}.footer-brand,.footer-meta{justify-content:center}footer>p{text-align:center}
  .toolkit-heading { font-size: clamp(54px, 13vw, 82px); }
}


.launch-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px 20px 0; }
.launch-actions .button { flex: 1 1 185px; }

/* Sound and Widgets join the control map and module grid. */
.node-sound { left: 50%; top: 15%; animation-delay: -2.4s; }
.node-widgets { left: 50%; top: 91%; animation-delay: -2.4s; }
.sound-icon { display: flex; align-items: center; gap: 10px; width: 150px; }
.sound-icon span { width: 18px; height: 45%; background: var(--blue); border: var(--line); }
.sound-icon span:nth-child(2) { height: 80%; }
.sound-icon span:nth-child(3) { height: 100%; background: var(--acid); }
.sound-icon span:nth-child(4) { height: 65%; }
.sound-icon span:nth-child(5) { height: 35%; }
.widgets-icon { display: flex; align-items: center; gap: 8px; }
.widgets-icon span { display: grid; place-items: center; height: 42px; min-width: 42px; padding: 8px; border: var(--line); background: var(--white); box-shadow: 3px 3px 0 var(--shadow-color); font: 500 12px var(--mono); }
@media (min-width: 981px) {
  .module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The card remains the entry point; a native dialog handles focus and Escape. */
.module-card { position: relative; }
.module-open { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 0; padding: 12px 0 0; width: 100%; border: 0; border-top: 1px solid currentColor; background: transparent; color: inherit; text-align: left; font: 500 10px var(--mono); cursor: pointer; }
.module-open::after { content: ''; position: absolute; inset: 0; }
.module-open:focus-visible { outline: none; }
.module-card:has(.module-open:focus-visible) { outline: 3px solid var(--blue); outline-offset: 7px; }
.module-card.blue:has(.module-open:focus-visible) { outline-color: var(--ink); }
.module-open > span { font-size: 18px; transition: transform 240ms ease; }
.module-card:hover .module-open > span { transform: translate(2px, -2px); }
html:has(#module-dialog[open]) { overflow: hidden; }
#module-dialog { padding: 0; border: var(--line); width: min(760px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 64px); overflow: visible; background: var(--white); color: var(--text); box-shadow: 10px 10px 0 var(--shadow-color); }
#module-dialog::backdrop { background: rgba(16, 17, 20, .52); backdrop-filter: blur(7px); animation: detail-backdrop-in 260ms ease both; }
#module-dialog.is-closing::backdrop { animation: detail-backdrop-out 200ms ease both; }
.module-detail-panel { display: flex; flex-direction: column; max-height: calc(100dvh - 68px); }
.module-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 30px; border-bottom: var(--line); background: var(--lavender-surface); }
.module-detail-index { font: 500 11px var(--mono); letter-spacing: .08em; }
.module-close { display: flex; align-items: center; gap: 18px; padding: 9px 12px; border: var(--line); background: var(--white); color: var(--text); font: 500 11px var(--mono); cursor: pointer; transition: background 180ms ease; }
.module-close span { font: 400 24px/16px var(--sans); }
.module-close:hover { background: var(--acid); }
.module-close:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.module-detail-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 32px 38px 24px; }
#module-dialog-title { font-size: clamp(42px, 6vw, 64px); letter-spacing: -.065em; line-height: 1.05; }
.module-detail-content { margin-top: 28px; }
.feature-group { padding: 23px 0; border-top: 1px solid var(--divider); }
.feature-group h3 { margin: 0 0 14px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.feature-group ul { margin: 0; padding-left: 20px; display: grid; gap: 11px; }
.feature-group li { padding-left: 5px; font-size: 15px; line-height: 1.55; }
.feature-group li::marker { color: var(--link); }
@keyframes detail-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes detail-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 700px) {
  #module-dialog { width: calc(100% - 28px); max-height: calc(100dvh - 40px); box-shadow: 5px 5px 0 var(--shadow-color); }
  .module-detail-panel { max-height: calc(100dvh - 44px); }
  .module-detail-header { padding: 14px 18px; }
  .module-detail-scroll { padding: 26px 22px 24px; }
  .feature-group li { font-size: 14px; }
}

/* All three section numbers share the same inset and positioning context. */
main > section { position: relative; }
.section-marker { position: absolute; top: clamp(24px, 3vw, 40px); left: clamp(22px, 4vw, 56px); margin: 0; z-index: 6; }
@media (max-width: 700px) {
  .hero-copy { padding-top: 90px; }
}

/* The original palette stays vivid; dark surfaces carry the same accents. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --acid: #173e32;
  --text: #f1eee7;
  --muted: #b7b3c3;
  --paper: #101114;
  --white: #1d1e25;
  --outline: #6e6b7e;
  --shadow-color: #060609;
  --map-surface: #2e2844;
  --lavender-surface: #302a46;
  --green-surface: var(--acid);
  --blue-surface: #293fba;
  --divider: #494654;
  --link: #a8b5ff;
}
:root[data-theme="dark"] .map-grid { background-image: linear-gradient(#a99acb 1px, transparent 1px), linear-gradient(90deg, #a99acb 1px, transparent 1px); opacity: .18; }
:root[data-theme="dark"] .map-lines line { stroke: #b9add5; opacity: .8; }
:root[data-theme="dark"] .core::before { border-color: #8b829e; }
:root[data-theme="dark"] .core img,
:root[data-theme="dark"] .brand img,
:root[data-theme="dark"] .footer-brand img { border-color: #101114; }
:root[data-theme="dark"] .clip-icon span { background: var(--ink); box-shadow: 0 17px var(--ink), 0 34px var(--ink); }
:root[data-theme="dark"] .meter span { background: var(--acid); border: 1px solid var(--outline); }
:root[data-theme="dark"] .meter span:last-child { background: var(--lavender); }
:root[data-theme="dark"] .clip-lines span { background: #b6a7f2; }
:root[data-theme="dark"] .key-row kbd { background: #282933; }
:root[data-theme="dark"] .sound-icon span { background: #7890ff; }
:root[data-theme="dark"] .sound-icon span:nth-child(3) { background: var(--acid); }
:root[data-theme="dark"] .section-index,
:root[data-theme="dark"] .mini-label,
:root[data-theme="dark"] .menu-button,
:root[data-theme="dark"] .skip-link { color: var(--text); }
:root[data-theme="dark"] footer { background: var(--green-surface); }
:root[data-theme="dark"] .module-close:hover,
:root[data-theme="dark"] .nav-cta:hover,
:root[data-theme="dark"] .button-primary:hover,
:root[data-theme="dark"] .bolt-icon { color: var(--text); }
:root[data-theme="dark"] .terminal-body > p > span { color: var(--text); }
:root[data-theme="dark"] .module-card:has(.module-open:focus-visible),
:root[data-theme="dark"] .module-close:focus-visible { outline-color: var(--lavender); }

.topbar-actions { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.theme-toggle { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); align-items: center; justify-items: center; flex-shrink: 0; width: 68px; height: 34px; padding: 2px; border: var(--line); border-radius: 20px; background: var(--paper); color: var(--muted); box-shadow: 2px 2px 0 var(--shadow-color); cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* Each icon and its selected circle share one centered grid cell. */
.theme-toggle::before { content: none; }
.theme-option { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid transparent; border-radius: 50%; background: transparent; transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease; }
.theme-toggle svg { display: block; width: 16px; height: 16px; margin: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-option-sun { background: var(--lavender); border-color: var(--ink); color: var(--ink); }
.theme-toggle .theme-option-moon { color: var(--muted); }
/* The crescent has more visual weight at the lower left. */
.theme-toggle .theme-moon { translate: .75px -.75px; }
:root[data-theme="dark"] .theme-toggle .theme-option-sun { background: transparent; border-color: transparent; color: var(--muted); }
:root[data-theme="dark"] .theme-toggle .theme-option-moon { background: var(--acid); border-color: var(--outline); color: var(--text); }
.theme-toggle:hover { border-color: var(--link); }
.theme-toggle:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
/* Only color properties transition, so existing motion and page layout stay stable. */
html.theme-transition body,
html.theme-transition .shell,
html.theme-transition .topbar,
html.theme-transition .control-map,
html.theme-transition .window-bar,
html.theme-transition .module-node,
html.theme-transition .core,
html.theme-transition .module-card,
html.theme-transition .launch,
html.theme-transition .terminal-card,
html.theme-transition footer,
html.theme-transition #module-dialog,
html.theme-transition .module-detail-header,
html.theme-transition .module-close { transition: background-color 320ms ease, color 320ms ease, border-color 320ms ease, box-shadow 320ms ease; }
@media (max-width: 700px) {
  .topbar-actions { gap: 16px; }
  .topbar { gap: 16px; }
  .theme-toggle { order: -1; }
}

/* Keep illustration depth quiet against the dark cards. */
:root[data-theme="dark"] .display-icon,
:root[data-theme="dark"] .bolt-icon,
:root[data-theme="dark"] .key-icon {
  border-color: var(--outline);
  box-shadow: 4px 4px 0 var(--shadow-color);
}
:root[data-theme="dark"] .display-icon span {
  border: 1px solid var(--outline);
  box-shadow: none;
}

:root[data-theme="dark"] .theme-toggle { box-shadow: none; }

/* Notch module: screen silhouette with its inset camera housing. */
.notch-icon { position: relative; width: 112px; height: 76px; border: 2px solid var(--ink); border-radius: 10px; background: var(--lavender); box-shadow: 5px 5px 0 var(--shadow-color); }
.notch-icon::before { content: ''; position: absolute; width: 48px; height: 18px; top: -1px; left: 30px; border-radius: 0 0 10px 10px; background: var(--ink); }
.notch-icon span { position: absolute; inset: 30px 16px 14px; border: 1px solid var(--ink); border-radius: 6px; }

/* ---- 1.2.0: Free/Pro, new modules, FAQ ---- */
.hero-tagline { margin: 0; max-width: 460px; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.4; letter-spacing: -.02em; }
.node-sound { left: 32%; top: 13%; }
.node-transcribe { left: 68%; top: 13%; animation-delay: -3.2s; }
.node-capture { left: 32%; top: 92%; animation-delay: -3.2s; }
.node-widgets { left: 68%; top: 92%; }
.module-group { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin: 18px 0 0; font: 500 11px var(--mono); color: var(--muted); }
.module-group:first-child { margin-top: 0; }
.module-group span { padding: 6px 10px; border: var(--line); background: var(--white); color: var(--text); box-shadow: 3px 3px 0 var(--shadow-color); }
.module-group::after { content: ''; flex: 1; border-top: 1px dashed var(--outline); }
@media (min-width: 1280px) { .module-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .module-card h3 { font-size: 27px; } }
.capture-icon { position: relative; width: 140px; height: 92px; border: 2px dashed var(--outline); }
.capture-icon::before, .capture-icon::after { content: ''; position: absolute; width: 12px; height: 12px; background: var(--white); border: var(--line); }
.capture-icon::before { left: -8px; top: -8px; } .capture-icon::after { right: -8px; bottom: -8px; }
.capture-icon span { position: absolute; inset: 18px 26px; background: var(--acid); border: var(--line); }
.blue .widgets-icon span { background: #fffefa; color: #101114; border-color: #101114; }
.edition-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px 20px 0; }
.edition { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: var(--line); background: var(--paper); }
.edition h3 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.edition p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.edition .button { margin-top: auto; }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.faq-heading { font-size: clamp(54px, 6vw, 96px); position: sticky; top: 100px; }
.faq-list { border-top: var(--line); }
.faq details { border-bottom: var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 22px/1 var(--mono); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.faq details p { margin: 0 0 24px; max-width: 560px; font-size: 16px; line-height: 1.6; }
.faq details a { color: var(--link); }
@media (max-width: 980px) { .faq { grid-template-columns: 1fr; } .faq-heading { position: static; } }
@media (max-width: 700px) { .edition-list { grid-template-columns: 1fr; } .faq summary { font-size: 17px; } .node-sound, .node-capture { left: 27%; } .node-transcribe, .node-widgets { left: 73%; } }

/* ---- Motion: hard, mechanical moves in the site's own language (offset shadows, steps), no fades of whole sections. ---- */
.js .reveal { transform: translate(-8px, -8px); box-shadow: 0 0 0 var(--shadow-color) !important; opacity: 0; transition: transform .5s cubic-bezier(.2,1.4,.4,1), box-shadow .5s cubic-bezier(.2,1.4,.4,1), opacity .2s linear; transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-in { transform: none; opacity: 1; box-shadow: 5px 5px 0 var(--shadow-color) !important; }
.js .module-card.reveal.is-in:hover { transform: translate(-2px,-3px); box-shadow: 8px 9px 0 var(--shadow-color) !important; transition-delay: 0s; }
.js .terminal-card.reveal.is-in { box-shadow: 10px 10px 0 var(--shadow-color) !important; }
.js .module-group.reveal, .js .faq details.reveal { box-shadow: none !important; transform: translateY(14px); }
.js .module-group.reveal.is-in, .js .faq details.reveal.is-in { box-shadow: none !important; transform: none; }
/* Headline letters drop in like keys being pressed. */
.js h1 .char { display: inline-block; animation: key-press .55s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(var(--c) * 70ms + 120ms); }
@keyframes key-press { from { transform: translateY(-0.5em); opacity: 0; } 60% { transform: translateY(.05em); } to { transform: none; opacity: 1; } }
/* The control map assembles: nodes snap out of the core, lines draw after them. */
.js .control-map .module-node { animation: node-out .6s cubic-bezier(.2,1.5,.4,1) both, float 4s ease-in-out .9s infinite; animation-delay: calc(var(--n, 0) * 70ms + 300ms), calc(var(--n, 0) * 70ms + 1s); }
@keyframes node-out { from { left: 50%; top: 52%; opacity: 0; } to { opacity: 1; } }
.js .map-lines { animation: lines-in .4s linear 1.55s both; }
@keyframes lines-in { from { opacity: 0; } to { opacity: 1; } }
/* Terminal lines are typed once the card is on screen. */
.js .terminal-body p { visibility: hidden; }
.js .terminal-body.typed p { visibility: visible; animation: type-line .45s steps(18, end) both; animation-delay: calc(var(--l, 0) * 260ms); clip-path: inset(0 100% 0 0); }
@keyframes type-line { to { clip-path: inset(0 0 0 0); } }
/* Buttons press down onto their shadow. */
.button:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow-color); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .terminal-body p { opacity: 1 !important; transform: none !important; visibility: visible !important; clip-path: none !important; }
}

.edition h3 span { font: 500 12px var(--mono); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.edition .button { gap: 14px; }
.blue .mini-label { color: var(--text); }
.blue .mini-label { color: var(--text); }
