/* ============================================================
   OBELISK — Cinematic 3D product experience
   Dark luxury · Liquid glass · Inter / Space Grotesk
   ============================================================ */

:root {
  /* Dark-luxury palette (adapted from design system, dark mode) */
  --bg:            #07060a;
  --bg-2:          #0c0a12;
  --surface:       rgba(22, 20, 30, 0.55);
  --surface-brd:   rgba(255, 255, 255, 0.10);
  --fg:            #f4f2f7;
  --fg-soft:       rgba(244, 242, 247, 0.66);
  --fg-faint:      rgba(244, 242, 247, 0.40);
  --accent:        #d9a441;   /* warm gold */
  --accent-2:      #f3cd7e;
  --accent-cool:   #6fd6ff;   /* cool rim glow */
  --ring:          rgba(217, 164, 65, 0.55);

  --radius:        20px;
  --radius-sm:     12px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --maxw:          1280px;
  --font-head:     "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:     "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--fg);
  background:
    radial-gradient(1200px 800px at 50% -10%, #15111f 0%, transparent 60%),
    radial-gradient(900px 700px at 85% 110%, #0f1622 0%, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Fixed cinematic stage (canvas image sequence) ---------- */
#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 0;
  display: block;
  will-change: transform;
}

/* ---------- Loading overlay ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    radial-gradient(900px 700px at 50% 40%, #15111f 0%, transparent 60%),
    var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-radius: 6px;
  transform: rotate(45deg);
  box-shadow: 0 0 30px var(--ring);
  animation: spinmark 2.4s var(--ease) infinite;
}
@keyframes spinmark {
  0% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(225deg) scale(0.82); }
  100% { transform: rotate(405deg) scale(1); }
}
.loader-text {
  font-family: var(--font-head);
  letter-spacing: 0.24em; text-transform: uppercase;
  font-size: 12px; color: var(--fg-soft);
}
.loader-bar {
  width: min(240px, 60vw); height: 2px;
  background: rgba(255,255,255,0.10); border-radius: 2px; overflow: hidden;
}
.loader-bar span {
  display: block; width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--ring);
  transition: width 0.2s linear;
}
.loader-pct {
  font-family: var(--font-head); font-variant-numeric: tabular-nums;
  font-size: 13px; color: var(--fg-faint);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 45%, transparent 55%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(7,6,10,0.6), rgba(7,6,10,0));
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--fg);
}
.brand-mark {
  width: 16px; height: 16px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-radius: 4px;
  box-shadow: 0 0 18px var(--ring);
  transform: rotate(45deg);
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 600; letter-spacing: 0.28em; font-size: 15px;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--fg-soft); text-decoration: none; font-size: 14px;
  letter-spacing: 0.02em; transition: color 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--fg); }
.nav-cta {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--fg); text-decoration: none;
  padding: 9px 18px; border-radius: 100px;
  border: 1px solid var(--surface-brd);
  background: rgba(255,255,255,0.04);
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { border-color: var(--ring); box-shadow: 0 0 24px -6px var(--ring); }

/* ---------- Scroll progress rail ---------- */
.rail {
  position: fixed;
  right: clamp(14px, 2.4vw, 34px);
  top: 50%; transform: translateY(-50%);
  width: 2px; height: 180px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  z-index: 30;
}
.rail-fill {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: 2px;
  box-shadow: 0 0 12px var(--ring);
}

/* ---------- Layout: acts ---------- */
main { position: relative; z-index: 10; }

.act {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  padding: 0 clamp(20px, 6vw, 90px);
}

.act-hero   { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.act-side   { align-items: center; justify-content: flex-start; }
.act-right  { justify-content: flex-end; }
.act-center { align-items: flex-end; justify-content: center; padding-bottom: 12vh; text-align: center; }
.act-bento  { align-items: center; justify-content: center; }
.act-cta    { flex-direction: column; align-items: center; justify-content: center; text-align: center; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-soft); margin-bottom: 26px;
}
.eyebrow.center { justify-content: center; }
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

.hero-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 30%, #b9b3c7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.hero-sub {
  max-width: 540px;
  margin: 28px auto 38px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--fg-soft);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.kicker {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 16px;
}

/* ---------- Glass cards ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.card {
  padding: clamp(28px, 3vw, 44px);
  max-width: 440px;
}
.card p { color: var(--fg-soft); line-height: 1.62; font-size: 1rem; }
.card-center { max-width: 560px; }

.stat-row {
  list-style: none; display: flex; gap: 28px; margin-top: 28px;
}
.stat-row li { display: flex; flex-direction: column; gap: 4px; }
.stat-row strong {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 600;
  color: var(--fg);
}
.stat-row span { font-size: 12px; color: var(--fg-faint); letter-spacing: 0.04em; }

.specs {
  margin-top: 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.specs > div {
  background: rgba(12,10,18,0.5);
  padding: 16px 18px;
}
.specs dt { font-size: 12px; color: var(--fg-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.specs dd {
  font-family: var(--font-head); font-weight: 500;
  font-size: 1.2rem; margin-top: 4px; color: var(--fg);
}

/* ---------- Bento ---------- */
.bento {
  width: min(100%, var(--maxw));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 18px;
}
.tile {
  padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.tile:hover { transform: translateY(-6px); border-color: var(--ring); }
.tile h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 8px; font-weight: 600; }
.tile p { color: var(--fg-soft); font-size: 0.92rem; line-height: 1.5; }
.tile-lg   { grid-column: span 2; grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.tile-figure {
  font-family: var(--font-head); font-weight: 700;
  font-size: 2.6rem; color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.tile-figure i { font-style: normal; font-size: 1.1rem; color: var(--fg-faint); margin-left: 2px; }

/* ---------- CTA ---------- */
.cta-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.02em; line-height: 1;
  margin-bottom: 16px;
}
.cta-sub { color: var(--fg-soft); font-size: 1.12rem; margin-bottom: 34px; }
.cta-foot { margin-top: 22px; font-size: 13px; color: var(--fg-faint); letter-spacing: 0.03em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  padding: 14px 28px; border-radius: 100px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease);
  border: 1px solid transparent;
}
.btn-lg { padding: 17px 38px; font-size: 16px; }
.btn-primary {
  color: #1a1206;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 40px -12px var(--ring), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px var(--ring); }
.btn-ghost {
  color: var(--fg);
  border-color: var(--surface-brd);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--ring); transform: translateY(-2px); }

/* ---------- Scroll hint ---------- */
.scroll-hint {
  position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-faint);
}
.scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--accent), transparent);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--accent-2);
  animation: drop 2.2s var(--ease) infinite;
}
@keyframes drop { 0%{top:-50%} 60%,100%{top:100%} }

/* ---------- Footer ---------- */
.foot {
  position: absolute; bottom: 26px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 clamp(20px, 6vw, 90px);
  font-size: 12px; color: var(--fg-faint); letter-spacing: 0.04em;
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Focus ---------- */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 100px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .act-right { justify-content: flex-start; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .tile-lg { grid-row: span 2; }
  .foot { flex-direction: column; gap: 6px; align-items: center; text-align: center; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .tile-lg, .tile-wide { grid-column: span 1; }
  .stat-row { gap: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::after, *::before { animation: none !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
