:root {
  --bg: #050b08;
  --card: #0d1712;
  --green: #4df09a;
  --text: #f4f8f5;
  --muted: #91a299;
  --line: rgba(255, 255, 255, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    radial-gradient(
      circle at 72% -10%,
      rgba(77, 240, 154, 0.1),
      transparent 31rem
    ),
    linear-gradient(180deg, #07100c 0, var(--bg) 38rem);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.topbar {
  z-index: 80;
  height: 74px;
  padding-inline: max(22px, calc((100vw - 1400px) / 2));
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(5, 11, 8, 0.84);
  backdrop-filter: blur(22px) saturate(130%);
}

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  letter-spacing: -0.035em;
}

.logo b {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(77, 240, 154, 0.06);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.desktop-nav > button,
.desktop-nav .nav-menu-shell > button,
.desktop-nav .account-button,
.desktop-nav .nav-link {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: rgba(244, 248, 245, 0.68);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.desktop-nav > button:hover,
.desktop-nav .nav-menu-shell > button:hover,
.desktop-nav .account-button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.desktop-nav > button.active,
.desktop-nav .nav-menu-shell > button.active {
  background: rgba(77, 240, 154, 0.1);
  color: var(--green);
}

.desktop-nav .nav-primary {
  display: inline-flex;
  align-items: center;
  border-color: rgba(77, 240, 154, 0.24);
  color: var(--green);
}

.desktop-nav .nav-primary:hover {
  background: var(--green);
  color: #06110b;
}

.desktop-nav .account-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-width: 104px;
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.desktop-nav .account-button #account-label,
.desktop-nav .account-button .account-chevron {
  display: inline !important;
}

.desktop-nav .account-button .account-icon {
  display: none !important;
}

.nav-submenu,
.profile-menu {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(10, 20, 15, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(22px);
}

.nav-submenu {
  padding: 8px;
}

.nav-submenu button,
.nav-submenu a {
  border-radius: 11px;
}

.nav-submenu button:hover,
.nav-submenu a:hover {
  background: rgba(77, 240, 154, 0.08);
}

main {
  max-width: 1400px;
  padding: 0 22px 110px;
}

.view:not(.home-view) {
  padding-top: 34px;
}

.view[id] {
  scroll-margin-top: 92px;
}

.home-view {
  padding-top: 0;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.64fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: center;
  min-height: min(760px, calc(100vh - 74px));
  padding: 70px 0 78px;
}

.landing-copy {
  max-width: 900px;
}

.landing-copy .eyebrow {
  margin-bottom: 20px;
}

.landing-copy h1 {
  max-width: 900px;
  font-size: clamp(52px, 5vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.landing-copy h1 span {
  color: rgba(244, 248, 245, 0.26);
}

.landing-intro {
  max-width: 620px;
  margin: 30px 0 0;
  color: rgba(244, 248, 245, 0.66);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.home-actions .primary,
.home-actions .secondary-action {
  display: inline-flex;
  width: auto;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 12px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.home-actions .secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
}

.home-actions .secondary-action:hover {
  border-color: rgba(77, 240, 154, 0.35);
  background: rgba(77, 240, 154, 0.07);
}

.responsible-note {
  display: block;
  margin-top: 21px;
  color: rgba(244, 248, 245, 0.38);
  font-size: 11px;
  line-height: 1.55;
}

.home-command-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(77, 240, 154, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(77, 240, 154, 0.055), transparent 48%),
    rgba(11, 22, 16, 0.84);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
  padding: 22px;
}

.home-command-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 2px;
  background: var(--green);
  content: '';
}

.command-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: rgba(244, 248, 245, 0.52);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.command-head i {
  border: 1px solid rgba(77, 240, 154, 0.25);
  border-radius: 99px;
  color: var(--green);
  padding: 5px 8px;
  font-style: normal;
  letter-spacing: 0.09em;
}

.home-command-card ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-command-card li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.home-command-card li > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.home-command-card li div {
  display: grid;
  gap: 4px;
}

.home-command-card li b {
  font-size: 15px;
}

.home-command-card li small {
  color: var(--muted);
  line-height: 1.45;
}

.home-command-card > button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 18px;
  border-radius: 11px;
  background: var(--green);
  color: #06110b;
  padding: 13px 15px;
  font-weight: 900;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  gap: 14px;
  padding: 18px 0 100px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0b1510;
  padding: clamp(24px, 3.8vw, 46px);
}

.feature-card h2 {
  max-width: 600px;
  margin: 8px 0 16px;
  font-size: clamp(30px, 4vw, 55px);
}

.feature-card p:not(.eyebrow) {
  max-width: 570px;
  color: var(--muted);
}

.feature-card button,
.feature-card .feature-link {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  font-weight: 820;
  text-decoration: none;
}

.feature-card button:hover,
.feature-card .feature-link:hover {
  color: var(--green);
}

.feature-main {
  grid-row: span 2;
  display: flex;
  min-height: 614px;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(
      circle at 80% 70%,
      rgba(77, 240, 154, 0.1),
      transparent 35%
    ),
    #0b1510;
}

.feature-main::after {
  position: absolute;
  right: -11%;
  bottom: -23%;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(77, 240, 154, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(77, 240, 154, 0.025),
    0 0 0 104px rgba(77, 240, 154, 0.018);
  content: '';
}

.feature-main > * {
  position: relative;
  z-index: 1;
}

.market-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: auto 0 32px;
}

.market-preview span {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  padding: 16px;
}

.market-preview small {
  color: rgba(244, 248, 245, 0.42);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.market-preview b {
  color: var(--green);
  font-size: 20px;
}

.feature-academy {
  background: #132119;
}

.feature-lab {
  background: linear-gradient(135deg, #0a1510, #101913);
}

.home-compare-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin: -56px 0 44px;
  border-top: 1px solid rgba(77, 240, 154, 0.28);
  border-bottom: 1px solid var(--line);
  padding: 28px 2px;
}

.home-compare-strip > div {
  display: grid;
  grid-template-columns: auto minmax(220px, 0.72fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: baseline;
}

.home-compare-strip > div > span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-compare-strip h2,
.home-compare-strip p {
  margin: 0;
}

.home-compare-strip h2 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.home-compare-strip p {
  max-width: 470px;
  color: var(--muted);
}

.home-compare-strip > a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border-radius: 11px;
  background: var(--green);
  color: #06110b;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.home-compare-strip > a:active {
  transform: translateY(1px);
}

.editorial-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  overflow: hidden;
  min-height: 560px;
  margin: 0 0 100px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0a1410;
}

.editorial-image {
  position: relative;
  min-height: 460px;
}

.editorial-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, #0a1410 100%);
  content: '';
}

.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) contrast(1.05) brightness(0.7);
}

.editorial-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 68px);
}

.editorial-copy h2 {
  margin: 5px 0 18px;
  font-size: clamp(38px, 5vw, 66px);
}

.editorial-copy > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.editorial-links {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.editorial-links a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  color: #fff;
  padding: 15px 0;
  font-weight: 750;
  text-decoration: none;
}

.editorial-links a:hover,
.editorial-links a:hover span {
  color: var(--green);
}

.editorial-links span {
  color: rgba(244, 248, 245, 0.35);
}

@media (max-width: 1040px) {
  .topbar {
    padding-inline: 18px;
  }

  .desktop-nav {
    gap: 1px;
  }

  .desktop-nav > button,
  .desktop-nav .nav-menu-shell > button,
  .desktop-nav .account-button,
  .desktop-nav .nav-link {
    padding-inline: 10px;
  }

  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.58fr);
    gap: 38px;
  }
}

@media (max-width: 900px) {
  .topbar {
    height: 60px;
    padding: 0 14px;
  }

  .topbar .logo b {
    width: 32px;
    height: 32px;
  }

  main {
    padding: 0 16px 118px;
  }

  .view:not(.home-view) {
    padding-top: 26px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
    padding: 66px 0 72px;
  }

  .landing-copy {
    max-width: 700px;
  }

  .landing-copy h1 {
    font-size: clamp(46px, 10vw, 70px);
  }

  .home-command-card {
    max-width: 660px;
  }

  .home-feature-grid {
    grid-template-columns: 1fr 1fr;
    padding-bottom: 74px;
  }

  .feature-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 520px;
  }

  .feature-card {
    min-height: 280px;
  }

  .home-compare-strip > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .editorial-band {
    grid-template-columns: 1fr;
  }

  .editorial-image {
    min-height: 430px;
  }

  .editorial-image::after {
    background: linear-gradient(180deg, transparent 62%, #0a1410 100%);
  }

  .mobile-nav {
    gap: 3px;
    min-height: 72px;
    border-top-color: rgba(255, 255, 255, 0.09);
    background: rgba(5, 11, 8, 0.94);
    box-shadow: 0 -16px 46px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(22px) saturate(130%);
  }

  .mobile-nav > button,
  .mobile-nav > a {
    position: relative;
    border-radius: 11px;
  }

  .mobile-nav > button.active::before,
  .mobile-nav > button[aria-expanded='true']::before {
    position: absolute;
    top: 0;
    width: 22px;
    height: 2px;
    border-radius: 99px;
    background: var(--green);
    content: '';
  }

  .mobile-nav > button.active,
  .mobile-nav > button[aria-expanded='true'] {
    background: rgba(77, 240, 154, 0.08);
    color: #fff;
  }
}

@media (max-width: 620px) {
  .landing-hero {
    padding-top: 52px;
  }

  .landing-copy h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .landing-intro {
    margin-top: 24px;
    font-size: 17px;
  }

  .home-actions {
    display: grid;
  }

  .home-actions .primary,
  .home-actions .secondary-action {
    width: 100%;
  }

  .home-command-card {
    border-radius: 18px;
    padding: 18px;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-main,
  .feature-card {
    grid-column: auto;
    min-height: 390px;
    border-radius: 18px;
  }

  .feature-academy,
  .feature-lab {
    min-height: 280px;
  }

  .home-compare-strip {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: -34px;
  }

  .home-compare-strip > a {
    width: 100%;
    justify-content: space-between;
  }

  .market-preview {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .market-preview span {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .editorial-band {
    min-height: auto;
    margin-bottom: 66px;
    border-radius: 18px;
  }

  .editorial-image {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
