:root {
  color-scheme: dark;
  --ink: #090909;
  --paper: #f3f0e7;
  --muted: #a9a6a1;
  --muted-dark: #96928d;
  --line: rgba(243, 240, 231, .13);
  --line-strong: rgba(243, 240, 231, .24);
  --coral: #ff6c54;
  --violet: #a98bff;
  --blue: #62a5ff;
  --mono: "DM Mono", ui-monospace, monospace;
  --sans: "Inter Tight", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--ink); color: var(--paper); font-family: var(--sans); text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 88%); }
a { color: inherit; }
button { color: inherit; font: inherit; }
.skip-link { position: fixed; top: 0; left: 1rem; z-index: 30; padding: .8rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-120%); }
.skip-link:focus { transform: translateY(0); }

.navigation-shell { position: sticky; top: 0; z-index: 20; width: min(100% - 2rem, 1280px); margin: 0 auto -5.8rem; padding-top: .75rem; }
.site-navigation { min-height: 68px; padding: .55rem .65rem .55rem 1rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border: 1px solid var(--line); border-radius: 1.1rem; background: rgba(10,10,11,.88); box-shadow: 0 16px 50px rgba(0,0,0,.2); backdrop-filter: blur(20px); }
.brand { display: inline-flex; width: max-content; align-items: center; gap: .68rem; text-decoration: none; font-weight: 600; letter-spacing: -.025em; }
.brand small { margin-left: .1rem; padding: .3rem .5rem; border: 1px solid rgba(255,108,84,.25); border-radius: 999px; color: #ffc1b5; font: 400 .6rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.brand-mark { width: 28px; height: 25px; display: flex; align-items: end; justify-content: center; gap: 3px; border: 1px solid var(--line-strong); border-radius: .48rem; background: linear-gradient(145deg,#222226,#101012); padding: 5px; }
.brand-mark i { width: 3px; height: 8px; background: var(--paper); border-radius: 2px; }
.brand-mark i:nth-child(2) { height: 14px; background: var(--coral); }
.brand-mark i:nth-child(3) { height: 11px; }
.site-navigation nav { display: flex; align-items: center; gap: 1.8rem; }
.site-navigation nav a, .language-link { color: #a8a4a0; font-size: .78rem; text-decoration: none; transition: color .2s; }
.site-navigation nav a:hover, .site-navigation nav a:focus-visible, .language-link:hover, .language-link:focus-visible { color: var(--paper); }
.navigation-actions { display: flex; justify-content: flex-end; align-items: center; gap: 1.35rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; padding: .82rem 1rem; border-radius: .72rem; background: var(--paper); color: var(--ink); font-size: .72rem; font-weight: 600; }
.status i, .signal { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 14px rgba(255,108,84,.7); }

.hero { width: min(100% - 2rem, 1240px); margin: 0 auto; padding: clamp(10rem, 15vw, 13.5rem) 0 0; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .62fr); gap: 4rem; align-items: end; }
.eyebrow, .section-kicker { margin: 0 0 1.7rem; color: #ffc1b5; font: 400 .69rem/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { grid-column: 1; margin: 0; max-width: 950px; font-size: clamp(4.4rem, 7.8vw, 8.2rem); line-height: .86; letter-spacing: -.072em; font-weight: 500; }
h1 em { color: var(--coral); font-style: normal; }
.hero-support { grid-column: 2; grid-row: 2; align-self: end; padding-bottom: .35rem; }
.hero-support p { margin: 0 0 2rem; color: #b8b4af; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.58; }
.hero-support a { display: flex; justify-content: space-between; padding: 0 0 .75rem; border-bottom: 1px solid #8a736e; color: #f6ded9; font-size: .8rem; font-weight: 600; text-decoration: none; }

.workstation { margin-top: clamp(4rem, 7vw, 6rem); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 1.15rem; background: #101012; box-shadow: 0 44px 120px rgba(0,0,0,.42), 0 0 100px rgba(255,108,84,.055); }
.workstation-bar { min-height: 70px; padding: .8rem 1rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); }
.window-title { display: flex; align-items: center; gap: .7rem; min-width: 0; font-size: .76rem; }
.window-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-title small { color: var(--muted-dark); font: 400 .62rem var(--mono); }
.mode-tabs { padding: .27rem; display: flex; gap: .15rem; border: 1px solid var(--line); border-radius: .75rem; background: #0b0b0d; }
.mode-tabs button { padding: .63rem .9rem; border: 0; border-radius: .55rem; background: transparent; color: #898681; cursor: pointer; font-size: .7rem; }
.mode-tabs button.is-active { background: #242327; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.play-button { justify-self: end; padding: .72rem .9rem; border: 1px solid rgba(255,108,84,.28); border-radius: .65rem; background: rgba(255,108,84,.09); color: #ffd8d1; cursor: pointer; font: 500 .68rem var(--mono); }
.workstation-body { min-height: 620px; display: grid; grid-template-columns: minmax(260px,.72fr) minmax(420px,1.35fr) minmax(210px,.58fr); }
.pane { min-width: 0; transition: opacity .25s, filter .25s, transform .25s; }
.source-pane, .paper-pane { border-right: 1px solid var(--line); }
.pane-heading { height: 48px; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: #d0ccc4; font-size: .71rem; }
.pane-heading small { color: var(--muted-dark); font: 400 .58rem var(--mono); }
.source-pane { display: grid; grid-template-rows: auto 1fr auto; background: #121214; }
.source-pane pre { margin: 0; padding: 2rem 1.45rem; overflow: hidden; color: #d6d1c8; font: 400 clamp(.62rem,.76vw,.78rem)/1.8 var(--mono); tab-size: 2; }
.dim { color: #98949b; }.violet { color: var(--violet); }.cream { color: #f3dac2; }.coral { color: var(--coral); }.blue { color: var(--blue); }
.source-footer, .paper-footer { height: 38px; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #98949b; font: 400 .55rem var(--mono); }
.paper-pane { display: grid; grid-template-rows: auto 1fr auto; background: #181719; }
.paper-stage { position: relative; margin: clamp(1rem,2.5vw,2.5rem); display: grid; place-items: center; overflow: hidden; border-radius: .25rem; background: #e9e6de; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.paper-stage img { display: block; width: 100%; height: auto; filter: contrast(.98); }
.selection-note { position: absolute; width: 16px; height: 12px; left: 40%; top: 52%; border: 1px solid var(--blue); background: rgba(98,165,255,.2); opacity: 0; }
.playhead { position: absolute; top: 7%; bottom: 7%; left: 22%; width: 2px; background: var(--coral); box-shadow: 0 0 20px var(--coral); opacity: 0; }
.control-pane { padding-bottom: 1rem; background: #111113; }
.control-pane dl { margin: 0; padding: .6rem 1rem 1.2rem; }
.control-pane dl div { padding: .85rem 0; display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.control-pane dt { color: #96929a; font: 400 .59rem var(--mono); }
.control-pane dd { margin: 0; color: #c8c3bc; font-size: .68rem; text-align: right; }
.audio-card { margin: .4rem .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: #18171a; }
.audio-card > span { color: #9a969d; font: 400 .58rem var(--mono); }
.audio-card strong { display: block; margin-top: .45rem; font-size: .9rem; }
.audio-card small { display: block; margin-top: .75rem; color: #9a969d; font: 400 .5rem/1.5 var(--mono); }
.wave { height: 30px; margin-top: .8rem; display: flex; align-items: center; gap: 4px; }
.wave i { width: 2px; height: 24%; border-radius: 2px; background: var(--coral); }
.wave i:nth-child(2),.wave i:nth-child(6){height:48%}.wave i:nth-child(3),.wave i:nth-child(5){height:78%}.wave i:nth-child(4){height:100%}
.workstation-caption { min-height: 64px; padding: .85rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); font-size: .74rem; }
.workstation-caption span { color: #817e79; text-align: right; }
.workstation[data-mode="write"] [data-region="source"] { box-shadow: inset 0 2px var(--violet); }
.workstation[data-mode="shape"] [data-region="source"] { opacity: .5; filter: saturate(.45); }
.workstation[data-mode="shape"] [data-region="paper"], .workstation[data-mode="shape"] [data-region="controls"] { box-shadow: inset 0 2px var(--blue); }
.workstation[data-mode="shape"] .selection-note { opacity: 1; }
.workstation[data-mode="hear"] [data-region="source"], .workstation[data-mode="hear"] [data-region="controls"] dl { opacity: .48; filter: saturate(.35); }
.workstation[data-mode="hear"] .audio-card { border-color: rgba(255,108,84,.36); box-shadow: 0 0 40px rgba(255,108,84,.1); }
.workstation[data-mode="hear"] .playhead, .workstation.is-playing .playhead { opacity: 1; }
.workstation.is-playing .playhead { animation: playhead 4s linear infinite; }
.workstation.is-playing .wave i { animation: wave .7s ease-in-out infinite alternate; }
.workstation.is-playing .wave i:nth-child(2n) { animation-delay: -.3s; }
@keyframes playhead { from { left: 15%; } to { left: 86%; } }
@keyframes wave { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.product-facts { padding: 1.25rem .3rem; display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; border-bottom: 1px solid var(--line); color: #918e89; font: 400 .62rem var(--mono); }
.product-facts span:nth-child(even) { text-align: right; }

.statement, .feature-grid, .engine-band, .closing, .site-footer { width: min(100% - 2rem, 1240px); margin-inline: auto; }
.statement { padding: clamp(7rem,12vw,12rem) 0 clamp(4rem,8vw,7rem); display: grid; grid-template-columns: .46fr 1fr; gap: 3rem; border-bottom: 1px solid var(--line); }
.statement h2, .engine-copy h2, .closing h2 { margin: 0; max-width: 900px; font-size: clamp(3.2rem,6vw,6.7rem); line-height: .91; letter-spacing: -.065em; font-weight: 500; }
.statement > div > p { max-width: 680px; margin: 2rem 0 0; color: #a9a6a1; font-size: clamp(1rem,1.35vw,1.2rem); line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); }
.feature-grid article { min-height: 330px; padding: 2.2rem 2rem 2.5rem 0; border-right: 1px solid var(--line); }
.feature-grid article + article { padding-left: 2rem; }
.feature-grid article:last-child { border-right: 0; }
.feature-grid article > span { color: #817c78; font: 400 .62rem var(--mono); }
.feature-grid h3 { margin: 5rem 0 1rem; font-size: clamp(1.6rem,2.3vw,2.4rem); letter-spacing: -.045em; font-weight: 500; }
.feature-grid p { margin: 0; color: #96928d; font-size: .95rem; line-height: 1.58; }
.engine-band { padding: clamp(7rem,11vw,10rem) 0; display: grid; grid-template-columns: 1fr .8fr; gap: clamp(3rem,7vw,7rem); border-bottom: 1px solid var(--line); }
.engine-copy h2 { font-size: clamp(3rem,5vw,5.6rem); }
.engine-list { align-self: end; }
.engine-list div { padding: 1rem 0; display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); }
.engine-list div:last-child { border-bottom: 1px solid var(--line); }
.engine-list span { color: #918e89; font: 400 .59rem var(--mono); }
.engine-list strong { font-size: .8rem; font-weight: 500; text-align: right; }
.closing { padding: clamp(8rem,14vw,14rem) 0; text-align: center; }
.closing .section-kicker { color: var(--coral); }
.closing h2 { max-width: none; font-size: clamp(5rem,11vw,11rem); }
.closing > p:not(.section-kicker) { margin: 1.6rem 0 2.5rem; color: #88847f; }
.closing a { display: inline-flex; gap: 2rem; padding: 1rem 1.2rem; border: 1px solid var(--line-strong); border-radius: .65rem; text-decoration: none; font: 500 .7rem var(--mono); transition: background .2s,color .2s; }
.closing a:hover,.closing a:focus-visible { background: var(--paper); color: var(--ink); }
.site-footer { padding: 1.4rem 0 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: #918e89; font: 400 .61rem var(--mono); }
.footer-brand { color: var(--paper); font-family: var(--sans); }
.site-footer p { margin: 0; }
.site-footer > a:last-child { text-decoration: none; }

@media (max-width: 980px) {
  .site-navigation { grid-template-columns: 1fr auto; }
  .site-navigation nav { display: none; }
  .hero-copy { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-support { grid-column: 1; grid-row: auto; max-width: 600px; }
  .workstation-body { grid-template-columns: minmax(230px,.8fr) 1.3fr; }
  .control-pane { display: none; }
  .paper-pane { border-right: 0; }
  .statement { grid-template-columns: 1fr; }
  .engine-band { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .navigation-shell { width: min(100% - 1rem,1280px); margin-bottom: -5.2rem; padding-top: .45rem; }
  .site-navigation { min-height: 62px; padding: .45rem .5rem .45rem .7rem; border-radius: .9rem; }
  .brand small, .language-link { display: none; }
  .status { padding: .7rem .75rem; font-size: .64rem; }
  .hero { width: min(100% - 2rem,1240px); padding-top: 9rem; }
  h1 { font-size: clamp(3.8rem,17vw,6rem); line-height: .9; }
  .workstation { margin-top: 3rem; border-radius: .85rem; }
  .workstation-bar { grid-template-columns: 1fr auto; }
  .window-title small, .play-button { display: none; }
  .mode-tabs button { padding: .57rem .62rem; }
  .workstation-body { min-height: auto; grid-template-columns: 1fr; }
  .source-pane { min-height: 430px; border-right: 0; border-bottom: 1px solid var(--line); }
  .source-pane pre { padding: 1.5rem 1rem; font-size: .64rem; }
  .paper-pane { min-height: 320px; }
  .paper-stage { margin: 1rem; }
  .workstation-caption { align-items: flex-start; flex-direction: column; }
  .workstation-caption span { text-align: left; }
  .product-facts { grid-template-columns: repeat(2,1fr); row-gap: 1.2rem; }
  .statement { padding-top: 7rem; }
  .statement h2, .engine-copy h2 { font-size: clamp(3rem,13vw,4.8rem); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article + article { min-height: 250px; padding: 2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-grid article:last-child { border-bottom: 0; }
  .feature-grid h3 { margin-top: 3.5rem; }
  .engine-list div { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .engine-list strong { text-align: left; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
