:root {
  --bg: #000000;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-dim: rgba(255, 255, 255, 0.42);
  --accent: #4d9fff;
  --accent-bright: #5ca8ff;
  --accent-soft: rgba(0, 140, 255, 0.14);
  --accent-glow: rgba(92, 168, 255, 0.45);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --container: 1120px;
  --radius: 20px;
  --nav-offset: 28px;
}

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

html {
  overscroll-behavior-y: none;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  position: relative;
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.hero .container {
  overflow: visible;
}

.page-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: transparent;
}

.spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 92% 125% at 50% -18%,
    rgba(92, 168, 255, 0.72) 0%,
    rgba(75, 150, 248, 0.5) 20%,
    rgba(58, 128, 238, 0.3) 38%,
    rgba(42, 100, 215, 0.14) 52%,
    rgba(25, 65, 160, 0.05) 64%,
    transparent 84%
  );
}

.spotlight-core {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    ellipse 62% 58% at 50% -12%,
    rgba(170, 210, 255, 0.48) 0%,
    rgba(130, 185, 252, 0.28) 24%,
    rgba(95, 155, 245, 0.12) 42%,
    rgba(60, 120, 230, 0.04) 58%,
    transparent 76%
  );
}

.spotlight-hotspot {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(
    ellipse 24% 14% at 50% -6%,
    rgba(195, 225, 255, 0.5) 0%,
    rgba(150, 195, 252, 0.22) 38%,
    transparent 64%
  );
}

.particles-mask {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.particles {
  display: block;
  width: 100%;
  height: 100%;
}

.section {
  padding: 96px 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
}

h1 {
  font-size: clamp(48px, 8vw, 88px);
  letter-spacing: -0.03em;
  font-weight: 400;
  font-family: var(--serif);
}

h2 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 22px;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p:last-child {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 18px;
}

/* Nav — floating liquid glass */

.nav {
  position: fixed;
  top: var(--nav-offset);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 32px);
}

.glass-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.nav.scrolled .glass-nav {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-nav-link {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.glass-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
}

.nav-logo:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-toggle,
.glass-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
}

.nav-toggle span,
.glass-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child,
.glass-nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child,
.glass-nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu,
.glass-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding: 10px;
  width: 220px;
  border-radius: 20px;
  background: rgba(8, 12, 18, 0.82);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.mobile-menu a,
.glass-mobile-menu a {
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 14px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover,
.glass-mobile-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu:not([hidden]),
.glass-mobile-menu:not([hidden]) {
  display: flex;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 18px;
}

.btn-primary {
  background: linear-gradient(135deg, #52a2ed, #5ca8ff);
  border-color: transparent;
  color: #041018;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6bb0f0, #74b8ff);
}

.btn-block {
  width: 100%;
}

/* Hero */

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding-top: calc(var(--nav-offset) + 100px);
  padding-bottom: 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
}

.hero-copy {
  max-width: 780px;
}

.hero-copy h1 {
  line-height: 1.05;
}

.hero-copy h1 .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.hero-text {
  margin: 24px auto 32px;
  max-width: 520px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 6px 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #5eb0ff 0%, #3d8ef0 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 20px rgba(61, 142, 240, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(61, 142, 240, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-cta-secondary {
  background: var(--glass);
  border-color: var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-btn {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.store-btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.store-label {
  font-size: 11px;
  color: var(--text-dim);
}

.store-name {
  font-size: 16px;
  font-weight: 600;
}

.hero-showcase {
  position: relative;
  width: 100%;
  margin-top: 36px;
  min-height: 560px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

.hero-gallery-glow {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  width: min(720px, 92vw);
  height: 220px;
  background: radial-gradient(ellipse, rgba(92, 168, 255, 0.2) 0%, transparent 72%);
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
}

.hero-gallery {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 380px;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 42%, transparent 92%);
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 42%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero-gallery-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-gallery-track {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  width: max-content;
  height: 100%;
  padding-bottom: 48px;
  will-change: transform;
  animation: hero-gallery-scroll 52s linear infinite;
}

.hero-gallery-card {
  flex: 0 0 228px;
  height: 348px;
  margin: 0;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-phone {
  position: relative;
  z-index: 3;
  width: min(560px, 78vw);
  margin-bottom: -8px;
  transform: translateY(0);
  pointer-events: none;
}

.hero-phone img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.55));
}

@keyframes hero-gallery-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

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

/* Ticker */

.ticker {
  margin-top: auto;
  padding-top: 24px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}

.ticker-track span::before {
  content: "◆";
  margin-right: 14px;
  color: var(--accent);
  font-size: 10px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Features */

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

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 168, 255, 0.3);
  background: var(--accent-soft);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-card {
  margin: 0;
}

.gallery-card.large {
  grid-row: span 2;
}

.gallery-placeholder {
  min-height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card.large .gallery-placeholder {
  min-height: 100%;
}

.ring-shot {
  padding: 40px;
  background: radial-gradient(circle at 50% 30%, var(--accent-soft), transparent 60%), var(--surface);
}

.ring-shot img {
  width: min(240px, 70%);
  margin: 0 auto;
}

.app-shot {
  padding: 24px;
  background: linear-gradient(160deg, rgba(92, 168, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.app-shot-1 { background: linear-gradient(160deg, rgba(92, 168, 255, 0.18), rgba(4, 7, 10, 0.2)); }
.app-shot-2 { background: linear-gradient(160deg, rgba(130, 200, 120, 0.14), rgba(4, 7, 10, 0.2)); }
.app-shot-3 { background: linear-gradient(160deg, rgba(200, 140, 255, 0.14), rgba(4, 7, 10, 0.2)); }

.mock-ui {
  width: 100%;
  padding: 28px;
  border-radius: 16px;
  background: rgba(4, 7, 10, 0.55);
  border: 1px solid var(--border);
}

.mock-ui span {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.mock-ui strong {
  display: block;
  font-size: 36px;
  letter-spacing: -0.02em;
}

.mock-ui small {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
}

.gallery-card figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Steps */

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

.step-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-num {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.step-card p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 820px;
}

.price-card {
  position: relative;
  padding: 32px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.price-card.featured {
  background: linear-gradient(180deg, rgba(92, 168, 255, 0.1), rgba(255, 255, 255, 0.03));
  border-color: rgba(92, 168, 255, 0.35);
}

.price-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}

.price-tier {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.price-desc {
  margin: 10px 0 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.price-value {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.price-features {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.price-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* CTA */

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(92, 168, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(92, 168, 255, 0.25);
}

.cta-box p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--text-muted);
  max-width: 480px;
}

/* Footer */

.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-copy {
  margin: 12px 0 0;
  max-width: 280px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a:not(.logo) {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-grid a:not(.logo):hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

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

/* Responsive */

@media (max-width: 960px) {
  .features-grid,
  .steps,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-card.large {
    grid-row: auto;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .glass-nav {
    display: none;
  }

  .glass-nav-toggle,
  .nav-toggle {
    display: flex;
  }

  .nav {
    left: auto;
    right: 20px;
    transform: none;
    align-items: flex-end;
  }

  .hero-gallery {
    height: 300px;
  }

  .hero-gallery-card {
    flex-basis: 170px;
    height: 260px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: calc(var(--nav-offset) + 88px);
    min-height: auto;
  }

  h1 {
    font-size: clamp(40px, 11vw, 56px);
  }

  .hero-cta {
    width: calc(100% - 12px);
    justify-content: center;
    margin: 0 0 10px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .store-btn {
    width: 100%;
  }

  .hero-gallery {
    height: 240px;
  }

  .hero-gallery-card {
    flex-basis: 130px;
    height: 200px;
  }

  .hero-showcase {
    min-height: 400px;
  }

  .hero-phone {
    width: min(320px, 88vw);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ticker-track,
  .hero-gallery-track {
    animation: none;
  }

  .particles-mask {
    display: none;
  }

  .spotlight {
    background: radial-gradient(
      ellipse 92% 125% at 50% -18%,
      rgba(92, 168, 255, 0.58) 0%,
      transparent 84%
    );
  }

  .spotlight-core {
    background: radial-gradient(
      ellipse 62% 58% at 50% -12%,
      rgba(170, 210, 255, 0.38) 0%,
      transparent 76%
    );
  }

  .spotlight-hotspot {
    display: none;
  }
}
