:root {
  --bg: #0a0a0b;
  --surface: #1a1a1d;
  --surface-2: #141416;
  --ink: #f5f2eb;
  --muted: #9ca3af;
  --gold: #ffb800;
  --gold-soft: rgba(255, 184, 0, 0.12);
  --gold-line: rgba(255, 184, 0, 0.35);
  --hairline: rgba(245, 242, 235, 0.1);
  --hairline-strong: rgba(255, 184, 0, 0.22);
  --page-pad: clamp(1rem, 2.5vw, 1.75rem);
  --brand-pull: 0.5rem;
  --content-inset: clamp(0.6rem, 1.8vw, 1.1rem);
  --max-page: 1360px;
  --max-legal: 1360px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

/* Full-width page shell */
.container {
  width: 100%;
  max-width: var(--max-page);
  margin: 0 auto;
  padding-inline: var(--page-pad);
}

.container-legal {
  width: 100%;
  max-width: var(--max-legal);
  margin: 0 auto;
  padding-inline: var(--page-pad);
}

/* Header — spans full viewport width */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(18px);
  background: rgba(10, 10, 11, 0.94);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  padding-block: 0.95rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: calc(var(--brand-pull) * -1);
  text-decoration: none;
  flex-shrink: 0;
}

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

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.14);
}

.brand-mark img {
  width: 120%;
  height: 120%;
  object-fit: contain;
}

.brand-word {
  font-size: 1.12rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-gold {
  color: var(--gold);
  font-weight: 800;
}

.brand-sa {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-tm {
  display: inline-block;
  margin-left: 0.08em;
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  vertical-align: super;
  position: relative;
  top: -0.05em;
}

h1 .brand-gold,
h1 .brand-sa {
  font-weight: 800;
}

h1 .brand-sa {
  letter-spacing: 0.04em;
}

h1 .brand-tm {
  font-size: 0.36em;
  top: -0.32em;
  margin-left: 0.06em;
}

/* Nav — separate pills, right side of ribbon */
.nav-pills {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav-pill:hover {
  color: var(--ink);
  border-color: rgba(255, 184, 0, 0.35);
  background: rgba(255, 184, 0, 0.06);
  text-decoration: none;
}

.nav-pill[aria-current="page"] {
  color: var(--gold);
  border-color: var(--gold);
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

/* Hero band — full width */
.hero-band {
  width: 100%;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(255, 184, 0, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 20%, rgba(255, 255, 255, 0.03), transparent 50%),
    var(--bg);
  border-bottom: 1px solid var(--hairline);
}

.hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.hero-layout {
  display: grid;
  gap: clamp(1.75rem, 5vw, 2.5rem);
  align-items: center;
  min-width: 0;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
  }
}

@media (min-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-copy {
  max-width: none;
  min-width: 0;
}

/* Shared content alignment — one vertical line across the page */
.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .lead,
.hero-copy .actions,
.site-footer .footer-grid {
  margin-left: var(--content-inset);
  max-width: calc(100% - var(--content-inset));
  min-width: 0;
}

/* Home platform tiles — equal left/right space, wider balanced row */
.section-head,
.feature-grid,
.support-band .panel-support {
  margin-inline: var(--content-inset);
  max-width: calc(100% - 2 * var(--content-inset));
  min-width: 0;
}

.hero-copy .actions {
  justify-content: flex-start;
  max-width: min(48rem, calc(100% - var(--content-inset)));
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
}

@media (min-width: 900px) {
  .hero-visual {
    justify-content: flex-end;
    min-height: 320px;
  }
}

.hero-glow {
  position: absolute;
  width: min(360px, 80vw);
  height: min(360px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.18), transparent 68%);
  filter: blur(40px);
}

.hero-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 32px;
  background: #000;
  border: 1px solid var(--hairline-strong);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.5),
    0 0 56px rgba(255, 184, 0, 0.1);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero-frame {
    width: min(100%, 340px);
  }
}

.hero-mark-img {
  width: 118%;
  height: 118%;
  object-fit: contain;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--hairline-strong);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.lead {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  line-height: 1.65;
}

@media (min-width: 900px) {
  .lead {
    max-width: 48rem;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: filter 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  color: #111;
  background: linear-gradient(180deg, #ffc933, var(--gold));
  box-shadow: 0 6px 24px rgba(255, 184, 0, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--hairline);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: var(--hairline-strong);
}

/* Platform band — full width */
.platform-band {
  width: 100%;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: rgba(14, 14, 16, 0.65);
  border-bottom: 1px solid var(--hairline);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 1180px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.panel {
  position: relative;
  height: 100%;
  padding: 1.45rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(30, 30, 34, 0.95), rgba(20, 20, 23, 0.98));
  border: 1px solid var(--hairline);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  opacity: 0.75;
}

.panel:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.panel h2,
.panel h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Support band */
.support-band {
  width: 100%;
  padding: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(3rem, 5vw, 4rem);
}

.panel-support {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.07), rgba(26, 26, 29, 0.95));
  border-color: var(--hairline-strong);
}

@media (min-width: 768px) {
  .panel-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.75rem 2rem;
  }

  .panel-support h3 {
    margin: 0;
    flex-shrink: 0;
  }

  .panel-support p {
    margin: 0;
    text-align: right;
    max-width: 36rem;
  }
}

/* Footer — full width */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--hairline);
  padding: 2rem 0 2.5rem;
  background: rgba(8, 8, 9, 0.85);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: center;
    gap: 2rem;
  }
}

.footer-brand p {
  margin: 0.5rem 0 0;
  max-width: 22rem;
  line-height: 1.5;
}

.footer-links-col {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links-col a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.footer-links-col a:hover {
  color: var(--gold);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  line-height: 1.5;
  max-width: 28rem;
}

.footer-meta a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--gold);
}

.footer-contacts {
  display: block;
}

.footer-sep {
  margin: 0 0.35rem;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .footer-meta {
    text-align: right;
    max-width: 32rem;
    margin-left: auto;
  }
}

/* Legal pages — wider, full-width shell */
.legal-band {
  width: 100%;
  min-height: calc(100vh - 180px);
  padding: clamp(2.5rem, 4vw, 3.5rem) 0 4rem;
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(255, 184, 0, 0.06), transparent 50%),
    var(--bg);
}

.legal {
  padding: 0;
  margin-inline: var(--content-inset);
  max-width: calc(100% - 2 * var(--content-inset));
  min-width: 0;
}

.legal .meta {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1rem;
  color: var(--ink);
}

.toc {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(26, 26, 29, 0.9);
  border: 1px solid var(--hairline);
}

.toc strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.15rem;
  columns: 1;
}

@media (min-width: 640px) {
  .toc ol {
    columns: 2;
    column-gap: 2rem;
  }
}

.toc li {
  break-inside: avoid;
  margin: 0.25rem 0;
  font-size: 0.88rem;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--gold);
}

.legal p,
.legal li {
  color: var(--muted);
  overflow-wrap: break-word;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin: 0.35rem 0;
}

.note {
  margin: 1.25rem 0;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border: 1px solid rgba(255, 184, 0, 0.28);
  color: var(--ink);
  font-size: 0.92rem;
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  line-height: 1.5;
  max-width: 32rem;
}

.legal-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.legal-footer a:hover {
  color: var(--gold);
}

@media (max-width: 899px) {
  .hero-visual {
    order: -1;
  }

  .hero-frame {
    width: min(220px, 72vw);
  }
}

@media (max-width: 480px) {
  .nav-pill {
    min-height: 32px;
    padding: 0.32rem 0.65rem;
    font-size: 0.76rem;
  }

  .nav-pills {
    gap: 0.35rem;
  }

  .brand-word {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .eyebrow {
    letter-spacing: 0.1em;
  }
}
