:root {
  --bg: #0d0b08;
  --bg-soft: #17120d;
  --surface: rgba(38, 31, 24, 0.72);
  --surface-strong: rgba(50, 41, 31, 0.86);
  --cream: #f7f1e4;
  --cream-muted: #c9bfb0;
  --muted: #9f9281;
  --gold: #d1ad68;
  --gold-soft: #b89457;
  --green: #536751;
  --line: rgba(232, 205, 149, 0.16);
  --line-strong: rgba(232, 205, 149, 0.3);
  --shadow: 0 34px 92px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.26);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: min(1180px, calc(100vw - 44px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  font-family: Optima, "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(209, 173, 104, 0.12), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(83, 103, 81, 0.18), transparent 32%),
    linear-gradient(140deg, #0b0907 0%, #17120d 48%, #0d0b08 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(247, 241, 228, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 241, 228, 0.026) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background-image: repeating-radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

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

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

a,
button,
img {
  -webkit-tap-highlight-color: transparent;
}

.progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 200;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #8f6d33, var(--gold), #f0dcab);
  box-shadow: 0 0 22px rgba(209, 173, 104, 0.5);
  transition: width 0.12s linear;
}

.ambient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(8px);
}

.ambient-one {
  top: 18vh;
  left: -120px;
  width: 300px;
  height: 300px;
  background: rgba(209, 173, 104, 0.08);
}

.ambient-two {
  right: -180px;
  bottom: 6vh;
  width: 380px;
  height: 380px;
  background: rgba(83, 103, 81, 0.12);
}

.section {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--container);
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 11, 8, 0.58);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

body.is-scrolled .topbar {
  background: rgba(13, 11, 8, 0.82);
  border-color: var(--line-strong);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(209, 173, 104, 0.36);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), 0 0 0 4px rgba(209, 173, 104, 0.05);
}

.nav,
.topbar-actions,
.hero-actions,
.cta-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav {
  gap: 28px;
  color: var(--cream-muted);
}

.nav a {
  position: relative;
  font-size: 0.94rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

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

.button-solid {
  color: #17110a;
  background: linear-gradient(135deg, #e8cc8b, #c29a51);
  box-shadow: 0 18px 38px rgba(198, 153, 75, 0.24);
}

.button-solid:hover,
.button-solid:focus-visible {
  box-shadow: 0 22px 48px rgba(198, 153, 75, 0.34);
}

.button-ghost {
  color: var(--cream);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(232, 205, 149, 0.48);
  background: rgba(232, 205, 149, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 58px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 34px 0 86px;
}

.hero-copy h1,
.intro-band h2,
.section-heading h2,
.vault-copy h2,
.cta-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-copy h1 {
  max-width: 9.4ch;
  font-size: clamp(4rem, 9vw, 7.8rem);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 62ch;
  margin: 26px 0 0;
  color: var(--cream-muted);
  font-size: 1.08rem;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.hero-metrics div,
.feature-card,
.story-panel,
.vault,
.cta-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero-metrics div {
  min-height: 150px;
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 10px;
  color: var(--cream);
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-stage {
  position: relative;
  display: grid;
  min-height: 740px;
  place-items: center;
  perspective: 1800px;
}

.hero-orbit {
  position: absolute;
  inset: 9% 4% 14%;
  border: 1px solid rgba(209, 173, 104, 0.17);
  border-radius: 999px;
  transform: rotate(-8deg);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(209, 173, 104, 0.8);
}

.hero-orbit::before {
  top: 16%;
  left: 10%;
}

.hero-orbit::after {
  right: 13%;
  bottom: 18%;
}

.hero-poster {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(232, 205, 149, 0.18);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.24s ease;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: -38px -22px 18%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(209, 173, 104, 0.18), transparent 68%);
  filter: blur(12px);
}

.hero-poster img {
  width: 100%;
  border-radius: 32px;
}

.floating-card {
  position: absolute;
  z-index: 2;
  max-width: 235px;
  padding: 17px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(23, 18, 13, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.floating-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.floating-card strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.floating-card-a {
  top: 12%;
  left: -4%;
}

.floating-card-b {
  right: -2%;
  bottom: 18%;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  padding: 8px 0 84px;
}

.intro-band h2,
.section-heading h2,
.vault-copy h2,
.cta-card h2 {
  font-size: clamp(2.8rem, 5.8vw, 5.2rem);
}

.intro-band > p,
.section-heading p,
.story-panel p,
.feature-card p,
.vault-copy p,
.cta-card p {
  color: var(--cream-muted);
}

.intro-band > p {
  max-width: 58ch;
  margin: 0;
  font-size: 1.06rem;
}

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

.feature-card {
  min-height: 270px;
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.feature-card span,
.story-index,
.vault-grid span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature-card h3,
.story-panel h3 {
  margin: 22px 0 12px;
  font-size: 1.42rem;
  line-height: 1.12;
}

.story {
  position: relative;
  padding: 78px 0 100px;
}

.story::before {
  content: "";
  position: absolute;
  inset: 0 -50vw;
  z-index: -1;
  border-block: 1px solid rgba(232, 205, 149, 0.09);
  background:
    radial-gradient(circle at 18% 22%, rgba(209, 173, 104, 0.09), transparent 30%),
    rgba(255, 255, 255, 0.025);
}

.section-heading {
  max-width: 860px;
}

.section-heading p:last-child {
  max-width: 66ch;
  margin-top: 22px;
  font-size: 1.05rem;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  margin-top: 52px;
}

.story-visual {
  position: sticky;
  top: 112px;
}

.device-gallery {
  position: relative;
  min-height: 760px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(209, 173, 104, 0.08), transparent 36%),
    rgba(23, 18, 13, 0.68);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-gallery::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(232, 205, 149, 0.12);
  border-radius: 32px;
}

.device-screen {
  position: absolute;
  inset: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  opacity: 0;
  transform: translateY(28px) scale(0.95);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.device-screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.device-screen img {
  width: min(100%, 420px);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.36));
}

.story-copy {
  display: grid;
  gap: 20px;
}

.story-panel {
  padding: 28px;
  border-radius: 28px;
  opacity: 0.68;
  transform: translateX(18px);
  transition: opacity 0.34s ease, transform 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease;
}

.story-panel.is-active {
  opacity: 1;
  transform: translateX(0);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.story-panel ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.story-panel li + li {
  margin-top: 9px;
}

.vault {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-top: 92px;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.vault-copy p {
  max-width: 58ch;
}

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

.vault-grid article {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.vault-grid strong {
  display: block;
  margin-top: 18px;
  font-size: 1.12rem;
  line-height: 1.24;
}

.cta {
  padding: 94px 0 86px;
}

.cta-card {
  display: grid;
  gap: 26px;
  padding: 38px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 86% 12%, rgba(209, 173, 104, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(83, 103, 81, 0.18), transparent 46%),
    rgba(26, 20, 15, 0.86);
}

.cta-card p {
  max-width: 68ch;
  margin: 0;
}

.cta-actions {
  flex-wrap: wrap;
}

.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(232, 205, 149, 0.34);
  border-radius: 999px;
  color: #17110a;
  font-weight: 800;
  background: linear-gradient(135deg, #e9cd8d, #bd944a);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}

.footer {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 0.94rem;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

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

@media (max-width: 1120px) {
  .topbar {
    border-radius: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .intro-band,
  .story-layout,
  .vault {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    min-height: auto;
  }

  .hero-copy h1 {
    max-width: 11ch;
  }

  .hero-stage {
    min-height: 650px;
  }

  .floating-card-a {
    left: 0;
  }

  .floating-card-b {
    right: 0;
  }

  .story-visual {
    position: relative;
    top: auto;
  }

  .device-gallery {
    min-height: 650px;
  }

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

@media (max-width: 820px) {
  :root {
    --container: min(100vw - 24px, 980px);
  }

  .topbar {
    gap: 16px;
    margin-top: 12px;
    padding: 14px;
    border-radius: 26px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 20px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: stretch;
    gap: 10px;
  }

  .topbar-actions .button {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(50% - 5px);
    padding: 0 14px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-copy h1 {
    max-width: 8.8ch;
    font-size: clamp(2.75rem, 12.8vw, 4.3rem);
    letter-spacing: -0.055em;
  }

  .hero-text {
    max-width: 34ch;
  }

  .hero-metrics,
  .feature-strip,
  .vault-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    display: block;
    min-height: auto;
  }

  .hero-poster {
    width: min(100%, 390px);
    margin: 0 auto;
  }

  .hero-orbit {
    inset: 4% 2% 16%;
  }

  .floating-card {
    position: relative;
    inset: auto;
    max-width: none;
    margin-top: 14px;
  }

  .intro-band {
    padding-bottom: 62px;
  }

  .feature-strip {
    padding-bottom: 72px;
  }

  .story {
    padding: 58px 0 74px;
  }

  .device-gallery {
    min-height: 560px;
    border-radius: 30px;
  }

  .device-screen img {
    width: min(100%, 350px);
  }

  .story-panel {
    padding: 22px;
  }

  .vault {
    margin-top: 64px;
    padding: 24px;
  }

  .cta {
    padding-top: 70px;
  }

  .cta-card {
    padding: 25px;
    border-radius: 30px;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .floating-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --container: calc(100vw - 28px);
  }

  body {
    overflow-x: hidden;
  }

  .hero {
    overflow: hidden;
  }

  .hero-copy h1 {
    max-width: 7.7ch;
    font-size: clamp(2.55rem, 12.2vw, 3.18rem);
    letter-spacing: -0.055em;
  }

  .hero-text {
    max-width: 31ch;
    font-size: 1rem;
  }

  .topbar {
    width: calc(100vw - 28px);
    padding: 12px;
  }

  .topbar-actions .button {
    font-size: 0.88rem;
    padding: 0 10px;
  }

  .floating-cta {
    display: none;
  }

  .intro-band h2,
  .section-heading h2,
  .vault-copy h2,
  .cta-card h2 {
    font-size: clamp(2.45rem, 13vw, 3.7rem);
  }

  .device-gallery {
    min-height: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
