:root {
  color-scheme: dark;
  --bg: #020711;
  --surface: rgba(7, 17, 31, .78);
  --surface-soft: rgba(36, 216, 255, .08);
  --border: rgba(36, 216, 255, .24);
  --cyan: #24d8ff;
  --cyan-strong: #2eefff;
  --blue: #126dff;
  --violet: #8a5aff;
  --text: #f5f9ff;
  --muted: #9db1c7;
  --soft: #d7f8ff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 36, 75, .98) 0%, var(--bg) 52%, #000 100%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 20px 32px;
  display: flex;
  flex-direction: column;
}

.home-shell {
  width: min(100%, 960px);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header {
  min-height: 46px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 14px rgba(36, 216, 255, .35));
}

.brand-x {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan-strong) 0%, #18c8ff 42%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(36, 216, 255, .28);
}

.brand-rest {
  color: var(--text);
  text-shadow: 0 0 18px rgba(255, 255, 255, .14);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(157, 177, 199, .22);
  border-radius: 999px;
  background: rgba(2, 7, 17, .48);
}

.language-switch button {
  min-width: 42px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.language-switch button.is-active {
  background: rgba(36, 216, 255, .16);
  color: var(--text);
}

.hero-main,
.content-main,
.legal-main {
  flex: 1;
  width: 100%;
  margin: 0 auto;
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 0 54px;
  text-align: center;
}

.content-main {
  max-width: 920px;
  padding: 54px 0 42px;
  text-align: center;
}

.legal-main {
  max-width: 860px;
  padding: 58px 0 42px;
}

.hero-logo {
  width: clamp(132px, 22vw, 190px);
  height: clamp(132px, 22vw, 190px);
  filter: drop-shadow(0 0 24px rgba(36, 216, 255, .35));
}

.hero-logo.compact {
  width: 118px;
  height: 118px;
}

.eyebrow {
  margin: 22px 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-main h1 span {
  display: block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan-strong), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(36, 216, 255, .35);
  border-radius: 999px;
  background: rgba(36, 216, 255, .1);
  color: var(--text);
  font-weight: 700;
}

.button:hover {
  background: rgba(36, 216, 255, .16);
  text-decoration: none;
}

.button-muted {
  border-color: rgba(157, 177, 199, .25);
  background: rgba(157, 177, 199, .08);
  color: var(--soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
  text-align: left;
}

.card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: 0;
}

code {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--soft);
  background: var(--surface-soft);
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
}

.fine-print {
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.legal-main h1 {
  font-size: clamp(40px, 6vw, 68px);
}

.policy-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(157, 177, 199, .18);
}

.policy-section h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: 0;
}

.policy-section p,
.policy-section li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.policy-section p {
  margin: 12px 0 0;
}

.policy-section ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.policy-section li + li {
  margin-top: 8px;
}

.site-footer {
  padding-top: 24px;
  border-top: 1px solid rgba(157, 177, 199, .16);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 16px 28px;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-main {
    padding: 56px 0 42px;
  }

  .content-main,
  .legal-main {
    padding: 42px 0 34px;
  }

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

  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
