*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:         #07070D;
  --surface:    #0D0D18;
  --gold:       #C8A055;
  --gold-hi:    #F0C866;
  --text:       #EAE2D2;
  --text-muted: #7A7060;
  --text-dim:   #3A342A;
  --green:      #6FB38A;
  --red:        #C4645A;
}

html, body {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  overflow-x: hidden;
  overflow-y: auto;
}

@media (max-width: 959px) {
  .stage {
    height: auto !important;
    min-height: unset;
    justify-content: flex-start !important;
    padding: 5.5rem 1.5rem 6rem !important;
  }
}

/* ── Noise overlay ─────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 999;
}

/* ── Grid ──────────────────────────────────────────────── */
.grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(200,160,85,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,160,85,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* ── Radial vignette ───────────────────────────────────── */
.vignette {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, #07070D 100%);
  pointer-events: none;
}

/* ── Top bar ───────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(200,160,85,.1);
  z-index: 50;
}

.brand-tag {
  font-size: .6rem;
  letter-spacing: .3em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(200,160,85,.2);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.lang-btn {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: .3rem .75rem;
  color: var(--text-muted);
  transition: all .2s;
}

.lang-btn.active {
  background: var(--gold);
  color: var(--bg);
}

/* Status pill */
.status {
  display: flex; align-items: center; gap: .45rem;
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--text-muted);
}

.dot {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* ── Candlestick decorations ───────────────────────────── */
.candles {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  display: flex; align-items: flex-end; gap: 5px;
  opacity: .12;
  pointer-events: none;
}
.candles.left  { left: 1.8rem; }
.candles.right { right: 1.8rem; }

.c {
  display: flex; flex-direction: column; align-items: center;
  animation: cfloat 4s ease-in-out infinite;
}
.c:nth-child(1){animation-delay:0s}
.c:nth-child(2){animation-delay:.6s}
.c:nth-child(3){animation-delay:1.2s}
.c:nth-child(4){animation-delay:1.8s}
.c:nth-child(5){animation-delay:2.4s}
.c:nth-child(6){animation-delay:3s}

@keyframes cfloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

.wick { width:1px; background:var(--gold); }
.cbody { width:7px; border-radius:1px; }
.bull { background:var(--gold-hi); }
.bear { background:#5A3028; }

/* ── Main hero ─────────────────────────────────────────── */
.stage {
  position: relative; z-index: 10;
  width: 100%; height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 6rem 2rem 5rem;
}

.hero { text-align: center; max-width: 680px; }

/* Staggered fade-up animation */
.hero > * { opacity: 0; animation: fadeUp .8s ease forwards; }
.eyebrow    { animation-delay: .15s }
.wordmark   { animation-delay: .3s  }
.rule       { animation-delay: .45s }
.tagline    { animation-delay: .55s }
.countdown  { animation-delay: .7s  }
.notify     { animation-delay: .85s }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px) }
  to   { opacity:1; transform:translateY(0) }
}

.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  font-size: .6rem;
  letter-spacing: .35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.eyebrow::before, .eyebrow::after {
  content: ''; display:block; width:36px; height:1px;
  background: var(--gold); opacity:.4;
}

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.6rem, 10vw, 7.5rem);
  font-weight: 300;
  line-height: .88;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: .4rem;
}
.wordmark em {
  font-style: italic;
  color: var(--gold);
}

.rule {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.8rem auto;
  max-width: 400px;
}
.rule::before, .rule::after {
  content:''; flex:1; height:1px;
  background: linear-gradient(90deg, transparent, rgba(200,160,85,.3), transparent);
}
.rule-glyph { font-size: .55rem; color: var(--gold); opacity:.5; letter-spacing:.2em; }

.tagline {
  font-size: .8rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2.8rem;
}

/* ── Countdown ─────────────────────────────────────────── */
.countdown {
  display: flex; align-items: flex-start; gap: 1.6rem;
  justify-content: center;
  margin-bottom: 2.8rem;
}

.cd-unit { text-align: center; }

.cd-num {
  display: block;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 2.2ch;
}

.cd-lbl {
  display: block;
  font-size: .5rem;
  letter-spacing: .3em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: .4rem;
}

.cd-sep {
  font-size: 2.4rem;
  color: var(--gold);
  opacity: .35;
  padding-top: .05em;
  line-height: 1;
}

/* ── Social proof ──────────────────────────────────────── */
.social-proof {
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: .9rem;
  opacity: 0;
  animation: fadeUp .8s ease .8s forwards;
}

.social-proof-count {
  color: var(--gold);
  font-weight: 700;
}

.sp-glyph {
  color: var(--gold-hi);
  display: inline-block;
  animation: spPulse 2s ease-in-out infinite;
}

@keyframes spPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.5); opacity: .6; }
}

/* ── Notify form ───────────────────────────────────────── */
.notify {
  display: flex;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.notify-input {
  flex: 1;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(200,160,85,.22);
  border-right: none;
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  padding: .75rem 1rem;
  outline: none;
  transition: border-color .2s;
}
.notify-input::placeholder { color: var(--text-dim); }
.notify-input:focus { border-color: rgba(200,160,85,.55); }

.notify-btn {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--bg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .75rem 1.1rem;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.notify-btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }

.notify-msg {
  display: none;
  font-size: .65rem;
  color: var(--green);
  letter-spacing: .1em;
  margin-top: .6rem;
  text-align: center;
}

/* ── App preview (desktop only) ────────────────────────── */
.app-preview { display: none; }

@media (min-width: 960px) {
  .stage {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 5rem 3rem 4rem;
  }

  .hero {
    flex: 0 0 420px;
    max-width: 420px;
  }

  .candles { display: none; }

  .app-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    flex: 1;
    max-width: 560px;
    opacity: 0;
    animation: fadeUp .9s ease 1.1s forwards;
  }
}

.app-frame {
  width: 100%;
  aspect-ratio: 1306 / 777;
  border: 1px solid rgba(200,160,85,.2);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(200,160,85,.04),
    0 32px 80px rgba(0,0,0,.72),
    0 8px 24px rgba(0,0,0,.5);
  transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform .5s ease, box-shadow .5s ease;
}

.app-frame:hover {
  transform: perspective(1400px) rotateY(-1.5deg) rotateX(.5deg);
  box-shadow:
    0 0 0 1px rgba(200,160,85,.08),
    0 40px 100px rgba(0,0,0,.8),
    0 0 40px rgba(200,160,85,.06) inset;
}

.app-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.preview-caption {
  font-size: .52rem;
  letter-spacing: .22em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
}

/* ── Feature pills ─────────────────────────────────────── */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .36rem;
  justify-content: center;
  margin-top: 1.2rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(200,160,85,.18);
  opacity: 0;
  animation: fadeUp .8s ease 1s forwards;
}

.fp {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .6rem;
  border: 1px solid rgba(200,160,85,.28);
  background: rgba(200,160,85,.07);
  font-size: .52rem;
  letter-spacing: .1em;
  color: #FFFFFF;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color .18s, color .18s, background .18s;
}

.fp::before {
  content: '◈';
  color: var(--gold);
  font-size: .44rem;
  opacity: .8;
}

.fp:hover {
  border-color: rgba(200,160,85,.55);
  background: rgba(200,160,85,.12);
  color: var(--text);
}

.fp--more {
  color: var(--gold);
  border-color: rgba(200,160,85,.22);
  font-style: italic;
}

.fp--more::before { display: none; }

/* Mobile: show mobile pills, hide desktop pills */
.features-title {
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-top: 1.4rem;
  margin-bottom: .6rem;
  opacity: 0;
  animation: fadeUp .8s ease 1s forwards;
}

.feature-pills--mobile {
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeUp .8s ease 1s forwards;
}

.feature-pills--desktop { display: none; }
.features-title--desktop { display: none; }

@media (min-width: 960px) {
  .feature-pills--mobile  { display: none; }
  .features-title--mobile { display: none; }
  .features-title--desktop {
    display: block;
    margin-top: .6rem;
    margin-bottom: .4rem;
    animation-delay: 1.4s;
  }
  .feature-pills--desktop {
    display: flex;
    margin-top: .6rem;
    padding-top: .7rem;
    animation-delay: 1.4s;
  }

  .app-preview { flex-wrap: wrap; }
}

/* ── Mobile preview strip ──────────────────────────────── */
.preview-strip {
  width: 100%;
  margin: 0 auto 1.5rem;
  cursor: pointer;
  outline: none;
  opacity: 0;
  animation: fadeUp .8s ease .625s forwards;
}

.preview-strip-inner {
  position: relative;
  aspect-ratio: 1306 / 777;
  border: 1px solid rgba(200,160,85,.25);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  transition: border-color .25s, box-shadow .25s;
}

.preview-strip:hover .preview-strip-inner,
.preview-strip:focus .preview-strip-inner {
  border-color: rgba(200,160,85,.55);
  box-shadow: 0 8px 28px rgba(0,0,0,.5), 0 0 0 1px rgba(200,160,85,.15);
}

.preview-strip-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Desktop: hide the mobile strip */
@media (min-width: 960px) {
  .preview-strip { display: none; }
}

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 300;
  background: rgba(4,4,10,.94);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: lbIn .22s ease;
}

.lightbox.open { display: flex; }

@keyframes lbIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(200,160,85,.12);
  border: 1px solid rgba(200,160,85,.3);
  color: var(--gold);
  font-size: 1.2rem;
  width: 36px; height: 36px;
  border-radius: 3px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
  line-height: 1;
}

.lightbox-close:hover { background: rgba(200,160,85,.22); }

.lightbox-img {
  display: block;
  width: 100%;
  aspect-ratio: 1306 / 777;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid rgba(200,160,85,.18);
  border-radius: 5px 5px 0 0;
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
}

/* ── Mobile responsive fixes ───────────────────────────── */
@media (max-width: 600px) {
  .stage {
    padding: 5rem 1.25rem 6rem;
  }

  .tagline {
    font-size: .72rem;
    margin-bottom: 1.2rem;
  }

  .countdown {
    gap: .7rem;
    margin-bottom: 1.8rem;
  }

  .cd-num {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    min-width: 2.5ch;
  }

  .cd-sep {
    font-size: 1.6rem;
  }

  .cd-lbl {
    font-size: .44rem;
    letter-spacing: .18em;
  }

  /* Stack the form on very small screens */
  .notify {
    flex-direction: column;
    max-width: 320px;
  }

  .notify-input {
    border-right: 1px solid rgba(200,160,85,.22);
    border-bottom: none;
    font-size: .68rem;
  }

  .notify-btn {
    letter-spacing: .12em;
    padding: .7rem 1rem;
  }

  .wordmark {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .eyebrow { margin-bottom: 1.2rem; }

  .rule { margin: 1.2rem auto; }
}

/* ── Ticker ────────────────────────────────────────────── */
.ticker-wrap {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 34px;
  border-top: 1px solid rgba(200,160,85,.1);
  background: rgba(7,7,13,.85);
  backdrop-filter: blur(12px);
  display: flex; align-items: center;
  overflow: hidden;
  z-index: 50;
}

.ticker-label {
  padding: 0 1rem;
  font-size: .55rem;
  letter-spacing: .25em;
  color: var(--gold);
  border-right: 1px solid rgba(200,160,85,.12);
  height: 100%;
  display: flex; align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  display: flex;
  animation: tickerScroll 38s linear infinite;
  white-space: nowrap;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tick-item {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: 0 1.8rem;
  font-size: .62rem;
  color: var(--text-muted);
}

.tick-pair  { color: var(--text); font-weight: 700; letter-spacing: .04em; }
.tick-price { font-variant-numeric: tabular-nums; }
.tick-chg   { font-size: .58rem; }
.tick-chg.up   { color: var(--green); }
.tick-chg.down { color: var(--red);   }
.tick-div   { color: var(--text-dim); opacity:.4; }

/* ── Carousel ─────────────────────────────────────────────── */
.carousel-img {
  transition: opacity 0.32s ease;
}

.carousel-fading { opacity: 0 !important; }

.app-frame { position: relative; cursor: pointer; }

/* Hint bar above the image */
.carousel-hint-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: .5rem;
}

.carousel-hint {
  font-size: .62rem;
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: .8;
}

/* Info section below the image */
.carousel-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  padding: .6rem 0 .2rem;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.c-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(200,160,85,.25);
  transition: background .2s, transform .2s;
  cursor: pointer;
  flex-shrink: 0;
}

.c-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.carousel-subtitle {
  font-size: .64rem;
  letter-spacing: .18em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
}

/* ── Lightbox navigation ──────────────────────────────────── */
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(200,160,85,.1);
  border: 1px solid rgba(200,160,85,.25);
  color: var(--gold);
  font-size: 2.2rem;
  width: 44px; height: 56px;
  border-radius: 3px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
  z-index: 10;
  line-height: 1;
}

.lightbox-nav:hover { background: rgba(200,160,85,.22); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 600px) {
  .lightbox-prev { left: .35rem; }
  .lightbox-next { right: .35rem; }
  .lightbox-nav { width: 36px; height: 46px; font-size: 1.8rem; }
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(90vw, calc(74vh * 1306 / 777));
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .8rem;
  background: rgba(13,13,24,.92);
  border: 1px solid rgba(200,160,85,.15);
  border-top: none;
  border-radius: 0 0 5px 5px;
}

.lightbox-caption {
  font-size: .58rem;
  letter-spacing: .18em;
  color: var(--text);
  text-transform: uppercase;
}

.lightbox-counter {
  font-size: .52rem;
  color: var(--gold);
  letter-spacing: .1em;
  white-space: nowrap;
  margin-left: 1rem;
}
