:root {
  color-scheme: dark;
  --bg: #050506;
  --panel: rgba(14,16,21,.72);
  --panel-solid: #0d1015;
  --line: rgba(255,255,255,.1);
  --text: #f3f5f7;
  --muted: #8e98a5;
  --blue: #62a6ff;
  --violet: #bd85ff;
  --mint: #69e8c0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }
html { overflow-y: scroll; scrollbar-gutter: stable; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 28%, rgba(89,80,230,.13), transparent 28%),
    radial-gradient(circle at 34% 80%, rgba(21,134,173,.08), transparent 32%),
    var(--bg);
}

a { color: inherit; }
button, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.partner-shell {
  width: min(1480px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.partner-header {
  position: relative;
  left: 50%;
  width: min(calc(100vw - 48px), 1204px);
  min-height: 72px;
  margin-inline: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
}

.partner-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 17px;
  font-weight: 720;
  text-decoration: none;
}

.partner-brand img { width: 28px; height: 28px; object-fit: contain; }

.partner-header nav { display: flex; align-items: center; gap: 30px; }
.partner-header nav a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.partner-header nav a:hover { color: var(--text); }

.partner-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.language-control select, .theme-control {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.035);
}
.language-control select { padding: 0 29px 0 14px; cursor: pointer; }
.language-control option { color: #111; }
.theme-control { width: 38px; display: grid; place-items: center; padding: 0; cursor: pointer; }
.theme-control svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

main { display: grid; align-content: center; gap: 28px; padding: 64px 0 52px; }

.partner-hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 72px;
}

.partner-copy { max-width: 760px; }
.partner-kicker { display: flex; align-items: center; gap: 10px; color: #cbb1ef; font-size: 13px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 18px rgba(189,133,255,.9); }
h1 { max-width: 780px; margin: 26px 0 24px; font-size: clamp(58px, 7.5vw, 112px); font-weight: 650; letter-spacing: -.065em; line-height: .9; }
.gradient { color: transparent; background: linear-gradient(100deg, #8bc4ff 8%, #ba8aff 58%, #71e6c4); background-clip: text; -webkit-background-clip: text; }
.partner-copy > p { max-width: 660px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.45vw, 22px); line-height: 1.55; }

.coming-soon { width: fit-content; margin-top: 34px; display: grid; gap: 5px; padding: 14px 18px; border: 1px solid rgba(189,133,255,.22); border-radius: 14px; background: rgba(117,74,162,.08); }
.coming-soon > span { font-size: 15px; font-weight: 720; }
.coming-soon small { color: var(--muted); font-size: 13px; }

.partner-visual { position: relative; min-height: 420px; display: grid; place-items: center; isolation: isolate; }
.partner-visual::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(112,92,229,.28), rgba(21,24,45,.05) 54%, transparent 70%); filter: blur(12px); }
.visual-core { position: relative; z-index: 3; width: 152px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(167,184,255,.3); border-radius: 42px; background: linear-gradient(145deg, rgba(42,48,79,.96), rgba(15,17,27,.98)); box-shadow: 0 30px 90px rgba(18,14,65,.55), inset 0 1px rgba(255,255,255,.12); }
.visual-core img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(75,74,228,.42)); }
.orbit { position: absolute; width: 76%; height: 46%; border: 1px solid rgba(133,148,220,.28); border-radius: 50%; transform: rotate(18deg); }
.orbit-b { width: 64%; height: 72%; transform: rotate(-54deg); }
.node { position: absolute; z-index: 2; width: 14px; height: 14px; border: 3px solid #0b0d13; border-radius: 50%; box-shadow: 0 0 22px currentColor; }
.node-a { top: 24%; right: 17%; color: var(--blue); background: currentColor; }
.node-b { bottom: 22%; right: 26%; color: var(--mint); background: currentColor; }
.node-c { top: 42%; left: 14%; color: var(--violet); background: currentColor; }

.partner-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.partner-paths article { min-height: 164px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); backdrop-filter: blur(16px); }
.partner-paths article > span { color: #73808f; font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.partner-paths h2 { margin: 24px 0 9px; font-size: 18px; }
.partner-paths p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #687381; font-size: 12px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

html[data-theme="light"] { color-scheme: light; --bg: #f2f0eb; --panel: rgba(255,255,255,.6); --panel-solid: #fff; --line: rgba(30,34,40,.12); --text: #171a1f; --muted: #69717c; }
html[data-theme="light"] body { background: radial-gradient(circle at 72% 28%, rgba(123,99,215,.13), transparent 30%), var(--bg); }
html[data-theme="light"] .language-control select, html[data-theme="light"] .theme-control { background: rgba(255,255,255,.55); }
html[data-theme="light"] .visual-core { background: linear-gradient(145deg, #edf0ff, #dfe4f8); }

@media (max-width: 900px) {
  .partner-shell { width: min(100% - 28px, 720px); }
  .partner-header { width: min(calc(100vw - 24px), 1204px); min-height: 64px; grid-template-columns: 1fr auto; }
  .partner-header nav { display: none; }
  main { padding-top: 42px; }
  .partner-hero { min-height: auto; grid-template-columns: 1fr; gap: 18px; }
  .partner-visual { min-height: 310px; order: -1; }
  .visual-core { width: 126px; border-radius: 34px; }
  .partner-paths { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .partner-shell { width: calc(100% - 24px); }
  .partner-header { width: min(calc(100vw - 20px), 1204px); min-height: 60px; }
  .partner-brand span { display: none; }
  main { padding: 28px 0 34px; }
  .partner-visual { min-height: 250px; }
  h1 { margin-top: 20px; font-size: clamp(48px, 16vw, 72px); }
  .coming-soon { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
