/* ============================================================
   JYXOS Design System v1.0 — April 2026
   Single CSS for all pages. Edit here, update everywhere.
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:      #020509;
  --bg2:     #050c14;
  --bg3:     #091322;
  --bg4:     #0d1a2b;

  /* Borders */
  --border:  rgba(255,255,255,.06);
  --border2: rgba(255,255,255,.10);
  --border3: rgba(255,255,255,.15);

  /* Brand colors */
  --cyan:      #06b6d4;
  --cyan-d:    #0891b2;
  --cyan-glow: rgba(6,182,212,.18);
  --cyan-l:    #22d3ee;

  /* Accents */
  --green:   #10b981;
  --green-l: #34d399;
  --gold:    #d97706;
  --gold-l:  #f59e0b;
  --red:     #ef4444;

  /* Text */
  --white:   #f8fafc;
  --text:    #cbd5e1;
  --muted:   #94a3b8;
  --muted-d: #64748b;

  /* Typography */
  --font:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;
  --display: 'Inter', system-ui, sans-serif;

  /* Sizing */
  --max-w:   1140px;
  --nav-h:   68px;
  --radius:  12px;
  --radius-lg: 20px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; transition: color .15s; }
a:hover { color: var(--cyan-l); }
button { font-family: var(--font); cursor: pointer; border: none; }
ul, ol { list-style: none; }

/* ── CANVAS BACKGROUND ──────────────────────────────────────── */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .35;
}

/* ── LAYOUT UTILITIES ───────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}
.z1 { position: relative; z-index: 1; }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(2,5,9,.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  text-decoration: none;
  display: flex; align-items: center; gap: 3px;
}
.nav-logo {
  font-family: var(--display);
  font-weight: 900; font-size: 28px;
  letter-spacing: -1.5px; color: var(--white); line-height: 1;
}
.nav-logo .j { color: var(--cyan); }
.nav-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); margin-bottom: 14px;
  box-shadow: 0 0 8px var(--cyan);
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--white); background: rgba(255,255,255,.05);
}
.nav-cta {
  background: var(--cyan) !important;
  color: var(--bg) !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  box-shadow: 0 0 20px rgba(6,182,212,.25) !important;
  transition: all .18s !important;
}
.nav-cta:hover {
  background: var(--cyan-l) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(6,182,212,.4) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--muted); border-radius: 2px;
  transition: all .25s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── SECTION TYPOGRAPHY ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .18em;
  color: var(--cyan); text-transform: uppercase;
  margin-bottom: 16px; display: block;
}
.section-title {
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: .97; letter-spacing: -2.5px;
  color: var(--white); margin-bottom: 20px;
}
.section-title .hi { color: var(--cyan); }
.section-title .gold { color: var(--gold-l); }
.section-sub {
  font-size: 17px; color: var(--muted);
  line-height: 1.8; max-width: 600px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 15px;
  text-decoration: none; transition: all .18s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--cyan); color: var(--bg);
  box-shadow: 0 0 28px rgba(6,182,212,.25);
}
.btn-primary:hover {
  background: var(--cyan-l); color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(6,182,212,.4);
}
.btn-green {
  background: var(--green); color: var(--bg);
  box-shadow: 0 0 24px rgba(16,185,129,.2);
}
.btn-green:hover {
  background: var(--green-l); color: var(--bg);
  transform: translateY(-2px);
}
.btn-outline {
  background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover {
  background: rgba(255,255,255,.08); color: var(--white);
}
.btn-ghost {
  background: transparent; color: var(--cyan);
  border: 1px solid rgba(6,182,212,.25);
}
.btn-ghost:hover {
  background: rgba(6,182,212,.08);
}
.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ── BADGE / PILL ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
}
.badge-cyan {
  color: var(--cyan);
  background: rgba(6,182,212,.07);
  border: 1px solid rgba(6,182,212,.2);
}
.badge-green {
  color: var(--green);
  background: rgba(16,185,129,.07);
  border: 1px solid rgba(16,185,129,.2);
}
.badge-gold {
  color: var(--gold-l);
  background: rgba(245,158,11,.07);
  border: 1px solid rgba(245,158,11,.2);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  animation: blink 2s infinite;
}
.badge-dot-cyan { background: var(--cyan); }
.badge-dot-green { background: var(--green); }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .25s, box-shadow .25s;
}
.card:hover {
  border-color: rgba(6,182,212,.2);
  box-shadow: 0 0 48px rgba(6,182,212,.05);
}
.card-sm { border-radius: var(--radius); }

/* ── METRICS BAR ────────────────────────────────────────────── */
.metrics-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(5,12,20,.7);
  position: relative; z-index: 1;
}
.metrics-row {
  display: flex; justify-content: center; flex-wrap: wrap;
}
.metric-item {
  padding: 28px 48px; text-align: center;
  border-right: 1px solid var(--border);
}
.metric-item:last-child { border-right: none; }
.metric-num {
  font-weight: 900; font-size: 36px; line-height: 1;
  color: var(--white); letter-spacing: -2px; display: block;
}
.metric-num .hi { color: var(--cyan); }
.metric-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .15em; color: var(--muted);
  text-transform: uppercase; margin-top: 6px; display: block;
}

/* ── TERMINAL BLOCK ─────────────────────────────────────────── */
.terminal {
  background: rgba(0,0,0,.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.terminal-bar {
  display: flex; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot-r { background: #ff5f57; }
.terminal-dot-y { background: #febc2e; }
.terminal-dot-g { background: #28c840; }
.terminal-body {
  padding: 16px 18px;
  font-family: var(--mono); font-size: 12px; line-height: 1.85;
}
.t-ok { color: var(--green); }
.t-warn { color: var(--gold-l); }
.t-err { color: var(--red); }
.t-info { color: var(--cyan); }
.t-dim { color: var(--muted-d); }

/* ── FEATURE GRID ───────────────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color .2s, box-shadow .2s;
}
.feat-card:hover {
  border-color: rgba(6,182,212,.22);
  box-shadow: 0 0 36px rgba(6,182,212,.04);
}
.feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.feat-card h3 {
  font-weight: 700; font-size: 16px;
  color: var(--white); margin-bottom: 8px;
}
.feat-card p {
  font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s;
}
.faq-item:hover { border-color: rgba(6,182,212,.18); }
.faq-q {
  padding: 20px 24px;
  font-weight: 600; font-size: 15px; color: var(--text);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-q::after {
  content: '+'; font-size: 20px; color: var(--cyan);
  font-weight: 300; transition: transform .2s;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 24px;
  font-size: 14px; color: var(--muted); line-height: 1.85;
}
.faq-item.open .faq-a {
  max-height: 400px; padding: 0 24px 20px;
}

/* ── LEGAL PAGES ────────────────────────────────────────────── */
.legal-wrap {
  max-width: 780px; margin: 0 auto;
  padding: 0 40px; position: relative; z-index: 1;
}
.legal-hero {
  padding: 140px 0 48px;
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 {
  font-weight: 900;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -2px; color: var(--white);
  margin-bottom: 12px; line-height: 1.05;
}
.legal-hero .meta {
  font-size: 12.5px; color: var(--muted-d);
  font-family: var(--mono);
}
.legal-body { padding: 48px 0 100px; }
.legal-body h2 {
  font-weight: 800; font-size: 20px;
  letter-spacing: -.3px; color: var(--white);
  margin: 44px 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-weight: 700; font-size: 16px;
  color: var(--text); margin: 28px 0 8px;
}
.legal-body p {
  font-size: 15px; color: var(--muted);
  line-height: 1.9; margin-bottom: 14px;
}
.legal-body ul, .legal-body ol {
  padding-left: 22px; margin-bottom: 14px;
  list-style: disc;
}
.legal-body ol { list-style: decimal; }
.legal-body li {
  font-size: 15px; color: var(--muted);
  line-height: 1.9; margin-bottom: 6px;
}
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body code {
  font-family: var(--mono); font-size: 13px;
  color: var(--cyan);
  background: rgba(6,182,212,.08);
  padding: 2px 7px; border-radius: 4px;
}
.legal-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(6,182,212,.3);
}
.legal-body a:hover {
  color: var(--cyan-l);
  text-decoration-color: var(--cyan);
}
.legal-note {
  background: rgba(6,182,212,.05);
  border: 1px solid rgba(6,182,212,.15);
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
}
.legal-note p { margin: 0; font-size: 14px; color: var(--text); }
.legal-warn {
  background: rgba(245,158,11,.05);
  border: 1px solid rgba(245,158,11,.15);
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
}
.legal-warn p { margin: 0; font-size: 14px; color: var(--gold-l); }
.toc {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 32px; margin-bottom: 40px;
}
.toc h4 {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .2em; color: var(--cyan);
  text-transform: uppercase; margin-bottom: 14px;
}
.toc ol { padding-left: 18px; margin: 0; list-style: decimal; }
.toc li { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--cyan); }

/* ── CONTACT FORM ───────────────────────────────────────────── */
.contact-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 18px; padding: 40px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label {
  font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
}
.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 12px 14px;
  color: var(--text); font-family: var(--font);
  font-size: 14px; outline: none;
  transition: border-color .18s;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(6,182,212,.4);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted-d); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field select option { background: var(--bg3); color: var(--text); }
.honeypot {
  position: absolute; left: -9999px;
  height: 0; overflow: hidden; opacity: 0;
}
.form-note {
  font-size: 12px; color: var(--muted); line-height: 1.6;
}
.form-success {
  display: none; padding: 18px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 10px; color: var(--green);
  font-size: 14px; font-weight: 500;
}
.form-error {
  display: none; padding: 14px;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 10px; color: var(--red); font-size: 13px;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 48px;
}
.footer-top {
  display: flex; gap: 56px; justify-content: center;
  margin-bottom: 44px;
}
.footer-col h5 {
  font-size: 11px; font-family: var(--mono);
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px; font-weight: 500;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--muted);
  text-decoration: none; margin-bottom: 10px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 36px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.footer-brand {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}
.footer-logo {
  font-weight: 900; font-size: 26px;
  letter-spacing: -1.5px; color: var(--white);
  text-decoration: none;
}
.footer-logo .j { color: var(--cyan); }
.footer-tag {
  font-size: 13px; color: var(--muted); text-align: center;
}
.footer-social {
  display: flex; gap: 8px; margin-top: 4px;
}
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--muted); transition: all .18s;
}
.footer-social a:hover {
  background: rgba(6,182,212,.1);
  border-color: rgba(6,182,212,.3);
  color: var(--cyan);
}
.footer-divider {
  width: 60px; height: 1px; background: var(--border);
}
.footer-copy {
  font-size: 12.5px; color: var(--muted-d); text-align: center;
}
.footer-legal {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; justify-content: center;
}
.footer-legal a {
  font-size: 12px; color: var(--muted-d);
  text-decoration: none; transition: color .15s;
}
.footer-legal a:hover { color: var(--muted); }
.footer-sep { font-size: 12px; color: var(--muted-d); opacity: .4; }
.footer-tm {
  font-size: 10.5px; color: var(--muted-d);
  text-align: center; max-width: 700px;
  line-height: 1.65; opacity: .7;
}

/* ── SCROLL ANIMATIONS ──────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1; transform: translateY(0);
}

/* ── KEYFRAMES ──────────────────────────────────────────────── */
@keyframes up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}
@keyframes pulse-line {
  0%, 100% { opacity: 1; }
  50%      { opacity: .2; }
}
@keyframes ring-expand {
  0%   { opacity: .4; transform: translate(-50%,-50%) scale(.85); }
  100% { opacity: 0;  transform: translate(-50%,-50%) scale(1.2); }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .nav { padding: 0 24px; height: 60px; }
  .nav-logo { font-size: 24px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-toggle { display: flex; }
  .wrap { padding: 0 24px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 24px; }
  .footer-top { flex-direction: column; align-items: center; gap: 28px; }
  .metric-item { padding: 24px 32px; }
  .legal-wrap { padding: 0 24px; }
  .legal-hero { padding: 108px 0 40px; }
}

/* Mobile menu open state */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(2,5,9,.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links.open a { display: flex; }
  .nav-links.open a:not(.nav-cta) {
    display: block; padding: 12px 16px;
    font-size: 16px; color: var(--text);
  }
  .nav-links.open .nav-cta {
    margin-top: 8px; text-align: center;
    display: block; padding: 14px !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .feat-grid { grid-template-columns: 1fr; }
  .section-title { letter-spacing: -1.5px; }
  .legal-wrap { padding: 0 20px; }
  .contact-box { padding: 28px 20px; }
  .footer-inner { padding: 0 20px; }
  .metric-item { padding: 20px 24px; flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .metric-item:last-child { border-bottom: none; }
  .metrics-row { flex-direction: column; }
}

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
  .nav, .footer, #bg-canvas { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-hero { padding-top: 20px; }
}
