/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg { display: block; }

:root {
  /* Same palette as the Levx app itself (lib/core/constants.dart) */
  --bg: #0D0D0F;
  --surface: #12121A;
  --surface-2: #1A1A22;
  --border: #2A2A38;
  --border-strong: #3A3A4D;
  --text: #FFFFFF;
  --text-2: #8A8A9A;
  --muted: #6B7080;

  --brand: #00E5FF;
  --brand-2: #7C4DFF;
  --brand-blue: #0052FF;
  --brand-glow: rgba(0, 229, 255, 0.32);

  --green: #00C896;
  --green-bg: rgba(0, 200, 150, 0.14);
  --red: #FF4B6E;
  --red-bg: rgba(255, 75, 110, 0.14);
  --gold: #FFD740;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(680px 420px at 82% -8%, var(--brand-glow), transparent 60%),
    radial-gradient(560px 360px at -6% 18%, rgba(124,77,255,0.22), transparent 60%),
    var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-blue), var(--brand-2));
  color: #001014;
  box-shadow: 0 10px 30px -10px rgba(0,229,255,0.55);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -8px rgba(0,229,255,0.65); }
.btn--ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.nav.is-scrolled {
  background: rgba(13,13,15,0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--text-2); transition: color .15s ease; }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__login {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .15s ease;
}
.nav__login:hover { color: var(--text); }

.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.lang-toggle__opt { transition: color .15s ease; }
.lang-toggle__opt.is-active { color: var(--text); }
.lang-toggle__sep { color: var(--border-strong); }

.nav__burger { display: none; flex-direction: column; gap: 4px; width: 26px; padding: 4px; }
.nav__burger span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,460px);
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0,200,150,0.2);
}

.hero__copy h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 15ch;
}
.hero__sub {
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--text-2);
  max-width: 46ch;
  line-height: 1.65;
}
.hero__ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num { font-family: var(--mono); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.stat__label { font-size: 0.78rem; color: var(--muted); }

.hero__disclaimer {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Hero visual / phone mockup ---------- */
.hero__visual { position: relative; display: flex; justify-content: center; }
.glow-ring {
  position: absolute;
  inset: -40px;
  background: radial-gradient(closest-side, var(--brand-glow), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #171922, #0a0b0d);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.phone__notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 20px;
  background: #0D0D0F;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone__screen {
  background: linear-gradient(180deg, #101218, #0b0c10);
  border-radius: 30px;
  padding: 30px 16px 18px;
  overflow: hidden;
}

.app-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.app-topbar__coin { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.85rem; }
.coin-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.badge-live {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--green);
  background: var(--green-bg);
  padding: 3px 8px;
  border-radius: 999px;
}
.badge-live__pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(0,200,150,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,200,150,0.55); }
  70% { box-shadow: 0 0 0 6px rgba(0,200,150,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,200,150,0); }
}

.app-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.app-price__num { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }

.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}
.chip--up { color: var(--green); background: var(--green-bg); }
.chip--down { color: var(--red); background: var(--red-bg); }
.chip--sm { font-size: 0.68rem; padding: 2px 7px; }

.app-chart { margin: 0 -4px; }
.app-chart__svg { width: 100%; height: 118px; }
.grid-line { stroke: rgba(255,255,255,0.06); stroke-width: 1; }
.grid-line--dash { stroke-dasharray: 3 4; }
.c-up { fill: var(--green); }
.c-down { fill: var(--red); }
.w-up { stroke: var(--green); stroke-width: 1; }
.w-down { stroke: var(--red); stroke-width: 1; }
.line-ema-1 { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; opacity: 0.95; }
.line-ema-2 { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; opacity: 0.85; }

.app-indicator { margin-top: 6px; }
.app-indicator__label { font-size: 0.62rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 2px; }
.app-indicator__svg { width: 100%; height: 40px; }
.line-rsi { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; }

.app-list { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.app-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; font-weight: 600; }
.app-row__spark { flex: 1; height: 18px; margin: 0 10px; border-radius: 4px; opacity: 0.5; }
.spark--up { background: linear-gradient(90deg, transparent, var(--green-bg)); }
.spark--down { background: linear-gradient(90deg, transparent, var(--red-bg)); }

.float-card {
  position: absolute;
  z-index: 2;
  background: rgba(18,18,26,0.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.6);
  animation: floaty 5s ease-in-out infinite;
}
.float-card__title { font-size: 0.75rem; font-weight: 700; }
.float-card__sub { font-size: 0.68rem; color: var(--muted); font-family: var(--mono); }
.float-card--1 { top: 6%; left: -8%; animation-delay: 0s; }
.float-card--2 { bottom: 10%; right: -10%; animation-delay: 1.4s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Ticker ---------- */
.ticker-section { padding: 20px 0 44px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ticker-caption { text-align: center; font-size: 0.76rem; color: var(--muted); margin-bottom: 16px; }
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; width: max-content; gap: 36px; animation: scroll-left 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.85rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.ticker__sym { color: var(--text); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 24px; }
.section__head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section__head--left { max-width: 480px; margin: 0; text-align: left; }
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.kicker--light { color: rgba(255,255,255,0.85); }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.section__sub { margin-top: 14px; color: var(--text-2); font-size: 1.02rem; line-height: 1.6; }

/* ---------- Features grid ---------- */
.grid--features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.icon-bg--blue { background: rgba(0,82,255,0.16); color: #5c9dff; }
.icon-bg--violet { background: rgba(124,77,255,0.16); color: var(--brand-2); }
.icon-bg--aqua { background: rgba(0,229,255,0.14); color: var(--brand); }
.icon-bg--orange { background: rgba(255,159,67,0.16); color: #ff9f43; }
.icon-bg--green { background: rgba(0,200,150,0.16); color: var(--green); }
.icon-bg--magenta { background: rgba(255,75,110,0.14); color: #ff7a95; }
.icon-bg--yellow { background: rgba(255,215,64,0.16); color: var(--gold); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 0.92rem; line-height: 1.55; }

/* ---------- Indicators panel ---------- */
.indicators-panel {
  display: grid;
  grid-template-columns: minmax(0,340px) 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.pill-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  padding: 8px 15px;
  border-radius: 999px;
}
.pill--more { color: var(--brand); border-color: rgba(0,229,255,0.35); background: rgba(0,229,255,0.1); }

/* ---------- Demo callout ---------- */
.demo-callout {
  margin: 0 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #003b46 0%, #170b38 60%, #08090d 100%);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.demo-callout__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 64px 48px;
}
.demo-callout h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin-top: 10px; }
.demo-callout p { margin-top: 16px; color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.6; max-width: 46ch; }
.demo-callout__stat {
  display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 6px;
  border-left: 1px solid rgba(255,255,255,0.14);
  padding-left: 32px;
}
.demo-callout__num { font-family: var(--mono); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: #fff; }
.demo-callout__label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}
.pricing-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--brand-glow), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.pricing-card__badge {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(0,200,150,0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.pricing-card h3 { font-size: 1.3rem; font-weight: 700; }
.pricing-card__price { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.pricing-card__amount { font-family: var(--mono); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; }
.pricing-card__period { color: var(--muted); font-size: 0.95rem; }
.pricing-card__note { margin-top: 12px; color: var(--text-2); font-size: 0.88rem; line-height: 1.5; }
.pricing-card__list { margin: 28px 0 30px; display: flex; flex-direction: column; gap: 13px; }
.pricing-card__list li {
  font-size: 0.92rem;
  color: var(--text-2);
  padding-left: 26px;
  position: relative;
}
.pricing-card__list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(0,229,255,0.15);
  border: 1px solid rgba(0,229,255,0.4);
}
.pricing-card__list li::after {
  content: "";
  position: absolute; left: 5px; top: 7px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.pricing-card__soon { text-align: center; margin-top: 14px; font-size: 0.8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
}
.faq-item__chevron { color: var(--muted); transition: transform .2s ease; font-size: 1.1rem; }
.faq-item.is-open .faq-item__chevron { transform: rotate(180deg); color: var(--brand); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item__a p { padding: 0 24px 20px; color: var(--text-2); font-size: 0.92rem; line-height: 1.6; max-width: 62ch; }
.faq-item.is-open .faq-item__a { max-height: 220px; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 0 24px 96px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-blue) 55%, var(--brand-2) 100%);
  padding: 72px 24px;
  text-align: center;
}
.cta-band__inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: #04060c; }
.cta-band p { margin-top: 14px; color: rgba(4,6,12,0.75); font-size: 1rem; }
.cta-band .btn--primary { margin-top: 30px; background: #04060c; color: #fff; box-shadow: none; }
.cta-band .btn--primary:hover { background: #10131e; }

/* ---------- Footer ---------- */
.footer { padding-top: 64px; border-top: 1px solid var(--border); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
.footer__brand p { margin-top: 14px; color: var(--muted); font-size: 0.88rem; max-width: 32ch; line-height: 1.6; }
.footer__col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 16px; }
.footer__col a { display: block; font-size: 0.9rem; color: var(--text-2); margin-bottom: 12px; transition: color .15s ease; }
.footer__col a:hover { color: var(--text); }
.footer__disclaimer { border-top: 1px solid var(--border); padding: 28px 24px 40px; }
.footer__disclaimer p { color: var(--muted); font-size: 0.78rem; line-height: 1.6; max-width: 80ch; }
.footer__copyright { margin-top: 14px; color: var(--muted); font-size: 0.78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero__visual { order: -1; margin-bottom: 12px; }
  .hero__copy h1 { max-width: none; }
  .indicators-panel { grid-template-columns: 1fr; padding: 36px; }
  .section__head--left { text-align: center; margin: 0 auto 36px; }
  .demo-callout__inner { grid-template-columns: 1fr; text-align: center; }
  .demo-callout__stat { border-left: none; padding-left: 0; align-items: center; text-align: center; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links { position: fixed; top: 76px; left: 0; right: 0; background: rgba(13,13,15,0.98); backdrop-filter: blur(14px); flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 24px 20px; border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 10px 0; width: 100%; }
  .nav__burger { display: flex; }
  .nav .btn--sm { display: none; }
  .nav__login { display: none; }
  .lang-toggle { order: -1; }

  .grid--features { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { margin-bottom: 8px; }
  .phone { width: 260px; }
}
