:root {
  color-scheme: dark;
  --bg: #050506;
  --line: #28282e;
  --text: #f2f2f3;
  --muted: #a4a4af;
  --accent: #c8ff3d;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 7rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif; line-height: 1.6; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 3; padding: 12px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 2; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row, .brand, nav { display: flex; align-items: center; }
.header-row { min-height: 76px; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 12px; }
.brand { gap: 10px; font-size: 20px; font-weight: 700; text-decoration: none; min-height: 44px; }
.brand img { border-radius: 8px; flex: none; }
nav { gap: 24px; flex-wrap: wrap; justify-content: end; }
nav a, footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; gap: 6px; }
.language-menu { position: relative; max-width: 100%; margin-inline-start: auto; }
.language-menu summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; padding-inline: 12px; border: 1px solid var(--muted); border-radius: 4px; }
.language-menu ul { position: absolute; inset-inline-end: 0; top: 100%; z-index: 4; width: max-content; max-width: min(280px, 80vw); max-height: 60svh; overflow-y: auto; margin: 4px 0 0; padding: 8px; list-style: none; background: var(--bg); border: 1px solid var(--muted); }
.language-menu a { display: block; min-height: 44px; padding: 10px 12px; text-decoration: none; }
.language-menu a:hover, .language-menu a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.intro { display: flex; flex-direction: column; }
.hero { order: 2; padding-block: 64px; }
.hero-icon { margin-bottom: 24px; border-radius: 16px; }
.eyebrow, .step { color: var(--accent); font-size: 13px; font-weight: 600; }
h1 { max-width: 12ch; margin-block: 16px 24px; font-size: clamp(42px, 5.5vw, 72px); line-height: 1.05; letter-spacing: -.04em; }
.lead { max-width: 36rem; font-size: 18px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; padding: 14px 22px; min-height: 48px; background: var(--accent); color: var(--bg); border-radius: 999px; text-decoration: none; font-weight: 700; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.screen-story { order: 1; min-width: 0; }
.viewport-measure { position: absolute; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }
.story-scene { display: grid; gap: 48px; padding-block: 32px; }
.story-frame { display: flex; flex-direction: column; align-items: center; gap: 20px; min-width: 0; }
.story-frame img { width: min(100%, 320px); object-fit: contain; }
figcaption { width: 100%; max-width: 320px; }
figcaption h2 { margin-top: 4px; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
figcaption p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.section { padding-block: 72px; border-top: 1px solid var(--line); }
.section h2 { max-width: 22ch; margin-block: 12px 40px; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -.03em; }
.features { display: grid; gap: 40px; }
.features h3 { font-size: 19px; margin-bottom: 8px; }
.features p, .flow span, .data-section > p:not(.eyebrow) { color: var(--muted); }
.flow { margin: 0; padding-left: 24px; }
.flow li { padding: 20px 0 20px 12px; border-bottom: 1px solid var(--line); }
.flow li::marker { color: var(--accent); }
.flow strong, .flow span { display: block; }
.flow strong { margin-bottom: 4px; }
.data-section { max-width: 780px; }
.data-section > p:not(.eyebrow) { margin-bottom: 20px; }
.text-link { display: inline-block; min-height: 44px; padding-block: 10px; }
footer { padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
@media (max-width: 600px) {
  .story-ready { height: var(--story-distance); }
  .story-ready .story-scene { position: sticky; top: var(--header-height); height: var(--scene-height); display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); gap: 0; padding-block: 20px; }
  .story-ready .story-frame { grid-area: 1 / 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: stretch; gap: 16px; min-height: 0; opacity: 0; visibility: hidden; }
  .story-ready .story-frame.is-active { opacity: 1; visibility: visible; }
  .story-ready .story-frame img { width: 100%; height: 100%; min-height: 0; }
  .story-ready figcaption { align-self: end; min-height: var(--caption-height); }
}
@media (min-width: 601px) {
  .hero { order: 0; padding-block: 80px 48px; }
  .story-scene { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 24px 72px; }
  .story-frame img { width: min(100%, 260px); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .intro { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 64px; }
  .hero { padding-block: 88px; }
  .story-scene { padding-block: 64px; }
  figcaption h2 { font-size: 21px; }
  .workflow { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  nav { gap: 12px; }
  nav a { font-size: 12px; }
  .brand { gap: 6px; font-size: 18px; }
}
