:root {
  color-scheme: dark;
  --bg: #070a11;
  --bg-deep: #04060a;
  --surface: rgba(15, 19, 30, 0.82);
  --surface-strong: #111624;
  --text: #f5f3ff;
  --muted: #aaa9ba;
  --muted-strong: #c9c6d5;
  --edge: rgba(159, 168, 196, 0.2);
  --edge-violet: rgba(139, 92, 246, 0.5);
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-deep: #6d3bea;
  --focus: #c4b5fd;
  --shell: 1180px;
  --radius: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 71% 7%, rgba(69, 42, 137, 0.17), transparent 29rem),
    radial-gradient(circle at 17% 64%, rgba(43, 57, 95, 0.1), transparent 32rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

svg {
  display: block;
  width: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  color: #110826;
  background: var(--focus);
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid rgba(159, 168, 196, 0.1);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 0.72rem;
  letter-spacing: -0.01em;
}

.wordmark-name {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.wordmark-divider {
  color: rgba(196, 181, 253, 0.55);
}

.wordmark-section {
  color: var(--muted-strong);
  font-size: 0.98rem;
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.4rem);
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.site-nav a,
.site-footer a,
.home-link {
  transition: color 130ms ease;
}

.site-nav a:hover,
.site-footer a:hover,
.home-link:hover {
  color: var(--violet-bright);
}

.site-header > .button {
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 46px;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.91rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition:
    border-color 130ms ease,
    background-color 130ms ease,
    box-shadow 240ms ease,
    transform 130ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.button-quiet {
  min-height: 42px;
  padding-inline: 1.35rem;
  border-color: var(--edge-violet);
  background: rgba(15, 12, 29, 0.5);
}

.button-quiet:hover {
  border-color: var(--violet-bright);
  background: rgba(55, 36, 100, 0.28);
}

.button-primary {
  color: #fff;
  background: linear-gradient(115deg, var(--violet-deep), var(--violet));
  box-shadow:
    0 12px 34px rgba(109, 59, 234, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.18);
}

.button-primary:hover:not(:disabled) {
  box-shadow:
    0 16px 38px rgba(109, 59, 234, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  align-items: center;
  min-height: 640px;
  padding-block: 72px 88px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
}

.hero h1,
.section-heading h2,
.login-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(3rem, 5.25vw, 5.2rem);
  font-weight: 680;
  line-height: 0.99;
}

.hero h1 span {
  display: block;
  margin-top: 0.12em;
  color: var(--violet-bright);
}

.hero-copy > p {
  max-width: 585px;
  margin: 2rem 0 2.25rem;
  color: var(--muted-strong);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.ecosystem {
  position: relative;
  min-height: 490px;
  margin: 0;
  isolation: isolate;
}

.ecosystem::before {
  content: "";
  position: absolute;
  inset: 7% 2% 2% 9%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.16) 0%,
    rgba(92, 64, 170, 0.06) 32%,
    transparent 68%
  );
  filter: blur(4px);
}

.ecosystem-rings,
.ecosystem-rings::before,
.ecosystem-rings::after {
  position: absolute;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 50%;
}

.ecosystem-rings {
  inset: 13% 5% 7% 12%;
}

.ecosystem-rings::before,
.ecosystem-rings::after {
  content: "";
}

.ecosystem-rings::before {
  inset: 12%;
  border-style: dashed;
  border-color: rgba(139, 92, 246, 0.38);
}

.ecosystem-rings::after {
  inset: 28%;
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 38px rgba(139, 92, 246, 0.16);
}

.ecosystem-core,
.module {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.62);
  color: #f5f1ff;
  background:
    linear-gradient(145deg, rgba(26, 31, 47, 0.98), rgba(11, 14, 24, 0.96));
  box-shadow:
    0 12px 38px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(139, 92, 246, 0.1);
}

.ecosystem-core {
  top: 50%;
  left: 54%;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  transform: translate(-50%, -50%);
}

.module {
  width: 94px;
  height: 82px;
  border-radius: 14px;
  color: var(--violet-bright);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.065em;
}

.module::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-bright);
  box-shadow: 0 0 12px var(--violet);
}

.module-quasar {
  top: 6%;
  left: 46%;
}

.module-quasar::after {
  bottom: -27px;
}

.module-tf {
  top: 29%;
  left: 8%;
}

.module-tf::after {
  right: -27px;
}

.module-awg {
  top: 29%;
  right: 0;
}

.module-awg::after {
  left: -27px;
}

.module-olc {
  bottom: 6%;
  left: 18%;
}

.module-olc::after {
  top: -27px;
  right: 2px;
}

.module-ai {
  right: 8%;
  bottom: 6%;
}

.module-ai::after {
  top: -27px;
  left: 2px;
}

.section-rule {
  border-top: 1px solid rgba(139, 92, 246, 0.42);
}

.catalog,
.how {
  padding-block: 58px 84px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 760px;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  font-weight: 650;
  line-height: 1.08;
}

.section-heading p {
  max-width: 390px;
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.product-list {
  display: grid;
  gap: 10px;
}

.product-row {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(
    100deg,
    rgba(16, 20, 31, 0.84),
    rgba(10, 13, 22, 0.72)
  );
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition:
    border-color 130ms ease,
    background-color 130ms ease;
}

.product-row:hover,
.product-row[open] {
  border-color: rgba(167, 139, 250, 0.46);
}

.product-row summary {
  display: grid;
  grid-template-columns: minmax(130px, 0.36fr) minmax(250px, 1fr) auto;
  align-items: center;
  min-height: 80px;
  padding: 0.8rem 1.6rem;
  list-style: none;
  cursor: pointer;
}

.product-row summary::-webkit-details-marker {
  display: none;
}

.product-code {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.product-summary {
  position: relative;
  padding-left: 1.75rem;
  color: var(--muted-strong);
  font-size: 0.96rem;
}

.product-summary::before {
  content: "";
  position: absolute;
  top: 50%;
  bottom: auto;
  left: 0;
  width: 1px;
  height: 28px;
  background: var(--edge);
  transform: translateY(-50%);
}

.disclosure {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--violet-bright);
  font-size: 0.88rem;
  font-weight: 600;
}

.disclosure svg {
  transition: transform 130ms ease;
}

.product-row[open] .disclosure svg {
  transform: rotate(90deg);
}

.product-row > p {
  max-width: 820px;
  margin: -0.1rem 1.6rem 1.35rem;
  padding: 1rem 0 0 1.75rem;
  border-top: 1px solid rgba(159, 168, 196, 0.13);
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin: 3.2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  min-width: 0;
}

.steps li + li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: calc(-2.5rem - 24px);
  width: clamp(1.5rem, 4vw, 3rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.55));
}

.step-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--violet);
  border-radius: 50%;
  color: var(--violet-bright);
  background: rgba(139, 92, 246, 0.08);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.12);
}

.steps h3 {
  margin: 0.25rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.07rem;
  line-height: 1.25;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 132px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 2rem;
  font-size: 0.86rem;
}

.login-page {
  min-height: 100vh;
}

.login-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  top: 16vh;
  right: -11rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 7rem rgba(139, 92, 246, 0.018),
    0 0 0 14rem rgba(139, 92, 246, 0.012);
}

.login-header {
  grid-template-columns: 1fr auto;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.login-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
  gap: clamp(4rem, 10vw, 9rem);
  align-items: center;
  min-height: calc(100vh - 89px);
  padding-block: 70px 100px;
}

.login-copy {
  max-width: 590px;
}

.login-copy h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 680;
  line-height: 1;
}

.login-copy > p {
  max-width: 530px;
  margin: 1.8rem 0 3.5rem;
  color: var(--muted-strong);
  font-size: 1.08rem;
}

.invite-note {
  max-width: 530px;
  padding-top: 1.4rem;
  border-top: 1px solid var(--edge-violet);
}

.invite-note h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
}

.invite-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-panel {
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid rgba(159, 168, 196, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(150deg, rgba(20, 24, 37, 0.96), rgba(10, 13, 22, 0.94));
  box-shadow: var(--shadow);
}

[hidden] {
  display: none !important;
}

.account-main {
  max-width: 760px;
  padding-block: clamp(2.5rem, 7vw, 5rem) 5rem;
}

.account-heading {
  margin-bottom: 2rem;
}

.account-heading h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
}

.account-heading p,
.account-details dt {
  color: var(--muted);
}

.account-profile h2 {
  margin-top: 1.5rem;
  overflow-wrap: anywhere;
}

.account-details {
  display: grid;
  gap: 1.2rem;
  margin-block: 1.5rem 0;
}

.account-details dt {
  font-size: 0.9rem;
}

.account-details dd {
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.account-actions > :not([hidden]) {
  margin-top: 1.25rem;
}

.account-modules {
  max-width: none;
  margin-top: 2rem;
}

.auth-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding: 0.3rem;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: rgba(5, 7, 13, 0.52);
}

.auth-mode {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  color: var(--muted-strong);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.auth-mode[aria-pressed="true"] {
  color: #fff;
  background: rgba(109, 59, 234, 0.34);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.32);
}

.auth-mode:disabled {
  cursor: wait;
  opacity: 0.58;
}

.field + .field {
  margin-top: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted-strong);
  font-size: 0.85rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(159, 168, 196, 0.28);
  border-radius: 9px;
  outline: 0;
  color: var(--text);
  background: rgba(5, 7, 13, 0.66);
  font-size: 1rem;
  transition:
    border-color 130ms ease,
    box-shadow 130ms ease;
}

.field input:hover {
  border-color: rgba(167, 139, 250, 0.48);
}

.field input:focus {
  border-color: var(--violet-bright);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.field input:disabled {
  opacity: 0.62;
}

.login-submit {
  width: 100%;
  margin-top: 1.5rem;
}

.flow-note {
  margin: 0 0 1.25rem;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.login-status {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--edge);
}

.login-status p,
.noscript-note {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.text-button {
  margin-top: 0.65rem;
  padding: 0;
  border: 0;
  color: var(--violet-bright);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

.text-button:hover {
  color: #c4b5fd;
}

.noscript-note {
  margin-top: 1rem;
  color: #f3c98b;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 88px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .ecosystem {
    width: min(100%, 610px);
    min-height: 460px;
    margin: 32px auto 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .steps {
    gap: 2.25rem;
  }

  .steps li + li::before {
    display: none;
  }

  .login-main {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: start;
    padding-top: 80px;
  }

  .login-copy {
    max-width: 720px;
  }

  .login-copy > p {
    margin-bottom: 2rem;
  }

  .login-panel {
    width: min(100%, 540px);
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 74px;
  }

  .site-nav {
    display: none;
  }

  .wordmark {
    gap: 0.5rem;
  }

  .wordmark-section {
    font-size: 0.84rem;
  }

  .site-header .button-quiet {
    min-height: 38px;
    padding: 0.55rem 0.9rem;
  }

  .hero {
    min-height: auto;
    padding-block: 68px 58px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .hero-copy > p {
    margin-block: 1.5rem 1.8rem;
  }

  .ecosystem {
    min-height: 370px;
    margin-top: 34px;
  }

  .ecosystem-core {
    width: 96px;
    height: 96px;
    font-size: 0.9rem;
  }

  .module {
    width: 72px;
    height: 62px;
    border-radius: 11px;
    font-size: 0.65rem;
  }

  .module-quasar {
    left: 43%;
  }

  .module-tf {
    left: 2%;
  }

  .module-awg {
    right: -2%;
  }

  .catalog,
  .how {
    padding-block: 44px 60px;
  }

  .section-heading h2 {
    font-size: 2.35rem;
  }

  .product-row summary {
    grid-template-columns: 1fr auto;
    gap: 0.45rem 0.85rem;
    padding: 1rem;
  }

  .product-summary {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0;
    font-size: 0.88rem;
  }

  .product-summary::before {
    display: none;
  }

  .disclosure {
    font-size: 0;
  }

  .disclosure svg {
    width: 1.15rem;
    font-size: 1rem;
  }

  .product-row > p {
    margin-inline: 1rem;
    padding-left: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    margin-top: 2.25rem;
  }

  .site-footer {
    align-items: flex-start;
    min-height: 170px;
    padding-block: 34px;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-end;
  }

  .login-header .home-link {
    font-size: 0;
  }

  .login-header .home-link svg {
    width: 1.35rem;
    font-size: 1rem;
  }

  .login-main {
    gap: 2.75rem;
    min-height: calc(100vh - 75px);
    padding-block: 60px 76px;
  }

  .login-copy h1 {
    font-size: clamp(2.75rem, 15vw, 4.3rem);
  }
}

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

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