/*
Theme Name:  Amal Express
Theme URI:   https://amalexpressedmonton.com
Author:      Amal Express Edmonton Ltd.
Description: Custom theme for Amal Express Edmonton — Money Transfer & Currency Exchange. Trading Floor edition.
Version:     3.0.0
License:     Private
Text Domain: amal-express
*/

/* ──────────────────────────────────────────────
   TOKENS — Trading Floor
   ────────────────────────────────────────────── */
:root {
  /* Background field */
  --bg:         #07090F;
  --bg-2:       #0C1018;
  --bg-3:       #131826;
  --bg-card:    #11151F;
  --bg-card-2:  #161B28;

  /* Type */
  --text:       #E8ECF4;
  --text-soft:  #9BA3B5;
  --text-faint: #5C6478;
  --text-mute:  #3E4658;

  /* Grids & rules */
  --grid:       rgba(120,140,180,0.10);
  --grid-soft:  rgba(120,140,180,0.05);
  --rule:       rgba(255,255,255,0.08);

  /* Brand — the flame from the logo, electrified */
  --flame:      #FF7A1A;
  --flame-hot:  #FF9E4A;
  --flame-glow: rgba(255,122,26,0.45);
  --amber:      #FFB341;

  /* Market data */
  --up:         #14E07A;
  --up-glow:    rgba(20,224,122,0.45);
  --down:       #FF4D6D;
  --down-glow:  rgba(255,77,109,0.4);
  --neutral:    #5BC0FF;
  --neutral-2:  #8FA8FF;

  /* Type families */
  --sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: 'Inter Tight', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --maxw: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11", "tnum";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
  position: relative;
}
::selection { background: var(--flame); color: #000; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Background field — terminal grid + ambient glow */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 90%);
}
body::after {
  content: '';
  position: fixed; top: -20%; right: -10%; width: 60%; height: 70%; z-index: 0;
  background: radial-gradient(circle, var(--flame-glow) 0%, transparent 60%);
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}

/* Reusable */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.mono { font-family: var(--mono); font-feature-settings: "tnum", "zero"; }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flame);
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before {
  content: ''; width: 24px; height: 1px; background: var(--flame);
  display: inline-block; box-shadow: 0 0 8px var(--flame-glow);
}
.kicker.neutral { color: var(--neutral); }
.kicker.neutral::before { background: var(--neutral); box-shadow: 0 0 8px rgba(91,192,255,0.4); }

/* Status pills */
.pill-up, .pill-down {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
  letter-spacing: 0.02em;
}
.pill-up { background: rgba(20,224,122,0.12); color: var(--up); border: 1px solid rgba(20,224,122,0.25); }
.pill-down { background: rgba(255,77,109,0.12); color: var(--down); border: 1px solid rgba(255,77,109,0.25); }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 0 0 var(--flame-glow), 0 0 20px var(--flame-glow); }
  50%     { box-shadow: 0 0 0 6px transparent, 0 0 40px var(--flame-glow); }
}

/* ──────────────────────────────────────────────
   TICKER TAPE (top of page, scrolling currencies)
   ────────────────────────────────────────────── */
.tape {
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
  z-index: 50;
}
.tape::before, .tape::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.tape::before { left: 0; background: linear-gradient(90deg, #000 0%, transparent 100%); }
.tape::after { right: 0; background: linear-gradient(-90deg, #000 0%, transparent 100%); }

.tape-track {
  display: flex; gap: 48px; white-space: nowrap;
  padding: 11px 0;
  animation: scroll 60s linear infinite;
  width: max-content;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
}
.tape-item { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); }
.tape-item .sym { color: var(--text); font-weight: 600; }
.tape-item .val { color: var(--text); }
.tape-item .chg.up { color: var(--up); }
.tape-item .chg.down { color: var(--down); }
.tape-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }
@keyframes scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ──────────────────────────────────────────────
   NAV — Glassy, dense
   ────────────────────────────────────────────── */
nav.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(7,9,15,0.78);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px var(--flame-glow));
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-name em { font-style: normal; color: var(--flame); }
.brand-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .18s;
  letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-soft);
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  transition: .2s;
}
.nav-phone:hover { border-color: var(--flame); color: var(--flame); }
.nav-phone .ico { width: 12px; height: 12px; }

.nav-cta {
  background: var(--flame);
  color: #000;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 8px;
  border: 1px solid var(--flame);
  transition: .2s;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 0 24px var(--flame-glow);
}
.nav-cta:hover { background: var(--flame-hot); box-shadow: 0 0 32px var(--flame-glow); transform: translateY(-1px); }
.nav-cta .arr { transition: transform .2s; }
.nav-cta:hover .arr { transform: translateX(3px); }

.ham { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.ham span { display: block; width: 22px; height: 1.5px; background: var(--text); margin: 5px 0; }
.mob-menu {
  display: none; flex-direction: column; gap: 0;
  position: fixed; top: 0; right: 0; bottom: 0; width: 84%; max-width: 340px;
  background: var(--bg-2); padding: 80px 28px 28px; z-index: 250;
  transform: translateX(100%); transition: transform .35s ease;
  border-left: 1px solid var(--rule);
}
.mob-menu.open { transform: translateX(0); }
.mob-menu a {
  padding: 18px 0; border-bottom: 1px solid var(--rule);
  font-size: 20px; font-weight: 500; color: var(--text);
}
.mob-menu .close { position: absolute; top: 22px; right: 22px; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--text); }

/* ──────────────────────────────────────────────
   HERO — Trading desk
   ────────────────────────────────────────────── */
#hero { padding: 56px 0 90px; position: relative; }

.hero-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-bar-l { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero-bar-l .live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--up); font-weight: 600;
}
.hero-bar-l .live .d { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up-glow); animation: pulse 1.8s infinite; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}

.hero-headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 7.4vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--flame) 0%, var(--amber) 60%, var(--flame-hot) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.hero-headline .strike {
  position: relative;
  color: var(--text-faint);
  font-weight: 500;
}
.hero-headline .strike::after {
  content: ''; position: absolute; left: -3%; right: -3%; top: 52%;
  height: 6px; background: var(--down);
  transform: rotate(-3deg);
  box-shadow: 0 0 16px var(--down-glow);
}
.hero-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-lede strong { color: var(--text); font-weight: 600; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 44px; }
.btn-primary {
  background: var(--flame); color: #000;
  padding: 14px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid var(--flame);
  display: inline-flex; align-items: center; gap: 10px;
  transition: .2s;
  box-shadow: 0 0 30px var(--flame-glow);
}
.btn-primary:hover { background: var(--flame-hot); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.02); color: var(--text);
  padding: 14px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--rule);
  display: inline-flex; align-items: center; gap: 10px;
  transition: .2s;
}
.btn-ghost:hover { border-color: var(--text-soft); background: rgba(255,255,255,0.05); }

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpi {
  padding: 18px 18px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 24px;
  background: var(--flame); box-shadow: 0 0 8px var(--flame-glow);
}
.kpi .lbl {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 10px;
}
.kpi .val {
  font-family: var(--display);
  font-size: 30px; font-weight: 700;
  color: var(--text); letter-spacing: -0.025em; line-height: 1;
  display: flex; align-items: baseline; gap: 4px;
}
.kpi .val em { font-style: normal; color: var(--flame); }
.kpi .val .u { font-size: 14px; font-weight: 500; color: var(--text-soft); margin-left: 2px; }
.kpi .sub { font-family: var(--mono); font-size: 11px; color: var(--text-faint); margin-top: 8px; }

/* TERMINAL — the right side of hero */
.terminal {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,122,26,0.05) inset;
  position: relative;
}
.terminal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--flame), transparent);
  opacity: 0.5;
}
.term-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(0,0,0,0.2);
}
.term-head-l { display: flex; align-items: center; gap: 10px; }
.term-dots { display: flex; gap: 5px; }
.term-dots i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.term-dots i:nth-child(1) { background: #FF5F57; }
.term-dots i:nth-child(2) { background: #FEBC2E; }
.term-dots i:nth-child(3) { background: #28C840; }
.term-head-title {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--text-soft); margin-left: 8px;
}
.term-head-r {
  font-family: var(--mono);
  font-size: 10.5px; color: var(--up);
  display: inline-flex; align-items: center; gap: 6px;
}
.term-head-r .d { width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: pulse 1.8s infinite; }

.term-body { padding: 24px 24px 8px; }
.term-pair {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 4px;
}
.term-pair .sym {
  font-family: var(--mono);
  font-size: 14px; font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 6px;
}
.term-pair .arr { color: var(--flame); }
.term-pair .tag {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--text-faint);
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-left: auto;
}

.term-quote {
  display: flex; align-items: baseline; gap: 16px;
  margin: 10px 0 6px;
  font-family: var(--display);
}
.term-quote .big {
  font-size: clamp(54px, 7vw, 84px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1;
}
.term-quote .big em { font-style: normal; color: var(--flame); }
.term-quote .delta {
  font-family: var(--mono); font-size: 13px;
  display: inline-flex; flex-direction: column; gap: 4px;
}
.term-quote .delta .pill-up { font-size: 12px; padding: 4px 10px; }
.term-quote .delta .ago { color: var(--text-faint); font-size: 11px; }

.term-eq { font-family: var(--mono); font-size: 12px; color: var(--text-soft); margin-bottom: 22px; }
.term-eq b { color: var(--text); font-weight: 600; }

/* Chart */
.chart-wrap {
  height: 130px; width: 100%;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  padding: 12px 0;
  margin-bottom: 18px;
  position: relative;
}
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-y-labels {
  position: absolute; left: 0; top: 12px; bottom: 12px; width: 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--mono); font-size: 9px; color: var(--text-faint);
  pointer-events: none;
}
.chart-x-labels {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 9px; color: var(--text-faint);
  margin-top: 6px;
}

.term-foot {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  margin: 0 -24px -8px;
  padding-top: 1px;
}
.term-foot-cell {
  background: var(--bg-card);
  padding: 16px 22px;
}
.term-foot-cell .lbl { font-family: var(--mono); font-size: 10px; color: var(--text-faint); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.term-foot-cell .val { font-family: var(--mono); font-size: 16px; color: var(--text); font-weight: 600; }
.term-foot-cell .val.up { color: var(--up); }
.term-foot-cell .val.down { color: var(--down); }

.term-cta {
  display: block;
  margin: 16px 24px 20px;
  background: linear-gradient(135deg, var(--flame), var(--flame-hot));
  color: #000;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.01em;
  transition: .2s;
  box-shadow: 0 0 24px var(--flame-glow);
}
.term-cta:hover { transform: translateY(-1px); box-shadow: 0 0 36px var(--flame-glow); }

/* ──────────────────────────────────────────────
   SECTION SCAFFOLD
   ────────────────────────────────────────────── */
section { padding: 110px 0; position: relative; }
.section-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
  padding-bottom: 40px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.section-header-left { display: flex; flex-direction: column; gap: 18px; }
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text);
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--flame), var(--amber));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-header-right p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 480px;
}

/* ──────────────────────────────────────────────
   CALCULATOR — Order ticket
   ────────────────────────────────────────────── */
#calculator { padding-top: 100px; }

.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.calc-aside { padding-right: 8px; }
.calc-aside .figure {
  font-family: var(--display);
  font-size: clamp(64px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 26px;
  color: var(--text);
}
.calc-aside .figure em {
  font-style: normal;
  background: linear-gradient(135deg, var(--flame), var(--amber));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.calc-aside .body { font-size: 15px; color: var(--text-soft); line-height: 1.65; margin-bottom: 28px; max-width: 420px; }

.fact-grid { display: grid; gap: 10px; max-width: 440px; }
.fact {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 13px; color: var(--text);
  transition: .2s;
}
.fact:hover { border-color: var(--flame); background: var(--bg-card-2); }
.fact .ic { width: 28px; height: 28px; border-radius: 6px; background: rgba(255,122,26,0.12); color: var(--flame); display: grid; place-items: center; }
.fact .ic svg { width: 14px; height: 14px; }
.fact .v {
  font-family: var(--mono); font-size: 11px; color: var(--up);
  background: rgba(20,224,122,0.12);
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(20,224,122,0.25);
  letter-spacing: 0.04em;
}

/* Order ticket — the calculator */
.ticket {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  position: relative;
}
.ticket::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--flame), var(--amber), var(--flame));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { from{background-position: 0% 0} to{background-position: -200% 0} }

.ticket-head {
  padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--rule);
  background: rgba(0,0,0,0.18);
}
.ticket-head .l {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint);
}
.ticket-head .l span { color: var(--flame); }
.ticket-head .r {
  font-family: var(--mono); font-size: 11px;
  color: var(--up); display: inline-flex; align-items: center; gap: 6px;
}
.ticket-head .r .d { width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: pulse 1.8s infinite; }
.ticket-head .r.loading { color: var(--amber); }
.ticket-head .r.loading .d { background: var(--amber); }
.ticket-head .r.error { color: var(--down); }
.ticket-head .r.error .d { background: var(--down); animation: none; }

.ticket-body { padding: 24px 24px 14px; }

.tk-row {
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 8px;
  transition: border-color .2s;
}
.tk-row:focus-within { border-color: var(--flame); box-shadow: 0 0 0 4px rgba(255,122,26,0.08); }
.tk-row.out { background: rgba(255,122,26,0.04); border-color: rgba(255,122,26,0.2); }

.tk-row-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.tk-row-lbl {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
}
.tk-row-cur {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  background: var(--bg-3);
  border: 1px solid var(--rule);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%239BA3B5' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.tk-amount-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
}
.tk-amount-input {
  flex: 1;
  border: none; outline: none; background: transparent;
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  width: 100%;
}
.tk-amount-input::-webkit-inner-spin-button,
.tk-amount-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.tk-amount-input[type=number] { -moz-appearance: textfield; }
.tk-amount-input::placeholder { color: var(--text-mute); }
.tk-cur-tag {
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--text-faint);
}
.tk-row.out .tk-amount-input { color: var(--flame); }

.tk-swap-line { display: flex; justify-content: center; padding: 6px 0; position: relative; }
.tk-swap-line::before {
  content: ''; position: absolute; left: 18px; right: 18px; top: 50%;
  height: 1px; background: var(--rule);
}
.swap-btn {
  position: relative; z-index: 1;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--rule); background: var(--bg-3);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  transition: .25s;
}
.swap-btn:hover { background: var(--flame); color: #000; border-color: var(--flame); transform: rotate(180deg); box-shadow: 0 0 20px var(--flame-glow); }
.swap-btn svg { width: 16px; height: 16px; }

.tk-rate-line {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-faint);
  padding: 14px 4px 0;
}
.tk-rate-line .r-val { color: var(--text); }
.tk-rate-line .r-val b { color: var(--flame); font-weight: 600; }

.ticket-foot {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: center;
  padding: 16px 24px;
  border-top: 1px solid var(--rule);
  background: rgba(0,0,0,0.22);
}
.tk-stamp {
  background: linear-gradient(135deg, var(--up), #0BAE60);
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  box-shadow: 0 0 16px var(--up-glow);
}
.tk-id {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.tk-refresh {
  background: var(--bg-3); border: 1px solid var(--rule); border-radius: 8px;
  padding: 8px 12px; font-family: var(--mono); font-size: 10.5px; cursor: pointer;
  color: var(--text-soft); letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  transition: .2s;
}
.tk-refresh:hover { background: var(--flame); color: #000; border-color: var(--flame); }
.tk-refresh.spinning svg { animation: spin 1s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }

/* ──────────────────────────────────────────────
   WHY US — Spread comparison
   ────────────────────────────────────────────── */
#why { padding: 110px 0; }

.spread {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.spread-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--rule);
}
.spread-head > div {
  padding: 22px 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-right: 1px solid var(--rule);
  display: flex; align-items: center; gap: 10px;
}
.spread-head > div:last-child { border-right: 0; }
.spread-head .h-them { color: var(--text-soft); }
.spread-head .h-us { color: var(--flame); position: relative; }
.spread-head .h-us::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--flame); box-shadow: 0 0 12px var(--flame-glow);
}
.spread-head .h-us .badge {
  background: var(--flame); color: #000;
  padding: 3px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
}

.spread-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--rule);
  transition: background .2s;
}
.spread-row:last-child { border-bottom: 0; }
.spread-row:hover { background: rgba(255,255,255,0.015); }

.spread-cell {
  padding: 22px 26px;
  font-size: 15px;
  border-right: 1px solid var(--rule);
  display: flex; align-items: center; gap: 14px;
  color: var(--text);
}
.spread-cell:last-child { border-right: 0; }

.spread-cell.criterion {
  font-family: var(--display);
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.spread-cell.criterion .n {
  font-family: var(--mono);
  font-weight: 400; font-size: 11px;
  color: var(--text-faint); letter-spacing: 0.04em;
  background: var(--bg-3); padding: 4px 8px; border-radius: 4px;
  border: 1px solid var(--rule);
}
.spread-cell.them { color: var(--text-soft); }
.spread-cell.them .mk { color: var(--down); font-size: 16px; font-weight: 700; }
.spread-cell.us { background: rgba(255,122,26,0.04); color: var(--text); font-weight: 500; position: relative; }
.spread-cell.us::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--flame); opacity: 0.6;
}
.spread-cell.us .mk { color: var(--up); font-size: 16px; font-weight: 700; }

/* ──────────────────────────────────────────────
   HOW IT WORKS
   ────────────────────────────────────────────── */
#how { padding-top: 80px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.step {
  padding: 28px 26px 28px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  position: relative;
  transition: .25s;
}
.step:hover { border-color: var(--flame); transform: translateY(-4px); box-shadow: 0 20px 40px -20px var(--flame-glow); }
.step-num {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 26px;
}
.step-num .lbl { font-family: var(--mono); font-size: 10px; color: var(--text-faint); letter-spacing: 0.16em; text-transform: uppercase; padding-top: 12px; }
.step-num .big {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--flame), var(--amber));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  color: var(--text);
}
.step p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.6;
}
.step-icon {
  margin-top: 22px;
  height: 100px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.step-icon::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.4;
}
.step-icon svg { position: relative; z-index: 1; width: 60%; height: 60%; color: var(--flame); filter: drop-shadow(0 0 8px var(--flame-glow)); }

.id-notice {
  margin-top: 28px;
  background: linear-gradient(135deg, rgba(255,122,26,0.12), rgba(255,122,26,0.04));
  border: 1px solid rgba(255,122,26,0.25);
  border-radius: 14px;
  padding: 20px 26px;
  display: flex; gap: 18px; align-items: center;
  flex-wrap: wrap;
}
.id-notice .ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--flame); color: #000;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--flame-glow);
}
.id-notice .ic svg { width: 18px; height: 18px; }
.id-notice p { font-size: 14px; color: var(--text-soft); line-height: 1.6; flex: 1; min-width: 280px; }
.id-notice p strong { color: var(--text); font-weight: 600; }

/* ──────────────────────────────────────────────
   SERVICES — Stacked terminal panels
   ────────────────────────────────────────────── */
#services {}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 56px;
}
.svc {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: .25s;
}
.svc:hover { border-color: var(--flame); transform: translateY(-4px); }
.svc.featured {
  grid-column: span 3;
  background: linear-gradient(135deg, var(--bg-card) 0%, #1a1108 100%);
  border-color: rgba(255,122,26,0.3);
  padding: 32px 30px;
  display: flex; flex-direction: column;
}
.svc.featured::before {
  content: ''; position: absolute; top: 0; right: 0; width: 320px; height: 320px;
  background: radial-gradient(circle, var(--flame-glow) 0%, transparent 65%);
  transform: translate(35%, -35%);
  pointer-events: none;
}
.svc.large { grid-column: span 3; }
.svc.std { grid-column: span 2; }

.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; position: relative; z-index: 1; }
.svc-num { font-family: var(--mono); font-size: 10px; color: var(--text-faint); letter-spacing: 0.18em; }
.svc-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-soft);
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.svc.featured .svc-tag { color: var(--flame); border-color: rgba(255,122,26,0.4); background: rgba(255,122,26,0.06); }

.svc h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
  position: relative; z-index: 1;
  color: var(--text);
}
.svc.featured h3 { font-size: 38px; font-weight: 700; letter-spacing: -0.035em; }
.svc.featured h3 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--flame), var(--amber));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.svc.std h3 { font-size: 20px; }
.svc p {
  font-size: 13.5px; line-height: 1.6; color: var(--text-soft);
  position: relative; z-index: 1;
}
.svc.featured p { color: var(--text-soft); font-size: 14.5px; max-width: 380px; }
.svc.featured .svc-foot {
  margin-top: auto; padding-top: 32px;
  display: flex; justify-content: space-between; align-items: flex-end;
  position: relative; z-index: 1;
}
.svc.featured .big-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 88px; line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--flame), var(--amber));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.svc.featured .big-num .pct { font-size: 32px; vertical-align: 0.55em; margin-left: 2px; -webkit-text-fill-color: var(--text); }
.svc.featured .big-lbl { font-family: var(--mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.14em; text-transform: uppercase; text-align: right; max-width: 180px; line-height: 1.5; }

.svc-currencies {
  display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.svc-currencies span {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  padding: 4px 9px; background: var(--bg-3); color: var(--text);
  border-radius: 6px; border: 1px solid var(--rule);
  letter-spacing: 0.04em;
}

/* ──────────────────────────────────────────────
   CONTACT
   ────────────────────────────────────────────── */
#contact { padding-bottom: 90px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: stretch;
}
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.ci {
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: start;
  transition: .2s;
}
.ci:hover { border-color: var(--flame); }
.ci .ci-lbl {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-faint);
  padding-top: 4px;
}
.ci .ci-val {
  font-family: var(--display);
  font-size: 22px; line-height: 1.3;
  color: var(--text); letter-spacing: -0.02em;
  font-weight: 500;
}
.ci .ci-val .small { font-family: var(--sans); font-size: 13.5px; color: var(--text-soft); display: block; margin-top: 6px; line-height: 1.5; font-weight: 400; letter-spacing: 0; }
.ci .ci-val a { color: var(--flame); transition: opacity .2s; }
.ci .ci-val a:hover { opacity: 0.8; }
.ci .ci-val .open-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--up); padding: 4px 12px; background: rgba(20,224,122,0.1);
  border: 1px solid rgba(20,224,122,0.25);
  border-radius: 999px; margin-top: 10px; letter-spacing: 0.04em;
}
.open-pill .d { width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: pulse 1.8s infinite; }

.map-card {
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg-card);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.map-card iframe {
  flex: 1; min-height: 500px; border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.5);
}
.map-card-foot {
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  border-top: 1px solid var(--rule);
}
.map-card-foot .l { font-family: var(--display); font-size: 16px; color: var(--text); letter-spacing: -0.01em; font-weight: 600; }
.map-card-foot a {
  font-family: var(--mono); font-size: 11px;
  background: var(--flame); color: #000;
  padding: 8px 14px; border-radius: 8px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  transition: .2s;
  box-shadow: 0 0 16px var(--flame-glow);
}
.map-card-foot a:hover { background: var(--flame-hot); transform: translateY(-1px); }

/* ──────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────── */
.site-footer {
  background: #000;
  border-top: 1px solid var(--rule);
  padding: 80px 0 30px;
  position: relative;
  z-index: 2;
  color: var(--text);
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.ft-brand .b-name {
  font-family: var(--display); font-weight: 700;
  font-size: 32px; color: var(--text); letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px;
}
.ft-brand .b-name em { font-style: normal; color: var(--flame); }
.ft-brand .b-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 22px; }
.ft-brand p { font-size: 14px; line-height: 1.65; color: var(--text-soft); max-width: 340px; }
.ft-col h5 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--flame); margin-bottom: 22px; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ft-col a { font-size: 14px; color: var(--text-soft); transition: color .15s; }
.ft-col a:hover { color: var(--flame); }

.ft-bottom {
  padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
  font-family: var(--mono); font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.04em;
}
.ft-bottom .regs { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-bottom .reg {
  padding: 5px 10px; border: 1px solid var(--rule);
  border-radius: 6px; font-size: 10px; letter-spacing: 0.12em;
  color: var(--text-soft); text-transform: uppercase;
  background: var(--bg-card);
}

.ft-colophon {
  margin-top: 32px;
  text-align: center;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-faint);
}
.ft-colophon span { color: var(--flame); }

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .section-header { grid-template-columns: 1fr; gap: 24px; }
  .calc-wrap { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc.featured, .svc.large { grid-column: span 2; }
  .svc.std { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .nav-phone { display: none; }
  .ham { display: block; }
  .mob-menu { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .spread-head { grid-template-columns: 1fr; }
  .spread-head > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .spread-row { grid-template-columns: 1fr; }
  .spread-cell { border-right: 0; border-bottom: 1px solid var(--rule); padding: 16px 20px; }
  .spread-cell:last-child { border-bottom: 0; }
  .spread-cell.criterion { background: rgba(0,0,0,0.2); }
  .spread-cell.us::before { display: none; }
  .map-card iframe { min-height: 340px; }
  section { padding: 80px 0; }
  .hero-kpis { grid-template-columns: 1fr; }
  .ci { grid-template-columns: 1fr; gap: 8px; }
  .term-foot { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .ft-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc.featured, .svc.large, .svc.std { grid-column: span 1; }
  .tk-amount-input { font-size: 30px !important; }
  .term-quote .big { font-size: 48px; }
  .nav-cta { padding: 9px 14px; font-size: 12px; }
}
