/* ============================================================
   MURRAY HOLDING — Shared foundation
   Tokens · Reset · Type · Header · Footer · Buttons · Ticker
   ============================================================ */

:root {
  /* Abyssal ocean-night palette */
  --abyss:      #020817;
  --deep:       #061A3A;
  --midnight:   #0A1F4D;
  --graphite:   #0b234f;
  --slate:      #163D8F;
  --line:       rgba(120, 170, 230, 0.13);
  --line-soft:  rgba(120, 170, 230, 0.07);

  /* Text */
  --white:      #F4F7FB;
  --silver:     #8FA6C2;
  --muted:      #7b92af;
  --faint:      #455d78;

  /* Accents — icy blue dominant, amber only as a tiny warm signal */
  --ice:        #A9D8FF;
  --cyan:       #6FD6FF;
  --cyan-dim:   #3f8fc4;
  --amber:      #F59E4C;
  --ember:      #FF9B4A;
  --gold:       #F5C06A;

  --up:         oklch(0.80 0.13 155);
  --down:       oklch(0.66 0.17 25);

  /* Glows */
  --glow-amber: 0 0 26px rgba(245, 158, 76, 0.30);
  --glow-cyan:  0 0 50px rgba(111, 214, 255, 0.30);
  --glow-ice:   0 0 40px rgba(169, 216, 255, 0.28);

  /* Type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Manrope", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Rhythm */
  --pad: clamp(20px, 5vw, 80px);
  --maxw: 1280px;
  --radius: 12px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

body {
  font-family: var(--body);
  background: var(--abyss);
  color: var(--silver);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}

/* Atmospheric base layers */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: block;
}
.bg-wash {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(130% 80% at 50% -20%, rgba(22, 61, 143, 0.45), transparent 60%),
    radial-gradient(80% 60% at 78% 8%, rgba(111, 214, 255, 0.10), transparent 55%),
    radial-gradient(90% 70% at 15% 100%, rgba(10, 31, 77, 0.6), transparent 60%),
    linear-gradient(180deg, var(--abyss) 0%, var(--deep) 45%, #04122b 75%, var(--abyss) 100%);
}

main { position: relative; z-index: 1; }

::selection { background: rgba(111, 214, 255, 0.28); color: var(--white); }

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

/* Typography */
h1, h2, h3, h4 { font-family: var(--display); color: var(--white); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--cyan); font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.7em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }

.shell { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); width: 100%; }
section { padding-block: clamp(56px, 6.5vw, 108px); position: relative; }

.lede { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--silver); max-width: 62ch; line-height: 1.62; }
.text-grad {
  background: linear-gradient(120deg, var(--white) 30%, var(--ice));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ember-grad {
  background: linear-gradient(115deg, var(--ice), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Futuristic, designed headings */
.section-head h2 { text-transform: uppercase; letter-spacing: 0.015em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--body); font-weight: 600; font-size: 0.92rem;
  padding: 0.85em 1.5em; border-radius: 11px;
  position: relative; transition: all 0.35s var(--ease);
  letter-spacing: 0.02em; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn-primary {
  background: linear-gradient(135deg, #0B3A78, #2F9BFF);
  color: #F4F8FF; border: 1px solid rgba(160, 220, 255, 0.45);
  box-shadow: 0 0 0 rgba(98, 216, 255, 0);
}
.btn-primary:hover { box-shadow: 0 0 28px rgba(98, 216, 255, 0.4); transform: translateY(-2px); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  border: 1px solid rgba(160, 220, 255, 0.35); color: #D8ECFF;
  background: rgba(111, 214, 255, 0.04); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: rgba(160, 220, 255, 0.6); background: rgba(111, 214, 255, 0.10); transform: translateY(-2px); box-shadow: 0 0 22px rgba(98, 216, 255, 0.22); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.82rem; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px;
}

/* ============================================================
   HEADER
   ============================================================ */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.hd.scrolled {
  background: rgba(6, 18, 42, 0.7); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}
.hd-inner { display: flex; align-items: center; gap: 32px; height: 74px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--white); letter-spacing: 0.03em; text-transform: uppercase; display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand-mark {
  width: 18px; height: 18px; border-radius: 3px; transform: rotate(45deg);
  background: linear-gradient(135deg, #eaf6ff, var(--cyan) 45%, var(--slate) 100%);
  box-shadow: 0 0 14px rgba(111, 214, 255, 0.7); flex: none;
}
.nav { display: flex; gap: 9px; margin-left: 18px; }
.nav a {
  font-size: 0.89rem; color: var(--silver); padding: 8px 14px; border-radius: 8px;
  position: relative; transition: color 0.25s; font-weight: 500; white-space: nowrap;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--ice)); border-radius: 2px;
}
.hd-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  color: var(--silver); border: 1px solid var(--line-soft); transition: all 0.25s;
}
.icon-btn:hover { color: var(--white); border-color: var(--line); background: oklch(0.5 0.05 230 / 0.08); }
.icon-btn svg { width: 18px; height: 18px; }

/* language dropdown */

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 101; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .hd-right .btn-ghost { display: none; }
  .burger { display: grid; }
}
@media (max-width: 560px) {
  .hd-right .btn-primary { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: oklch(0.08 0.025 245 / 0.97);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); transform: translateX(100%); transition: transform 0.5s var(--ease);
  display: flex; flex-direction: column; padding: 100px var(--pad) 40px; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  font-family: var(--display); font-size: 1.7rem; color: var(--silver); padding: 12px 0; white-space: nowrap;
  border-bottom: 1px solid var(--line-soft); transition: color 0.25s, padding 0.25s;
}
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { color: var(--white); padding-left: 10px; }
.mobile-menu .mm-actions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu .mm-actions .btn { justify-content: center; }

/* ============================================================
   MARKET TICKER
   ============================================================ */
.ticker {
  border-block: 1px solid var(--line-soft); background: oklch(0.1 0.02 240 / 0.4);
  overflow: hidden; position: relative; z-index: 2;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--abyss), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--abyss), transparent); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker-scroll 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.tick {
  display: flex; align-items: center; gap: 12px; padding: 16px 28px;
  border-right: 1px solid var(--line-soft); font-family: var(--mono); white-space: nowrap;
}
.tick-sym { color: var(--silver); font-size: 0.82rem; letter-spacing: 0.04em; }
.tick-px { color: var(--white); font-size: 0.82rem; }
.tick-chg { font-size: 0.78rem; padding: 2px 8px; border-radius: 5px; }
.tick-chg.up { color: var(--up); background: oklch(0.8 0.13 155 / 0.1); }
.tick-chg.down { color: var(--down); background: oklch(0.66 0.17 25 / 0.12); }

/* ============================================================
   FOOTER
   ============================================================ */
.ft { position: relative; z-index: 2; border-top: 1px solid var(--line); background: oklch(0.05 0.02 245 / 0.6); margin-top: 40px; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-block: 72px 48px; }
.ft-brand .brand { margin-bottom: 18px; }
.ft-brand p { font-size: 0.9rem; max-width: 34ch; color: var(--muted); }
.ft-col h5 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; font-weight: 500; }
.ft-col a { display: block; font-size: 0.9rem; color: var(--silver); padding: 6px 0; transition: color 0.2s, padding-left 0.2s; }
.ft-col a:hover { color: var(--white); padding-left: 5px; }
.ft-disclaimer { border-top: 1px solid var(--line-soft); padding-block: 32px; font-size: 0.78rem; color: var(--faint); line-height: 1.7; max-width: 100%; }
.ft-bottom { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; padding-block: 24px 48px; border-top: 1px solid var(--line-soft); font-size: 0.8rem; color: var(--muted); }
.ft-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ft-legal a { color: var(--muted); transition: color 0.2s; }
.ft-legal a:hover { color: var(--silver); }

@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .ft-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SCROLL REVEAL  (fail-safe: visible by default; entrance is a
   non-filling animation so content is never trapped hidden)
   ============================================================ */
.reveal { opacity: 1; transform: none; }
.reveal.in { animation: revealIn 0.85s var(--ease); }
.reveal.in[data-d="1"] { animation-delay: 0.08s; }
.reveal.in[data-d="2"] { animation-delay: 0.16s; }
.reveal.in[data-d="3"] { animation-delay: 0.24s; }
.reveal.in[data-d="4"] { animation-delay: 0.32s; }
.reveal.in[data-d="5"] { animation-delay: 0.40s; }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { animation: none !important; opacity: 1; transform: none; }
}

/* utility */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.section-head { max-width: 64ch; margin-bottom: clamp(30px, 4vw, 50px); }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); margin-block: 14px 18px; line-height: 1.1; }
.divider-line { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
