/* Futures Copy Trader — "Relay" public site reference styles.
   CSP-safe: no inline styles needed. Replace the Google Fonts <link> in the HTML
   with the project's self-hosted Space Grotesk / IBM Plex Sans / IBM Plex Mono. */

:root {
  --navy-900: #070E1C;
  --navy-800: #0A1222;
  --navy-700: #0E1A2F;
  --navy-600: #15243F;
  --line: #22355A;
  --white: #FFFFFF;
  --text: #E6ECF7;
  --muted: #9FB0CE;
  --blue: #1D4ED8;
  --blue-hi: #2F62F0;
  --sky: #8FB0FF;
  --glow: rgba(143, 176, 255, .55);
  --radius: 16px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-800);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--white); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--white); color: var(--navy-800); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- Offer bar ---------- */
.offer-bar {
  display: block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  padding: 11px 16px;
  letter-spacing: .01em;
}
.offer-bar strong { font-weight: 700; }
.offer-bar .pill {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 10px;
  margin-right: 10px;
  font-size: 13px;
  letter-spacing: .04em;
}
.offer-bar .go { margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }
.offer-bar:hover { background: var(--blue-hi); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--navy-800); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.nav a:hover { background: var(--navy-600); color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--sky); border-radius: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: 15px;
}
.btn-white { background: var(--white); color: var(--navy-800) !important; }
.btn-white:hover { background: #DCE6FF; }
.btn-ghost { border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--sky); }
.nav .btn { margin-left: 6px; }
@media (max-width: 760px) {
  .nav .hide-sm { display: none; }
  .brand img { height: 28px; }
}

/* ---------- Hero / Relay hub ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 22% 50%, rgba(29, 78, 216, .16), transparent 70%),
    var(--navy-800);
  overflow: hidden;
}
.hub {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(120px, 0.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 72px 0 88px;
  min-height: 620px;
}
.relay-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.relay-lines .base { fill: none; stroke: var(--sky); stroke-opacity: .28; stroke-width: 2; }
.relay-lines .pulse {
  fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--glow)) drop-shadow(0 0 14px var(--glow));
  animation: flow 2.2s linear infinite;
}
.relay-lines .pulse.p2 { animation-delay: -.75s; }
.relay-lines .pulse.p3 { animation-delay: -1.5s; }
.relay-lines .base.active { stroke-opacity: .9; stroke-width: 3; filter: drop-shadow(0 0 8px var(--glow)); }
@keyframes flow { from { stroke-dashoffset: var(--len, 600); } to { stroke-dashoffset: 0; } }

/* Leader */
.leader { grid-column: 1; grid-row: 1; position: relative; z-index: 1; padding-right: 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sky);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--white); }
.leader h1 {
  font-family: var(--font-display); font-weight: 700; color: var(--white);
  font-size: clamp(40px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 16px 0 18px;
}
.leader p.lede { font-size: 19px; color: var(--text); max-width: 34ch; margin: 0 0 28px; }
.leader .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.leader-node {
  grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1;
  width: 88px; height: 88px;
  border-radius: 50%; background: var(--white);
  box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 0 40px rgba(143,176,255,.45);
}
.leader-node::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  animation: ring 2.2s ease-out infinite;
}
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

/* Followers */
/* followers */
.followers-nav { grid-column: 3; grid-row: 1; position: relative; z-index: 1; }
.followers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 1; }
.follower {
  position: relative; display: flex; align-items: center; gap: 18px;
  text-decoration: none; color: var(--white);
  background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 22px 58px; min-height: 112px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.follower .node {
  position: absolute; left: -17px; top: 50%; margin-top: -17px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-800); border: 4px solid var(--sky);
  box-shadow: 0 0 18px var(--glow);
  transition: background .18s ease, transform .18s ease;
}
.follower .txt { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.follower .title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; line-height: 1.15; }
.follower .desc { color: var(--muted); font-size: 15px; }
.follower .tag {
  align-self: flex-start; font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--blue); color: var(--white); border-radius: 999px; padding: 3px 10px; margin-bottom: 4px;
}
.follower .arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line);
  transition: background .18s ease, border-color .18s ease;
}
.follower .arrow svg { width: 18px; height: 18px; }
.follower:hover, .follower:focus-visible {
  transform: translateX(6px);
  border-color: var(--sky);
  background: var(--navy-600);
  box-shadow: 0 0 0 1px var(--sky), 0 12px 40px rgba(29,78,216,.35), 0 0 30px rgba(143,176,255,.25);
  outline: none;
}
.follower:hover .node, .follower:focus-visible .node { background: var(--white); transform: scale(1.15); }
.follower:hover .arrow, .follower:focus-visible .arrow { background: var(--white); border-color: var(--white); color: var(--navy-800); }

/* Idle "please click me" shimmer, one card at a time */
.follower::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid var(--sky); opacity: 0;
  animation: nudge 6.6s ease-in-out infinite;
}
.followers li:nth-child(2) .follower::before { animation-delay: 2.2s; }
.followers li:nth-child(3) .follower::before { animation-delay: 4.4s; }
@keyframes nudge { 0%, 30%, 100% { opacity: 0; } 12% { opacity: .9; } }

/* Phone: leader on top, followers below */
@media (max-width: 900px) {
  .hub { grid-template-columns: 1fr; padding: 40px 0 56px; min-height: 0; gap: 40px; }
  .leader { grid-row: auto; padding-right: 0; }
  .leader-node { grid-column: 1; grid-row: auto; justify-self: start; width: 48px; height: 48px; margin-left: -12px; }
  .followers-nav { grid-column: 1; grid-row: auto; }
  .followers { gap: 18px; padding-left: 30px; }
  .follower .node { left: -35px; }
  .follower { padding-left: 46px; min-height: 96px; }
  .follower .title { font-size: 20px; }
}

/* ---------- Sub-page relay header (Pricing, Account, Affiliates) ---------- */
.node-header { border-bottom: 1px solid var(--line); background: var(--navy-900); }
.node-header .wrap { display: flex; align-items: center; gap: 0; min-height: 64px; overflow-x: auto; }
.node-header a {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap;
  color: var(--muted); font-weight: 500; padding: 10px 14px; border-radius: 999px; min-height: 44px;
}
.node-header a:hover { color: var(--white); background: var(--navy-600); }
.node-header .dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--sky); flex: none; }
.node-header .dot.solid { background: var(--white); border-color: var(--white); }
.node-header .link { width: 36px; height: 2px; background: var(--line); flex: none; }
.node-header a[aria-current="page"] { color: var(--white); background: var(--navy-600); box-shadow: 0 0 0 1px var(--sky), 0 0 20px rgba(143,176,255,.25); }
.node-header a[aria-current="page"] .dot { background: var(--white); border-color: var(--white); box-shadow: 0 0 12px var(--glow); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); color: var(--white); letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.1; }
.section .sub { color: var(--muted); margin: 0 0 36px; max-width: 60ch; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-family: var(--font-display); color: var(--white); margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.step-n { font-family: var(--font-mono); color: var(--sky); font-size: 14px; display: block; margin-bottom: 10px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--text); padding: 22px 0; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }

.risk {
  border: 1px solid #5B4A1F; background: #1B1709; color: #F3E6BF;
  border-radius: var(--radius); padding: 18px 20px; font-size: 15px;
}
.risk strong { color: #FFE9A8; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.featured { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky), 0 20px 60px rgba(29,78,216,.3); }
.plan .badge { position: absolute; top: -13px; left: 28px; background: var(--white); color: var(--navy-800); font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; }
.plan h3 { font-family: var(--font-display); color: var(--white); font-size: 24px; margin: 0; }
.plan .offer-tag { align-self: flex-start; background: var(--blue); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; }
.price { display: flex; align-items: baseline; gap: 6px; color: var(--white); }
.price .amt { font-family: var(--font-mono); font-size: 48px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.price .per { color: var(--muted); }
.then { color: var(--muted); font-size: 15px; margin-top: -8px; }
.then b { color: var(--text); font-family: var(--font-mono); font-weight: 500; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; border: 2px solid var(--sky); }
.fine { color: var(--muted); font-size: 14px; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--navy-900); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { color: var(--text); text-decoration: none; padding: 6px 0; }
.site-footer nav a:hover { color: var(--white); text-decoration: underline; }
.site-footer .legal { margin-top: 20px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .relay-lines .pulse { display: none; }
  html { scroll-behavior: auto; }
}
