:root {
  --bg: #040605;
  --bg-soft: #0b100d;
  --panel: rgba(12, 18, 14, 0.82);
  --panel-strong: rgba(14, 23, 17, 0.94);
  --line: rgba(152, 255, 104, 0.18);
  --line-strong: rgba(152, 255, 104, 0.4);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.76);
  --accent: #7fe255;
  --accent-strong: #6fd447;
  --accent-glow: rgba(127, 226, 85, 0.26);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 999px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

#firms,
#offers,
#compare {
  scroll-margin-top: 106px;
}

#payouts,
#reviews,
#brokers {
  scroll-margin-top: 132px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(152, 255, 104, 0.1), transparent 24%),
    radial-gradient(circle at 80% 26%, rgba(152, 255, 104, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
  pointer-events: none;
  z-index: -2;
}

.site-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  animation: drift 18s ease-in-out infinite;
}

.glow-left {
  top: 7rem;
  left: -10rem;
  background: rgba(152, 255, 104, 0.18);
}

.glow-right {
  right: -8rem;
  top: 16rem;
  background: rgba(152, 255, 104, 0.14);
  animation-delay: -8s;
}

.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(152, 255, 104, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 255, 104, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at center, black 18%, transparent 72%);
  opacity: 0.22;
}

.site-header,
.hero,
.signal-strip,
.compare-section,
.cta-section {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  padding-top: 18px;
  z-index: 10;
}

.nav-shell {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 14px 18px 16px;
  background: rgba(5, 8, 6, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.nav-top,
.nav-links {
  display: flex;
  align-items: center;
}

.nav-top {
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-text {
  line-height: 1;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 16px);
  gap: 4px;
}

.brand-mark span {
  width: 16px;
  height: 16px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #d6ffbf);
  box-shadow: 0 0 24px rgba(152, 255, 104, 0.32);
}

.brand-mark span:last-child {
  transform: translateY(10px);
}

.icon-button,
.menu-toggle,
.toggle-pill,
.chip,
.utility-pill,
.pill-outline,
.auth-link {
  border: 1px solid var(--line);
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 15px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.02);
}

.icon-button span {
  border-radius: 4px;
  background: var(--text);
  opacity: 0.88;
}

.search-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 320px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0 18px;
  height: 50px;
}

.search-shell svg {
  width: 18px;
  height: 18px;
  fill: var(--text-soft);
  flex: 0 0 auto;
}

.search-shell input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  padding-left: 12px;
}

.search-shell input::placeholder {
  color: var(--text-soft);
}

.market-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.toggle-pill {
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--text-soft);
  transition: 180ms ease;
}

.toggle-pill.active,
.toggle-pill:hover,
.chip.is-active,
.chip:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(152, 255, 104, 0.12);
}

.utility-pill,
.pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(152, 255, 104, 0.08);
}

.utility-pill {
  padding: 12px 16px;
  font-weight: 600;
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.auth-link,
.auth-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  line-height: 1;
  font-weight: 600;
}

.auth-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.auth-signup {
  white-space: nowrap;
  flex: 0 0 auto;
}

.hero-deals-pill {
  background: rgba(152, 255, 104, 0.06);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle:hover {
  background: rgba(152, 255, 104, 0.08);
  border-color: var(--line-strong);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.nav-links a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a.active,
.nav-links a:hover,
.mobile-nav a:hover {
  background: rgba(152, 255, 104, 0.1);
  color: var(--text);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav.is-open {
  display: flex;
}

main {
  padding-bottom: 72px;
}

.hero {
  display: grid;
  gap: 26px;
  padding-top: 42px;
}

.hero-copy {
  max-width: 820px;
  animation: rise 850ms ease both;
}

.eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.hero h1,
.section-heading h2,
.cta-panel h2,
.panel h2 {
  margin: 14px 0 0;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.25rem, 7vw, 6.4rem);
  line-height: 0.96;
}

.hero h1 span {
  color: var(--accent);
}

.hero p,
.panel p,
.signal-card p,
.table-cell p,
.cta-panel p {
  color: var(--text-soft);
}

.hero-copy > p {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid rgba(4, 6, 5, 0.72);
  box-shadow: 0 20px 40px rgba(152, 255, 104, 0.18);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.button-block {
  width: 100%;
}

.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.stat-pill {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat-pill strong,
.highlight-list strong,
.signal-card strong,
.table-cell strong {
  display: block;
  color: var(--text);
}

.stat-pill strong {
  font-size: 1rem;
}

.stat-pill span {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--accent);
}

.hero-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--panel);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel-feature {
  animation: rise 900ms ease both 140ms;
}

.panel-highlight {
  background:
    radial-gradient(circle at top left, rgba(152, 255, 104, 0.12), transparent 55%),
    var(--panel-strong);
  animation: rise 900ms ease both 240ms;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.pill-outline {
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text);
}

.firm-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.firm-card,
.signal-card,
.table-row,
.cta-panel {
  background: rgba(255, 255, 255, 0.025);
}

.firm-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.firm-card:hover,
.table-row:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(152, 255, 104, 0.05);
}

.firm-card__head,
.firm-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.firm-card__meta {
  flex-direction: column;
  align-items: flex-end;
}

.firm-card h3,
.cta-panel h2 {
  margin: 0;
}

.firm-card p,
.table-cell p {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.firm-logo {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-weight: 700;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), #d5ffbf);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.offer-badge,
.firm-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.offer-badge {
  color: var(--bg);
  background: var(--accent);
}

.firm-score {
  border: 1px solid var(--line);
  color: var(--text);
}

.highlight-list {
  display: grid;
  gap: 18px;
  margin: 24px 0 26px;
}

.highlight-list div {
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.highlight-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.highlight-list span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.7;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.signal-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  animation: rise 950ms ease both;
}

.signal-card:nth-child(2) {
  animation-delay: 120ms;
}

.signal-card:nth-child(3) {
  animation-delay: 220ms;
}

.signal-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--accent);
  background: rgba(152, 255, 104, 0.06);
  font-weight: 700;
}

.signal-card p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.compare-section,
.cta-section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 12ch;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.chip {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  transition: 180ms ease;
}

.firm-table {
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(7, 11, 8, 0.8);
  box-shadow: var(--shadow);
}

.table-head {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.table-head > div,
.table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(120px, 1fr)) minmax(120px, 0.7fr);
  gap: 18px;
  align-items: center;
}

.table-body {
  padding: 10px;
}

.table-row {
  padding: 18px 14px;
  border: 1px solid transparent;
  border-radius: 20px;
  transition: 180ms ease;
}

.table-row + .table-row {
  margin-top: 10px;
}

.table-cell {
  min-width: 0;
}

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

.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  background: rgba(152, 255, 104, 0.05);
}

.cta-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(152, 255, 104, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.025);
}

.cta-panel p {
  max-width: 660px;
  line-height: 1.8;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -16px, 0) scale(1.04);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero-panels,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .chip-row {
    justify-content: flex-start;
  }

  .table-head > div,
  .table-row {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }

  .table-head span:nth-child(5),
  .table-head span:nth-child(6),
  .table-row .table-cell:nth-child(5),
  .table-row .table-cell:nth-child(6) {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-top {
    flex-wrap: wrap;
    gap: 12px;
  }

  .search-shell {
    order: 10;
    flex-basis: 100%;
    min-width: 100%;
  }

  .market-toggle {
    order: 11;
  }

  .auth-actions {
    order: 12;
  }

  .firm-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 10px;
  }

  .nav-shell {
    padding: 12px;
    border-radius: 22px;
  }

  .icon-grid,
  .nav-links {
    display: none;
  }

  .nav-top {
    gap: 12px;
    align-items: center;
  }

  .brand {
    min-width: 0;
    font-size: 1rem;
  }

  .brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
    order: 2;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    padding: 12px;
  }

  .market-toggle {
    order: 3;
    width: 100%;
    justify-content: stretch;
  }

  .toggle-pill {
    flex: 1 1 0;
    text-align: center;
    padding-inline: 12px;
  }

  .search-shell {
    order: 4;
    flex-basis: 100%;
    height: 52px;
  }

  .auth-actions {
    order: 5;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .auth-link,
  .auth-signup {
    width: 100%;
  }

  .menu-toggle {
    flex: 0 0 auto;
  }

  .mobile-nav {
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
  }
  .mobile-nav a {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
  }

  .hero {
    gap: 20px;
    padding-top: 24px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
    max-width: 11.5ch;
  }

  .hero-copy > p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .hero-actions .utility-pill {
    width: 100%;
  }

  .stat-pills {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel,
  .signal-card,
  .cta-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-panels {
    gap: 18px;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .panel h2,
  .section-heading h2,
  .cta-panel h2 {
    max-width: none;
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .signal-strip,
  .compare-section,
  .cta-section {
    margin-top: 24px;
  }

  .signal-card {
    gap: 14px;
  }

  .section-heading {
    gap: 14px;
    margin-bottom: 14px;
  }

  .chip-row {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .chip-row::-webkit-scrollbar {
    display: none;
  }

  .table-head {
    display: none;
  }

  .table-body {
    padding: 12px;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .table-row .table-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .table-row .table-cell::before {
    content: attr(data-label);
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
  }

  .table-row .firm-cell::before {
    content: none;
  }

  .table-row .table-cell strong,
  .table-row .table-cell p,
  .table-row .table-cell .offer-badge,
  .table-row .table-cell .inline-link {
    width: 100%;
  }

  .table-row .table-cell .inline-link {
    justify-content: center;
  }

  .table-row .table-cell:nth-child(5),
  .table-row .table-cell:nth-child(6) {
    display: flex;
  }

  .firm-card {
    flex-direction: column;
    align-items: stretch;
  }

  .firm-card__meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .site-header,
  .hero,
  .signal-strip,
  .compare-section,
  .cta-section {
    width: min(calc(100% - 1rem), var(--container));
  }

  .brand-mark {
    grid-template-columns: repeat(2, 13px);
    gap: 3px;
  }

  .brand-mark span {
    width: 13px;
    height: 13px;
    border-radius: 5px;
  }

  .brand-mark span:last-child {
    transform: translateY(8px);
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .search-shell {
    padding-inline: 14px;
  }

  .search-shell input {
    font-size: 0.95rem;
  }

  .toggle-pill,
  .chip,
  .auth-link,
  .button,
  .utility-pill {
    min-height: 48px;
  }

  .hero-copy > p,
  .signal-card p,
  .cta-panel p {
    font-size: 0.94rem;
  }

  .table-row {
    padding: 16px;
  }

  .firm-cell {
    align-items: flex-start;
  }

  .firm-card__head {
    align-items: flex-start;
  }

  .firm-card__meta {
    gap: 10px;
  }
}
