:root {
  color-scheme: dark;
  --page: #151124;
  --surface: #1c172d;
  --surface-raised: #241d37;
  --ink: #f7f2ff;
  --muted: #c5bcd6;
  --line: #3b314f;
  --accent: #cfb4ff;
  --accent-bright: #e7d7ff;
  --on-accent: #211333;
  --landing-text: "Inter Variable", "Segoe UI", system-ui, sans-serif;
  --landing-heading: "Inter Tight Variable", var(--landing-text);
  --landing-label: "JetBrains Mono Variable", ui-monospace, monospace;
  font-family: var(--landing-text);
  background: var(--page);
  color: var(--ink);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { min-width: 0; }
img { max-width: 100%; }
a { color: inherit; text-underline-offset: .23em; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 10px; background: var(--surface-raised); transform: translateY(-170%); }
.skip:focus { transform: none; }
section[id] { scroll-margin-top: 24px; }
h1, h2, h3 { font-family: var(--landing-heading); font-weight: 700; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; text-wrap: balance; }
h3 { font-size: 1.22rem; line-height: 1.18; }
.kicker { color: var(--accent); font-family: var(--landing-label); font-size: .75rem; line-height: 1.45; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header { border-bottom: 1px solid var(--line); background: #151124; }
.header-inner { min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; }
.brand img { width: 106px; height: 31px; object-fit: contain; padding: 4px 7px; border-radius: 6px; background: #f9f4ff; }
.brand span { color: var(--muted); font-size: .84rem; font-weight: 650; }
.header-actions, .site-header nav, .footer nav { display: flex; align-items: center; gap: clamp(13px, 2.2vw, 26px); }
.site-header nav a, .header-actions > a:first-child, .footer nav a { text-decoration: none; color: var(--muted); font-size: .91rem; font-weight: 600; }
.site-header nav a:hover, .header-actions > a:first-child:hover, .footer nav a:hover { color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 9px; font-size: .93rem; font-weight: 720; text-decoration: none; }
.button span { font-size: 1.1em; }
.header-download { min-height: 38px; padding: 7px 11px; border-color: #614e7b; color: var(--accent-bright); }
.accent { color: var(--on-accent); background: var(--accent); }
.accent:hover { background: var(--accent-bright); }
.quiet, .dark { border-color: var(--line); background: var(--surface); color: var(--ink); }
.quiet:hover, .dark:hover, .header-download:hover { border-color: #957ab7; background: var(--surface-raised); }
.text-link { color: var(--accent-bright); font-size: .9rem; font-weight: 650; }
.hero { background: radial-gradient(ellipse at 79% 40%, #33214f 0%, #1e152e 32%, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: clamp(26px, 5.2vw, 78px); padding-block: clamp(38px, 6.1vw, 82px); }
.hero h1 { max-width: 12ch; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .99; margin-top: 16px; letter-spacing: -.071em; }
.hero h1 em { display: block; margin-top: .12em; color: var(--accent); font-size: .9em; font-style: normal; font-weight: inherit; letter-spacing: -.055em; }
.lead { color: var(--muted); line-height: 1.62; max-width: 48ch; margin-top: 20px; font-size: clamp(1rem, 1.6vw, 1.12rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.hero-specs { display: flex; gap: 7px 17px; flex-wrap: wrap; padding: 17px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .82rem; color: var(--muted); }
.hero-specs li { display: flex; align-items: center; gap: 7px; }
.hero-specs li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-showcase { min-width: 0; overflow: hidden; border: 1px solid #5a4679; border-radius: 19px; box-shadow: 0 24px 70px #0b071a80; background: #1a1429; }
.showcase-heading, .showcase-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 16px; color: var(--muted); font-size: .81rem; }
.showcase-heading { border-bottom: 1px solid #49385f; }
.showcase-heading span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #c2a1fa; box-shadow: 0 0 11px #c2a1fa90; }
.showcase-caption { border-top: 1px solid #49385f; }
.showcase-caption strong { color: var(--ink); font-size: .92rem; }
.showcase-stage {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  padding-block: 25px;
  background: radial-gradient(ellipse at center, #56396f 0%, #21172f 70%);
}
.showcase-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#d6baff0b 1px,transparent 1px), linear-gradient(90deg,#d6baff0b 1px,transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.featured-story, .showcase-side { width: clamp(135px, 19vw, 203px); aspect-ratio: 9/16; border: 1px solid #c4a9e9ad; border-radius: 13px; overflow: hidden; box-shadow: 0 8px 32px #0e091bc9; }
.featured-story { position: relative; padding: 0; background: #191227; }
.featured-story img { display: block; width: 100%; height: 100%; object-fit: cover; }
.showcase-side { position: absolute; z-index: -1; height: auto; display: block; object-fit: cover; opacity: .57; width: clamp(106px, 16vw, 166px); }
.showcase-left { left: 8%; transform: rotate(-11deg) translateY(10px); }
.showcase-right { right: 8%; transform: rotate(10deg) translateY(10px); }
.play-symbol { position: absolute; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #f2e8ff6e; border-radius: 50%; background: #160e24e6; color: white; font-size: .88rem; padding-left: 2px; }
.featured-story .play-symbol { inset: 44% auto auto 50%; transform: translateX(-50%); }
.featured-story:hover .play-symbol, .sample-play:is(:hover, :focus-visible) .play-symbol { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.section > .wrap { padding-block: clamp(37px, 6vw, 76px); border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: end; gap: 13px 24px; margin-bottom: clamp(19px, 3vw, 31px); }
.section-heading .kicker { margin-bottom: 8px; }
.section-heading > p { max-width: 36ch; color: var(--muted); line-height: 1.5; }
.sample-heading, .sample-gallery { max-width: 870px; margin-inline: auto; }
.sample-gallery {
  --sample-gap: clamp(16px, 2.5vw, 28px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px var(--sample-gap);
}
.sample-card { flex: 0 0 calc((100% - 2 * var(--sample-gap)) / 3); min-width: 0; }
.sample-frame {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #5a4774;
  border-radius: 18px;
  background: #100c19;
}
.sample-card[data-active=true] .sample-frame { border-color: var(--accent); }
.sample-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.sample-frame:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.sample-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; background: transparent; }
.sample-play .play-symbol { position: static; width: 54px; height: 54px; box-shadow: 0 4px 20px #100c19b3; font-size: 1rem; }
.sample-caption { display: grid; gap: 6px; padding: 13px 2px 0; }
.sample-caption h3 { font-size: clamp(1rem, 1.65vw, 1.27rem); line-height: 1.28; letter-spacing: -.025em; }
.sample-error { font-size: .85rem; color: var(--muted); }
.screen-board { width: min(490px, calc(100% - 24px)); max-height: calc(100dvh - 22px); border: 1px solid var(--line); border-radius: 15px; padding: 15px; background: var(--surface); color: var(--ink); }
.screen-board::backdrop { background: #100a1bd9; }
.player-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 10px; }
.player-heading h3 { margin-top: 4px; }
.screen-board video { display: block; max-width: 100%; width: min(320px, calc((100dvh - 135px)*.5625)); aspect-ratio: 9/16; object-fit: contain; background: #120e1b; margin: 0 auto; border-radius: 7px; }
.advertising-intro { margin-bottom: clamp(22px, 4vw, 38px); }
.advertising-intro h2 { margin-top: 8px; }
.advertising-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); justify-content: center; align-items: start; gap: clamp(24px, 5vw, 56px); }
.advertising-example { min-width: 0; }
.advertising-example video { display: block; width: 100%; height: auto; aspect-ratio: 9/16; background: #152524; border: 1px solid #6a577a; border-radius: 12px; }
.advertising-example figcaption { display: grid; gap: 4px; padding-top: 11px; color: var(--muted); font-size: .82rem; text-align: center; line-height: 1.42; }
.advertising-example figcaption strong { color: var(--ink); }
.advertising-player-controls { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-bottom: 5px; text-align: start; }
.advertising-player-controls button { min-height: 34px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.advertising-player-controls button:hover { border-color: var(--accent); }
.advertising-player-controls input { width: 100%; min-width: 0; margin: 0; accent-color: var(--accent); }
.advertising-player-controls > span { text-align: end; font-variant-numeric: tabular-nums; }
.advertising-contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 32px; margin-top: clamp(23px, 4vw, 39px); padding: clamp(15px, 3vw, 27px); background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.advertising-contact ol { margin: 10px 0 0; padding-inline-start: 1.3em; }
.advertising-contact li { margin-block: 4px; color: var(--muted); line-height: 1.48; }
.advertising-contact-action { display: grid; justify-items: start; gap: 8px; }
.advertising-contact-action .text-link { overflow-wrap: anywhere; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 17px 30px; }
.faq-list { display: grid; gap: 7px; }
.faq-list details { padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.faq-list details[open] { border-color: #76599c; }
.faq-list summary { cursor: pointer; font-weight: 650; }
.faq-list summary::marker { color: var(--accent); }
.faq-list p { color: var(--muted); margin-top: 8px; line-height: 1.48; }
.download.section > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 17px 35px; align-items: center; border: 1px solid #624d82; border-radius: 17px; padding: clamp(18px, 3.6vw, 42px); background: linear-gradient(118deg, #36234f, #251d39 68%); }
.download h2 { margin-top: 7px; }
.download p:not(.kicker) { color: var(--muted); margin-top: 7px; line-height: 1.5; overflow-wrap: anywhere; }
.download-action p, .download-requirements { font-size: .85rem; }
.download-action .text-link { display: inline-block; margin-top: 7px; }
.footer { margin-top: clamp(26px, 4vw, 49px); border-top: 1px solid var(--line); }
.footer-inner { min-height: 76px; padding-block: 13px; }
.footer nav { flex-wrap: wrap; }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .site-header .brand span { display: none; }
  .header-inner, .header-actions { gap: 12px; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: 11px; gap: 10px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .site-header nav { grid-column: 1 / -1; gap: 7px 15px; flex-wrap: wrap; }
  .site-header nav a { padding-block: 3px; }
  .hero-grid, .advertising-contact, .faq-layout, .download.section > .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.75rem, 11vw, 5rem); }
  .hero-showcase { width: min(500px, 100%); }
  .featured-story { width: clamp(123px, 36vw, 192px); }
  .showcase-side { width: clamp(94px, 28vw, 156px); }
  .footer-inner { align-items: start; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .sample-gallery {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 5px 5px 12px;
    margin-inline: -5px;
    scroll-padding-inline: 5px;
    scroll-snap-type: x mandatory;
    scrollbar-color: #685682 var(--page);
  }
  .sample-card { flex-basis: min(70vw, 240px); scroll-snap-align: start; }
}
@media (max-width: 530px) {
  .advertising-gallery { grid-template-columns: minmax(0, 290px); }
  .header-actions > a:first-child { font-size: .81rem; }
  .header-download { min-height: 34px; padding: 6px 8px; font-size: .8rem; }
  .hero-specs { gap: 6px 13px; font-size: .78rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy, .hero-showcase { animation: arrive 420ms ease-out both; }
  .hero-showcase { animation-delay: 60ms; }
  .play-symbol, .button, .advertising-player-controls button { transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease; }
  .screen-board[open] { animation: fade 190ms ease-out both; }
}
@keyframes arrive { from { opacity: .45; transform: translateY(11px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: .6; } to { opacity: 1; } }
