:root {
  color-scheme: dark;
  --bg: #090a0c;
  --text: #f1f6ff;
  --muted: #aab6c7;
  --line: rgba(74, 83, 100, 0.46);
  --panel: rgba(18, 23, 31, 0.76);
  --panel-strong: rgba(22, 27, 36, 0.9);
  --blue: #225981;
  --blue-dark: #78d6ff;
  --cyan: #66d4ff;
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px circle at -10% 8%, rgba(28, 46, 76, 0.75) 0%, transparent 82%),
    radial-gradient(900px circle at 115% 90%, rgba(40, 26, 63, 0.6) 0%, transparent 58%),
    linear-gradient(180deg, #090a0c 0%, #0b0d11 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.08), rgba(6, 8, 12, 0.5)),
    radial-gradient(circle at top, rgba(120, 188, 255, 0.06), transparent 38%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.44), transparent 88%);
  opacity: 0.32;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.82;
}

.page {
  position: relative;
  z-index: 3;
  min-height: 100vh;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='1200' height='780' viewBox='0 0 1200 780' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.72'%3E%3Cpath d='M112 156L238 92L384 178L546 126L702 214L864 128L1044 206' stroke='%2340BCFF' stroke-opacity='0.28'/%3E%3Cpath d='M154 426L318 342L488 438L650 328L842 412L1040 336' stroke='%2340BCFF' stroke-opacity='0.22'/%3E%3Cpath d='M224 644L382 536L544 628L724 516L902 610L1088 494' stroke='%2340BCFF' stroke-opacity='0.18'/%3E%3Cpath d='M238 92L318 342L384 178L488 438L546 126L650 328L702 214L842 412L864 128L1040 336L1044 206' stroke='%2376D0FF' stroke-opacity='0.12'/%3E%3Cpath d='M318 342L382 536L488 438L544 628L650 328L724 516L842 412L902 610L1040 336L1088 494' stroke='%2376D0FF' stroke-opacity='0.1'/%3E%3Ccircle cx='112' cy='156' r='4' fill='%2376D0FF' fill-opacity='0.78'/%3E%3Ccircle cx='238' cy='92' r='5' fill='%2376D0FF' fill-opacity='0.86'/%3E%3Ccircle cx='384' cy='178' r='4' fill='%2376D0FF' fill-opacity='0.72'/%3E%3Ccircle cx='546' cy='126' r='6' fill='%2376D0FF' fill-opacity='0.8'/%3E%3Ccircle cx='702' cy='214' r='4' fill='%2376D0FF' fill-opacity='0.82'/%3E%3Ccircle cx='864' cy='128' r='5' fill='%2376D0FF' fill-opacity='0.72'/%3E%3Ccircle cx='1044' cy='206' r='4' fill='%2376D0FF' fill-opacity='0.78'/%3E%3Ccircle cx='154' cy='426' r='4' fill='%2376D0FF' fill-opacity='0.64'/%3E%3Ccircle cx='318' cy='342' r='6' fill='%2376D0FF' fill-opacity='0.82'/%3E%3Ccircle cx='488' cy='438' r='5' fill='%2376D0FF' fill-opacity='0.78'/%3E%3Ccircle cx='650' cy='328' r='4' fill='%2376D0FF' fill-opacity='0.74'/%3E%3Ccircle cx='842' cy='412' r='6' fill='%2376D0FF' fill-opacity='0.72'/%3E%3Ccircle cx='1040' cy='336' r='5' fill='%2376D0FF' fill-opacity='0.68'/%3E%3Ccircle cx='224' cy='644' r='4' fill='%2376D0FF' fill-opacity='0.58'/%3E%3Ccircle cx='382' cy='536' r='5' fill='%2376D0FF' fill-opacity='0.7'/%3E%3Ccircle cx='544' cy='628' r='4' fill='%2376D0FF' fill-opacity='0.64'/%3E%3Ccircle cx='724' cy='516' r='5' fill='%2376D0FF' fill-opacity='0.68'/%3E%3Ccircle cx='902' cy='610' r='4' fill='%2376D0FF' fill-opacity='0.6'/%3E%3Ccircle cx='1088' cy='494' r='5' fill='%2376D0FF' fill-opacity='0.66'/%3E%3C/g%3E%3C/svg%3E");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: min(72vw, 1180px) auto;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.26) 26%, rgba(0, 0, 0, 0.76) 100%);
  opacity: 0.5;
}

.page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 10, 12, 0.54) 0%, rgba(9, 10, 12, 0.34) 55%, rgba(9, 10, 12, 0.16) 100%),
    radial-gradient(600px circle at 22% 28%, rgba(79, 163, 255, 0.08), transparent 62%);
}

.nav,
.hero,
.footer {
  position: relative;
  z-index: 2;
}

.nav,
.hero-top,
.options-grid,
.footer {
  animation: pageIntro 2200ms ease-out both;
}

.hero-top {
  animation-delay: 220ms;
}

.options-grid {
  animation-delay: 440ms;
}

.footer {
  animation-delay: 640ms;
}

@keyframes pageIntro {
  from {
    opacity: 0;
    transform: scale(0.965) translateY(18px);
  }

  58% {
    opacity: 0.78;
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px clamp(18px, 5vw, 64px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(1.12) contrast(1.05);
}

.tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(43, 49, 59, 0.82), rgba(35, 40, 49, 0.82));
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.tab:hover {
  border-color: rgba(102, 212, 255, 0.34);
  color: var(--text);
}

.active-tab {
  border-color: rgba(102, 212, 255, 0.44);
  color: #f5fbff;
  background: linear-gradient(180deg, rgba(34, 89, 129, 0.92), rgba(24, 63, 93, 0.9));
}

.login-tab {
  margin-left: auto;
}

.account-menu {
  position: relative;
  margin-left: auto;
}

.account-menu .login-tab {
  margin-left: 0;
}

.account-menu-button {
  gap: 8px;
  cursor: pointer;
  font: inherit;
}

.account-menu-caret {
  color: var(--cyan);
  font-size: 12px;
}

.account-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 27, 36, 0.98), rgba(14, 18, 25, 0.98));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.account-menu-list a,
.account-menu-list button {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu-list a:hover,
.account-menu-list button:hover {
  color: var(--text);
  background: rgba(102, 212, 255, 0.1);
}

.hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 9vw, 118px) 0 70px;
}

.hero-content {
  max-width: 650px;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 11px;
  border: 1px solid rgba(102, 212, 255, 0.28);
  border-radius: 999px;
  color: #b8eaff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
}

.protocol-dots {
  display: inline-flex;
  gap: 3px;
}

.protocol-dots span {
  animation: protocolDotPulse 1200ms ease-in-out infinite;
}

.protocol-dots span:nth-child(2) {
  animation-delay: 160ms;
}

.protocol-dots span:nth-child(3) {
  animation-delay: 320ms;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes protocolDotPulse {
  0%,
  70%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.94;
  letter-spacing: 0;
  max-width: 780px;
}

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  max-width: 620px;
}

.typewriter-enabled .lead[data-typewriter] {
  visibility: hidden;
}

.typewriter-enabled .lead[data-typewriter].is-typing,
.typewriter-enabled .lead[data-typewriter].typing-done {
  visibility: visible;
}

.lead[data-typewriter].is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: var(--cyan);
  vertical-align: -0.12em;
  animation: typeCursorBlink 900ms steps(1) infinite;
}

@keyframes typeCursorBlink {
  50% {
    opacity: 0;
  }
}

.stats-panel {
  padding: 24px;
  border: 1px solid rgba(159, 222, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(102, 212, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(20, 27, 38, 0.48), rgba(10, 14, 22, 0.34));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 56px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.stats-eyebrow {
  margin: 0 0 6px;
  color: #b8eaff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.stats-panel h2 {
  margin: 0;
  font-size: 24px;
}

.stats-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.online-dot {
  position: relative;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #45ff8a;
  box-shadow:
    0 0 0 3px rgba(69, 255, 138, 0.12),
    0 0 18px rgba(69, 255, 138, 0.58);
}

.online-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(69, 255, 138, 0.38);
  animation: onlinePulse 1600ms ease-out infinite;
}

@keyframes onlinePulse {
  from {
    opacity: 0.75;
    transform: scale(0.72);
  }

  to {
    opacity: 0;
    transform: scale(1.55);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.stat-item {
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(159, 222, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(31, 38, 50, 0.34), rgba(20, 25, 34, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.stat-value {
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.option-actions {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  color: #f5fbff;
  background: linear-gradient(180deg, #225981, #183f5d);
  border-color: rgba(95, 168, 225, 0.44);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.button.secondary {
  color: #d7e8f5;
  background: linear-gradient(180deg, rgba(43, 49, 59, 0.92), rgba(35, 40, 49, 0.92));
  border-color: var(--line);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 58px;
  max-width: 980px;
}

.option-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid rgba(159, 222, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 34%),
    radial-gradient(circle at top right, rgba(79, 163, 255, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(22, 27, 36, 0.44), rgba(18, 23, 31, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 24px 56px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px) saturate(1.24);
  -webkit-backdrop-filter: blur(22px) saturate(1.24);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.option-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.option-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
  max-width: 44rem;
}

.option-card .option-actions {
  margin-top: auto;
  padding-top: 24px;
}

.footer {
  display: flex;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: #d7f3ff;
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .hero-top,
  .options-grid,
  .footer {
    animation: none;
  }

  .typewriter-enabled .lead[data-typewriter] {
    visibility: visible;
  }

  .lead[data-typewriter].is-typing::after {
    display: none;
  }

  .protocol-dots span {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .online-dot::after {
    animation: none;
    opacity: 0;
  }
}

.founder-profile {
  position: relative;
  z-index: 2;
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0 72px;
}

.founder-card {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid rgba(159, 222, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 34%),
    radial-gradient(circle at 50% 0%, rgba(102, 212, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(22, 27, 36, 0.44), rgba(18, 23, 31, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 24px 56px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px) saturate(1.24);
  -webkit-backdrop-filter: blur(22px) saturate(1.24);
}

.founder-portrait {
  display: block;
  width: min(360px, 72vw);
  aspect-ratio: 1023 / 1537;
  height: auto;
  margin: 0 auto 28px;
  border: 1px solid rgba(102, 212, 255, 0.32);
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.founder-copy {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.founder-copy h1 {
  font-size: clamp(42px, 7vw, 68px);
}

.founder-role {
  margin: 12px 0 0;
  color: #b8eaff;
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 700;
}

.founder-bio {
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.72;
  max-width: 680px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.skill-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(159, 222, 255, 0.2);
  border-radius: 999px;
  color: #d7f3ff;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .page::before {
    background-position: center 92px;
    background-size: 1100px auto;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 62%);
    opacity: 0.28;
  }

  .page::after {
    background:
      linear-gradient(180deg, rgba(9, 10, 12, 0.54), rgba(9, 10, 12, 0.82)),
      radial-gradient(520px circle at 50% 14%, rgba(79, 163, 255, 0.12), transparent 68%);
  }

  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
  }

  .brand {
    flex-basis: 100%;
  }

  .login-tab {
    margin-left: 0;
  }

  .account-menu {
    margin-left: 0;
  }

  .account-menu-list {
    left: 0;
    right: auto;
  }

  .hero {
    padding-top: 220px;
  }

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

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .founder-profile {
    padding-top: 118px;
  }
}
