.landing {
  --landing-bg: #0c0c10;
  --landing-line: #303039;
  --landing-panel: #17171d;
  --landing-text: #f8f7f5;
  --landing-muted: #bdbbc4;
  --landing-accent: #ff765f;
  --landing-accent-hover: #ffa08e;
  --landing-ink: #210b08;
  min-height: 100vh;
  color: var(--landing-text);
  background: var(--landing-bg);
}

.landing-shell { width: min(1240px, calc(100% - 88px)); margin-inline: auto; }
.landing-header, .landing-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.landing-header { min-height: 84px; border-bottom: 1px solid var(--landing-line); }
.landing-header .brand, .landing-footer .brand { min-width: 0; }
.landing-header .brand { font-size: 19px; }
.landing-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.landing-nav a, .landing-footer > a:last-child { color: var(--landing-muted); font-size: 14px; font-weight: 750; }
.landing-nav a:hover, .landing-footer > a:last-child:hover { color: var(--landing-text); }
.landing :where(a, [tabindex]):focus-visible { outline-color: var(--landing-accent); }
.landing [id] { scroll-margin-top: 22px; }

.landing-hero {
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center; gap: clamp(28px, 5vw, 76px); padding-block: clamp(36px, 4.8vw, 67px) clamp(42px, 5vw, 70px);
}
.landing-intro, .hero-visual { min-width: 0; }
.landing-intro h1 {
  margin: 0; font-size: clamp(52px, 6vw, 84px); line-height: 1.06; letter-spacing: .009em; font-weight: 700;
}
.landing-title-line { white-space: nowrap; }
.landing-title-accent { color: var(--landing-accent); }
.landing-summary {
  margin: 23px 0 28px; max-width: 36ch; color: var(--landing-muted);
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6;
}
.landing-button {
  min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 9px 15px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 840;
}
.landing-button-primary {
  background: var(--landing-accent); border-color: var(--landing-accent); color: var(--landing-ink);
}
.landing-button-primary:hover { background: var(--landing-accent-hover); border-color: var(--landing-accent-hover); }
.landing-button [data-icon] svg { width: 16px; height: 16px; }
.landing .landing-button-primary { min-height: 48px; padding-inline: 17px; border-radius: 8px; }

.hero-visual {
  --chart-twitch: #c182ff;
  --chart-youtube: #ff5d5b;
  --chart-kick: #55f283;
  --hero-icon-bg: #111116;
  margin: 0; padding: clamp(15px, 2.1vw, 29px);
}
.hero-distribution-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-bottom: 17px; border-bottom: 1px solid #393740;
}
.hero-distribution-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hero-distribution-title strong { display: block; font-size: clamp(16px, 1.65vw, 22px); line-height: 1.17; font-weight: 830; }
.hero-distribution-title small { display: block; margin-top: 3px; font-size: 12px; color: var(--landing-muted); }
.hero-distribution-icon {
  display: grid; place-items: center; width: 37px; height: 37px; flex: none;
  border: 1px solid #614043; border-radius: 9px; color: #ff9d8a; background: var(--hero-icon-bg);
}
.hero-distribution-icon svg { width: 18px; height: 18px; }
.hero-distribution-heading .preview-demo { flex: none; }
.hero-distribution {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  gap: clamp(15px, 2.2vw, 34px); padding-top: clamp(16px, 2vw, 29px);
}
.hero-mascot {
  position: relative; isolation: isolate; display: grid; place-items: center; align-self: stretch;
  min-width: 0;
}
.hero-mascot::before {
  content: ""; position: absolute; inset: auto 22% 3% 22%; height: 15px; border-radius: 50%;
  background: #090810bd; filter: blur(7px);
}
.hero-mascot img {
  display: block; position: relative; width: min(100%, 220px); height: auto;
  filter: drop-shadow(0 7px 13px #0d091b62);
}
.hero-distribution-stats { min-width: 0; }
.hero-total { margin-bottom: 13px; padding-bottom: 13px; border-bottom: 1px solid #393740; }
.hero-total strong {
  display: block; color: #fff; font-size: clamp(24px, 3.2vw, 43px); line-height: 1.07; font-weight: 850;
  font-variant-numeric: tabular-nums; letter-spacing: -.015em;
}
.hero-total span { display: block; margin-bottom: 5px; color: var(--landing-muted); font-size: 12px; }
.hero-platform-values { margin: 0; min-width: 0; }
.hero-platform-values > div {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 9px 0; border-bottom: 1px solid #393740;
}
.hero-platform-values > div:first-child { padding-top: 0; }
.hero-platform-values > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-platform-values .landing-twitch { --distribution-color: var(--chart-twitch); }
.hero-platform-values .landing-youtube { --distribution-color: var(--chart-youtube); }
.hero-platform-values .landing-kick { --distribution-color: var(--chart-kick); }
.hero-platform-values .landing-tiktok { --distribution-color: #fff; --distribution-tint: #54dee9; }
.hero-platform-values dt { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 750; }
.hero-platform-values dt [data-icon] {
  --tile-accent: var(--distribution-tint, var(--distribution-color));
  display: grid; place-items: center; height: 29px; width: 29px; flex: none;
  background: color-mix(in srgb, var(--tile-accent) 9%, var(--hero-icon-bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tile-accent) 24%, var(--hero-icon-bg));
  color: var(--distribution-color); border-radius: 7px;
}
.hero-platform-values dt svg { width: 15px; height: 15px; }
.hero-platform-values dd { margin: 0; color: #fff; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

.landing-platforms {
  display: grid; grid-template-columns: clamp(150px, 19vw, 260px) minmax(0, 1fr);
  align-items: center; gap: clamp(14px, 2.8vw, 40px);
  min-height: 105px; padding: 13px clamp(16px, 3vw, 52px);
  background: #f5f2ef; color: #1f1d25;
}
.landing-platforms h2 { margin: 0; font-size: clamp(18px, 2vw, 25px); font-weight: 900; line-height: 1.07; }
.platform-marquee-window {
  min-width: 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.platform-marquee-track {
  display: flex; width: max(200%, 960px); animation: platform-slide 25s linear infinite;
}
@keyframes platform-slide { to { transform: translateX(-50%); } }
@media (hover: hover) {
  .platform-marquee-window:hover .platform-marquee-track { animation-play-state: paused; }
}
.landing-platforms ul {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 0 0 50%; min-width: 0;
  margin: 0; padding: 0; list-style: none;
}
.landing-platforms li {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0;
  padding: 5px; font-size: 16px; font-weight: 880; white-space: nowrap; border-inline-end: 1px solid #d7d2d1;
}
.landing-platforms li:last-child { border-inline-end-color: transparent; }
.landing-platforms li [data-icon] {
  display: grid; place-items: center; width: 31px; height: 31px; flex: none;
  border-radius: 8px; background: var(--platform-tile); color: var(--platform-icon);
}
.landing-platforms svg { width: 17px; height: 17px; }
.landing-twitch { --platform-tile: #e8daff; --platform-icon: #5f22ad; }
.landing-youtube { --platform-tile: #fee1e0; --platform-icon: #ba1426; }
.landing-kick { --platform-tile: #d9f8c9; --platform-icon: #195609; }
.landing-tiktok { --platform-tile: #222027; --platform-icon: #fff; }

.landing-insights, .landing-features {
  display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); align-items: center;
  gap: clamp(26px, 6vw, 95px); padding-block: clamp(47px, 6.8vw, 98px);
}
.landing-section-copy h2 {
  margin: 0; font-size: clamp(32px, 4.3vw, 60px); font-weight: 820; line-height: 1.02; letter-spacing: -.017em;
  max-width: 13ch;
}
.landing-section-copy p { max-width: 36ch; margin: 15px 0 0; color: var(--landing-muted); font-size: 17px; line-height: 1.55; }

.landing-preview {
  min-width: 0; margin: 0; padding: clamp(14px, 2.3vw, 26px);
  background: var(--landing-panel); border: 1px solid #3a3944; border-radius: 13px;
}
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 17px; }
.preview-demo {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px;
  border: 1px solid #534047; border-radius: 5px; color: #ffc0b3; background: #2a2026;
  font-size: 11px; font-weight: 780;
}
.preview-demo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff765f; }
.preview-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 16px 0 15px;
  padding-block: 13px; border-block: 1px solid #393841;
}
.preview-metrics dt { color: var(--landing-muted); font-size: 12px; font-weight: 710; overflow-wrap: anywhere; }
.preview-metrics dd {
  margin: 4px 0 0; color: #fff; font-size: clamp(18px, 2.6vw, 34px); line-height: 1.06;
  font-weight: 880; font-variant-numeric: tabular-nums;
}
.preview-graph { display: block; width: 100%; height: clamp(94px, 12vw, 147px); }
.preview-grid, .preview-line { fill: none; vector-effect: non-scaling-stroke; }
.preview-grid { stroke: #464550; stroke-dasharray: 4 4; }
.preview-line { stroke: var(--landing-accent); stroke-width: 2.85; stroke-linecap: round; }
.preview-days { display: flex; justify-content: space-between; gap: 3px; margin-top: 5px; color: var(--landing-muted); font-size: 11px; }

.landing-features { align-items: start; border-top: 1px solid var(--landing-line); }
.landing-feature-list { display: grid; gap: 0; }
.landing-feature-list article {
  display: grid; grid-template-columns: 43px minmax(0, 1fr); align-items: start; gap: 13px;
  min-width: 0; padding: 17px 0; border-bottom: 1px solid var(--landing-line);
}
.landing-feature-list article:first-child { padding-top: 0; }
.landing-feature-list article:last-child { padding-bottom: 0; border: 0; }
.landing-feature-icon {
  display: grid; place-items: center; width: 43px; height: 43px;
  border: 1px solid var(--feature-line); border-radius: 9px; color: var(--feature-accent); background: #111116;
}
.landing-icon-accounts { --feature-accent: #b6c8ff; --feature-line: #435179; }
.landing-icon-stats { --feature-accent: #ff9f8d; --feature-line: #73463d; }
.landing-icon-payments { --feature-accent: #f4cd86; --feature-line: #685338; }
.landing-feature-icon svg { width: 19px; height: 19px; }
.landing-feature-list h3 { margin: 0 0 3px; font-size: 18px; font-weight: 840; }
.landing-feature-list p { margin: 0; color: var(--landing-muted); font-size: 15px; line-height: 1.55; }
.landing-footer {
  min-height: 76px; padding-block: 13px; border-top: 1px solid var(--landing-line);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
}
.landing-footer .brand { font-size: 15px; }
.landing-copyright { margin: 0; color: var(--landing-muted); font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.landing-footer > a:last-child { justify-self: end; }
.landing-footer > a:last-child span { margin-left: 4px; color: var(--landing-accent); }

.not-found {
  min-height: 100dvh; display: grid; grid-template-rows: auto 1fr;
}
.not-found-main { align-content: center; }
.not-found-main h1 { max-width: 10ch; }
.not-found-code {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 16px; padding: 4px 9px;
  border: 1px solid #5c3a40; border-radius: 5px; color: #ffac9d; background: #261b22;
  font-size: 13px; line-height: 1.4; font-weight: 800; font-variant-numeric: tabular-nums;
}
.not-found-code::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--landing-accent); }
.not-found-visual {
  display: grid; place-items: center; min-width: 0;
  background: radial-gradient(ellipse at 50% 54%, #6737325e, transparent 66%);
}
.not-found-visual img {
  display: block; width: min(100%, 250px); height: auto;
  filter: drop-shadow(0 14px 18px #0009);
}

@media (max-width: 1100px) {
  .landing-shell { width: min(960px, calc(100% - 56px)); }
  .landing-hero { gap: 32px; }
  .landing-intro h1 { font-size: clamp(47px, 6.4vw, 70px); }
}

@media (max-width: 820px) {
  .landing-footer { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .landing-copyright { grid-area: 2 / 1 / 3 / -1; text-align: left; }
  .landing-shell { width: calc(100% - 36px); }
  .landing-header { min-height: 64px; gap: 12px; }
  .landing-header .brand { font-size: 16px; gap: 6px; }
  .landing-header .brand img { width: 30px; height: 30px; }
  .landing-nav { gap: 12px; }
  .landing-nav a, .landing-footer > a:last-child { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
  .landing-hero, .landing-insights, .landing-features { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .landing-hero { padding-block: 38px 29px; }
  .landing-intro h1 { font-size: clamp(49px, 9.5vw, 73px); }
  .landing-summary { margin: 17px 0 19px; }
  .not-found-visual img { width: clamp(104px, 22dvh, 185px); }
  .landing-platforms { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 13px; }
  .landing-platforms h2 br { display: none; }
  .platform-marquee-track { animation-duration: 20s; }
  .landing-platforms li { gap: 5px; font-size: 14px; }
  .landing-platforms li [data-icon] { width: 24px; height: 24px; }
  .landing-platforms svg { width: 14px; height: 14px; }
  .landing-section-copy h2 { max-width: none; }
  .landing-section-copy p { margin-top: 11px; font-size: 15px; }
}

@media (min-width: 540px) and (max-width: 820px) and (max-height: 510px) {
  .not-found-main { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding-block: 22px; }
  .not-found-main h1 { font-size: clamp(34px, 6.2vw, 49px); }
  .not-found-main .landing-summary { margin: 11px 0 14px; }
  .not-found-visual img { width: clamp(104px, 32dvh, 164px); }
}

@media (max-width: 440px) {
  .hero-distribution { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 11px; }
  .hero-mascot img { width: min(100%, 140px); }
  .hero-total { margin-bottom: 8px; padding-bottom: 8px; }
  .hero-total span { font-size: 10px; }
  .hero-platform-values > div { padding-block: 6px; }
  .hero-platform-values dt { gap: 4px; font-size: 11px; }
  .hero-platform-values dd { font-size: 11px; }
  .hero-platform-values dt [data-icon] { width: 22px; height: 22px; border-radius: 5px; }
  .hero-platform-values dt svg { width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .platform-marquee-window { mask-image: none; }
  .platform-marquee-track { width: 100%; animation: none; }
  .landing-platforms ul { flex-basis: 100%; }
  .landing-platforms .platform-marquee-copy { display: none; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 415px) {
  .landing-platforms ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-platforms li { justify-content: flex-start; }
  .landing-platforms li:nth-child(2) { border-inline-end-color: transparent; }
}

@media (max-width: 360px) {
  .landing-shell { width: calc(100% - 28px); }
  .landing-nav { gap: 9px; }
  .landing-header .brand { font-size: 14px; }
  .preview-days span:nth-child(even) { display: none; }
}
