:root {
  --bg0: #070b13;
  --bg1: #0b1226;
  --card: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --primary: #f97316;
  --primary2: #ef4444;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --max: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg0: #f7f7fb;
    --bg1: #ffffff;
    --card: rgba(17, 24, 39, 0.05);
    --stroke: rgba(17, 24, 39, 0.12);
    --text: rgba(17, 24, 39, 0.92);
    --muted: rgba(17, 24, 39, 0.68);
    --shadow: 0 16px 44px rgba(2, 6, 23, 0.12);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(
      900px 520px at 16% -10%,
      rgba(249, 115, 22, 0.28),
      transparent 60%
    ),
    radial-gradient(
      860px 520px at 86% 10%,
      rgba(239, 68, 68, 0.22),
      transparent 58%
    ),
    radial-gradient(
      1100px 760px at 55% 115%,
      rgba(245, 158, 11, 0.14),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
}

a {
  color: inherit;
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 19, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: light) {
  header {
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 14px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

@media (prefers-color-scheme: light) {
  nav a:hover {
    background: rgba(17, 24, 39, 0.06);
  }
}

.hero {
  position: relative;
  padding: 56px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 980px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-type {
  display: grid;
  gap: 10px;
}

.typewriter-line {
  display: inline-flex;
  align-items: baseline;
}

.typewriter {
  min-width: 1ch;
}

.typewriter-cursor {
  display: inline-block;
  height: 0.92em;
  border-left: 2px solid currentColor;
  margin-left: 2px;
  transform: translateY(0.08em);
  opacity: 0.9;
  animation: typewriter-blink 1s steps(1, end) infinite;
}

@keyframes typewriter-blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

.accent {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 60ch;
}

.actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
}

.btn.primary {
  border-color: rgba(249, 115, 22, 0.52);
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.18);
}

.store-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.store-badge {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.store-badge:hover {
  background: transparent;
}

.store-badge-img {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 14px;
}

.store-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.panel {
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pill {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
}

.pill b {
  color: var(--text);
}

section {
  padding: 56px 0;
}

.section-title {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 34px);
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 70ch;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 980px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

label {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

footer {
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

@media (prefers-color-scheme: light) {
  .footer-inner {
    border-top-color: rgba(17, 24, 39, 0.08);
  }
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-weight: 800;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.scene-col {
  position: relative;
}

.scene-anchor {
  height: min(64vh, 560px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(
      rgba(249, 115, 22, 0.14),
      rgba(185, 28, 28, 0.15),
      transparent 60%
    ),
    radial-gradient(
      rgba(239, 68, 68, 0.1),
      rgba(14, 165, 233, 0.1),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
  position: relative;
}

.scene-anchor::after {
  content: attr(data-scene-label);
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

#sceneFloat {
  --tx: 0px;
  --ty: 0px;
  --s: 1;
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(820px, 96vw);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translate3d(calc(-50% + var(--tx)), calc(-50% + var(--ty)), 0)
    scale(var(--s));
  will-change: transform;
  pointer-events: none;
  z-index: 999;
}

#sceneFloat::after {
  content: none;
}

#scene {
  width: 100%;
  height: 100%;
}

@media (max-width: 980px) {
  .scene-anchor {
    display: none;
  }
  #sceneFloat {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 360px;
    aspect-ratio: auto;
    transform: none;
    pointer-events: auto;
  }
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  filter: blur(10px);
  transition:
    opacity 520ms ease,
    transform 520ms ease,
    filter 640ms ease;
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:hover {
    transform: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
