:root {
  --bg: #08090c;
  --bg-elevated: #0e1016;
  --surface: rgba(255, 255, 255, 0.032);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.095);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f6fa;
  --text-muted: rgba(244, 246, 250, 0.62);
  --text-dim: rgba(244, 246, 250, 0.38);
  --accent: #4f7cff;
  --accent-soft: rgba(79, 124, 255, 0.14);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================
   Hero Aurora Light Ribbons (subtle, first screen only)
   ========================================= */
.hero-aurora {
  position: absolute;
  inset: -68px 0 0 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}

.aurora-stage {
  position: absolute;
  inset: -28%;
  transform: rotate(-20deg);
  transform-origin: center center;
}

.aurora-sheet {
  position: absolute;
  left: -12%;
  width: 132%;
  border-radius: 999px;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.aurora-violet {
  top: 12%;
  height: 280px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(118, 128, 255, 0.05) 20%,
    rgba(144, 130, 255, 0.14) 55%,
    rgba(182, 128, 255, 0.08) 82%,
    transparent 100%
  );
  filter: blur(76px);
  animation: auroraDriftA 26s ease-in-out infinite alternate;
}

.aurora-coral {
  top: 34%;
  height: 310px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 96, 78, 0.07) 18%,
    rgba(255, 112, 86, 0.14) 52%,
    rgba(255, 144, 102, 0.06) 80%,
    transparent 100%
  );
  filter: blur(82px);
  animation: auroraDriftB 32s ease-in-out infinite alternate;
}

.aurora-emerald {
  top: 60%;
  height: 290px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(20, 138, 86, 0.07) 22%,
    rgba(28, 162, 104, 0.12) 54%,
    rgba(18, 120, 86, 0.05) 84%,
    transparent 100%
  );
  filter: blur(84px);
  animation: auroraDriftC 36s ease-in-out infinite alternate;
}

@keyframes auroraDriftA {
  0% {
    transform: translate3d(-4%, -5%, 0) scaleX(0.96);
    opacity: 0.65;
  }
  100% {
    transform: translate3d(5%, 7%, 0) scaleX(1.05);
    opacity: 1;
  }
}

@keyframes auroraDriftB {
  0% {
    transform: translate3d(5%, 4%, 0) scaleX(1.04);
    opacity: 0.72;
  }
  100% {
    transform: translate3d(-5%, -6%, 0) scaleX(0.95);
    opacity: 0.96;
  }
}

@keyframes auroraDriftC {
  0% {
    transform: translate3d(-4%, 3%, 0) scaleX(0.98);
    opacity: 0.6;
  }
  100% {
    transform: translate3d(5%, -5%, 0) scaleX(1.04);
    opacity: 0.9;
  }
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(rgba(255, 255, 255, 0.85) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
}

/* =========================================
   Layout Container & Common Primitives
   ========================================= */
.page-shell {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 44px);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* =========================================
   Top Navigation
   ========================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 9, 12, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.studio-mark {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.studio-mark:hover {
  color: var(--text);
}

.studio-dot {
  color: var(--accent);
}

.brand-sep {
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 13px;
}

.product-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.product-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.top-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.top-nav a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--text);
  color: var(--bg);
  transition: transform 0.2s var(--ease-out-expo), opacity 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vh, 96px) clamp(72px, 10vh, 116px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 500px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-lede {
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 44ch;
}

.cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  padding-top: 6px;
}

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 13px 22px 13px 18px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
}

.appstore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(79, 124, 255, 0.18);
}

.appstore-btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.appstore-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.appstore-btn-text small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.72;
}

.appstore-btn-text strong {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.price-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trial-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9bb6ff;
}

.price-line {
  font-size: 14px;
  color: var(--text-muted);
}

.price-line strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-right: 6px;
}

.hero-specs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Video Stage */
.video-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-frame {
  position: relative;
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.4) inset;
}

.video-viewport {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #12141c;
  aspect-ratio: 790 / 670;
}

.video-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-inline: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* =========================================
   Sections Common
   ========================================= */
.section {
  padding-block: clamp(68px, 9vh, 112px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px 48px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head .mono-label {
  grid-column: 1 / -1;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 48ch;
}

/* =========================================
   Highlights (3 Real Frames)
   ========================================= */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.highlight-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.highlight-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.highlight-media {
  aspect-ratio: 790 / 670;
  overflow: hidden;
  background: #101218;
  border-bottom: 1px solid var(--border);
}

.highlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.highlight-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.highlight-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =========================================
   Sources
   ========================================= */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.source-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.source-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.source-card p {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 44ch;
}

.source-req {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--text);
}

.source-req span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* =========================================
   Details Grid
   ========================================= */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.detail-item {
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-item:nth-child(2n) {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid var(--border);
}

.detail-item h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.detail-item p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 46ch;
}

.lang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.lang-tags span {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* =========================================
   Specs & Buy Box
   ========================================= */
.specs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.specs-list {
  border-top: 1px solid var(--border);
}

.spec-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px 24px;
  padding-block: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  align-items: baseline;
}

.spec-row dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.spec-row dd {
  font-size: 15.5px;
  color: var(--text);
}

.buy-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.buy-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.buy-price strong {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.buy-price span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.buy-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.buy-card .appstore-btn {
  align-self: flex-start;
  margin-top: 4px;
}

.buy-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-block: 36px 52px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  max-width: 78ch;
  line-height: 1.6;
  font-size: 12.5px;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-copy {
    max-width: none;
  }

  .highlights-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }

  .section-head,
  .specs-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .top-nav {
    display: none;
  }

  .sources-grid,
  .details-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-item,
  .detail-item:nth-child(2n) {
    padding: 24px 0;
    border-left: 0;
  }

  .spec-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .video-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

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

  .aurora-sheet {
    animation: none;
  }

  .appstore-btn,
  .nav-cta {
    transition: none;
  }
}
