/* =====================================================================
   CoderForTraders — Private Toolbox
   Workstation theme · Space Grotesk / IBM Plex Sans / IBM Plex Mono
   ===================================================================== */

:root {
  --bg:        #080C14;
  --bg-1:      #0A0F1A;
  --bg-2:      #0D1422;
  --bg-3:      #111A2B;
  --panel:     #0C1320;
  --line:      #1B2740;
  --line-soft: rgba(30, 144, 255, 0.12);
  --brand:     #1E90FF;
  --brand-2:   #4FA8FF;
  --brand-dim: #155FA8;
  --green:     #1FD18E;
  --red:       #FF4D5E;
  --amber:     #FFB23E;
  --text:      #E7EEF8;
  --muted:     #93A1B8;
  --faint:     #5C6B83;

  --rail-w: 256px;
  --maxw: 1180px;

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body:    'IBM Plex Sans', system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 18px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle global grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: rgba(30, 144, 255, 0.35); color: #fff; }

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
.mono { font-family: var(--f-mono); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand-2);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

/* =====================================================================
   LAYOUT — fixed command rail + scrolling workspace
   ===================================================================== */
.app { position: relative; z-index: 1; }

.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  background: linear-gradient(180deg, #0A101D, #080C14);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  z-index: 60;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 22px; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: radial-gradient(120% 120% at 30% 20%, #2a9dff, #0c5fb0);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 0 0 1px rgba(79,168,255,0.4), 0 8px 22px -6px rgba(30,144,255,0.6);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 9px;
  background: linear-gradient(140deg, rgba(255,255,255,0.35), transparent 45%);
}
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; }
.brand-sub  { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.22em; color: var(--faint); text-transform: uppercase; }

.rail-label {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 14px 8px 8px;
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.nav a .ico { width: 17px; height: 17px; flex: none; opacity: 0.85; }
.nav a .num { margin-left: auto; font-family: var(--f-mono); font-size: 0.7rem; color: var(--faint); }
.nav a:hover { color: var(--text); background: rgba(30,144,255,0.06); }
.nav a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(30,144,255,0.16), rgba(30,144,255,0.02));
  border-color: var(--line);
}
.nav a.active .ico { opacity: 1; color: var(--brand-2); }

.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0 8px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31,209,142,0.6); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,209,142,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(31,209,142,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,209,142,0); }
}
.rail-cta {
  display: block; text-align: center;
  padding: 12px;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 10px 24px -10px rgba(30,144,255,0.8);
  transition: transform 0.15s, box-shadow 0.15s;
}
.rail-cta small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 0.66rem; opacity: 0.85; }
.rail-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(30,144,255,0.9); }

/* ---------- Mobile top bar (hidden on desktop) ---------- */
.topbar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  height: 60px;
  align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: rgba(8,12,20,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 70;
}
.burger {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-2);
  cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after  { position: absolute; top: 6px; }
.scrim {
  position: fixed; inset: 0; background: rgba(4,7,12,0.6); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s; z-index: 65;
}
body.nav-open .scrim { opacity: 1; visibility: visible; }

/* ---------- Workspace ---------- */
.workspace { margin-left: var(--rail-w); min-height: 100vh; }
.section { padding: 96px clamp(24px, 5vw, 72px); max-width: calc(var(--maxw) + 144px); margin: 0 auto; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.04rem; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(24px, 5vw, 72px) 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('assets/img-hero.jpg') center/cover no-repeat;
  opacity: 0.34;
  transform: scale(1.05);
  z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 18% 30%, rgba(8,12,20,0.4), transparent 60%),
    linear-gradient(90deg, var(--bg) 8%, rgba(8,12,20,0.55) 55%, rgba(8,12,20,0.2) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 40%);
}
.hero-inner { max-width: 780px; position: relative; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  margin: 20px 0 22px;
  letter-spacing: -0.03em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #7DBEFF, #D4EAFF);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 20px rgba(30, 144, 255, 0.55));
}
.hero-lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 600px; margin-bottom: 34px; }
.hero-lead strong { color: var(--text); font-weight: 600; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(30,144,255,0.85);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(30,144,255,0.95); }
.btn-ghost { background: rgba(255,255,255,0.02); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: #fff; background: rgba(30,144,255,0.07); }
.btn .arr { transition: transform 0.18s; }
.btn:hover .arr { transform: translateX(3px); }

/* hero quick-stats */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.hero-stats .stat .v { font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; color: #fff; }
.hero-stats .stat .v span { color: var(--brand-2); }
.hero-stats .stat .k { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }

/* live ticker tape */
.ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 42px;
  background: rgba(6,10,16,0.7);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center;
  overflow: hidden;
  font-family: var(--f-mono); font-size: 0.78rem;
  z-index: 2;
}
.ticker-track { display: inline-flex; gap: 38px; white-space: nowrap; padding-left: 38px; animation: tape 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; gap: 9px; align-items: center; color: var(--muted); }
.ticker-item b { color: var(--text); font-weight: 500; }
.ticker-item .up { color: var(--green); }
.ticker-item .dn { color: var(--red); }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =====================================================================
   GENERIC PANELS / CARDS
   ===================================================================== */
.panel {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* =====================================================================
   ABOUT / THE TRADER
   ===================================================================== */
.trader { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.trader-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 16px 0 18px; }
.trader-copy p { color: var(--muted); margin-bottom: 18px; }
.trader-copy p strong { color: var(--text); }

.timeline { display: flex; gap: 0; margin: 30px 0; }
.tl-node { flex: 1; position: relative; padding-top: 22px; }
.tl-node::before {
  content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand-dim), var(--line));
}
.tl-node::after {
  content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--brand);
}
.tl-node:last-child::after { background: var(--brand); box-shadow: 0 0 14px rgba(30,144,255,0.7); }
.tl-year { font-family: var(--f-mono); font-size: 0.78rem; color: var(--brand-2); }
.tl-txt { font-size: 0.82rem; color: var(--muted); }

.methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  font-family: var(--f-mono); font-size: 0.74rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  background: rgba(30,144,255,0.04);
}
.chip:hover { color: var(--text); border-color: var(--brand-dim); }

.trader-visual { position: relative; }
.trader-visual img { border-radius: var(--r-lg); border: 1px solid var(--line); width: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
.float-card {
  position: absolute;
  background: rgba(10,16,26,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.float-card .v { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: #fff; }
.float-card .k { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.fc-1 { top: 24px; left: -26px; }
.fc-2 { bottom: 26px; right: -22px; }
.fc-2 .v { color: var(--green); }

/* =====================================================================
   TOOLBOX — module browser
   ===================================================================== */
#toolbox { position: relative; }
#toolbox .tb-bg {
  position: absolute; top: 40px; right: 0; width: 46%; max-width: 560px; aspect-ratio: 3/2;
  background: url('assets/img-toolkit.jpg') center/cover no-repeat;
  border-radius: var(--r-lg);
  opacity: 0.14;
  mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 72%);
  pointer-events: none; z-index: 0;
}
#toolbox > * { position: relative; z-index: 1; }
.toolbox-top { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 40px; }
.count-strip { display: flex; gap: 14px; flex-wrap: wrap; }
.count {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 22px;
  background: var(--panel);
  min-width: 118px;
}
.count .v { font-family: var(--f-display); font-weight: 700; font-size: 2.1rem; color: #fff; line-height: 1; }
.count .v span { color: var(--brand-2); font-size: 1.1rem; }
.count .k { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.modules { display: grid; grid-template-columns: 260px 1fr; gap: 22px; }
.mod-tabs { display: flex; flex-direction: column; gap: 10px; }
.mod-tab {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r);
  padding: 16px 18px;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
  font-family: var(--f-body);
}
.mod-tab:hover { transform: translateX(3px); border-color: var(--brand-dim); }
.mod-tab.active { border-color: var(--brand); background: linear-gradient(180deg, rgba(30,144,255,0.12), rgba(30,144,255,0.02)); color: var(--text); }
.mod-tab .mt-name { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: inherit; display: flex; align-items: center; gap: 10px; }
.mod-tab .mt-ico { width: 18px; height: 18px; color: var(--brand-2); flex: none; }
.mod-tab .mt-sub { font-family: var(--f-mono); font-size: 0.7rem; color: var(--faint); margin-top: 4px; padding-left: 28px; }
.mod-tab.active .mt-sub { color: var(--brand-2); }

.mod-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 30px 32px;
  min-height: 300px;
}
.mod-view { display: none; animation: fade 0.4s ease; }
.mod-view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mod-view h3 { font-size: 1.5rem; margin-bottom: 8px; }
.mod-view > p { color: var(--muted); margin-bottom: 22px; max-width: 560px; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; }
.feature-list li { list-style: none; display: flex; gap: 11px; font-size: 0.92rem; color: var(--text); }
.feature-list li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px;
  border-radius: 4px; background: rgba(30,144,255,0.14);
  border: 1px solid var(--brand-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FA8FF' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}

/* =====================================================================
   LIVING BUILD — console feed
   ===================================================================== */
.living { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.living-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 16px 0 18px; }
.living-copy p { color: var(--muted); margin-bottom: 18px; }
.living-feats { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.living-feat { display: flex; gap: 13px; align-items: flex-start; }
.living-feat .lf-ico { width: 38px; height: 38px; flex: none; border-radius: 9px; background: rgba(30,144,255,0.1); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand-2); }
.living-feat h4 { font-size: 1rem; margin-bottom: 2px; }
.living-feat p { font-size: 0.88rem; color: var(--muted); margin: 0; }

.console-wrap { position: relative; }
.console {
  background: #060A11;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.device-float {
  position: absolute;
  bottom: -26px; right: 16px;
  width: 150px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 3;
}
.device-cap {
  position: absolute;
  bottom: 6px; left: 18px;
  font-family: var(--f-mono); font-size: 0.66rem; color: var(--muted);
  background: rgba(10,16,26,0.92); border: 1px solid var(--line);
  padding: 6px 11px; border-radius: 100px; white-space: nowrap; z-index: 3;
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-1); }
.console-bar .lights { display: flex; gap: 6px; }
.console-bar .lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.console-bar .lights i:nth-child(1) { background: #ff5f57; }
.console-bar .lights i:nth-child(2) { background: #febc2e; }
.console-bar .lights i:nth-child(3) { background: #28c840; }
.console-bar .title { font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); margin-left: 6px; }
.console-bar .live { margin-left: auto; font-family: var(--f-mono); font-size: 0.68rem; color: var(--green); display: flex; align-items: center; gap: 7px; }
.console-body {
  padding: 18px 20px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  line-height: 1.95;
  height: 340px;
  overflow: hidden;
  position: relative;
}
.console-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, #060A11); pointer-events: none; }
.log-line { display: flex; gap: 12px; opacity: 0; transform: translateY(6px); animation: logIn 0.4s forwards; }
@keyframes logIn { to { opacity: 1; transform: none; } }
.log-line .t { color: var(--faint); flex: none; }
.log-line .tag { flex: none; font-weight: 500; }
.log-line .tag.add { color: var(--green); }
.log-line .tag.upd { color: var(--brand-2); }
.log-line .tag.fix { color: var(--amber); }
.log-line .msg { color: var(--text); }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--brand-2); animation: blink 1s steps(2) infinite; vertical-align: middle; }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  position: relative;
}
.quote .mark { font-family: var(--f-display); font-size: 3.4rem; line-height: 0.5; color: var(--brand-dim); height: 26px; }
.quote p { font-size: 1rem; color: var(--text); margin: 10px 0 22px; }
.quote .who { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.quote .av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-dim)); font-size: 0.95rem; }
.quote .nm { font-weight: 600; font-size: 0.92rem; }
.quote .rl { font-family: var(--f-mono); font-size: 0.7rem; color: var(--faint); }

/* =====================================================================
   PRICING — license panel
   ===================================================================== */
.pricing { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: stretch; }
.license {
  border: 1px solid var(--brand-dim);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(30,144,255,0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 34px 36px;
  position: relative;
  overflow: hidden;
}
.license::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.license .lic-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.license h3 { font-size: 1.5rem; }
.license .lic-sub { font-family: var(--f-mono); font-size: 0.74rem; color: var(--brand-2); letter-spacing: 0.1em; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 6px; }
.price .amt { font-family: var(--f-display); font-weight: 700; font-size: 3.6rem; color: #fff; letter-spacing: -0.02em; }
.price .cur { font-family: var(--f-mono); font-size: 1rem; color: var(--muted); }
.price .per { color: var(--muted); font-size: 1rem; }
.lic-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.lic-list { display: grid; gap: 12px; margin-bottom: 28px; }
.lic-list li { list-style: none; display: flex; gap: 11px; font-size: 0.93rem; }
.lic-list li svg { flex: none; width: 18px; height: 18px; color: var(--brand-2); margin-top: 3px; }
.lic-list li b { color: #fff; font-weight: 600; }
.license .btn-primary { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }
.lic-foot { text-align: center; font-family: var(--f-mono); font-size: 0.72rem; color: var(--faint); margin-top: 14px; }

/* founding guarantee seal */
.guarantee {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(31,209,142,0.08), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 32px 30px;
  display: flex; flex-direction: column;
}
.seal {
  width: 84px; height: 84px; border-radius: 50%;
  border: 2px dashed var(--green);
  display: grid; place-items: center;
  margin-bottom: 20px;
  position: relative;
  color: var(--green);
  animation: spinSlow 24s linear infinite;
}
.seal svg { width: 36px; height: 36px; animation: spinSlow 24s linear infinite reverse; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.guarantee h3 { font-size: 1.4rem; margin-bottom: 10px; }
.guarantee p { color: var(--muted); font-size: 0.94rem; margin-bottom: 16px; }
.guarantee .lock-row { margin-top: auto; display: flex; align-items: center; gap: 11px; font-family: var(--f-mono); font-size: 0.78rem; color: var(--green); padding-top: 18px; border-top: 1px solid var(--line); }

/* =====================================================================
   PLATFORM STRIP
   ===================================================================== */
.platform { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plat-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 30px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.plat-card img.logo { height: 30px; width: auto; object-fit: contain; }
.plat-card .kx-logo { height: 26px; }
.plat-card p { color: var(--muted); font-size: 0.94rem; }
.plat-card .reco { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-2); }
.plat-card a.link { margin-top: auto; color: var(--brand-2); font-weight: 600; font-size: 0.9rem; display: inline-flex; gap: 7px; align-items: center; }
.plat-card a.link:hover { color: #fff; }

/* =====================================================================
   FOOTER + RISK DISCLOSURE
   ===================================================================== */
.footer { border-top: 1px solid var(--line); background: var(--bg-1); margin-top: 40px; }
.footer-inner { max-width: calc(var(--maxw) + 144px); margin: 0 auto; padding: 54px clamp(24px,5vw,72px) 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { padding: 0 0 16px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 300px; }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 66px; width: auto; opacity: 0.95; }
.footer-col h5 { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 5px 0; }
.footer-col a:hover { color: var(--brand-2); }

.risk {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,77,94,0.04);
  padding: 18px 22px;
  margin-bottom: 30px;
}
.risk h6 { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.risk p { font-size: 0.78rem; color: var(--faint); line-height: 1.7; }

.legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 22px; font-size: 0.8rem; color: var(--faint); padding-top: 24px; border-top: 1px solid var(--line); }
.legal .tm { font-family: var(--f-mono); font-size: 0.72rem; }
.legal-links { display: inline-flex; flex-wrap: wrap; gap: 18px; }
.legal-links a { color: var(--muted); position: relative; }
.legal-links a:hover { color: var(--brand-2); }
.legal-links a + a::before { content: ""; position: absolute; left: -9px; top: 3px; bottom: 3px; width: 1px; background: var(--line); }

/* =====================================================================
   SUBPAGE HEADER (partner / portal)
   ===================================================================== */
.subhead {
  padding: 130px clamp(24px,5vw,72px) 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.back-link { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; margin-bottom: 22px; }
.back-link:hover { color: var(--brand-2); }
.subhead h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 12px 0 14px; }
.subhead p { color: var(--muted); max-width: 620px; font-size: 1.02rem; }

/* partner blocks */
.partner-block {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 40px clamp(24px,4vw,48px);
  margin-bottom: 28px;
}
.nt-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 44px; align-items: center; }
.nt-logo { height: 40px; width: auto; margin-bottom: 22px; }
.nt-grid h2 { font-size: 1.7rem; margin-bottom: 16px; }
.nt-grid p { color: var(--muted); margin-bottom: 18px; }
.nt-benefits { display: grid; gap: 12px; margin: 20px 0 26px; }
.nt-benefits li { list-style: none; display: flex; gap: 12px; align-items: center; font-size: 0.96rem; }
.nt-benefits li svg { flex: none; width: 20px; height: 20px; color: var(--brand-2); }
.nt-monitor { text-align: center; }
.nt-monitor img { width: 100%; max-width: 420px; margin: 0 auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)); }

.kx-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 44px; align-items: center; }
.kx-logo-img { height: 34px; width: auto; margin-bottom: 20px; }
.kx-grid h2 { font-size: 1.7rem; margin-bottom: 16px; }
.kx-grid p { color: var(--muted); margin-bottom: 18px; }
.kx-banner { text-align: center; }
.kx-banner img { border-radius: var(--r); border: 1px solid var(--line); margin: 0 auto; box-shadow: var(--shadow); }

/* portal cards */
.portal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.portal-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.18s, transform 0.18s;
  position: relative;
}
.portal-card.linkable { cursor: pointer; }
.portal-card.linkable:hover { border-color: var(--brand); transform: translateY(-3px); }
.portal-card .pc-ico { width: 48px; height: 48px; border-radius: 11px; background: rgba(30,144,255,0.1); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand-2); }
.portal-card h3 { font-size: 1.2rem; }
.portal-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.portal-card .pc-cta { font-family: var(--f-mono); font-size: 0.82rem; color: var(--brand-2); display: inline-flex; gap: 8px; align-items: center; }
.portal-card.soon .pc-cta { color: var(--faint); }
.badge-soon { position: absolute; top: 18px; right: 18px; font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(255,178,62,0.3); padding: 3px 8px; border-radius: 100px; }

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r);
  background: rgba(30,144,255,0.05);
  padding: 18px 22px;
  margin-top: 28px;
  display: flex; gap: 14px; align-items: flex-start;
}
.notice svg { flex: none; width: 22px; height: 22px; color: var(--brand-2); margin-top: 2px; }
.notice p { font-size: 0.9rem; color: var(--muted); }
.notice b { color: var(--text); }

/* =====================================================================
   REVEAL ANIMATION
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .trader, .living, .pricing, .nt-grid, .kx-grid { grid-template-columns: 1fr; }
  .device-float, .device-cap { display: none; }
  #toolbox .tb-bg { width: 70%; opacity: 0.1; }
  .nt-grid .nt-monitor, .kx-grid .kx-banner { order: -1; }
  .modules { grid-template-columns: 1fr; }
  .mod-tabs { flex-direction: row; flex-wrap: wrap; }
  .mod-tab { flex: 1 1 180px; }
  .quotes { grid-template-columns: 1fr; }
  .platform { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  :root { --rail-w: 0px; }
  .rail {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
    width: 280px;
    box-shadow: var(--shadow);
  }
  body.nav-open .rail { transform: none; }
  .topbar { display: flex; }
  .workspace { margin-left: 0; }
  .hero { padding-top: 120px; min-height: auto; padding-bottom: 90px; }
  .section { padding: 70px clamp(20px, 5vw, 40px); }
  .toolbox-top { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .float-card { position: static; display: inline-flex; flex-direction: column; margin: 12px 12px 0 0; box-shadow: none; }
  .trader-visual { margin-top: 10px; }
}
@media (max-width: 560px) {
  .feature-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .price .amt { font-size: 2.8rem; }
  .portal-grid { grid-template-columns: 1fr; }
  .legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
