/* =====================================================================
   IMPERIAL EXCHANGE — Star Wars / Vader sci-fi reskin
   Vanilla CSS. Deep-space dark, holographic cyan UI, Sith-red power.
   Same structure as the base build — only the visual identity changes.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ========== Design tokens ========== */
:root {
  /* Surfaces — deep space */
  --space:      #050505;
  --space-2:    #0a0a0c;
  --panel:      #0e0e12;
  --panel-2:    #121217;
  --graphite:   #16161c;

  /* Lines / borders */
  --line:       #20222b;
  --line-2:     #2e3038;
  --line-holo:  rgba(231, 237, 246, 0.26);

  /* Holographic cyan / blue — primary UI accent */
  --holo:        #e7edf6;
  --holo-bright: #ffffff;
  --blue:        #aab4c4;
  --blue-deep:   #5b6473;

  /* Sith red — power / CTA / Vader */
  --sith:        #e3b24a;
  --sith-bright: #f3d489;
  --sith-deep:   #7e5e12;

  /* sci-fi gold (sparse) */
  --gold:        #e7c879;

  /* Text — cool tech white */
  --text:        #eef0f3;
  --muted:       #9a9aa3;
  --dim:         #5c5c66;
  --steel:       #98989f;

  /* Type */
  --f-display: 'Orbitron', system-ui, sans-serif;
  --f-tech:    'Orbitron', system-ui, sans-serif;
  --f-body:    'Rajdhani', system-ui, sans-serif;
  --f-mono:    'Share Tech Mono', 'Courier New', monospace;

  --radius:    14px;
  --radius-sm: 8px;

  /* Glow — holographic, restrained */
  --glow-holo:  0 0 18px rgba(231, 237, 246, 0.40);
  --glow-soft:  0 0 10px rgba(231, 237, 246, 0.30);
  --glow-sith:  0 0 20px rgba(227, 178, 74, 0.45);
  --shadow-deep: 0 40px 80px -28px rgba(0, 0, 0, 0.95);

  /* z-index scale */
  --z-bg: 0;
  --z-content: 2;
  --z-header: 50;
  --z-menu: 60;
  --z-top: 100;

  /* legacy accent aliases (kept so existing selectors reskin cleanly) */
  --bat: var(--holo);
  --gold-bright: var(--holo-bright);
  --gold-deep: var(--blue-deep);
  --line-gold: var(--line-holo);
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  background: var(--space);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(231, 237, 246, 0.30); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--blue), #1c1e22);
  border-radius: 10px;
  border: 2px solid #050505;
}
::-webkit-scrollbar-thumb:hover { background: var(--holo); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: var(--z-content);
}

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

/* ===================================================================
   SCROLL PROGRESS
   =================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: var(--z-top);
  background: linear-gradient(90deg, var(--blue-deep), var(--holo), var(--holo-bright));
  box-shadow: 0 0 12px rgba(231, 237, 246, 0.7);
  transition: width .08s linear;
}

/* ===================================================================
   DEEP-SPACE BACKGROUND
   =================================================================== */
.gotham-bg {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  background:
    radial-gradient(120% 90% at 50% -10%, #141418 0%, #0a0a0e 42%, #050507 100%),
    radial-gradient(80% 60% at 80% 110%, rgba(227, 178, 74, 0.10) 0%, transparent 60%),
    radial-gradient(70% 60% at 15% 90%, rgba(170, 180, 196, 0.12) 0%, transparent 60%);
  overflow: hidden;
  pointer-events: none;
}

/* holo grid */
.fx-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(231, 237, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 237, 246, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(120% 90% at 50% 12%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 12%, #000 0%, transparent 76%);
  opacity: .55;
}

/* sweeping holo / tractor beam */
.fx-beam {
  position: absolute;
  top: -30%; left: 50%;
  width: 70vmax; height: 70vmax;
  transform: translateX(-50%);
  background:
    conic-gradient(from 0deg at 50% 0%,
      transparent 0deg,
      rgba(231, 237, 246, 0.07) 10deg,
      transparent 22deg,
      transparent 338deg,
      rgba(170, 180, 196, 0.06) 350deg,
      transparent 360deg);
  filter: blur(8px);
  animation: beam-sweep 30s linear infinite;
  transform-origin: 50% 0%;
}
@keyframes beam-sweep { to { transform: translateX(-50%) rotate(360deg); } }

/* nebula clouds */
.fx-aurora, .fog {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 28% 22%, rgba(170, 180, 196, 0.18) 0%, transparent 60%);
  filter: blur(50px);
  animation: drift 64s ease-in-out infinite;
}
.fog-2 {
  background: radial-gradient(ellipse 45% 45% at 72% 32%, rgba(168, 0, 26, 0.16) 0%, transparent 55%);
  animation-duration: 88s;
  animation-direction: reverse;
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(48px, -28px, 0) scale(1.14); }
}

/* hyperspace streaks (was rain) */
.rain {
  position: absolute;
  inset: -20% 0;
  background: repeating-linear-gradient(
    100deg,
    transparent 0, transparent 12px,
    rgba(255, 255, 255, 0.05) 12px, rgba(255, 255, 255, 0.05) 13px
  );
  opacity: .25;
  animation: rain-fall 0.9s linear infinite;
}
@keyframes rain-fall { from { transform: translateY(-40px); } to { transform: translateY(0); } }

/* scan sweep */
.fx-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 38vh;
  background: linear-gradient(180deg, transparent 0%, rgba(231, 237, 246, 0.05) 50%, transparent 100%);
  animation: scan 9s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes scan {
  0%   { transform: translateY(-40vh); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(130vh); opacity: 0; }
}

/* grain */
.fx-noise {
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.fx-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 40%, transparent 52%, rgba(0,0,0,.62) 100%);
}

/* distant planet horizon (was skyline) */
.skyline {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 240px;
  opacity: .9;
  filter: drop-shadow(0 -6px 30px rgba(231, 237, 246, 0.18));
}

/* star + ship layers */
.fx-particles, .fx-bats {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ember {
  position: absolute;
  bottom: -10px;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #cfe9ff;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: ember-rise linear infinite;
}
@keyframes ember-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: .9; }
  90%  { opacity: .5; }
  100% { transform: translateY(-100vh) translateX(var(--drift, 20px)); opacity: 0; }
}
.bat {
  position: absolute;
  color: #15151a;
  opacity: 0;
  will-change: transform;
  animation: bat-fly linear forwards;
  filter: drop-shadow(0 0 6px rgba(231, 237, 246, 0.5));
}
.bat svg { width: 100%; height: 100%; }
@keyframes bat-fly {
  0%   { opacity: 0; transform: translate(-12vw, 0); }
  8%   { opacity: .85; }
  92%  { opacity: .85; }
  100% { opacity: 0; transform: translate(112vw, -8vh); }
}

/* ========== Ornaments ========== */
.ornament {
  width: 100%;
  height: 80px;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(231, 237, 246, 0.45));
}
.ornament-top    { margin-bottom: -24px; }
.ornament-bottom { margin-top: 90px; height: 60px; }

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(6, 6, 8, 0.55);
  transition: padding .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(6, 6, 8, 0.88);
  border-color: var(--line-holo);
  box-shadow: 0 14px 40px -22px rgba(0,0,0,.9);
}
.header-inner { display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 13px; color: var(--text); }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-text {
  font-family: var(--f-tech);
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 19px;
}
.logo-accent { color: var(--holo); margin-left: 6px; text-shadow: 0 0 12px rgba(231,237,246,.5); }
.logo-tagline {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 5px;
  color: var(--steel);
  margin-top: 5px;
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-family: var(--f-tech);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
}
.nav a { color: var(--muted); transition: color .2s; position: relative; padding: 6px 0; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--holo);
  box-shadow: var(--glow-soft);
  transition: width .25s ease;
}
.nav a:hover { color: var(--holo); }
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-holo);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--holo); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--f-tech);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, color .2s, background .25s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.30) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .6s ease;
}
.btn:hover::after { transform: translateX(130%); }

/* primary = Sith power */
.btn-primary {
  background: linear-gradient(135deg, var(--sith-bright) 0%, var(--sith) 45%, var(--sith-deep) 100%);
  color: #fff;
  box-shadow: var(--glow-sith), inset 0 1px 0 rgba(255,255,255,.25);
  border-color: #ff8a93;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(227, 178, 74, 0.75), 0 18px 40px -14px rgba(227,178,74,.5), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .65; cursor: progress; transform: none; }

/* ghost = holographic */
.btn-ghost {
  background: rgba(231, 237, 246, 0.04);
  color: var(--text);
  border-color: var(--line-holo);
}
.btn-ghost:hover { border-color: var(--holo); color: var(--holo); box-shadow: var(--glow-soft); }
.btn-block { width: 100%; padding: 17px 24px; font-size: 15px; }

/* ===================================================================
   HERO
   =================================================================== */
.hero { padding: 56px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--holo);
  padding: 7px 14px;
  border: 1px solid var(--line-holo);
  border-radius: 100px;
  background: rgba(231, 237, 246, 0.05);
  margin-bottom: 26px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sith);
  box-shadow: 0 0 8px var(--sith);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}

.hero-stack {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}
.hero-stack span { display: block; margin: 6px 0; }
.hero-stack span:nth-child(2) {
  background: linear-gradient(90deg, var(--holo-bright), var(--holo), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stack-last {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.inline-mascot {
  width: 88px; height: 88px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.85)) drop-shadow(0 0 14px rgba(231, 237, 246, 0.4));
  animation: cowl-float 4s ease-in-out infinite;
}
@keyframes cowl-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}
.text-bat {
  color: var(--holo);
  text-shadow: 0 0 12px rgba(231, 237, 246, 0.6);
}

.hero-sub {
  color: var(--muted);
  font-size: 17px;
  margin: 24px 0 28px;
  max-width: 46ch;
  line-height: 1.6;
}
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat b { font-family: var(--f-tech); font-weight: 700; font-size: 22px; color: var(--text); }
.hero-stat span { font-family: var(--f-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--steel); }
.hero-stat .text-bat { color: var(--holo); }

/* ===================================================================
   EXCHANGE WIDGET — holo console
   =================================================================== */
.widget-side { display: flex; }
.widget-side .widget { width: 100%; }

.widget {
  position: relative;
  background: linear-gradient(165deg, rgba(20,20,24,.92) 0%, rgba(9,9,11,.96) 100%);
  border: 1px solid var(--line-holo);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(231, 237, 246, 0.10),
    var(--shadow-deep),
    0 0 50px rgba(231, 237, 246, 0.08);
  overflow: hidden;
}
.widget::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--radius);
  background: linear-gradient(130deg, var(--holo) 0%, transparent 30%, transparent 70%, var(--sith) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .5;
  pointer-events: none;
}
.widget::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(180deg, rgba(231,237,246,.06), transparent);
  animation: console-scan 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes console-scan {
  0%   { transform: translateY(-100%); opacity: 0; }
  30%, 70% { opacity: 1; }
  100% { transform: translateY(260%); opacity: 0; }
}
.widget > .corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--holo);
  border-style: solid;
  border-width: 0;
  opacity: .7;
  pointer-events: none;
}
.corner.tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }

.widget-head { margin-bottom: 18px; position: relative; z-index: 1; }
.widget-tabs {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.widget-tab {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  padding: 6px 2px 12px;
  position: relative;
}
.widget-tab.active { color: var(--text); }
.widget-tab.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--holo);
  box-shadow: var(--glow-soft);
}
.widget-step { margin-left: auto; font-family: var(--f-tech); font-weight: 700; font-size: 22px; color: var(--holo); padding-bottom: 12px; }
.widget-instruction { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.swap { display: grid; gap: 12px; position: relative; z-index: 1; }
.field {
  display: block;
  background: var(--space-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: var(--holo); box-shadow: 0 0 0 3px rgba(231, 237, 246, 0.12); }
.field-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}
.field-row { display: flex; align-items: center; gap: 12px; }
.field input {
  background: transparent; border: 0; outline: 0;
  color: var(--text);
  font-family: var(--f-tech); font-weight: 600; font-size: 25px;
  width: 100%; padding: 0; letter-spacing: .5px; min-width: 0;
}
.field input[readonly] { color: var(--holo); }
.field select {
  background: rgba(231, 237, 246, 0.08);
  border: 1px solid var(--line-holo);
  color: var(--text);
  font-family: var(--f-tech); font-weight: 600; font-size: 13px;
  padding: 9px 12px; border-radius: 6px; letter-spacing: 1px; outline: 0; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.field select:hover { background: rgba(231, 237, 246, 0.14); border-color: var(--holo); }
.field select option { background: var(--panel); color: var(--text); }

.amount-range { display: block; margin: 6px 4px 4px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .5px; color: var(--steel); }

.swap-btn {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  background: var(--panel);
  color: var(--holo);
  border: 1px solid var(--holo);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: transform .4s cubic-bezier(.5,0,.2,1), box-shadow .25s;
  box-shadow: 0 0 14px rgba(231, 237, 246, 0.4), inset 0 0 8px rgba(231,237,246,.15);
}
.swap-btn:hover { transform: translate(-50%, -50%) rotate(180deg) scale(1.08); box-shadow: 0 0 22px rgba(231, 237, 246, 0.7); }

.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.rate-line {
  padding: 9px 14px;
  background: rgba(227, 178, 74, 0.10);
  border-left: 3px solid var(--sith);
  border-radius: 0 6px 6px 0;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .5px; color: var(--text);
  flex: 1; min-width: 220px;
}
.rate-toggle-inline { display: inline-flex; align-items: center; gap: 10px; }
.rate-toggle-inline .rate-tab {
  background: transparent; border: 0; padding: 5px 4px;
  font-family: var(--f-tech); font-weight: 600; font-size: 12px; letter-spacing: 1.5px;
  color: var(--muted); text-transform: uppercase; transition: color .2s, text-shadow .2s;
}
.rate-toggle-inline .rate-tab:hover { color: var(--text); }
.rate-toggle-inline .rate-tab.active { color: var(--holo); text-shadow: var(--glow-soft); }
.rate-divider { color: var(--dim); }

.wallet-field { margin: 20px 0 16px; }
.wallet-field input { font-family: var(--f-mono); font-size: 14px; letter-spacing: .3px; }
.wallet-field input::placeholder { color: var(--dim); font-family: var(--f-body); }

.terms { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; font-size: 13.5px; color: var(--muted); cursor: pointer; user-select: none; position: relative; z-index: 1; }
.terms input[type="checkbox"] {
  appearance: none;
  width: 19px; height: 19px;
  background: var(--space-2);
  border: 1.5px solid var(--line-holo);
  border-radius: 4px; flex-shrink: 0; cursor: pointer; position: relative; transition: all .15s; margin-top: 1px;
}
.terms input[type="checkbox"]:checked { background: var(--holo); border-color: var(--holo); box-shadow: var(--glow-soft); }
.terms input[type="checkbox"]:checked::after {
  content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #050505; font-size: 13px; font-weight: 900;
}
.terms a { color: var(--holo); }
.terms a:hover { text-decoration: underline; }

.widget-foot { margin: 16px 0 0; font-family: var(--f-mono); font-size: 11px; text-align: center; color: var(--dim); letter-spacing: .4px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px; }
.lock-icon { display: inline-flex; color: var(--holo); }
.lock-icon svg { width: 13px; height: 13px; }

/* ===================================================================
   SECTION HEADINGS
   =================================================================== */
.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.section-sub { text-align: center; color: var(--muted); font-size: 16px; margin: 0 0 52px; letter-spacing: .5px; }

/* ===================================================================
   STAGES
   =================================================================== */
.how { padding: 80px 0 40px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: linear-gradient(180deg, var(--panel) 0%, var(--space-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.step::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(231,237,246,.09), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.step:hover { transform: translateY(-6px); border-color: var(--line-holo); box-shadow: 0 24px 50px -22px rgba(0,0,0,.9), 0 0 24px rgba(231,237,246,.1); }
.step:hover::before { opacity: 1; }
.step h3 { font-family: var(--f-tech); font-weight: 600; font-size: 18px; margin: 18px 0 8px; letter-spacing: .8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
.step-icon {
  width: 58px; height: 58px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative; font-family: var(--f-tech);
  background: linear-gradient(150deg, rgba(231,237,246,.16), rgba(231,237,246,.02));
  border: 1px solid var(--line-holo);
}
.step-icon::before { content: ''; position: absolute; inset: -3px; border-radius: 14px; background: var(--holo); filter: blur(16px); opacity: .18; z-index: -1; }
.step-number { font-family: var(--f-tech); font-weight: 800; font-size: 22px; color: var(--holo); text-shadow: 0 0 10px rgba(231,237,246,.5); }
.step-yellow, .step-green, .step-purple, .step-red { color: var(--holo); }

/* ===================================================================
   ADVANTAGES
   =================================================================== */
.advantages { padding: 80px 0 40px; }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.adv-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--space-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.adv-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,50%), rgba(231,237,246,.08), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.adv-card:hover { transform: translateY(-6px); border-color: var(--line-holo); box-shadow: 0 26px 50px -20px rgba(0,0,0,.85), 0 0 26px rgba(231, 237, 246, 0.12); }
.adv-card:hover::before { opacity: 1; }
.adv-icon {
  width: 84px; height: 84px;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(231,237,246,.10), rgba(231,237,246,.02));
  border: 1px solid var(--line-holo);
  border-radius: 50%;
  position: relative;
}
.adv-icon::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(231,237,246,.2); animation: ring-spin 14s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.adv-icon svg { width: 46px; height: 46px; position: relative; z-index: 1; }
.adv-card h3 { font-family: var(--f-tech); font-weight: 600; font-size: 19px; margin: 0 0 12px; letter-spacing: .8px; }
.adv-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ===================================================================
   PAIRS
   =================================================================== */
.pairs { padding: 70px 0 40px; }
.pairs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 8px; }
.pair-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--space-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
  color: var(--text); will-change: transform;
}
.pair-card:hover { border-color: var(--holo); transform: translateY(-5px); box-shadow: 0 16px 32px -12px rgba(0,0,0,.85), 0 0 22px rgba(231, 237, 246, 0.16); }
.pair-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(231, 237, 246, 0.18), rgba(170, 180, 196, 0.18));
  border: 1px solid var(--line-holo);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-tech); font-weight: 700; font-size: 24px; color: var(--holo);
  transition: transform .3s;
}
.pair-card:hover .pair-icon { transform: scale(1.1) rotate(-6deg); }
.pair-symbol { font-family: var(--f-tech); font-weight: 700; font-size: 16px; letter-spacing: 2px; }
.pair-name { font-family: var(--f-mono); font-size: 11px; color: var(--steel); text-transform: uppercase; letter-spacing: 1px; }

/* ===================================================================
   PARTNERS — infinite marquee
   =================================================================== */
.partners { padding: 80px 0 56px; position: relative; overflow: hidden; }
.partners-eyebrow { display: block; text-align: center; margin-bottom: 14px; }
.partners-fx { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.partners-fx::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 42%;
  background: linear-gradient(180deg, transparent, rgba(231,237,246,.04), transparent);
  animation: partners-scan 9s ease-in-out infinite;
}
@keyframes partners-scan {
  0%   { transform: translateY(-70%); opacity: 0; }
  30%, 70% { opacity: 1; }
  100% { transform: translateY(270%); opacity: 0; }
}
.pfx-dot { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--holo); box-shadow: 0 0 6px 1px rgba(231, 237, 246, 0.7); opacity: .2; animation: pfx-blink 3.4s ease-in-out infinite; }
@keyframes pfx-blink { 0%, 100% { opacity: .12; } 50% { opacity: .7; } }

.marquee {
  position: relative; z-index: 2; overflow: hidden; padding: 18px 0; margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 46s) linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.partner-card {
  flex: 0 0 auto;
  position: relative;
  display: flex; align-items: center; gap: 13px;
  min-width: 210px;
  margin-right: 18px;
  padding: 16px 26px;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(20,20,24,.72), rgba(9,9,11,.78));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
.partner-card::before, .partner-card::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border: 1.5px solid var(--holo); opacity: .5; transition: opacity .3s; pointer-events: none;
}
.partner-card::before { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.partner-card::after { bottom: 7px; right: 7px; border-left: 0; border-top: 0; }
.partner-card:hover { transform: translateY(-5px) scale(1.04); border-color: var(--line-holo); box-shadow: 0 16px 34px -16px rgba(0,0,0,.85), 0 0 22px rgba(231, 237, 246, 0.2); }
.partner-card:hover::before, .partner-card:hover::after { opacity: 1; }
.pc-energy {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 36%, rgba(231,237,246,.18) 50%, transparent 64%);
  transform: translateX(-120%); transition: transform .7s ease; pointer-events: none;
}
.partner-card:hover .pc-energy { transform: translateX(120%); }
.pc-icon { display: flex; width: 30px; height: 30px; flex-shrink: 0; align-items: center; justify-content: center; color: var(--holo); filter: drop-shadow(0 0 4px rgba(231, 237, 246, 0.4)); }
.pc-icon svg { width: 24px; height: 24px; }
.pc-name { font-family: var(--f-tech); font-weight: 600; font-size: 16px; letter-spacing: 1px; color: var(--text); white-space: nowrap; }

/* ===================================================================
   API
   =================================================================== */
.api-teaser { padding: 80px 0 40px; }
.api-card {
  background: linear-gradient(135deg, var(--panel) 0%, var(--space-2) 100%);
  border: 1px solid var(--line-holo);
  border-radius: var(--radius);
  padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.api-card::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(170, 180, 196, 0.2) 0%, transparent 60%);
  pointer-events: none;
}
.api-info { position: relative; z-index: 1; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: 2px; color: var(--holo); text-transform: uppercase; }
.api-info h2 { font-family: var(--f-display); font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 14px 0; line-height: 1.05; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; }
.api-info p { color: var(--muted); font-size: 15px; margin: 0 0 24px; line-height: 1.6; }
.api-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.api-snippet {
  background: #050507;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  font-family: var(--f-mono); font-size: 13px; color: var(--text); line-height: 1.8;
  margin: 0; position: relative; z-index: 1; overflow-x: auto;
  box-shadow: inset 0 0 30px rgba(0,0,0,.6);
}
.api-line { display: block; }
.api-method { display: inline-block; background: var(--sith); color: #fff; padding: 1px 7px; border-radius: 3px; font-weight: 700; margin-right: 8px; }
.api-val { color: var(--holo); }

/* ===================================================================
   FAQ
   =================================================================== */
.faq { padding: 80px 0 40px; }
.faq-list { max-width: 820px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: linear-gradient(180deg, var(--panel) 0%, var(--space-2) 100%); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: var(--line-holo); box-shadow: 0 0 26px rgba(231, 237, 246, 0.08); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 24px;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-tech); font-weight: 500; font-size: 16px; letter-spacing: .4px;
  transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary:hover { background: rgba(231, 237, 246, 0.04); }
.faq-num { color: var(--holo); font-size: 13px; letter-spacing: 1px; min-width: 56px; font-family: var(--f-mono); }
.faq-q { flex: 1; }
.faq-toggle { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; top: 50%; left: 50%; background: var(--holo); transition: transform .25s; }
.faq-toggle::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-toggle::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { padding: 0 24px 20px 96px; color: var(--muted); font-size: 14.5px; line-height: 1.65; animation: faq-open .35s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-a p { margin: 0; }

/* ===================================================================
   CONTACT
   =================================================================== */
.contact { padding: 80px 0 40px; }
.contact-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--space-2) 100%);
  border: 1px solid var(--line-holo);
  border-radius: var(--radius);
  padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; top: -50%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(231, 237, 246, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.contact-text { position: relative; z-index: 1; }
.contact-text h2 { font-family: var(--f-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; margin: 0 0 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; }
.contact-text p { color: var(--muted); font-size: 16px; margin: 0; }
.contact-form {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px;
  background: var(--space-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 18px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form:focus-within { border-color: var(--holo); box-shadow: 0 0 0 3px rgba(231,237,246,.10); }
.contact-form .field-label { margin-bottom: 0; }
.contact-form textarea {
  width: 100%; background: transparent; border: 0; outline: 0;
  color: var(--text); font-family: var(--f-body); font-size: 15px; resize: vertical; min-height: 110px; padding: 0;
}
.contact-form textarea::placeholder { color: var(--dim); }
.contact-form .btn { align-self: flex-start; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  position: relative; z-index: var(--z-content);
  background: rgba(4, 4, 6, 0.8);
  border-top: 1px solid var(--line-holo);
  padding: 44px 0 32px; margin-top: 80px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.footer-inner .logo { font-family: var(--f-tech); font-weight: 700; letter-spacing: 2px; font-size: 18px; }
.footer-nav { display: flex; justify-content: center; gap: 32px; font-family: var(--f-tech); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.footer-nav a { color: var(--muted); transition: color .2s; }
.footer-nav a:hover { color: var(--holo); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-holo); border-radius: 50%;
  transition: transform .25s, border-color .25s, background .25s, box-shadow .25s;
}
.footer-social a:hover { border-color: var(--holo); background: rgba(231, 237, 246, 0.08); transform: translateY(-3px); box-shadow: var(--glow-soft); }
.footer-social a svg path { fill: var(--holo); }
.footer-copy {
  grid-column: 1 / -1; text-align: center; margin: 28px 0 0; padding-top: 24px;
  border-top: 1px solid var(--line); color: var(--dim); font-family: var(--f-mono); font-size: 11px; letter-spacing: 1.5px;
}

/* ===================================================================
   SCROLL REVEAL
   =================================================================== */
.anim [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.anim [data-reveal="left"]  { transform: translateX(-36px); }
.anim [data-reveal="right"] { transform: translateX(36px); }
.anim [data-reveal="scale"] { transform: scale(.92); }
.anim [data-reveal].in { opacity: 1; transform: none; }

/* ===================================================================
   LOGO MARK — Vader helmet sizing (blink handled in cinematic-bat.css)
   =================================================================== */
.logo-mark { width: 50px; height: 50px; overflow: visible; transition: filter .45s ease; }
.logo:hover .logo-mark { filter: drop-shadow(0 0 8px rgba(227, 178, 74, 0.5)); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-text { align-items: center; text-align: center; }
  .hero-stack { text-align: center; }
  .hero-stack-last { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .widget-tab { font-size: 20px; }
}
@media (max-width: 900px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(6, 6, 8, 0.97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-holo);
    padding: 0 24px; max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .35s ease; z-index: var(--z-menu);
  }
  .nav-open .nav { max-height: 340px; padding: 12px 24px 20px; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; gap: 14px; }
  .site-header .btn-ghost { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .pairs-grid { grid-template-columns: repeat(3, 1fr); }
  .api-card, .contact-card { grid-template-columns: 1fr; padding: 32px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-nav { flex-wrap: wrap; }
  .footer-social { justify-content: center; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .logo-text { font-size: 16px; letter-spacing: 1.5px; }
  .logo-mark { width: 42px; height: 42px; }
  .logo-tagline { letter-spacing: 3px; }
  .hero-stack { letter-spacing: 1px; word-break: break-word; }
  .steps { grid-template-columns: 1fr; }
  .pairs-grid { grid-template-columns: repeat(2, 1fr); }
  .widget { padding: 22px 18px; }
  .widget-tab { font-size: 18px; letter-spacing: 1px; }
  .widget-step { font-size: 18px; }
  .inline-mascot { width: 62px; height: 62px; }
  .faq-item summary { flex-wrap: wrap; padding: 16px 18px; gap: 8px; }
  .faq-num { min-width: 0; }
  .faq-a { padding: 0 18px 18px; }
  .api-card, .contact-card { padding: 24px; }
  .api-snippet { font-size: 11px; padding: 16px; }
  .rate-row { flex-direction: column; align-items: stretch; }
  .rate-toggle-inline { justify-content: flex-end; }
  .hero-stats { gap: 18px; }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .fx-beam, .fx-scan, .rain, .fog, .fx-aurora, .ember, .bat,
  .adv-icon::after, .widget::after { display: none !important; }
}
