:root {
  --bg: #050b19;
  --bg-soft: #09142c;
  --surface: rgba(15, 29, 60, 0.78);
  --surface-solid: #0d1a36;
  --surface-light: #122448;
  --text: #f7f9ff;
  --muted: #aebbd7;
  --muted-strong: #cad4e9;
  --line: rgba(174, 194, 235, 0.16);
  --blue: #3c8cff;
  --blue-bright: #66a7ff;
  --violet: #9b5cff;
  --cyan: #40d9ff;
  --green: #47e5ac;
  --gold: #ffc85a;
  --danger: #ff6c89;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% -4%, rgba(63, 126, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 96% 12%, rgba(155, 92, 255, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

::selection {
  background: rgba(64, 217, 255, 0.28);
  color: #ffffff;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  color: #071127;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 25, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(102, 167, 255, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(60, 140, 255, 0.26), rgba(155, 92, 255, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.brand strong {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.75rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.top-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.top-nav a:hover {
  color: var(--text);
}

.top-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(60, 140, 255, 0.34), rgba(155, 92, 255, 0.28));
  box-shadow: inset 0 0 0 1px rgba(139, 185, 255, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 74px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 160, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 160, 230, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.hero h1,
.legal-hero h1 {
  margin: 18px 0 22px;
  max-width: 850px;
  font-size: clamp(3rem, 7vw, 6.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan), #b978ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 16px 40px rgba(81, 105, 255, 0.25);
}

.button-primary:hover {
  box-shadow: 0 20px 52px rgba(81, 105, 255, 0.36);
}

.button-secondary {
  border-color: rgba(160, 185, 235, 0.22);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(102, 167, 255, 0.5);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-row i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(71, 229, 172, 0.8);
}

.hero-visual {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-one {
  width: 270px;
  height: 270px;
  background: rgba(49, 124, 255, 0.22);
  box-shadow: 0 0 100px rgba(49, 124, 255, 0.28);
}

.orb-two {
  width: 180px;
  height: 180px;
  right: 8%;
  bottom: 5%;
  background: rgba(164, 83, 255, 0.2);
  box-shadow: 0 0 80px rgba(164, 83, 255, 0.25);
}

.puzzle-card {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  padding: 24px;
  border: 1px solid rgba(164, 190, 240, 0.2);
  border-radius: 32px;
  background:
    linear-gradient(150deg, rgba(18, 38, 77, 0.94), rgba(9, 18, 39, 0.94));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotate(2deg);
}

.puzzle-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: 23px;
  box-shadow: 0 0 0 1px rgba(102, 167, 255, 0.08);
}

.puzzle-top,
.puzzle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.puzzle-top {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.mini-pill {
  padding: 6px 10px;
  border: 1px solid rgba(64, 217, 255, 0.2);
  border-radius: 999px;
  background: rgba(64, 217, 255, 0.08);
  color: var(--cyan);
  font-size: 0.64rem;
}

.arrow-grid {
  min-height: 290px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  gap: 18px;
  padding: 22px 4px;
  background-image: radial-gradient(circle, rgba(164, 190, 240, 0.28) 1px, transparent 1.2px);
  background-size: 20px 20px;
}

.arrow {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(154, 181, 235, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: #d9e7ff;
  font-size: 1.55rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.a2,
.a6 {
  color: var(--cyan);
}

.a4,
.a8 {
  color: #c291ff;
}

.a5 {
  border-color: rgba(71, 229, 172, 0.38);
  color: var(--green);
  box-shadow: 0 0 26px rgba(71, 229, 172, 0.12);
}

.puzzle-footer {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.puzzle-footer strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(71, 229, 172, 0.12);
  color: var(--green);
}

.section {
  padding: 84px 0;
}

.section-muted {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11, 23, 50, 0.6), rgba(7, 15, 33, 0.76));
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.trust-grid h2,
.contact-card h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.document-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(17, 34, 70, 0.88), rgba(9, 19, 41, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.document-card::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: rgba(60, 140, 255, 0.12);
  filter: blur(2px);
}

.document-card:nth-child(2)::before {
  background: rgba(155, 92, 255, 0.14);
}

.document-card:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 167, 255, 0.36);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 17px;
  font-size: 1.2rem;
}

.shield-icon {
  background: rgba(64, 217, 255, 0.11);
  color: var(--cyan);
}

.rules-icon {
  background: rgba(155, 92, 255, 0.12);
  color: #bd88ff;
}

.card-kicker {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.document-card h3 {
  margin: 8px 0 12px;
  font-size: 1.65rem;
}

.document-card p {
  max-width: 520px;
  margin: 0 0 26px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-bright);
  font-weight: 850;
  text-decoration: none;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.trust-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 70px;
  align-items: start;
}

.trust-list {
  display: grid;
  gap: 14px;
}

.trust-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.trust-item > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(60, 140, 255, 0.1);
  color: var(--blue-bright);
  font-size: 0.74rem;
  font-weight: 900;
}

.trust-item h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.contact-section {
  padding-top: 70px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 38px;
  border: 1px solid rgba(102, 167, 255, 0.22);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 10%, rgba(155, 92, 255, 0.18), transparent 20rem),
    linear-gradient(140deg, rgba(19, 41, 85, 0.86), rgba(9, 19, 41, 0.92));
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin-bottom: 8px;
}

.site-footer {
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  background: #040914;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-inner strong {
  font-size: 0.95rem;
}

.footer-inner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue-bright);
}

.footer-inner .copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Legal pages */
.legal-hero {
  padding: 76px 0 52px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 10%, rgba(60, 140, 255, 0.16), transparent 28rem),
    linear-gradient(180deg, rgba(10, 22, 48, 0.7), transparent);
}

.legal-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.legal-lead {
  max-width: 780px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.08rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.legal-meta span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  padding-block: 56px 90px;
}

.toc-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 2px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(11, 24, 52, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.toc-card strong {
  padding: 7px 9px 12px;
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.toc-card a {
  padding: 8px 9px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.toc-card a:hover {
  color: var(--text);
  background: rgba(60, 140, 255, 0.09);
}

.legal-content {
  min-width: 0;
  max-width: 820px;
}

.notice {
  margin-bottom: 34px;
  padding: 22px 24px;
  border: 1px solid rgba(64, 217, 255, 0.24);
  border-left: 4px solid var(--cyan);
  border-radius: 16px;
  background: rgba(64, 217, 255, 0.055);
}

.notice strong {
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notice p {
  margin: 8px 0 0;
  color: var(--muted-strong);
}

.legal-content section {
  scroll-margin-top: 100px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content section:first-of-type {
  padding-top: 4px;
}

.legal-content h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  margin: 24px 0 10px;
  color: #e9efff;
  font-size: 1.05rem;
}

.legal-content p {
  margin: 0 0 16px;
  color: var(--muted-strong);
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  margin: 14px 0 18px;
  padding-left: 22px;
  color: var(--muted-strong);
}

.legal-content li {
  margin: 8px 0;
  padding-left: 5px;
}

.legal-content li::marker {
  color: var(--blue-bright);
}

.legal-content a:not(.button) {
  color: var(--blue-bright);
  text-underline-offset: 3px;
}

.link-panel {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.link-panel a {
  width: fit-content;
  font-size: 0.88rem;
  font-weight: 750;
}

.contact-details {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.contact-details p {
  margin: 7px 0;
}

.legal-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(60, 140, 255, 0.09), rgba(155, 92, 255, 0.07));
}

.legal-end p {
  margin: 0;
  color: var(--muted);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0 24px;
}

.rule-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.rule-card > span {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.rule-card h3 {
  margin: 7px 0 6px;
}

.rule-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy > p {
    margin-inline: auto;
  }

  .hero-actions,
  .status-row {
    justify-content: center;
  }

  .hero-visual {
    min-height: 420px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .toc-card {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc-card strong {
    grid-column: 1 / -1;
  }

  .legal-content {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .top-nav {
    gap: 2px;
    padding: 3px;
  }

  .top-nav a {
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .hero {
    padding: 66px 0 54px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
  }

  .hero-visual {
    min-height: 370px;
  }

  .puzzle-card {
    width: min(92%, 360px);
    padding: 20px;
  }

  .arrow-grid {
    min-height: 250px;
  }

  .arrow {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .section {
    padding: 62px 0;
  }

  .document-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .document-card {
    min-height: 0;
  }

  .contact-card,
  .legal-end {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-inner .copyright {
    grid-column: auto;
  }

  .legal-hero {
    padding: 58px 0 40px;
  }

  .legal-meta {
    gap: 7px;
  }

  .legal-layout {
    padding-block: 34px 70px;
  }

  .toc-card {
    grid-template-columns: 1fr;
  }

  .toc-card strong {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 12px;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
  }

  .top-nav a {
    flex: 1 0 auto;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .contact-card .button {
    width: 100%;
  }

  .status-row {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }

  .hero-visual {
    min-height: 335px;
  }

  .puzzle-card {
    transform: none;
  }

  .arrow-grid {
    min-height: 225px;
    gap: 10px;
  }

  .arrow {
    width: 44px;
    height: 44px;
  }

  .document-card,
  .contact-card {
    padding: 24px;
    border-radius: 22px;
  }

  .trust-item {
    grid-template-columns: 1fr;
  }

  .legal-content section {
    padding: 27px 0;
  }

  .notice,
  .contact-details,
  .legal-end {
    padding: 20px;
  }
}

@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;
  }
}
