/* Quantly landing — dark "living dashboard" theme */

/* Self-hosted шрифты подключаются опционально (см. landing/README.md).
 * Если положить файлы в landing/fonts/ — раскомментировать блок ниже.
 * Без них работает system-ui fallback (Segoe UI Variable / SF Pro / Inter
 * если уже установлен в системе) — визуально близко.
 *
 * @font-face {
 *   font-family: 'Inter';
 *   src: url('/fonts/InterVariable.woff2') format('woff2-variations');
 *   font-weight: 100 900;
 *   font-display: swap;
 * }
 * @font-face {
 *   font-family: 'JetBrains Mono';
 *   src: url('/fonts/JetBrainsMono-Regular.woff2') format('woff2');
 *   font-weight: 400 700;
 *   font-display: swap;
 * }
 */

:root {
  --bg:            #0a0e14;
  --bg-surface:    #11161f;
  --bg-surface-2:  #1a2030;
  --fg:            #e8eef5;
  --fg-dim:        #9aa6b2;
  --fg-dimmer:     #5c6773;
  --accent:        #00ff88;
  --accent-dim:    #00cc6a;
  --accent-deep:   #00a050;
  --border:        rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --danger:        #ff6b6b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'SF Mono', Consolas, 'Liberation Mono', monospace;

  --radius:    12px;
  --radius-lg: 18px;
  --shadow-accent: 0 0 40px rgba(0, 255, 136, 0.18);

  --maxw: 1180px;
  --pad-x: clamp(20px, 5vw, 60px);
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 255, 136, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 30% at 90% 20%, rgba(0, 200, 120, 0.04), transparent 70%),
    var(--bg);
  overflow-x: hidden;
}

a { color: inherit; }

/* ─── Nav ───────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--pad-x);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--fg);
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.brand__q {
  color: var(--accent);
}

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 5px 10px;
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  background: rgba(0, 255, 136, 0.04);
}

/* ─── Layout ─────────────────────────────────────────────────── */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 120px) var(--pad-x) 80px;
}

section + section {
  margin-top: clamp(80px, 12vw, 140px);
}

/* ─── Hero ──────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__title {
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero__accent {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(0, 255, 136, 0.35);
}

.hero__lead {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--fg-dim);
  max-width: 580px;
  line-height: 1.55;
}

/* Broker list */
.brokers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 4px;
}
.brokers li {
  position: relative;
  letter-spacing: 0.02em;
}
.brokers li:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -14px;
  color: var(--fg-dimmer);
}

/* ─── Waitlist form ─────────────────────────────────────────── */

.waitlist {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 540px;
  margin-top: 16px;
}

.waitlist input[type=email] {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
}
.waitlist input[type=email]::placeholder {
  color: var(--fg-dimmer);
}
.waitlist input[type=email]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
  background: #131923;
}
.waitlist input[type=email]:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 107, 107, 0.5);
}

.waitlist button {
  background: var(--accent);
  color: #00170c;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .12s ease, box-shadow .2s ease, background .15s;
  white-space: nowrap;
}
.waitlist button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
  background: #1aff95;
}
.waitlist button:active { transform: translateY(0); }
.waitlist button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.waitlist__arrow { transition: transform .15s; display: inline-block; }
.waitlist button:hover .waitlist__arrow { transform: translateX(3px); }

.waitlist__hint,
.waitlist__feedback {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--fg-dimmer);
}
.waitlist__feedback {
  min-height: 1.4em;
  font-family: var(--font-mono);
}
.waitlist__feedback.is-success { color: var(--accent); }
.waitlist__feedback.is-error   { color: var(--danger); }

/* ─── Dashboard cards ───────────────────────────────────────── */

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
  min-height: 152px;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(0, 255, 136, 0.06), transparent 60%);
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.card__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
}
.card__chart {
  width: 100%;
  height: 44px;
  margin-top: auto;
  display: block;
}
.card__gauge {
  position: relative;
  height: 8px;
  background: var(--bg-surface-2);
  border-radius: 4px;
  margin-top: auto;
  overflow: hidden;
}
.card__gauge-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  border-radius: 4px;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}
.card__gauge-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  pointer-events: none;
}
.card__gauge-ticks span {
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ─── Features ──────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .2s, transform .2s;
}
.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.feature__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 22px;
  letter-spacing: 0.1em;
}
.feature__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.feature__body {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── Closing CTA ───────────────────────────────────────────── */

.closing {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}
.closing__title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.closing__lead {
  color: var(--fg-dim);
  font-size: 16px;
}
.roadmap {
  list-style: none;
  margin: 8px 0 24px;
}
.roadmap li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--fg-dim);
  font-size: 15px;
}
.roadmap li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

.waitlist--inline { margin-top: 8px; }

/* ─── Footer ────────────────────────────────────────────────── */

.footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px var(--pad-x);
  font-size: 13px;
  color: var(--fg-dimmer);
  font-family: var(--font-mono);
}
.footer a {
  color: var(--fg-dim);
  text-decoration: none;
  transition: color .15s;
}
.footer a:hover { color: var(--accent); }

/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 560px) {
  .waitlist {
    grid-template-columns: 1fr;
  }
  .waitlist button {
    width: 100%;
    justify-content: center;
  }
  .hero { gap: 22px; }
  .feature { padding: 24px; }
  .card { padding: 18px; min-height: 140px; }
  .nav { padding: 18px var(--pad-x); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
