:root{
  --cyan:#2FEBFF; --cyan-deep:#00B7D6; --cyan-glow:#5CF9FF; --blue:#3B82F6;
  --bg:#030B12; --panel:#061722; --panel-light:#091F2C; --panel-dark:#04121B;
  --border:#0B3547; --border-active:#087A99;
  --text:#D9E7F0; --text-dim:#8EA7B8; --text-faint:#587080;
  --green:#2DFFC2; --red:#D70040; --amber:#FFC838;
  --radius:10px;
}
*{box-sizing:border-box;}
/* background lives on html, not body — a body with its own opaque
   background paints over any z-index:-1 fixed child (the ambient code
   layer below) regardless of stacking order, since it's a later paint
   step in the same normal-flow bucket. Leaving body transparent lets
   html's background serve as the canvas instead. */
html{background:var(--bg);}
html,body{margin:0;padding:0;color:var(--text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;font-size:15px;line-height:1.55;}
h1,h2,h3,h4{color:#fff;font-weight:700;letter-spacing:-.01em;margin:0 0 12px 0;}
a{color:var(--cyan);text-decoration:none;}
a:hover{color:var(--cyan-glow);}
.mono{font-family:'JetBrains Mono',ui-monospace,monospace;}
img{max-width:100%;display:block;}

.wrap{max-width:1120px;margin:0 auto;padding:0 24px;}
.narrow{max-width:640px;margin:0 auto;padding:0 24px;}

/* ---------------- AMBIENT CODE BACKGROUND ---------------- */
/* A dense field of individual code lines at fully random positions
   (not a grid — see js/ambient-code.js) each drifting slowly upward on
   its own independent, randomly-timed loop. Random x per line (rather
   than a fixed set of column x-positions) is what keeps a dense,
   constantly-scrolling field from reading as pillars. Each WORD inside
   a line — not the line as a whole — is its own lightable unit:
   js/ambient-code.js measures every word's real distance to the cursor
   independently (smoothstep falloff + per-word randomness), so a word
   brightens the same way regardless of which side the cursor
   approaches from, and a line doesn't light up as one uniform blob.
   z-index:-1 on a position:fixed element is the standard way to sit
   behind all normal in-flow content without every section needing its
   own z-index. */
.ambient-code{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;
  /* Fades the outer ~12% of the viewport on every edge, so lines near
     the boundary taper off instead of getting hard-clipped by overflow. */
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image:linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);}
.ambient-code-base{position:absolute;inset:0;overflow:hidden;}
.ambient-code .line{position:absolute;white-space:nowrap;font-family:'JetBrains Mono',monospace;
  font-size:12.5px;letter-spacing:.01em;will-change:transform,clip-path;
  /* Two animations sharing the same per-line duration/delay (set
     inline in js/ambient-code.js) so they stay in phase: ambientScroll
     drives the upward drift, ambientTypeIn re-reveals the line's text
     left-to-right in discrete steps() every time that same cycle
     restarts — so a line entering from the bottom types itself in
     instead of simply appearing fully formed. */
  animation-name:ambientScroll,ambientTypeIn;
  animation-timing-function:linear,steps(14,end);
  animation-iteration-count:infinite,infinite;}
/* Opacity/color lives on each WORD, not the .line — a child can never
   render brighter than an ancestor's own opacity ceiling, so the
   per-word brightening js/ambient-code.js applies inline would be
   capped at whatever faint value the line itself had. */
.ambient-code .line .word{opacity:.11;color:var(--cyan);
  transition:opacity .2s ease,color .2s ease,text-shadow .25s ease;}
/* Travels well past the viewport (140vh, not 100vh) before looping, so
   the reset always happens off-screen — combined with each line's own
   randomized negative animation-delay (see js/ambient-code.js), that's
   what avoids a visible "pop" at the loop point. */
@keyframes ambientScroll{from{transform:translateY(0);}to{transform:translateY(-140vh);}}
/* Fully hidden at 0%, fully revealed by 8% of the cycle, then held
   revealed for the rest — combined with steps(14,end) above, that 8%
   window plays as a quick left-to-right typing burst rather than a
   smooth wipe. Values after 8% never change, so stepping has nothing
   left to visibly step through for the remainder of the loop. */
@keyframes ambientTypeIn{
  0%{-webkit-clip-path:inset(0 100% 0 0);clip-path:inset(0 100% 0 0);}
  8%,100%{-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0);}
}

/* ---------------- NAV ---------------- */
.site-nav{position:sticky;top:0;z-index:100;background:rgba(3,11,18,.85);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);}
.site-nav .wrap{display:flex;align-items:center;justify-content:space-between;height:64px;}
.nav-logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:16px;color:#fff;letter-spacing:.3px;}
.nav-logo img{width:24px;height:auto;}
.nav-links{display:flex;align-items:center;gap:28px;}
.nav-links a{color:var(--text-dim);font-size:14px;font-weight:500;}
.nav-links a:hover{color:#fff;}
.nav-cta{display:flex;align-items:center;gap:14px;}

/* ---------------- BUTTONS ---------------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 22px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;
  border:1px solid var(--border);background:var(--panel-light);color:var(--text);
  transition:all .15s ease;}
.btn:hover{border-color:var(--border-active);color:#fff;}
.btn.primary{background:linear-gradient(180deg,var(--cyan-glow),var(--cyan-deep));border-color:var(--cyan-deep);
  color:#02141a;box-shadow:0 4px 20px rgba(47,235,255,.25);}
.btn.primary:hover{filter:brightness(1.08);color:#02141a;}
.btn.large{padding:14px 30px;font-size:15px;}
.btn.block{width:100%;}
.btn:disabled{opacity:.5;cursor:not-allowed;}

/* ---------------- HERO ---------------- */
.hero{padding:96px 0 72px 0;text-align:center;position:relative;overflow:hidden;}
.hero-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:20px;
  background:rgba(47,235,255,.08);border:1px solid rgba(47,235,255,.25);color:var(--cyan);
  font-size:12.5px;font-weight:600;letter-spacing:.3px;margin-bottom:24px;}
.hero h1{font-size:clamp(34px,5vw,58px);line-height:1.08;margin-bottom:18px;}
/* ---------------- TYPEWRITER ---------------- */
/* js/typewriter.js clears an element's HTML and re-reveals it a
   character (or, for a tag like <span>/<br>, a whole tag) at a time.
   Hidden by default so there's no flash of the fully-typed text before
   the script runs — it flips this to visible the instant it starts
   typing, right as the element is already empty. */
.typewriter{visibility:hidden;}
.typewriter.tw-active{visibility:visible;}
.tw-cursor{display:inline-block;width:2px;height:.9em;margin-left:2px;background:currentColor;
  vertical-align:text-bottom;animation:twBlink .8s step-end infinite;}
@keyframes twBlink{50%{opacity:0;}}
.hero h1 span{background:linear-gradient(90deg,var(--cyan),var(--blue));-webkit-background-clip:text;
  background-clip:text;color:transparent;}
.hero p{font-size:18px;color:var(--text-dim);max-width:620px;margin:0 auto 34px auto;}
.hero-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}
.hero-note{margin-top:18px;font-size:12.5px;color:var(--text-faint);}

/* ---------------- SECTIONS ---------------- */
section{padding:72px 0;}
.section-title{text-align:center;max-width:640px;margin:0 auto 48px auto;}
.section-title h2{font-size:32px;}
.section-title p{color:var(--text-dim);font-size:16px;}
.eyebrow{color:var(--cyan);font-size:12.5px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;margin-bottom:10px;}

.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;}
.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:26px;
  transition:border-color .15s;}
.card:hover{border-color:var(--border-active);}
.card .icon{width:38px;height:38px;border-radius:8px;background:rgba(47,235,255,.1);
  display:flex;align-items:center;justify-content:center;color:var(--cyan);margin-bottom:16px;}
.card h3{font-size:17px;margin-bottom:8px;}
.card p{color:var(--text-dim);font-size:14px;margin:0;}

/* ---------------- PRODUCT TOUR ---------------- */
.tour-shot{background:var(--panel);border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-bottom:24px;}
.tour-shot img{width:100%;display:block;}
.tour-shot .tour-caption{padding:16px 22px;color:var(--text-dim);font-size:14px;}
.tour-shot .tour-caption strong{color:#fff;}
.tour-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px;margin-bottom:24px;}
.tour-grid .tour-shot{margin-bottom:0;}
/* js/live-chart.js draws an animated candlestick chart into this
   canvas, positioned (in percentages, so it scales with the
   responsive screenshot) to sit exactly over the real chart's plot
   area in images/screenshots/command-center.jpg — everything around
   it (sidebar, panels, price labels) is still the real screenshot. */
.live-chart-wrap{position:relative;}
.live-chart-wrap img{width:100%;display:block;}
.live-chart-canvas{position:absolute;left:6.77%;top:14.07%;width:44.53%;height:15.09%;}
.mock-tag{display:inline-block;margin-left:8px;padding:2px 9px;border-radius:12px;background:rgba(255,200,56,.1);
  border:1px solid rgba(255,200,56,.3);color:var(--amber);font-size:11px;font-weight:600;letter-spacing:.3px;vertical-align:1px;}
.mock-frame{padding:26px;}
.mock-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px;}
@media (max-width:640px){.mock-stats{grid-template-columns:repeat(2,1fr);}}
.mock-stat{background:var(--panel-light);border:1px solid var(--border);border-radius:8px;padding:14px 16px;}
.mock-stat .k{font-size:11px;color:var(--text-dim);text-transform:uppercase;letter-spacing:.4px;margin-bottom:8px;}
.mock-stat .v{font-size:20px;font-weight:700;color:#fff;font-family:'JetBrains Mono',monospace;}
.mock-stat .v.green{color:var(--green);}
.mock-stat .v.red{color:#ff6b8f;}
.mock-equity{background:var(--panel-light);border:1px solid var(--border);border-radius:8px;padding:18px 20px 8px 20px;}
.mock-equity .k{font-size:11px;color:var(--text-dim);text-transform:uppercase;letter-spacing:.4px;margin-bottom:10px;}
.mock-equity svg{width:100%;height:auto;display:block;}

/* ---------------- PRICING ---------------- */
.pricing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;max-width:920px;margin:0 auto;}
.price-card{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:32px;
  display:flex;flex-direction:column;position:relative;}
.price-card.featured{border-color:var(--cyan-deep);box-shadow:0 0 0 1px var(--cyan-deep),0 20px 60px rgba(47,235,255,.08);}
.price-card .tag{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:var(--cyan);
  color:#02141a;font-size:11px;font-weight:700;letter-spacing:.4px;padding:4px 12px;border-radius:20px;}
.price-card h3{font-size:18px;margin-bottom:6px;}
.price-card .price{font-size:40px;font-weight:800;color:#fff;margin:14px 0 4px 0;}
.price-card .price span{font-size:14px;font-weight:500;color:var(--text-dim);}
.price-card .desc{color:var(--text-dim);font-size:13.5px;margin-bottom:22px;}
.price-card ul{list-style:none;padding:0;margin:0 0 26px 0;flex:1;}
.price-card li{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:var(--text-dim);
  padding:7px 0;border-bottom:1px solid var(--border);}
.price-card li:last-child{border-bottom:none;}
.price-card li svg{flex-shrink:0;width:15px;height:15px;color:var(--green);margin-top:2px;}

/* ---------------- AUTH FORMS ---------------- */
.auth-shell{min-height:calc(100vh - 64px);display:flex;align-items:center;justify-content:center;padding:40px 20px;}
.auth-box{width:100%;max-width:400px;background:var(--panel);border:1px solid var(--border);
  border-radius:14px;padding:36px 32px;}
.auth-box h1{font-size:22px;margin-bottom:6px;}
.auth-box .sub{color:var(--text-dim);font-size:13.5px;margin-bottom:26px;}
.field{margin-bottom:16px;}
.field label{display:block;font-size:12.5px;font-weight:600;color:var(--text-dim);margin-bottom:6px;}
.field input{width:100%;padding:11px 13px;background:var(--panel-light);border:1px solid var(--border);
  border-radius:8px;color:var(--text);font-size:14px;font-family:inherit;}
.field input:focus{outline:none;border-color:var(--border-active);}
.field-hint{font-size:11.5px;color:var(--text-faint);margin-top:5px;}
.form-msg{font-size:13px;padding:10px 12px;border-radius:8px;margin-bottom:16px;display:none;}
.form-msg.show{display:block;}
.form-msg.error{background:rgba(215,0,64,.1);border:1px solid rgba(215,0,64,.35);color:#ff6b8f;}
.form-msg.ok{background:rgba(45,255,194,.08);border:1px solid rgba(45,255,194,.3);color:var(--green);}
.auth-switch{text-align:center;margin-top:22px;font-size:13.5px;color:var(--text-dim);}
.divider{display:flex;align-items:center;gap:12px;margin:22px 0;color:var(--text-faint);font-size:12px;}
.divider::before,.divider::after{content:'';flex:1;height:1px;background:var(--border);}

/* ---------------- DASHBOARD ---------------- */
.dash-shell{max-width:880px;margin:0 auto;padding:40px 24px 80px 24px;}
.dash-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px;flex-wrap:wrap;gap:16px;}
.dash-panel{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:24px 26px;margin-bottom:20px;}
.dash-panel h3{font-size:14px;letter-spacing:.4px;text-transform:uppercase;color:var(--text-dim);margin-bottom:18px;}
.dash-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--border);gap:16px;flex-wrap:wrap;}
.dash-row:last-child{border-bottom:none;}
.dash-row .k{color:var(--text-dim);font-size:13.5px;}
.dash-row .v{font-weight:600;color:#fff;font-size:14px;}
.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:20px;font-size:12px;font-weight:600;}
.badge.active{background:rgba(45,255,194,.1);color:var(--green);border:1px solid rgba(45,255,194,.3);}
.badge.inactive{background:rgba(215,0,64,.1);color:#ff6b8f;border:1px solid rgba(215,0,64,.3);}
.badge.pending{background:rgba(255,200,56,.1);color:var(--amber);border:1px solid rgba(255,200,56,.3);}
.license-key-box{display:flex;align-items:center;gap:10px;background:var(--panel-light);border:1px solid var(--border);
  border-radius:8px;padding:14px 16px;font-family:'JetBrains Mono',monospace;font-size:16px;letter-spacing:1px;color:var(--cyan);}
.copy-btn{margin-left:auto;background:none;border:1px solid var(--border);color:var(--text-dim);
  border-radius:6px;padding:6px 10px;font-size:12px;cursor:pointer;}
.copy-btn:hover{color:#fff;border-color:var(--border-active);}

/* ---------------- LEGAL PAGE ---------------- */
.legal-text-box{font-size:13.5px;color:var(--text-dim);line-height:1.7;max-width:760px;margin:0 auto;}
.legal-text-box h2{font-size:18px;color:#fff;margin:32px 0 12px 0;}
.legal-text-box h2:first-child{margin-top:0;}
.legal-text-box p{margin:0 0 12px 0;}
.legal-text-box ul{margin:0 0 12px 0;padding-left:20px;}
.legal-text-box li{margin-bottom:6px;}
.legal-text-box .legal-notice{background:rgba(255,200,56,.08);border:1px solid rgba(255,200,56,.3);
  border-radius:8px;padding:14px 16px;margin-bottom:26px;color:var(--amber);font-size:13px;line-height:1.6;}

/* ---------------- FOOTER ---------------- */
footer{border-top:1px solid var(--border);padding:40px 0;color:var(--text-faint);font-size:13px;}
footer .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;}
footer a{color:var(--text-faint);}
footer a:hover{color:var(--text-dim);}
.footer-links{display:flex;gap:22px;flex-wrap:wrap;}

/* ---------------- MISC ---------------- */
.spinner{display:inline-block;width:15px;height:15px;border:2px solid rgba(255,255,255,.25);
  border-top-color:currentColor;border-radius:50%;animation:spin .7s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}
.hidden{display:none !important;}

@media (max-width:720px){
  .nav-links{display:none;}
  .hero{padding:64px 0 48px 0;}
  section{padding:52px 0;}
}
