@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Rajdhani:wght@500;600;700&display=swap");

:root {
  --atlas-ui: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --atlas-display: "Rajdhani", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gold: #00d8ff !important;
  --gold2: rgba(0,190,255,.12) !important;
  --atlas-steel: #eef6f9;
  --atlas-steel-mid: #b8c8d1;
  --atlas-steel-muted: #8fa2ad;
  --atlas-amber: #ffb02e;
  --atlas-amber-soft: rgba(255,176,46,.58);
  --atlas-glass: linear-gradient(135deg, rgba(238,246,249,.052), rgba(0,216,255,.02) 46%, rgba(132,157,173,.026));
  --atlas-panel: rgba(2, 7, 9, .8);
  --atlas-line: rgba(136, 223, 244, .22);
  --atlas-line-soft: rgba(210,230,238,.12);
  --atlas-shadow: 0 20px 70px rgba(0,0,0,.38), inset 0 1px 0 rgba(236,248,252,.07);
  --atlas-focus: 0 0 0 1px rgba(0,212,255,.34), 0 0 28px rgba(0,212,255,.11);
  --atlas-scroll-shine: 0px;
  --atlas-chrome-display:
    radial-gradient(ellipse at 14% 20%, rgba(255,255,255,.82) 0%, rgba(255,255,255,.24) 5%, transparent 15%),
    radial-gradient(ellipse at 76% 70%, rgba(181,205,216,.62) 0%, rgba(181,205,216,.18) 8%, transparent 21%),
    radial-gradient(ellipse at 42% 48%, rgba(0,216,255,.14) 0%, transparent 18%),
    linear-gradient(118deg, #d7e4ea 0%, #f5fbfd 12%, #83939c 24%, #c7d6de 36%, #65747d 49%, #f0f7fa 60%, #9dabb4 74%, #e8f1f5 88%, #6b7880 100%);
  --atlas-chrome-compact:
    radial-gradient(ellipse at 18% 30%, rgba(255,255,255,.72) 0%, rgba(255,255,255,.18) 7%, transparent 18%),
    radial-gradient(ellipse at 70% 66%, rgba(170,195,206,.5) 0%, transparent 20%),
    linear-gradient(123deg, #cbd8df 0%, #f4fafc 16%, #7f8f98 31%, #dce7ec 48%, #6f7e86 63%, #eef6f9 81%, #91a0a8 100%);
}

html {
  background: #000;
}

body {
  font-family: var(--atlas-ui) !important;
  color: var(--atlas-steel) !important;
  background:
    radial-gradient(circle at 76% 14%, rgba(0,190,255,.095), transparent 32rem),
    radial-gradient(circle at 18% 86%, rgba(95,145,255,.052), transparent 26rem),
    linear-gradient(180deg, #000 0%, #020607 42%, #000 100%) !important;
}

body::before {
  opacity: .8;
  background-size: 96px 96px !important;
  background-image:
    linear-gradient(rgba(0,216,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,216,255,.026) 1px, transparent 1px) !important;
}

body > * {
  position: relative;
}

h1,
h2,
h3,
.page-title,
.section-title,
.pitch-title,
.panel-title,
.portal-hero h2,
.sfh-title,
.hero-title,
.nav-wordmark,
.brand,
.hub-team-name,
.card-label,
.section-title,
.module b,
.content-card b,
.profile-block b,
.share-link-card b,
.doc h3,
.tile-val,
.stat-value {
  font-family: var(--atlas-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

h1,
h2,
h3,
.hero-title,
.page-title,
.pitch-title,
.portal-hero h2 {
  line-height: 1 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.18), 0 0 22px rgba(218,238,246,.1) !important;
}

h1,
.hero-title,
.page-title,
.pitch-title,
.portal-hero h2 {
  color: var(--atlas-steel) !important;
  background-image: var(--atlas-chrome-display);
  background-size: 170% 150%, 150% 150%, 130% 120%, 240% 100%;
  background-position:
    calc(50% + var(--atlas-scroll-shine)) 48%,
    calc(50% - var(--atlas-scroll-shine)) 52%,
    50% 50%,
    calc(50% + var(--atlas-scroll-shine)) 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(196,232,244,.11));
}

h2,
h3,
.section-title,
.panel-title,
.sfh-title,
.premium-cta-title {
  color: var(--atlas-steel) !important;
  background-image: var(--atlas-chrome-compact);
  background-size: 150% 140%, 130% 130%, 210% 100%;
  background-position:
    calc(48% + var(--atlas-scroll-shine)) 50%,
    calc(52% - var(--atlas-scroll-shine)) 50%,
    calc(50% + var(--atlas-scroll-shine)) 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(196,232,244,.08));
}

h1 span,
h2 span,
h3 span,
.hero-title .gold-line,
.page-title span,
.pitch-title span,
.nav-wordmark span,
.brand span,
.brand span span {
  color: var(--gold) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: 0 0 24px rgba(0,216,255,.2) !important;
}

.stat-value,
.tile-val {
  color: var(--atlas-steel) !important;
  background-image: var(--atlas-chrome-compact);
  background-size: 130% 130%, 130% 130%, 190% 100%;
  background-position:
    calc(50% + var(--atlas-scroll-shine)) 50%,
    calc(50% - var(--atlas-scroll-shine)) 50%,
    calc(50% + var(--atlas-scroll-shine)) 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow,
.page-eyebrow,
.section-label,
.tile-lbl,
.stat-label,
.panel-sub,
label,
th,
.badge,
.status,
.sport-tab,
.sub-tab,
.portal-tab,
.btn,
.btn-outline,
.btn-gold,
.btn-cyan,
.checkout-header,
.promo-label,
.annual-badge,
.live-pill,
.tier-badge,
.prob-mini-btn,
.prob-static-pill,
.ev-control-label,
.hub-stat-head-cell,
.hub-avg-item span,
.module b,
.section-title {
  letter-spacing: 0 !important;
}

nav {
  background: rgba(0, 2, 4, .84) !important;
  border-bottom-color: rgba(126, 231, 255, .16) !important;
  box-shadow: 0 8px 34px rgba(0,0,0,.28);
}

.nav-logo,
.brand img {
  filter: invert(1) drop-shadow(0 0 14px rgba(0,212,255,.24)) drop-shadow(0 0 9px rgba(125,190,255,.2)) !important;
}

.nav-logo.atlas-mascot-mark,
.brand img.atlas-mascot-mark {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(33, 216, 255, .45)) !important;
  transition: filter .22s ease, transform .22s ease;
}

.nav-logo.atlas-mascot-mark:hover,
.brand:hover img.atlas-mascot-mark {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 0 16px rgba(33, 216, 255, .72)) !important;
}

.btn,
.btn-outline,
.btn-gold,
.btn-cyan,
.btn-discord,
.checkout-btn,
.copy-btn,
.promo-btn,
.annual-btn,
.show-password,
.portal-tab,
.sport-tab,
.sub-tab,
.prob-mini-btn,
.prob-line-pill {
  border-radius: 999px !important;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, opacity .16s ease !important;
}

.btn:hover,
.checkout-btn:hover,
.copy-btn:hover,
.promo-btn:hover,
.annual-btn:hover,
.portal-tab:hover,
.sport-tab:hover,
.sub-tab:hover,
.prob-mini-btn:hover,
.prob-line-pill:hover {
  transform: translateY(-1px);
}

.btn-gold,
.checkout-btn,
.annual-btn,
.portal-tab.active,
.prob-mini-btn.active,
.tab-btn.active,
.choice-row input:checked + span,
button.btn-gold,
button[type="submit"].btn-gold,
a.btn-gold {
  background: linear-gradient(135deg, #9ff4ff, #00d8ff 42%, #00a7d8) !important;
  border-color: rgba(121, 237, 255, .9) !important;
  color: #001014 !important;
  box-shadow: 0 0 24px rgba(0,216,255,.2), inset 0 1px 0 rgba(255,255,255,.36);
}

.btn-gold:hover,
.checkout-btn:hover,
.annual-btn:hover,
.portal-tab.active:hover,
.prob-mini-btn.active:hover,
.tab-btn.active:hover,
.choice-row input:checked + span:hover,
button.btn-gold:hover,
button[type="submit"].btn-gold:hover,
a.btn-gold:hover {
  background: linear-gradient(135deg, #c8fbff, #19e2ff 42%, #00b7ea) !important;
  border-color: rgba(180, 250, 255, .95) !important;
  color: #001014 !important;
}

.btn-cyan,
.copy-btn,
.sport-tab.active {
  border-color: rgba(0,212,255,.48) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

input,
textarea,
select {
  border-radius: 8px !important;
  background: rgba(3, 7, 9, .92) !important;
  border-color: rgba(126, 231, 255, .16) !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(0,216,255,.72) !important;
  box-shadow: var(--atlas-focus) !important;
}

.panel,
.login,
.portal-shell,
.module,
.card,
.stat-tile,
.edu-card,
.slip-card,
.hub-team-card,
.hub-avg-cell,
.content-card,
.profile-block,
.share-link-card,
.notice,
.access-required,
.invite-panel,
.step,
.doc,
.table,
.metric-grid,
.data-table,
.document-row,
.empty-state,
.checkout-wrap,
.promo-box,
.annual-upsell,
.social-checkout,
.payout-action,
.final-agreement,
.agreement-box,
.message,
.premium-card,
.feature-card,
.prop-card {
  border-radius: 8px !important;
  border-color: var(--atlas-line) !important;
  background: var(--atlas-glass), var(--atlas-panel) !important;
  box-shadow: var(--atlas-shadow);
}

.dash-grid,
.ev-summary-grid,
.props-grid,
.edu-grid,
.hub-team-grid,
.stats-inner,
.modules,
.steps {
  gap: 10px !important;
  background: transparent !important;
}

.data-table,
table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
}

th,
td,
.prob-row,
.ev-row,
.game-row,
.hub-stat-row,
.document-row {
  border-color: rgba(255,255,255,.075) !important;
}

.hero-badge,
.live-pill,
.badge,
.status,
.tier-badge,
.dir-over,
.dir-under,
.tier-goblin,
.tier-standard,
.tier-demon,
.prob-pill,
.portal-code,
.coming-badge {
  border-radius: 999px !important;
}

.hero-badge,
.page-eyebrow,
.section-label,
.eyebrow,
.section-title,
.page-title span,
.hero-title .gold-line {
  text-shadow: 0 0 26px rgba(0,212,255,.12);
}

.hero-wrap::after,
.page-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: clamp(28px, 7vw, 92px);
  top: clamp(74px, 14vh, 150px);
  width: min(26vw, 310px);
  aspect-ratio: 1;
  background: url("/atlas_logo_transparent.png") center / contain no-repeat;
  opacity: .072;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: invert(1) drop-shadow(0 0 34px rgba(0,216,255,.16));
}

.hero-wrap,
.page-header,
.portal-shell,
.premium-cta,
.checkout-wrap,
.login {
  position: relative;
  overflow: hidden;
}

.hero-wrap::before,
.page-header::before,
.portal-shell::before,
.premium-cta::before,
.checkout-wrap::before,
.login::before {
  content: "";
  position: absolute;
  z-index: 1;
  height: 1px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 50%, rgba(255,240,202,.95) 0 2px, transparent 4px),
    linear-gradient(90deg, transparent 0%, rgba(255,176,46,.12) 8%, var(--atlas-amber-soft) 18%, rgba(238,246,249,.38) 38%, rgba(0,216,255,.16) 64%, transparent 100%);
  box-shadow: 0 0 12px rgba(255,176,46,.42), 0 0 28px rgba(255,176,46,.14);
  opacity: .72;
}

.hero-wrap::before {
  left: clamp(42px, 5vw, 82px);
  top: clamp(112px, 18vh, 186px);
  width: min(46vw, 580px);
}

.page-header::before {
  left: 0;
  top: clamp(70px, 38%, 112px);
  width: min(40vw, 520px);
}

.portal-shell::before {
  left: 22px;
  top: 54px;
  width: min(38vw, 470px);
}

.premium-cta::before,
.checkout-wrap::before,
.login::before {
  left: 24px;
  top: 18px;
  width: min(34vw, 410px);
  opacity: .54;
}

.page-header::after {
  top: 24px;
  right: 20px;
  width: min(20vw, 230px);
  opacity: .052;
}

.hero-wrap .hero {
  position: relative;
  z-index: 1;
}

.hero-logo-bg {
  display: none !important;
}

.atlas-watermark {
  display: none !important;
}

.section,
.props-section,
.features-section,
.discord-band,
.stats-strip {
  border-color: rgba(126, 231, 255, .12) !important;
}

.card-label,
.section-title,
.section-label,
.page-eyebrow,
.eyebrow,
.hub-team-meta,
.tile-lbl,
.stat-label {
  color: var(--atlas-steel-mid) !important;
}

.slip-family-header {
  border-bottom-color: rgba(126, 231, 255, .12) !important;
}

.slip-family-header .sfh-title {
  font-size: 20px !important;
}

.sub-tab.active,
.sport-tab.active {
  border-bottom-color: var(--cyan) !important;
}

footer {
  border-top-color: rgba(126, 231, 255, .16) !important;
}

html.atlas-handoff-pending body > *:not(.atlas-neural-transition) {
  opacity: 0;
  transform: scale(1.012) translateY(8px);
  filter: blur(8px) saturate(1.18);
}

body.atlas-transition-out > *:not(.atlas-neural-transition) {
  opacity: .06;
  transform: scale(.965) translateY(-16px);
  filter: blur(8px) saturate(1.25);
  transition: opacity .68s ease, transform .68s ease, filter .68s ease !important;
}

body.atlas-transition-entering > *:not(.atlas-neural-transition) {
  opacity: 0;
  transform: scale(1.018) translateY(10px);
  filter: blur(8px) saturate(1.2);
}

body.atlas-transition-in > *:not(.atlas-neural-transition) {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity .72s ease, transform .72s ease, filter .72s ease !important;
}

.atlas-neural-transition {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(0,216,255,.2), transparent 20rem),
    radial-gradient(circle at 62% 52%, rgba(210,230,238,.16), transparent 24rem),
    rgba(0, 4, 6, .94);
  transition: opacity .36s ease;
}

.atlas-neural-transition::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,216,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,216,255,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 72%);
}

.atlas-neural-transition.is-active {
  opacity: 1;
  pointer-events: auto;
}

.atlas-neural-transition.is-arriving {
  transition: opacity .72s ease;
}

.atlas-neural-transition canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atlas-transition-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(36vw, 440px);
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(238,246,249,.92), rgba(0,216,255,.9), transparent);
  box-shadow: 0 0 30px rgba(0,216,255,.55), 0 0 70px rgba(238,246,249,.18);
}

.atlas-transition-core::before,
.atlas-transition-core::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #eef6f9;
  box-shadow: 0 0 18px rgba(0,216,255,.9);
}

.atlas-transition-core::before {
  left: 18%;
  transform: translate(-50%, -50%);
}

.atlas-transition-core::after {
  right: 18%;
  transform: translate(50%, -50%);
}

.atlas-transition-label {
  position: absolute;
  left: 50%;
  top: calc(50% + 26px);
  transform: translateX(-50%);
  color: rgba(238,246,249,.78);
  font-family: var(--atlas-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .atlas-neural-transition {
    display: none;
  }
}

@media (max-width: 760px) {
  nav {
    overflow: hidden;
  }

  .nav-links,
  .nav-actions {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar,
  .nav-actions::-webkit-scrollbar {
    display: none;
  }

  .nav-links .btn,
  .nav-actions .btn {
    flex: 0 0 auto;
    padding-left: 14px !important;
    padding-right: 14px !important;
    white-space: nowrap;
  }

  .hero-wrap::after,
  .page-header::after {
    display: none;
  }
}
