/* ======================================================================
   All In Trade — Shared stylesheet
   Deep navy dark brand. No light surfaces anywhere.
====================================================================== */

:root {
  --bg:           #090D18;
  --bg-deep:      #060910;
  --surface:      #111827;
  --surface-hov:  #1A2236;
  --cream:        #EDE8DF;
  --body:         rgba(237, 232, 223, 0.55);
  --muted:        rgba(237, 232, 223, 0.32);
  --faint:        rgba(237, 232, 223, 0.13);
  --border:       rgba(237, 232, 223, 0.08);
  --border-hov:   rgba(237, 232, 223, 0.13);
  --blue:         #2563FF;
  --blue-hi:      #6B9FFF;
  --gold:         #C9A84C;

  --side:         52px;
  --section-y:    100px;

  --f-display:    'DM Serif Display', 'Times New Roman', serif;
  --f-cond:       'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body:       'Barlow', system-ui, sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--blue); color: var(--cream); }

/* Subtle grid texture applied wherever wanted */
.texture-grid {
  background-image:
    linear-gradient(rgba(237,232,223,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,232,223,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9, 13, 24, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px var(--side);
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; justify-self: start; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo-wordmark {
  font-family: var(--f-cond);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--cream);
}
.nav-logo-wordmark em {
  color: var(--blue-hi);
  font-style: normal;
}
.nav-links {
  display: flex;
  gap: 42px;
  justify-self: center;
}
.nav-links a {
  font-family: var(--f-cond);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--body);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--cream); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--blue);
}
.nav-cta { justify-self: end; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--f-cond);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: var(--cream);
}
.btn-primary:hover {
  background: #3a75ff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--border-hov);
}
.btn-ghost:hover {
  border-color: var(--blue-hi);
  color: var(--blue-hi);
}
.btn-arrow { font-family: inherit; transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--f-cond);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--blue);
}
.headline {
  font-family: var(--f-cond);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--cream);
}
.wit {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--blue-hi);
  letter-spacing: -0.005em;
}
.body-txt { color: var(--body); font-weight: 300; line-height: 1.85; }
.muted-label {
  font-family: var(--f-cond);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Dividers ---------- */
.rule { height: 1px; background: var(--border); width: 100%; }

/* ---------- Pull quote ---------- */
.pullquote {
  border-left: 2.5px solid var(--blue);
  padding: 22px 28px;
  background: var(--surface);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.35;
  color: var(--cream);
}

/* ---------- Card base ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 32px 32px;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
}
.card:hover { background: var(--surface-hov); border-color: var(--border-hov); }
.card:hover::before { transform: scaleX(1); }

.ghost-num {
  position: absolute;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 140px;
  line-height: 1;
  color: rgba(237,232,223,0.045);
  top: 18px;
  right: 22px;
  pointer-events: none;
  user-select: none;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-bar > div {
  padding: 40px 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stats-bar > div:last-child { border-right: none; }
.stat-num {
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.stat-label {
  font-family: var(--f-cond);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--blue);
  color: var(--cream);
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
  font-family: var(--f-cond);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 15px;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; }
.ticker-track span::after {
  content: '·';
  color: rgba(237,232,223,0.55);
  font-size: 22px;
  line-height: 1;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Layout container ---------- */
.container { padding: 0 var(--side); }
.section   { padding: var(--section-y) var(--side); position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 36px var(--side);
}
.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}
.site-footer img { height: 40px; width: auto; }
.site-footer .left { display: flex; align-items: center; gap: 20px; }
.site-footer .gold-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); max-width: 120px; }
.site-footer .gold-line.right { background: linear-gradient(90deg, var(--gold), transparent); }
.site-footer .center {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-footer .right {
  text-align: right;
  font-family: var(--f-cond);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Page intro spacing (for nav clearance) ---------- */
.page-pad-top { padding-top: 76px; }

/* ---------- Inline animations ---------- */
@keyframes glow-drift {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(30px, -20px); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Form ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--f-cond);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--f-body);
  font-weight: 300;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 16px 18px;
  font-size: 16px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: var(--surface-hov);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(237,232,223,0.25); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--body) 50%), linear-gradient(135deg, var(--body) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 44px; }

/* ---------- Utility ---------- */
.flex { display: flex; }
.ai-c { align-items: center; }
.jc-sb { justify-content: space-between; }
.gap-24 { gap: 24px; }
.gap-40 { gap: 40px; }
