/* =============================================================
   TradeStar LLC — styles.css
   Palette: bg #0B0F1A · primary #00C7CE · neon #00E5FF
            win #00FF88 · loss #FF3D71
   Brand extensions (introduced by the Methuselah-beacon icon system):
            neon-hi #7BF5FF   primary-mid #007480
            primary-deep #003B4D   ink-deep #001923
            bg-plate #0F1A2A
   Type:    Orbitron (display/numerics) · Montserrat (body)
   ============================================================= */

:root {
  /* Surfaces */
  --bg:           #0B0F1A;
  --bg-2:         #0E1422;
  --bg-3:         #121A2C;
  --bg-plate:     #0F1A2A;   /* outer stop of the launcher-plate radial gradient */
  --line:         rgba(0, 199, 206, 0.18);
  --line-soft:    rgba(0, 199, 206, 0.08);

  /* Brand cyan family */
  --primary:      #00C7CE;   /* canonical brand teal                              */
  --primary-mid:  #007480;   /* reserved teal mid-tone (defined, not currently consumed by the icon)    */
  --primary-deep: #003B4D;   /* reserved teal deep-tone (defined, not currently consumed by the icon)   */
  --neon:         #00E5FF;   /* dark-theme star halo + outer orb stop             */
  --neon-hi:      #7BF5FF;   /* inner highlight stop of dark-theme star orb       */

  /* State */
  --win:          #00FF88;
  --loss:         #FF3D71;

  /* Type */
  --ink:          #E6F7F8;
  --ink-dim:      #8FA3AE;
  --ink-mute:     #5A6A77;
  --ink-deep:     #001923;   /* reserved deep-ink token                            */

  --maxw:         1240px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;

  /* atmospheric grid + radial light (default — used on disclosure pages) */
  background-image:
    radial-gradient(ellipse 80% 50% at 80% -10%, rgba(0, 229, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 110%, rgba(0, 199, 206, 0.08), transparent 60%),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    linear-gradient(var(--bg), var(--bg));
  background-size: auto, auto, 56px 56px, 56px 56px, auto;
  background-attachment: fixed;
}

/* Starfield body — used on the coming-soon page. Swaps the grid for a
   photographic-style star field generated at /starfield.svg. The whole field
   drifts slowly (palindromic) so the sky feels alive without ever cutting. */
body.starfield-bg {
  background-image:
    url('starfield.svg'),
    linear-gradient(var(--bg), var(--bg));
  background-size: cover, auto;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  animation: starfield-drift 140s ease-in-out infinite alternate;
}
@keyframes starfield-drift {
  from { background-position: 47% 53%, center; }
  to   { background-position: 53% 47%, center; }
}

/* Shooting stars overlay — sits above the background but below content. */
.shooting-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.shooting-stars .ss {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.55);
  opacity: 0;
  transform: translate(110vw, -10vh) rotate(160deg);
  animation: shoot 6s linear infinite;
  animation-play-state: paused;        /* JS unpauses after randomizing */
}
.shooting-stars .ss::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 180px;
  height: 1.5px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  transform: translateY(-50%);
  border-radius: 1px;
}
@keyframes shoot {
  0%   { transform: translate(110vw, -10vh) rotate(160deg); opacity: 0; }
  10%  { opacity: 0; }
  14%  { opacity: 1; }
  78%  { opacity: 1; }
  88%  { opacity: 0; }
  100% { transform: translate(-20vw, 80vh) rotate(160deg); opacity: 0; }
}
/* Per-star top / duration / delay are randomized inline by a small script
   on the coming-soon page (and re-randomized each animation cycle). */

a { color: inherit; text-decoration: none; }

/* ---------- Utility ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--primary);
  display: inline-block;
}

.mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

h1, h2, h3, h4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 15, 26, 0.72);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 38px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.45));
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text .name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.22em;
}
.brand-text .name span { color: var(--primary); }
.brand-text .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin-top: 4px;
}
nav.primary {
  display: flex;
  gap: 36px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
nav.primary a {
  color: var(--ink-dim);
  position: relative;
  transition: color 180ms ease;
}
nav.primary a:hover { color: var(--neon); }
nav.primary a:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}

.cta {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--primary);
  color: var(--neon);
  background: rgba(0, 199, 206, 0.06);
  transition: all 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cta:hover {
  background: rgba(0, 229, 255, 0.14);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.35);
  color: #fff;
}

/* ---------- Ticker strip ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.ticker .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 38px;
  overflow: hidden;
  white-space: nowrap;
}
.ticker .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 10px var(--win);
  display: inline-block;
  margin-right: 8px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
.ticker span b {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 140px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5.8vw, 78px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 28px 0 28px;
}
.hero h1 .accent {
  color: var(--neon);
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
}
.hero h1 .slash {
  color: var(--primary);
  font-weight: 400;
  margin: 0 0.05em;
}
.hero p.lede {
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 38px;
}
.hero .actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero .actions .cta.alt {
  border-color: var(--ink-mute);
  color: var(--ink-dim);
  background: transparent;
}
.hero .actions .cta.alt:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(0, 229, 255, 0.06);
}

.hero-mark {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
}
.hero-mark img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 60px rgba(0, 229, 255, 0.35));
  animation: rotate-cw 60s linear infinite;
  transform-origin: center;
  will-change: transform;
}
.hero-mark::before,
.hero-mark::after {
  content: '';
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  inset: -20px;
  pointer-events: none;
}
.hero-mark::after {
  inset: -52px;
  border-style: dashed;
  border-color: rgba(0, 199, 206, 0.12);
  animation: spin 60s linear infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes rotate-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark img,
  .hero-mark::after,
  body.starfield-bg,
  .shooting-stars .ss { animation: none; }
  .shooting-stars { display: none; }
}

/* corner ticks on hero */
.hero .corner {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.hero .corner.tl { top: 28px; left: 32px; }
.hero .corner.tr { top: 28px; right: 32px; }
.hero .corner.bl { bottom: 28px; left: 32px; }
.hero .corner.br { bottom: 28px; right: 32px; }

/* ---------- Section primitive ---------- */
section.block {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
section.block::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.6;
}

.section-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: start;
}
.section-head .num {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--primary);
  border-top: 1px solid var(--primary);
  padding-top: 14px;
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  max-width: 820px;
}
.section-head h2 .accent { color: var(--neon); }

/* ---------- Pillars grid ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(14, 20, 34, 0.5);
}
.pillar {
  padding: 38px 32px 42px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 220ms ease;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: rgba(0, 199, 206, 0.05); }
.pillar .idx {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.pillar h3 {
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--neon);
  letter-spacing: 0.02em;
}
.pillar p {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- Two-column narrative ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.two-col p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.two-col p strong {
  color: var(--ink);
  font-weight: 500;
}

/* Stats panel */
.stats {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 199, 206, 0.04), transparent);
  padding: 8px;
}
.stats .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.stats .row:last-child { border-bottom: none; }
.stats .cell {
  padding: 22px 26px;
  border-right: 1px solid var(--line);
}
.stats .cell:last-child { border-right: none; }
.stats .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.stats .value {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--neon);
  letter-spacing: 0.01em;
}
.stats .value .sub {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.18em;
  font-weight: 400;
  margin-left: 6px;
}

/* ---------- Compliance list ---------- */
.compliance-list {
  border-top: 1px solid var(--line);
}
.compliance-list .item {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.compliance-list .item .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.16em;
}
.compliance-list .item h4 {
  font-size: 17px;
  margin-bottom: 6px;
}
.compliance-list .item p {
  font-size: 14px;
  color: var(--ink-dim);
  font-family: 'Montserrat', sans-serif;
}
.compliance-list .item .status {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--win);
}
.compliance-list .item .status.pending { color: var(--primary); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 36px;
  margin-top: 80px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
}
.foot-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.foot-brand .brand img { width: 44px; height: 44px; }
.foot-brand p {
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 18px;
  max-width: 320px;
}
.foot-col h5 {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--primary);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.foot-col ul { list-style: none; }
.foot-col li {
  margin-bottom: 10px;
  font-size: 13px;
}
.foot-col li a {
  color: var(--ink-dim);
  transition: color 160ms ease;
}
.foot-col li a:hover { color: var(--neon); }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px;
}

.disclosure {
  border: 1px solid var(--line);
  padding: 22px 26px;
  margin-top: 28px;
  background: rgba(0, 0, 0, 0.25);
}
.disclosure p {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-mute);
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .wrap { padding: 0 22px; }
  nav.primary { display: none; }
  .hero { padding: 70px 0 90px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-mark { max-width: 320px; justify-self: center; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-head .num { padding-top: 10px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: none; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .compliance-list .item { grid-template-columns: 1fr; gap: 6px; }
  .compliance-list .item .status { text-align: left; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .ticker .wrap { font-size: 10px; gap: 18px; }
  section.block { padding: 70px 0; }
  .hero .corner { display: none; }
}
@media (max-width: 540px) {
  .foot-top { grid-template-columns: 1fr; }
  .stats .row { grid-template-columns: 1fr; }
  .stats .cell { border-right: none; border-bottom: 1px solid var(--line); }
  .stats .row:last-child .cell:last-child { border-bottom: none; }
}
