:root {
  --bg: #070812;
  --bg-soft: #101423;
  --panel: rgba(15, 18, 31, 0.72);
  --panel-strong: rgba(23, 27, 45, 0.82);
  --text: #f4efe8;
  --muted: #a7acba;
  --line: rgba(255, 255, 255, 0.09);
  --gold: #ffb347;
  --gold-strong: #ff8d2f;
  --ice: #7ae4ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --pointer-x: 0.5;
  --pointer-y: 0.5;
  --page-gutter: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #05060d;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 165, 73, 0.18), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(122, 228, 255, 0.14), transparent 22%),
    linear-gradient(180deg, #05060d 0%, #090b15 46%, #05060d 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  overscroll-behavior-y: none;
  overflow-x: hidden;
}

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

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

.page-shell {
  position: relative;
  width: 100%;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.backdrop-grid,
.backdrop-glow {
  position: absolute;
  inset: 0;
}

.backdrop-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
}

.backdrop-glow-a {
  background: radial-gradient(circle at 18% 22%, rgba(255, 179, 71, 0.22), transparent 30%);
  transform: translate(
    calc((var(--pointer-x) - 0.5) * 28px),
    calc((var(--pointer-y) - 0.5) * 22px)
  );
}

.backdrop-glow-b {
  background: radial-gradient(circle at 82% 14%, rgba(122, 228, 255, 0.18), transparent 26%);
  transform: translate(
    calc((var(--pointer-x) - 0.5) * -32px),
    calc((var(--pointer-y) - 0.5) * -24px)
  );
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 28px;
  padding-left: calc(var(--page-gutter) + env(safe-area-inset-left));
  padding-right: calc(var(--page-gutter) + env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff8a69;
  text-shadow: 0 0 16px rgba(255, 74, 26, 0.45);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: calc(var(--page-gutter) + env(safe-area-inset-left));
  padding-right: calc(var(--page-gutter) + env(safe-area-inset-right));
}

.hero {
  min-height: 100svh;
  padding: 96px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
}

.hero-copy,
.hero-object,
.signal-copy,
.signal-art,
.section-heading,
.story-card,
.product-card,
.manifesto-card,
.closing {
  min-width: 0;
}

.eyebrow,
.story-kicker,
.product-index {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(3.4rem, 9vw, 8rem);
  max-width: 9ch;
}

.hero h1 span,
.section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-style: normal;
  font-weight: 500;
}

.hero-text,
.story-card p,
.product-card p,
.signal-copy p,
.manifesto-card p,
.closing p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-text {
  max-width: 40rem;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
  color: #16120b;
  font-weight: 700;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.hero-object {
  display: flex;
  justify-content: center;
}

.device-stage {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1 / 1.08;
  display: grid;
  place-items: center;
  transform: perspective(1200px) rotateX(calc((0.5 - var(--pointer-y)) * 6deg))
    rotateY(calc((var(--pointer-x) - 0.5) * 8deg));
  transition: transform 220ms ease-out;
}

.device-aura {
  position: absolute;
  inset: 10% 8%;
  background:
    radial-gradient(circle, rgba(255, 183, 71, 0.42), transparent 48%),
    radial-gradient(circle at 70% 30%, rgba(122, 228, 255, 0.22), transparent 38%);
  filter: blur(24px);
  animation: pulse 5.2s ease-in-out infinite;
}

.device-card,
.story-card,
.product-card,
.manifesto-card,
.closing {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.device-card {
  position: relative;
  width: min(360px, 100%);
  padding: 24px;
  border-radius: 34px;
}

.device-label {
  color: var(--ice);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
}

.device-body {
  width: 186px;
  margin: 28px auto 24px;
  padding: 20px 18px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffce59 0%, #ffb02a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(90, 56, 8, 0.18),
    0 20px 40px rgba(255, 151, 37, 0.24);
}

.device-screen {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, #102642 0%, #2c3560 100%);
  box-shadow: inset 0 0 0 3px rgba(71, 49, 10, 0.35);
}

.device-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.device-buttons span {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 232, 175, 0.96), rgba(239, 174, 28, 0.98));
  box-shadow: inset 0 0 0 1px rgba(92, 59, 8, 0.18);
}

.device-buttons span:first-child {
  border-radius: 999px;
}

.device-caption {
  margin: 0;
  max-width: 20rem;
  color: #dcd7cb;
  line-height: 1.6;
}

.story-grid {
  padding: 24px 0 36px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.story-card {
  padding: 28px;
  border-radius: 28px;
}

.story-card-large {
  grid-column: span 6;
}

.story-card:not(.story-card-large) {
  grid-column: span 3;
}

.story-card h2,
.story-card h3,
.product-card h3,
.manifesto-card h3,
.signal-copy h2,
.closing h2 {
  margin: 0 0 14px;
  letter-spacing: -0.04em;
}

.story-card h2,
.signal-copy h2,
.closing h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.story-card h3,
.product-card h3,
.manifesto-card h3 {
  font-size: 1.5rem;
}

.ecosystem,
.manifesto {
  padding: 84px 0 24px;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

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

.product-card,
.manifesto-card {
  padding: 30px;
  border-radius: 30px;
}

.product-card-featured {
  background:
    linear-gradient(160deg, rgba(255, 179, 71, 0.16), rgba(122, 228, 255, 0.08) 55%, transparent),
    var(--panel-strong);
}

.signal-section {
  padding: 92px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.signal-art img {
  width: 100%;
  border-radius: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lyric-block {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.lyric-block p {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.7vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lyric-block p + p {
  margin-top: 10px;
}

.closing {
  margin-top: 80px;
  margin-bottom: 64px;
  padding: 40px;
  border-radius: 32px;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.74;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .hero,
  .signal-section,
  .product-grid,
  .manifesto-grid {
    grid-template-columns: 1fr;
  }

  .story-card-large,
  .story-card:not(.story-card-large) {
    grid-column: span 12;
  }

  .site-header {
    padding-top: 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 20px;
  }

  .site-header,
  .section,
  main {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .site-header,
  .section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .section {
    width: min(1180px, 100%);
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-left: 0;
    padding-right: 0;
    gap: 28px;
  }

  .hero h1,
  .hero-text,
  .device-caption {
    max-width: none;
  }

  .backdrop-grid {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .backdrop-glow-a,
  .backdrop-glow-b,
  .device-stage {
    transform: none;
  }

  .device-card,
  .story-card,
  .product-card,
  .manifesto-card,
  .closing {
    border-radius: 24px;
  }

  .story-grid,
  .product-grid,
  .manifesto-grid,
  .signal-section {
    margin-left: 0;
    margin-right: 0;
  }

  .device-body {
    width: 172px;
  }

  .closing {
    padding: 30px 22px;
  }
}
