:root {
  --bg: #0f1115;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #f3efe7;
  --muted: rgba(243, 239, 231, 0.68);
  --accent: #ffb84d;
  --accent-2: #ffd9a1;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 184, 77, 0.2), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(255, 217, 161, 0.14), transparent 22%),
    linear-gradient(180deg, #13161c 0%, #0b0d11 100%);
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(20px);
}

.brand,
.hero h1,
.section-heading h2,
.immersive h2,
.cta h2 {
  font-family: "Space Grotesk", sans-serif;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.ghost-button,
.text-button,
.primary-button {
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.ghost-button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  min-height: calc(100svh - 116px);
  align-items: center;
}

.hero-copy {
  padding: 56px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.95;
}

.lede,
.immersive-copy p,
.cta p,
.feature-layout p {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 540px;
  margin: 22px 0 0;
  font-size: 1.05rem;
}

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

.primary-button {
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #14161b;
  font-weight: 700;
}

.text-button {
  background: transparent;
}

.hero-visual,
.panel,
.immersive,
.cta {
  position: relative;
  overflow: hidden;
}

.hero-visual {
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 30% 30%, rgba(255, 184, 77, 0.28), transparent 26%),
    linear-gradient(160deg, #1b1f27 0%, #0f1218 100%);
  box-shadow: var(--shadow);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.85;
}

.orb-a {
  top: 40px;
  right: 36px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 35% 35%, #fff2d6, rgba(255, 184, 77, 0.12) 65%);
  animation: drift 8s ease-in-out infinite;
}

.orb-b {
  bottom: 54px;
  left: 54px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 35% 35%, #ffd08a, rgba(255, 184, 77, 0.08) 65%);
  animation: drift 10s ease-in-out infinite reverse;
}

.dashboard {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(430px, calc(100% - 40px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(9, 10, 14, 0.72);
  backdrop-filter: blur(18px);
  transform: translate(-50%, -50%);
}

.dashboard-top,
.signal-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-top {
  color: var(--muted);
  font-size: 0.88rem;
}

.signal-grid {
  margin-top: 28px;
}

.signal-grid div {
  flex: 1;
}

.signal-grid p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.signal-grid strong {
  font-size: 1.1rem;
}

.dashboard-wave {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 120px;
  margin-top: 28px;
}

.dashboard-wave span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  animation: wave 1.8s ease-in-out infinite;
  transform-origin: bottom;
}

.dashboard-wave span:nth-child(2) { animation-delay: 0.1s; }
.dashboard-wave span:nth-child(3) { animation-delay: 0.2s; }
.dashboard-wave span:nth-child(4) { animation-delay: 0.3s; }
.dashboard-wave span:nth-child(5) { animation-delay: 0.4s; }
.dashboard-wave span:nth-child(6) { animation-delay: 0.5s; }
.dashboard-wave span:nth-child(7) { animation-delay: 0.6s; }
.dashboard-wave span:nth-child(8) { animation-delay: 0.7s; }

.panel,
.immersive,
.cta {
  margin-top: 36px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.section-heading h2,
.immersive h2,
.cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  max-width: 14ch;
}

.feature-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.feature-layout article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.feature-layout span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent-2);
}

.feature-layout h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.immersive {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: end;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stats div {
  padding: 20px;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
}

.stats span {
  color: var(--muted);
}

.cta {
  text-align: center;
}

.cta h2,
.cta p {
  margin-left: auto;
  margin-right: auto;
}

.cta p {
  max-width: 620px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.ghost-button:hover,
.primary-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: #ffc56e;
}

body.is-pulsing {
  background:
    radial-gradient(circle at top left, rgba(255, 184, 77, 0.28), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(255, 217, 161, 0.22), transparent 26%),
    linear-gradient(180deg, #18130d 0%, #0b0d11 100%);
}

body.is-pulsing .hero-visual,
body.is-pulsing .panel,
body.is-pulsing .immersive,
body.is-pulsing .cta {
  border-color: rgba(255, 184, 77, 0.28);
  box-shadow: 0 24px 80px rgba(255, 184, 77, 0.08);
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes wave {
  0%, 100% { height: 24px; opacity: 0.65; }
  50% { height: 100%; opacity: 1; }
}

@media (max-width: 960px) {
  .hero,
  .immersive,
  .feature-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 22px;
  }

  .hero h1,
  .section-heading h2,
  .immersive h2,
  .cta h2 {
    max-width: none;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    gap: 16px;
    font-size: 0.95rem;
  }

  .hero-copy {
    padding-top: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-visual,
  .panel,
  .immersive,
  .cta {
    border-radius: 24px;
  }

  .panel,
  .immersive,
  .cta {
    padding: 24px;
  }
}
