:root {
  --night: #070b14;
  --night-2: #0c1220;
  --panel: #111827;
  --panel-raised: #161f30;
  --ink: #f4f7fb;
  --ink-soft: #b8c4d8;
  --ink-muted: #8492ab;
  --gold: #d4a84b;
  --gold-bright: #f0d08a;
  --gold-deep: #b8892e;
  --blue: #4c7dff;
  --blue-bright: #7aa2ff;
  --blue-deep: #2f5ad6;
  --line: rgba(150, 170, 205, 0.14);
  --line-gold: rgba(212, 168, 75, 0.4);
  --open: #7aa2ff;
  --open-soft: rgba(76, 125, 255, 0.16);
  --gain: #3ecf8e;
  --loss: #f07167;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --header-h: 4.4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --paper: var(--night);
  --paper-deep: var(--night-2);
  --surface: var(--panel);
  --teal: var(--gold);
  --teal-deep: var(--gold-deep);
  --teal-soft: rgba(212, 168, 75, 0.12);
  --blue-glow: rgba(76, 125, 255, 0.2);
  --gold-glow: rgba(212, 168, 75, 0.14);
  --line-strong: var(--line-gold);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--night);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--gold);
  color: var(--night);
  border-radius: 999px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

@media (min-width: 1101px) {
  .site-header {
    backdrop-filter: blur(18px);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-nav {
  width: 100%;
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.brand:hover {
  opacity: 0.92;
}

.brand-logo {
  display: block;
  height: 2.15rem;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
}

.brand-mark {
  display: none;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-end;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-links > li > a,
.submenu-trigger {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.site-links > li > a:hover,
.submenu-trigger:hover,
.submenu-trigger[aria-expanded="true"] {
  color: #fff;
  background: rgba(122, 162, 255, 0.08);
}

.has-submenu {
  position: relative;
}

.submenu-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.submenu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 0.55rem;
  list-style: none;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 60;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
}

.submenu a:hover {
  color: #fff;
  background: rgba(76, 125, 255, 0.12);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.35rem;
  flex-shrink: 0;
}

.nav-link-signin {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
}

.nav-link-signin:hover {
  color: #fff;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408 !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
  white-space: nowrap;
}

.btn-nav:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  margin: 0.28rem auto;
  background: var(--ink);
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-block;
    position: relative;
    z-index: 120;
  }

  .site-header {
    z-index: 110;
    overflow: visible;
    background: rgba(7, 11, 20, 0.96);
  }

  .site-nav {
    position: static;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    border: 0;
    padding: 0;
    background: rgba(4, 7, 14, 0.62);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s var(--ease), visibility 0.32s var(--ease);
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 21rem);
    max-width: none;
    flex: none;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: calc(var(--header-h) + 1rem) 1rem 1.25rem;
    margin: 0;
    background: var(--panel-raised);
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.35);
    max-height: none;
    height: 100dvh;
    overflow: auto;
    z-index: 100;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.34s var(--ease), visibility 0.34s var(--ease);
  }

  .site-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .site-links > li > a,
  .submenu-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    margin-top: 0.25rem;
    background: rgba(7, 11, 20, 0.45);
  }

  .has-submenu.is-open .submenu {
    display: grid;
  }

  .nav-auth {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-nav {
    width: 100%;
  }

  @media (prefers-reduced-motion: reduce) {
    .site-menu,
    .nav-backdrop {
      transition: none;
    }
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408 !important;
  box-shadow: 0 10px 30px rgba(212, 168, 75, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.05);
  color: #1a1408 !important;
}

.btn-ghost {
  background: rgba(76, 125, 255, 0.08);
  color: var(--ink) !important;
  border-color: rgba(122, 162, 255, 0.28);
}

.btn-ghost:hover {
  border-color: var(--blue-bright);
  color: #fff !important;
}

.btn-lg {
  padding: 1.05rem 1.6rem;
  font-size: 0.98rem;
}

.btn:focus-visible,
.site-links a:focus-visible,
.brand:focus-visible,
.store-badge:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Store badges — Liquide-style */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 158px;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff !important;
  background: #0a0a0a;
}

.store-badge__icon {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}

.store-badge--apple {
  color: #fff;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.store-badge__eyebrow {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.store-badge__name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-footer {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  border-top: 1px solid var(--line);
  background: #05080f;
  padding: 3.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Keep StoxInsights button look over Bootstrap defaults */
.btn {
  --bs-btn-border-width: 1px;
}

.btn-primary {
  --bs-btn-color: #1a1408;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #1a1408;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #1a1408;
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: transparent;
}

.btn-ghost {
  /* custom ghost button — not a Bootstrap variant */
}

.footer-compliance {
  max-width: none;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.footer-brand strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold-bright);
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.footer-logo {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: min(220px, 70vw);
  object-fit: contain;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.footer-brand .footer-operator {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.footer-compliance .footer-ownership {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-apps .store-badges {
  justify-content: flex-start;
}

.footer-access-label,
.hero-apps-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.footer-access-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.footer-compliance p {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.footer-compliance strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.page-simple {
  width: min(760px, calc(100% - 2rem));
  margin: 2.5rem auto 4rem;
}

.page-simple h1 {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--gold-bright);
}

/* Inner / marketing pages */
.page-inner {
  position: relative;
  z-index: 1;
}

.inner-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 1.5rem;
  text-align: left;
}

.inner-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.shell.narrow {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
}

.inner-body {
  padding: 1rem 0 clamp(4rem, 8vw, 6rem);
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.prose h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.prose ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.prose ul li {
  margin-bottom: 0.4rem;
}

.prose .howto-steps {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.inner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.pricing-grid {
  /* Bootstrap row handles pricing layout */
}

.price-card {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.price-card.featured {
  border-color: rgba(212, 168, 75, 0.45);
  background: linear-gradient(160deg, rgba(212, 168, 75, 0.12), var(--panel));
}

.price-tag {
  margin: 0 0 0.75rem;
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(212, 168, 75, 0.15);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 600;
}

.price-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.price-amount {
  margin: 0.65rem 0 1.1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.price-amount span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.price-card ul {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.price-card li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 2px;
  background: var(--gold);
}

.howto-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}

.howto-steps li {
  counter-increment: step;
  padding: 1.2rem 1.25rem 1.2rem 3.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  position: relative;
}

.howto-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 1.25rem;
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 0.9rem;
}

.howto-steps strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.howto-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.testimonial-grid {
  /* Bootstrap row handles testimonial layout */
}

.quote-card {
  margin: 0;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.quote-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.quote-card footer {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 0.85rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.75rem 0 0.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.faq-item ul {
  margin: 0.5rem 0 0.25rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.faq-item ul li {
  margin-bottom: 0.35rem;
}

.faq-item a {
  font-weight: 600;
}

.auth-wrap {
  min-height: calc(100vh - var(--header-h) - 8rem);
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
}

.auth-card {
  width: 100%;
  padding: 2rem 1.6rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  background: var(--panel-raised);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-lead {
  margin: 0.65rem 0 1.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
}

.auth-form label span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.55);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.auth-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.auth-form textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.contact-page {
  padding-top: 0.5rem;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.35rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.contact-card.muted {
  background: rgba(22, 31, 48, 0.45);
}

.contact-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.contact-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-mail {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--gold-bright);
  font-weight: 600;
  text-decoration: none;
}

.contact-mail:hover {
  color: var(--gold);
}

.contact-form-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-form-note {
  text-align: left;
}

.auth-foot {
  margin: 1.15rem 0 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.auth-apps {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.auth-apps .store-badges {
  justify-content: center;
}

@media (max-width: 900px) {
  /* Bootstrap columns handle stacking */
}
