:root {
  --bg: #05070b;
  --bg-2: #0b1018;
  --ink: #e8edf5;
  --muted: #93a0b5;
  --line: rgba(232, 237, 245, 0.1);
  --gold: #d4af37;
  --gold-2: #f0d48a;
  --silver: #cfd3d8;
  --teal: #3ee0b0;
  --red: #ff6b7a;
  --card: rgba(14, 20, 32, 0.72);
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Syne", "Manrope", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
}

a {
  color: var(--gold-2);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.bg-grid,
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(212, 180, 90, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 180, 90, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

.bg-glow {
  background:
    radial-gradient(600px 280px at 15% -10%, rgba(62, 224, 176, 0.16), transparent 60%),
    radial-gradient(700px 320px at 90% 8%, rgba(212, 180, 90, 0.14), transparent 55%);
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 7vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 11, 0.72);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
}

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(280px, 52vw);
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.brand-logo-lg {
  height: 52px;
  max-width: min(340px, 70vw);
}

.brand-tagline {
  margin: 10px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: #05070b;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1406;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.btn-lg {
  padding: 14px 22px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.hero,
.section,
#download-mobile {
  scroll-margin-top: 88px;
}

.hero,
.section {
  padding: 88px 7vw;
}

.hero {
  padding-top: 72px;
  max-width: 1400px;
  margin: 0 auto;
}

.eyebrow {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  letter-spacing: -0.03em;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  max-width: 18ch;
}

h3 {
  font-size: 1.25rem;
}

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  padding: 0;
  margin: 0 0 48px;
  list-style: none;
}

.hero-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

.terminal {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.9), rgba(8, 12, 20, 0.92));
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3d4658;
}

.dot:nth-child(1) { background: #ff6b7a; }
.dot:nth-child(2) { background: #d4b45a; }
.dot:nth-child(3) { background: #3ee0b0; }

.terminal-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  background: transparent;
  margin-left: 6px;
}

.terminal-title {
  margin-left: 2px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.terminal-body {
  padding: 18px;
}

.quote-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quote {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.quote header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.exch {
  font-family: var(--mono);
  color: var(--gold);
}

.sym {
  font-weight: 700;
}

.chg {
  margin-left: auto;
  font-family: var(--mono);
}

.up { color: var(--teal); }
.down { color: var(--red); }

.px {
  font-family: var(--mono);
  font-size: 1.45rem;
  margin: 10px 0 4px;
}

.meta,
.label,
.fine,
.pricing-note,
.plan-who,
.billed,
.legal {
  color: var(--muted);
  font-size: 0.88rem;
}

.live-bar {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(62, 224, 176, 0.25);
  background: rgba(62, 224, 176, 0.06);
}

.live-next {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.quote .px.is-flash {
  color: var(--gold-2);
}

.spread {
  font-family: var(--mono);
  font-size: 1.05rem;
  margin: 4px 0 0;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
}

.bars span {
  width: 8px;
  height: var(--h);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--teal), rgba(62, 224, 176, 0.2));
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 + p,
.section-head p:last-child {
  max-width: 62ch;
  color: var(--muted);
}

.market-grid,
.feature-grid,
.download-grid,
.plan-grid {
  display: grid;
  gap: 16px;
}

.market-grid,
.download-grid {
  grid-template-columns: repeat(3, 1fr);
}

.plan-grid-single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.exch-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
}

.download-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.download-card.featured {
  border-color: rgba(212, 180, 90, 0.45);
  background:
    radial-gradient(400px 180px at 100% 0%, rgba(212, 180, 90, 0.12), transparent 60%),
    var(--card);
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1406;
  background: var(--gold);
  border-radius: 999px;
  padding: 4px 10px;
  margin: 0 0 12px;
}

.pill-mute {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.os-list {
  color: var(--muted);
}

.billing-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.billing-toggle button.is-active {
  background: var(--ink);
  color: var(--bg);
}

.billing-toggle em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem;
  margin-left: 6px;
  color: var(--teal);
}

.billing-toggle button.is-active em {
  color: #0b5c45;
}

.billing-toggle button.is-best:not(.is-active) {
  color: var(--gold);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan .btn {
  margin-top: auto;
}

.plan h3 {
  padding-right: 108px;
}

.price {
  font-family: var(--display);
  font-size: 2.1rem;
  margin: 8px 0 0;
}

.price small {
  font-size: 0.9rem;
  color: var(--muted);
  font-family: var(--font);
  margin-left: 0.35em;
}

.plan-featured {
  border-color: rgba(212, 180, 90, 0.55);
  box-shadow: 0 20px 50px rgba(212, 180, 90, 0.08);
}

.plan-bonus {
  margin: 8px 0 0;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 600;
}

.card ul.plan-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  margin: 20px 0 22px;
  padding-left: 18px;
}

.ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1406;
  background: var(--gold);
  padding: 4px 9px;
  border-radius: 999px;
}

.pricing-note {
  margin-top: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.lede-sm {
  color: var(--muted);
  max-width: 46ch;
}

.contact-meta {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.contact-meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.contact-meta span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: rgba(5, 7, 11, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(212, 180, 90, 0.45);
  border-color: var(--gold);
}

.form-error {
  color: var(--red);
  font-size: 0.88rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}

.footer {
  padding: 40px 7vw 56px;
  border-top: 1px solid var(--line);
}

.footer-brand .brand-logo {
  height: 52px;
}

.footer-links {
  display: flex;
  gap: 18px;
  margin: 18px 0;
}

.footer-links a {
  color: var(--muted);
}

.nav.open .nav-links,
.nav.open .nav-cta {
  display: flex;
}

@media (max-width: 980px) {
  .quote-row,
  .market-grid,
  .feature-grid,
  .download-grid,
  .contact-layout,
  .form-row,
  .card ul.plan-features {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav.open {
    flex-wrap: wrap;
  }

  .nav.open .nav-links,
  .nav.open .nav-cta {
    display: flex;
    width: 100%;
    flex-direction: column;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .live-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
