/* ===================================================================
   EcomHype × 세라젬 US — Deck Styles
   =================================================================== */

:root {
  --bg: #000000;
  --bg-2: #0a0a0f;
  --bg-3: #12121a;
  --fg: #ffffff;
  --fg-dim: rgba(255,255,255,0.72);
  --fg-mute: rgba(255,255,255,0.48);
  --fg-faint: rgba(255,255,255,0.22);
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.18);
  --gold: #F3CA6E;
  --gold-dim: rgba(243,202,110,0.22);
  --blue: #4363EC;
  --blue-dim: rgba(67,99,236,0.22);
  --blue-glow: rgba(67,99,236,0.55);
}

/* Font families — Proxima Nova via Manrope (close geometric sans substitute), Poppins for body */
.f-head { font-family: 'Manrope', 'Proxima Nova', 'Helvetica Neue', sans-serif; letter-spacing: -0.02em; }
.f-body { font-family: 'Poppins', 'Helvetica Neue', sans-serif; letter-spacing: 0; }
.f-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.02em; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: 'Poppins', 'Helvetica Neue', sans-serif;
}

/* Default slide frame */
.slide {
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ======================================================================
   Ambient background layers (reusable)
   ====================================================================== */

/* Subtle grid */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 90%);
  pointer-events: none;
}

.bg-grid-dense {
  background-size: 40px 40px;
}

/* Blue glow */
.bg-glow-blue {
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67,99,236,0.25) 0%, rgba(67,99,236,0.05) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.bg-glow-gold {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,202,110,0.18) 0%, rgba(243,202,110,0.04) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* Light sweep */
@keyframes sweep {
  0%   { transform: translateX(-120%) skewX(-20deg); opacity: 0; }
  20%  { opacity: 0.8; }
  60%  { opacity: 0.8; }
  100% { transform: translateX(120%) skewX(-20deg); opacity: 0; }
}
.sweep {
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(67,99,236,0.12), rgba(255,255,255,0.06), rgba(243,202,110,0.08), transparent);
  filter: blur(20px);
  pointer-events: none;
  animation: sweep 6s ease-in-out infinite;
  animation-delay: 0.4s;
}

/* Particles */
@keyframes drift-up {
  0%   { transform: translateY(0);       opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-160vh);  opacity: 0; }
}
.particles {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particles span {
  position: absolute;
  display: block;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
  animation: drift-up linear infinite;
}
.particles span.blue  { background: #4363EC; box-shadow: 0 0 8px #4363EC; }
.particles span.gold  { background: #F3CA6E; box-shadow: 0 0 8px #F3CA6E; }

/* ======================================================================
   Slide entry animations — triggered when slide gains [data-deck-active]
   ====================================================================== */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slide-right {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes line-grow {
  from { transform: scaleX(0); } to { transform: scaleX(1); }
}
@keyframes line-grow-y {
  from { transform: scaleY(0); } to { transform: scaleY(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* Animations fire only when the slide is active. Stagger via --d. */
[data-deck-active] .anim {
  animation: fade-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}
[data-deck-active] .anim-in {
  animation: fade-in 0.8s ease-out both;
  animation-delay: var(--d, 0s);
}
[data-deck-active] .anim-x {
  animation: slide-right 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}
[data-deck-active] .anim-line {
  transform-origin: left center;
  animation: line-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}
[data-deck-active] .anim-line-y {
  transform-origin: top center;
  animation: line-grow-y 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}

/* Motion off */
body.motion-off .anim,
body.motion-off .anim-in,
body.motion-off .anim-x,
body.motion-off .anim-line,
body.motion-off .anim-line-y { animation: none !important; }
body.motion-off .sweep,
body.motion-off .particles { display: none !important; }

/* ======================================================================
   Type utilities
   ====================================================================== */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.eyebrow-blue { color: #6b83ff; }
.eyebrow-white { color: var(--fg-dim); }

.title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0;
}
.title-xl {
  font-size: 96px;
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.subtitle {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg-dim);
  margin: 0;
}
.body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.45;
  color: var(--fg-dim);
  margin: 0;
}
.small {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg-mute);
  margin: 0;
}
.micro {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
}

.gold { color: var(--gold); }
.blue { color: #6b83ff; }

/* ======================================================================
   Shared footer
   ====================================================================== */
.deck-footer {
  position: absolute;
  left: 120px; right: 120px;
  bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  pointer-events: none;
  z-index: 10;
}
.deck-footer .brand {
  display: flex; align-items: center; gap: 14px;
}
.deck-footer .brand-mark {
  width: 28px; height: 28px;
  background-image: url('assets/ecomhype-mark.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Tick marks */
.tick-row {
  display: flex; gap: 6px; align-items: center;
}
.tick-row i {
  display: inline-block;
  width: 14px; height: 1px;
  background: rgba(255,255,255,0.35);
}
.tick-row i.active {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}

/* ======================================================================
   Reusable components
   ====================================================================== */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.card-edge-top { border-top: 2px solid var(--blue); }
.card-edge-gold { border-top: 2px solid var(--gold); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.pill .dot.gold { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

.stat-big {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 112px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat-big.gold { color: var(--gold); }
.stat-big.blue { color: #8aa0ff; }

.label-v {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ======================================================================
   Tweaks panel
   ====================================================================== */
#tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 280px;
  background: #0a0a0f;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  padding: 18px;
  z-index: 2147482500;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
#tweaks-panel.open { display: block; }
#tweaks-panel h3 {
  margin: 0 0 14px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
#tweaks-panel .row {
  margin-bottom: 14px;
}
#tweaks-panel label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 6px;
}
#tweaks-panel .seg {
  display: flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
#tweaks-panel .seg button {
  flex: 1;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  color: var(--fg-dim);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
#tweaks-panel .seg button.on {
  background: var(--blue);
  color: #fff;
}
