/* The Nexora website: neon on near-black, in the colours of the app icon
   (cyan, indigo, magenta). A living particle field sits behind every page
   (assets/site.js); everything above it is glass, so the field shows through
   without ever sitting under text at full strength.
   System fonts rather than webfonts: a landing page that waits on a font file
   is a landing page people leave. */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  color-scheme: dark;
  --bg: #07080c;
  --glass: rgba(14, 16, 24, 0.8);
  --glass-strong: rgba(12, 13, 20, 0.9);
  --border: rgba(129, 128, 255, 0.18);
  --text: #eef1f8;
  --muted: #9aa1b4;
  --faint: #6a7184;
  --cyan: #22d3ee;
  --indigo: #8180ff;
  --accent: #6d6cf8;
  --magenta: #e879f9;
  --warning: #fbbf24;
  --profit: #34d399;
  --radius: 18px;
  --neon: linear-gradient(90deg, var(--cyan), var(--indigo) 50%, var(--magenta));
  --mono: ui-monospace, 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

/* No background on body: it would paint over the field, which sits at a
   negative z-index. The html element carries the page colour instead. */
body {
  margin: 0;
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The field, the scanlines and the vignette: fixed layers under everything. */
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.legal-page #field { opacity: 0.35; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(7, 8, 12, 0.7) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
}

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--cyan); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 4.2vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 750; margin-bottom: 36px; }
h3 { font-size: 18px; font-weight: 650; }
p { margin: 0 0 12px; }

.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(800px, 100% - 40px); }

.neon-text {
  background: var(--neon);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow 8s linear infinite;
}

/* --- header --------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 8, 12, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.top::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--neon);
  opacity: 0.45;
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: 0.01em; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 9px; filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.55)); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a { color: var(--muted); transition: color 0.2s, text-shadow 0.2s; }
.nav a:hover { color: var(--text); text-shadow: 0 0 12px rgba(34, 211, 238, 0.8); }
.nav .lang { color: var(--faint); font-family: var(--mono); font-size: 13px; }
.nav .btn { color: #fff; }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
  box-shadow: 0 0 14px -2px rgba(251, 191, 36, 0.45);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
  margin-bottom: 22px;
}
.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 10px var(--warning);
  animation: blink 1.8s ease-in-out infinite;
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(120deg, #0891b2, var(--accent) 45%, #a21caf 90%);
  background-size: 200% 200%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 22px -4px rgba(34, 211, 238, 0.6), 0 12px 40px -12px rgba(232, 121, 249, 0.7);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: flow 6s ease infinite;
}
.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 34px -2px rgba(34, 211, 238, 0.85), 0 16px 50px -12px rgba(232, 121, 249, 0.9);
}
.btn-ghost {
  background:
    linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box,
    conic-gradient(from var(--angle), var(--cyan), var(--indigo), var(--magenta), var(--cyan)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 24px -8px rgba(129, 128, 255, 0.7);
  animation: spin 4s linear infinite;
}
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-large { padding: 18px 40px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* --- hero ----------------------------------------------------------------- */

.hero { position: relative; padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.lead { font-size: 19px; color: var(--muted); max-width: 600px; }
.hero h1 { text-shadow: 0 0 40px rgba(129, 128, 255, 0.25); }

.glitch { position: relative; display: inline-block; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.glitch::before { color: var(--cyan); text-shadow: -2px 0 var(--magenta); animation: glitch-a 5s steps(1) infinite; }
.glitch::after { color: var(--magenta); text-shadow: 2px 0 var(--cyan); animation: glitch-b 5s steps(1) infinite; }

.terminal {
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box,
    conic-gradient(from var(--angle), rgba(34, 211, 238, 0.9), rgba(129, 128, 255, 0.2), rgba(232, 121, 249, 0.9), rgba(129, 128, 255, 0.2), rgba(34, 211, 238, 0.9)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 60px -12px rgba(34, 211, 238, 0.45), 0 40px 80px -30px rgba(232, 121, 249, 0.45);
  animation: spin 7s linear infinite, float 7s ease-in-out infinite;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; }
.terminal-bar i:nth-child(1) { background: #f472b6; box-shadow: 0 0 8px #f472b6; }
.terminal-bar i:nth-child(2) { background: var(--warning); box-shadow: 0 0 8px var(--warning); }
.terminal-bar i:nth-child(3) { background: var(--profit); box-shadow: 0 0 8px var(--profit); }
.terminal-bar span { margin-left: auto; }
#grid-chart { display: block; width: 100%; height: 300px; }
.legend { display: flex; gap: 18px; padding: 10px 16px 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }
.legend b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.legend .buy { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.legend .sell { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }

/* --- facts strip ---------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  overflow: hidden;
}
.fact { padding: 26px 24px; border-left: 1px solid var(--border); }
.fact:first-child { border-left: 0; }
.fact-value { display: inline-block; font-family: var(--mono); font-size: 40px; font-weight: 800; line-height: 1; margin-bottom: 8px; filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.45)); }
.fact-label { color: var(--muted); font-size: 14px; }

/* --- sections ------------------------------------------------------------- */

.section { position: relative; padding: 96px 0; }
.section-head { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.section-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(129, 128, 255, 0.6), transparent); box-shadow: 0 0 8px rgba(129, 128, 255, 0.5); }
.spaced { margin-top: 80px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s, border-color 0.25s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: rgba(129, 128, 255, 0.4); }
.card p { color: var(--muted); margin: 0; }

/* Pointer spotlight: a wash of light inside, and a neon edge following it. */
.glow::before,
.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.glow::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(129, 128, 255, 0.16), transparent 45%); }
.glow::after {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, 0.95), rgba(232, 121, 249, 0.6) 30%, transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.glow:hover::before,
.glow:hover::after { opacity: 1; }

.icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 20px -6px rgba(34, 211, 238, 0.7), inset 0 0 12px rgba(34, 211, 238, 0.12);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px currentColor); }
.card:nth-child(4n + 2) .icon { color: var(--indigo); background: rgba(129, 128, 255, 0.08); border-color: rgba(129, 128, 255, 0.35); box-shadow: 0 0 20px -6px rgba(129, 128, 255, 0.8); }
.card:nth-child(4n + 3) .icon { color: var(--magenta); background: rgba(232, 121, 249, 0.07); border-color: rgba(232, 121, 249, 0.35); box-shadow: 0 0 20px -6px rgba(232, 121, 249, 0.8); }
.card .index { position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: 12px; color: var(--faint); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { position: relative; overflow: visible; }
.steps li:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 46px;
  right: -19px;
  width: 20px;
  height: 1px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--cyan);
}
.step-n { display: inline-block; font-family: var(--mono); font-size: 34px; font-weight: 800; line-height: 1; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

/* --- pricing -------------------------------------------------------------- */

.price-card {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  border-radius: 24px;
  padding: 40px 34px;
  background:
    linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box,
    conic-gradient(from var(--angle), var(--cyan), transparent 30%, var(--magenta) 50%, transparent 80%, var(--cyan)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 80px -20px rgba(129, 128, 255, 0.7);
  animation: spin 5s linear infinite;
}
.price-num { display: inline-block; font-family: var(--mono); font-size: 64px; font-weight: 800; letter-spacing: -0.04em; filter: drop-shadow(0 0 18px rgba(129, 128, 255, 0.55)); }
.price-unit { color: var(--muted); font-size: 18px; }
.price-per { color: var(--faint); margin-bottom: 24px; font-family: var(--mono); font-size: 14px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; }
.checks li { position: relative; padding: 10px 0 10px 32px; border-top: 1px solid var(--border); }
.checks li::before { content: '✓'; position: absolute; left: 4px; color: var(--profit); font-weight: 800; text-shadow: 0 0 10px var(--profit); }
.small { font-size: 13px; color: var(--faint); margin-top: 16px; }

/* --- download ------------------------------------------------------------- */

.download { text-align: center; }
.download .btn-large { animation: flow 6s ease infinite, pulse 2.6s ease-in-out infinite; }
.notice {
  max-width: 660px;
  margin: 32px auto 0;
  text-align: left;
  background: rgba(20, 16, 8, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.notice h3 { font-size: 16px; color: var(--warning); }
.notice p { color: var(--muted); margin: 0; }

/* --- faq ------------------------------------------------------------------ */

.faq {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq[open] { border-color: rgba(34, 211, 238, 0.45); box-shadow: 0 0 30px -12px rgba(34, 211, 238, 0.6); }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--cyan); font-size: 20px; line-height: 1; transition: transform 0.25s; text-shadow: 0 0 8px var(--cyan); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* --- legal pages ---------------------------------------------------------- */

.legal {
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px clamp(20px, 5vw, 48px);
}
.legal h1 { font-size: clamp(28px, 4vw, 42px); }
.legal h2 { font-size: 19px; margin: 34px 0 10px; }
.legal p { color: var(--muted); }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-family: var(--mono); font-size: 14px; }

/* --- footer --------------------------------------------------------------- */

.foot { position: relative; border-top: 1px solid var(--border); background: rgba(7, 8, 12, 0.85); padding: 44px 0 30px; font-size: 14px; }
.risk { color: var(--faint); max-width: 920px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--cyan); }
.official { color: var(--faint); margin: 0; }
.copy { color: var(--faint); margin-top: 20px; font-family: var(--mono); font-size: 12px; }

/* --- reveal on scroll (only when the script is there to undo it) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.8s ease;
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* --- keyframes ------------------------------------------------------------ */

@keyframes flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes spin { to { --angle: 360deg; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 22px -4px rgba(34, 211, 238, 0.6), 0 12px 40px -12px rgba(232, 121, 249, 0.7); }
  50% { box-shadow: 0 0 46px 2px rgba(34, 211, 238, 0.75), 0 16px 60px -8px rgba(232, 121, 249, 0.9); }
}
@keyframes glitch-a {
  0%, 89%, 100% { opacity: 0; transform: none; clip-path: none; }
  90% { opacity: 0.9; transform: translate(-3px, 1px); clip-path: inset(12% 0 58% 0); }
  92% { opacity: 0.9; transform: translate(4px, -1px); clip-path: inset(62% 0 8% 0); }
  94% { opacity: 0.9; transform: translate(-2px, 0); clip-path: inset(38% 0 36% 0); }
  96% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 90%, 100% { opacity: 0; transform: none; clip-path: none; }
  91% { opacity: 0.8; transform: translate(3px, 0); clip-path: inset(70% 0 4% 0); }
  93% { opacity: 0.8; transform: translate(-4px, 1px); clip-path: inset(6% 0 70% 0); }
  95% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* --- narrow screens ------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .steps li::before { display: none; }
  .nav a:not(.btn):not(.lang) { display: none; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 64px 0; }
  #grid-chart { height: 220px; }
}
