:root {
  color-scheme: dark;
  --page: #020713;
  --panel: #06101d;
  --text: #f8fbff;
  --muted: rgba(233, 242, 255, 0.78);
  --line: rgba(255, 255, 255, 0.18);
  --line-soft: rgba(255, 255, 255, 0.1);
  --blue: #67bdff;
  --gold: #ffd66f;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #020713 0%, #081425 46%, #020713 100%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}

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

.portal {
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(2, 8, 17, 0.68);
  padding: 10px 0 12px;
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 14px 38px var(--shadow);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.nav-actions {
  display: inline-flex;
  gap: 10px;
}

.nav-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 18, 34, 0.58);
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.panel {
  position: relative;
  display: grid;
  min-height: calc(100svh - 1px);
  align-items: center;
  overflow: hidden;
  padding: clamp(56px, 8vh, 96px) 24px;
  isolation: isolate;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.panel-intro::before {
  background:
    linear-gradient(135deg, rgba(103, 189, 255, 0.13), transparent 40%),
    linear-gradient(315deg, rgba(255, 214, 111, 0.1), transparent 44%);
}

.panel-story::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    linear-gradient(135deg, rgba(103, 189, 255, 0.08), transparent 46%);
}

.panel-choice::before {
  background:
    linear-gradient(45deg, rgba(103, 189, 255, 0.09), transparent 42%),
    linear-gradient(315deg, rgba(255, 214, 111, 0.12), transparent 46%);
}

.panel-inner {
  display: grid;
  width: min(1180px, 100%);
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
  margin: 0 auto;
}

.intro-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.76fr);
}

.story-grid {
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 0.9fr);
}

.choice-grid {
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 0.95fr);
}

.copy-block {
  display: grid;
  gap: 24px;
}

.intro-copy {
  padding-top: 18px;
}

.eyebrow,
.section-kicker {
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(103, 189, 255, 0.3);
  border-radius: 999px;
  background: rgba(8, 25, 46, 0.48);
  color: #dff2ff;
  padding: 9px 13px;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.45;
  backdrop-filter: blur(18px);
}

.section-kicker {
  border-color: rgba(255, 214, 111, 0.3);
  color: #fff0c4;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.86rem, 6.4vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.mobile-break {
  display: none;
}

.lead {
  max-width: 740px;
  margin: 0;
  color: rgba(239, 247, 255, 0.84);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.95;
}

.visual {
  position: relative;
  width: min(430px, 100%);
  margin: 0;
  justify-self: center;
}

.visual::after {
  content: "";
  position: absolute;
  inset: auto 10% -20px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(22px);
  pointer-events: none;
}

.visual img {
  display: block;
  width: 100%;
  height: min(74svh, 700px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 32px 92px rgba(0, 0, 0, 0.48);
}

.opening-visual img {
  object-position: 50% 48%;
}

.story-visual img {
  object-position: 50% 42%;
}

.choice-visual img {
  object-position: 50% 48%;
}

.choice-copy {
  display: grid;
  gap: 22px;
}

.choice-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 14px;
  align-content: start;
}

.choice-card {
  position: relative;
  display: grid;
  min-height: 172px;
  align-content: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 15, 29, 0.7);
  padding: 22px;
  box-shadow: 0 24px 70px var(--shadow);
  backdrop-filter: blur(20px);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
  scroll-margin-top: 110px;
}

.choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
}

.choice-card.team::before {
  background: linear-gradient(135deg, rgba(17, 135, 255, 0.78), transparent 52%);
}

.choice-card.personal::before {
  background: linear-gradient(135deg, rgba(255, 173, 41, 0.76), transparent 52%);
}

.choice-card span,
.choice-card strong,
.choice-card small {
  position: relative;
}

.choice-kicker {
  color: rgba(235, 246, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.choice-card strong {
  font-size: clamp(1.62rem, 2.35vw, 2.08rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.choice-card small {
  max-width: 310px;
  color: rgba(240, 247, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.72;
}

.choice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(8, 23, 42, 0.8);
}

.proof-strip {
  position: relative;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  flex-wrap: wrap;
  gap: 8px;
  margin: -44px auto 28px;
}

.proof-strip span {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(6, 17, 31, 0.5);
  color: rgba(255, 255, 255, 0.72);
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions a {
    flex: 1 1 auto;
  }

  .intro-grid,
  .story-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    order: 1;
    padding-top: 0;
  }

  .opening-visual {
    order: 2;
  }

  .story-copy,
  .choice-copy {
    order: 2;
  }

  .story-visual,
  .choice-visual {
    order: 1;
  }

  .visual {
    width: min(520px, 100%);
  }

  .choice-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar {
    width: calc(100% - 28px);
    gap: 14px;
    min-height: 0;
    padding-top: 14px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    overflow: hidden;
  }

  .nav-actions a {
    min-height: 36px;
    padding: 0 5px;
    min-width: 0;
    overflow: visible;
    font-size: 0.7rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .panel {
    min-height: auto;
    padding: 34px 14px 62px;
  }

  .panel-intro {
    padding-top: 22px;
  }

  .panel-inner {
    gap: 28px;
  }

  .copy-block {
    gap: 18px;
  }

  .eyebrow,
  .section-kicker {
    max-width: 100%;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.8rem;
    line-height: 1.55;
  }

  h1 {
    width: 100%;
    max-width: 9.8em;
    font-size: clamp(2.02rem, 9vw, 2.42rem);
    line-height: 1.16;
    overflow-wrap: anywhere;
    word-break: normal;
    text-wrap: auto;
  }

  .mobile-break {
    display: block;
  }

  .lead {
    font-size: 1.02rem;
    line-height: 2;
  }

  .visual {
    width: 100%;
  }

  .visual::after {
    inset: auto 12% -14px;
    height: 34px;
    filter: blur(18px);
  }

  .visual img {
    width: 100%;
    height: clamp(330px, 46svh, 430px);
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
  }

  .opening-visual img {
    height: clamp(320px, 43svh, 400px);
    object-position: 50% 50%;
  }

  .story-visual img {
    height: clamp(340px, 47svh, 440px);
    object-position: 50% 44%;
  }

  .choice-visual img {
    height: clamp(310px, 40svh, 390px);
    object-position: 50% 46%;
  }

  .choice-copy {
    gap: 16px;
  }

  .choice-card {
    min-height: 148px;
    gap: 8px;
    padding: 19px;
    scroll-margin-top: 112px;
  }

  .choice-card strong {
    font-size: 1.72rem;
  }

  .choice-card small {
    font-size: 0.93rem;
    line-height: 1.78;
  }

  .proof-strip {
    width: fit-content;
    max-width: calc(100% - 32px);
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
    margin: -32px auto 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    opacity: 0.86;
    backdrop-filter: none;
  }

  .proof-strip::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: translateX(-50%);
  }

  .proof-strip span {
    min-height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 7px;
    color: rgba(241, 247, 255, 0.68);
    font-size: 0.68rem;
    line-height: 1.35;
    white-space: nowrap;
    backdrop-filter: none;
  }

  .proof-strip span:first-child {
    padding-left: 0;
  }

  .proof-strip span:last-child {
    padding-right: 0;
  }

  .proof-strip span + span {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }
}
