/* Nexopera site styles. Dark fintech, candlestick motif, emerald accent. */

:root {
  --bg:        #070b12;
  --bg-soft:   #0b111c;
  --surface:   #0e1521;
  --surface-2: #131c2b;
  --line:      rgba(150, 170, 200, 0.12);
  --line-soft: rgba(150, 170, 200, 0.07);

  --text:      #e9eef6;
  --text-dim:  #9aa7ba;
  --text-faint:#6b7888;

  --up:        #16c784;
  --up-soft:   rgba(22, 199, 132, 0.14);
  --up-line:   rgba(22, 199, 132, 0.35);
  --down:      #ea4d5c;

  --ink:       #06121f;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --maxw: 1140px;
  --pad: clamp(20px, 5vw, 48px);

  --font-display: "Schibsted Grotesk", ui-sans-serif, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 78% -8%, rgba(22, 199, 132, 0.10), transparent 60%),
    radial-gradient(700px 460px at 8% 4%, rgba(45, 110, 180, 0.10), transparent 60%);
  background-repeat: no-repeat;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--up);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--up);
  box-shadow: 0 0 14px var(--up);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 18, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { height: 26px; width: auto; }
.brand .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--text); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.lang-switch a {
  padding: 6px 12px;
  color: var(--text-faint);
  transition: all 0.18s ease;
}
.lang-switch a.is-active { background: var(--up-soft); color: var(--up); }
.lang-switch a:hover:not(.is-active) { color: var(--text); }

.nav-cta {
  display: none;
}
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--up);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(22, 199, 132, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(22, 199, 132, 0.85); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--up-line); color: var(--up); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(54px, 9vw, 96px);
  padding-bottom: clamp(54px, 9vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 66px);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--up); }
.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-dim);
  max-width: 36ch;
  margin-bottom: 30px;
}

/* candlestick art */
.candles {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(19, 28, 43, 0.6), rgba(11, 17, 28, 0.6));
  box-shadow: var(--shadow);
  padding: 26px 26px 18px;
  overflow: hidden;
}
.candles::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 80%, transparent);
  opacity: 0.6;
}
.candles-head {
  position: relative;
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.candles-head .pair { font-size: 14px; color: var(--text); letter-spacing: 0.04em; }
.candles-head .tag {
  font-size: 11px; color: var(--up);
  background: var(--up-soft); padding: 3px 8px; border-radius: 6px;
}
.candles svg { position: relative; width: 100%; height: auto; }
.candle { transform-origin: bottom; animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
@keyframes rise { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.trend { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s ease 0.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
  margin-top: 14px;
}

/* ---------- Waitlist form ---------- */
.wl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.wl-card h3 { font-size: 18px; margin-bottom: 4px; }
.wl-card .hint { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus {
  outline: none;
  border-color: var(--up-line);
  box-shadow: 0 0 0 3px var(--up-soft);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.consent {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 13px; color: var(--text-dim);
  margin: 4px 0 18px;
}
.consent input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--up); }
.consent a { color: var(--up); text-decoration: underline; text-underline-offset: 2px; }

.wl-msg { font-size: 14px; margin-top: 14px; min-height: 1px; }
.wl-msg.ok { color: var(--up); }
.wl-msg.err { color: var(--down); }
.wl-foot { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); margin-top: 16px; letter-spacing: 0.03em; }

/* ---------- Sections ---------- */
section { padding-block: clamp(56px, 9vw, 104px); }
.section-head { max-width: 56ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--text-dim); font-size: 18px; }

.steps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--up);
  border: 1px solid var(--up-line);
  background: var(--up-soft);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; }
.step p { color: var(--text-dim); font-size: 15px; margin: 0; }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: linear-gradient(180deg, var(--surface), rgba(14, 21, 33, 0.4));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: var(--up-line); transform: translateY(-3px); }
.feature .ic { color: var(--up); margin-bottom: 14px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

.strategy {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: clamp(28px, 5vw, 52px);
}
.strategy .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.strategy .tags span {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 8px; background: var(--surface);
}
.strategy .warn { color: var(--text-faint); font-size: 14px; margin-top: 22px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 16px;
  color: var(--up); font-size: 22px; font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { color: var(--text-dim); font-size: 15.5px; padding: 0 36px 20px 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 54px 36px;
  margin-top: 40px;
}
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand p { color: var(--text-dim); font-size: 14px; max-width: 36ch; margin-top: 14px; }
.foot-col h4 {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-faint); margin: 0 0 14px;
}
.foot-col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 5px 0; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 42px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: var(--text-faint); font-size: 13px;
}
.risk-line { max-width: 70ch; }

/* ---------- Simple pages (confirm / legal / 404) ---------- */
.page { min-height: 64vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.page-inner { max-width: 560px; }
.page .glyph {
  width: 64px; height: 64px; margin: 0 auto 26px;
  display: grid; place-items: center;
  border-radius: 16px; border: 1px solid var(--up-line);
  background: var(--up-soft); color: var(--up);
}
.page h1 { font-size: clamp(30px, 5vw, 44px); }
.page p { color: var(--text-dim); font-size: 18px; }
.page .actions { margin-top: 28px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.legal { max-width: 760px; padding-block: clamp(48px, 7vw, 88px); }
.legal h1 { font-size: clamp(30px, 5vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 38px; }
.legal p, .legal li { color: var(--text-dim); font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal .updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 100;
  left: var(--pad); right: var(--pad); bottom: 20px;
  max-width: 720px; margin-inline: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: none;
  gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie.show { display: flex; }
.cookie p { margin: 0; font-size: 14px; color: var(--text-dim); flex: 1 1 300px; }
.cookie p a { color: var(--up); text-decoration: underline; }
.cookie .c-actions { display: flex; gap: 10px; flex: none; }
.cookie .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .candle, .trend { animation: none !important; }
  .trend { stroke-dashoffset: 0; }
}
