:root {
  color-scheme: dark;
  --bg: #07070a;
  --bg-soft: #0d0d12;
  --panel: rgba(18, 18, 24, 0.78);
  --panel-strong: rgba(25, 25, 32, 0.92);
  --line: rgba(255, 255, 255, 0.11);
  --line-red: rgba(224, 63, 96, 0.42);
  --text: #f4f1f2;
  --muted: #a29da6;
  --soft: #77727d;
  --red: #e04060;
  --red-hot: #ff4e76;
  --cyan: #42d9e8;
  --green: #48e684;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(224, 63, 96, 0.08), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.topbar.is-scrolled {
  border-color: var(--line);
  background: rgba(7, 7, 10, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.top-actions,
.cta-row,
.hero-stats,
.link-row,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(224, 63, 96, 0.25);
}

.nav {
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.92rem;
}

.nav a,
.ghost-link,
.footer a,
.link-row a {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav a:hover,
.ghost-link:hover,
.footer a:hover,
.link-row a:hover {
  color: var(--text);
}

.top-actions {
  gap: 8px;
}

.lang-button,
.ghost-link {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 800;
}

.lang-button {
  cursor: pointer;
}

.lang-button.is-active {
  border-color: var(--line-red);
  background: rgba(224, 63, 96, 0.16);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: min(860px, 92vh);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 136px clamp(18px, 5vw, 76px) clamp(72px, 10vh, 120px);
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.1);
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 7, 10, 0.96), rgba(7, 7, 10, 0.68) 42%, rgba(7, 7, 10, 0.28)),
    linear-gradient(0deg, rgba(7, 7, 10, 0.98), transparent 46%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.78), transparent 30%);
}

.hero-grid {
  opacity: 0.35;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 9px,
    rgba(255, 255, 255, 0.035) 10px
  );
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker,
.panel-label,
.feature-mark,
.hero-stats dt {
  color: var(--red-hot);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 8.5rem;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  max-width: 820px;
  font-size: 4rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.lead {
  max-width: 680px;
  margin-bottom: 16px;
  color: #f5e9ec;
  font-size: 1.38rem;
  line-height: 1.32;
}

.note {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1rem;
}

.cta-row {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
}

.button.primary {
  border-color: rgba(255, 96, 128, 0.6);
  background: linear-gradient(180deg, #fb4d73, #bd2447);
  color: #fff;
  box-shadow: 0 14px 44px rgba(224, 63, 96, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.button.compact {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.92rem;
}

.button:hover {
  transform: translateY(-1px);
}

.hero-stats {
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.hero-stats div {
  min-width: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 9, 13, 0.58);
  padding: 12px 14px;
  backdrop-filter: blur(12px);
}

.hero-stats dt,
.hero-stats dd {
  margin: 0;
}

.hero-stats dd {
  margin-top: 4px;
  color: var(--text);
  font-weight: 700;
}

.section {
  padding: clamp(70px, 10vw, 124px) clamp(18px, 5vw, 76px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-section {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 15, 20, 0.94), rgba(9, 9, 12, 0.88));
}

.intro-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.intro-grid p:not(.section-kicker),
.copy-block p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  margin-bottom: clamp(28px, 5vw, 46px);
}

.section-kicker {
  margin-bottom: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card,
.release-panel,
.safety-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 24, 31, 0.82), rgba(14, 14, 19, 0.74));
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 212px;
  padding: 22px;
}

.feature-mark {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--soft);
}

.feature-card p,
.safety-grid p,
.release-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.screen-section {
  padding-top: 0;
}

.screen-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(26, 26, 34, 0.86), rgba(8, 8, 12, 0.88));
  padding: 10px;
  box-shadow: var(--shadow);
}

.screen-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.screen-tab {
  min-height: 42px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-tab.is-active {
  border-color: var(--line-red);
  background: rgba(224, 63, 96, 0.15);
  color: var(--text);
}

.screenshot-frame {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #050507;
  aspect-ratio: 1400 / 878;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(224, 63, 96, 0.12), transparent 45%),
    rgba(10, 10, 14, 0.86);
}

.link-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.link-row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.release-panel {
  padding: clamp(24px, 4vw, 34px);
}

.release-panel strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 5rem;
  line-height: 0.9;
}

.release-meta {
  display: block;
  min-height: 1.4em;
  margin-bottom: 16px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.release-panel p {
  margin-bottom: 22px;
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.safety-grid article {
  padding: 24px;
}

.safety-grid article:first-child {
  border-color: rgba(66, 217, 232, 0.28);
}

.safety-grid article:nth-child(2) {
  border-color: rgba(224, 63, 96, 0.34);
}

.safety-grid article:nth-child(3) {
  border-color: rgba(72, 230, 132, 0.22);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(18px, 5vw, 76px);
  color: var(--muted);
  background: #050507;
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer strong {
  color: var(--text);
}

.footer p {
  margin: 6px 0 0;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  h1 {
    font-size: 6.2rem;
  }

  h2 {
    font-size: 3.2rem;
  }

  .lead {
    font-size: 1.22rem;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 7, 10, 0.95), rgba(7, 7, 10, 0.72)),
      linear-gradient(0deg, rgba(7, 7, 10, 0.98), transparent 55%);
  }

  .intro-grid,
  .split-grid,
  .feature-grid,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-mark {
    margin-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 64px;
    padding: 12px 14px;
  }

  .brand span,
  .ghost-link {
    display: none;
  }

  .hero {
    min-height: 90vh;
    padding: 112px 18px 58px;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .release-panel strong {
    font-size: 3.2rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-width: 0;
  }

  .section {
    padding: 64px 18px;
  }

  .screen-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-tab {
    font-size: 0.9rem;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .button:hover {
    transform: none;
  }
}
