:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --ink: #14213d;
  --muted: #5e6c84;
  --line: rgba(20, 33, 61, 0.12);
  --brand-navy: #102545;
  --brand-blue: #2f80ed;
  --brand-gold: #ffb703;
  --shadow: 0 24px 70px rgba(16, 37, 69, 0.14);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(47, 128, 237, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 183, 3, 0.18), transparent 24%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ul {
  margin-top: 0;
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.site-header,
.section,
.site-footer {
  backdrop-filter: blur(16px);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(16, 37, 69, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--brand-gold), #ffd166);
  color: var(--brand-navy);
  font-size: 1.15rem;
  font-weight: 800;
}

.brand-text strong,
.site-footer strong {
  display: block;
  font-size: 1.05rem;
}

.brand-text span,
.site-footer p,
.section-intro,
.hero .disclaimer,
.legal-status,
.legal-card-header p,
.contact-grid p {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-footer nav a:hover,
.contact-grid a:hover {
  color: var(--brand-blue);
}

.admin-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-link,
.button-primary {
  background: var(--brand-navy);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(16, 37, 69, 0.18);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-link:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 28px;
  padding: 56px 0 24px;
}

.hero-copy,
.hero-panel,
.section,
.site-footer {
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 52px;
  background:
    linear-gradient(145deg, rgba(16, 37, 69, 0.98), rgba(20, 33, 61, 0.9)),
    linear-gradient(135deg, rgba(47, 128, 237, 0.24), transparent);
  color: #ffffff;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 0.94;
}

.hero .lead {
  max-width: 40rem;
  margin-bottom: 20px;
  font-size: 1.18rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.hero .disclaimer {
  max-width: 42rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.68);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 255, 0.96));
}

.hero-panel article,
.purpose-grid article,
.safety-grid article,
.legal-card {
  padding: 22px;
  border: 1px solid rgba(16, 37, 69, 0.08);
  border-radius: 24px;
  background: var(--surface-strong);
}

.hero-panel span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 183, 3, 0.16);
  color: #8d5b00;
  font-size: 0.78rem;
  font-weight: 800;
}

.section,
.site-footer {
  margin-top: 24px;
  padding: 36px;
  background: var(--surface);
}

.section-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 252, 0.94));
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.two-column,
.purpose-grid,
.safety-grid,
.legal-layout,
.contact-grid,
.site-footer {
  display: grid;
  gap: 18px;
}

.two-column,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.purpose-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.safety-grid ul {
  margin-bottom: 0;
  padding-left: 18px;
  line-height: 1.65;
}

.safety-note {
  margin: 22px 0 0;
  color: var(--muted);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.trust-strip div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(16, 37, 69, 0.06);
  font-weight: 600;
}

.legal-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-card-header {
  margin-bottom: 18px;
}

.legal-body {
  display: grid;
  gap: 16px;
}

.legal-doc {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 37, 69, 0.08);
}

.legal-doc:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-doc h4 {
  margin: 0 0 10px;
}

.legal-doc-meta {
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.legal-doc p {
  margin-bottom: 0;
  line-height: 1.72;
  white-space: pre-wrap;
}

.contact-grid a,
.contact-grid p {
  padding: 20px 22px;
  border: 1px solid rgba(16, 37, 69, 0.08);
  border-radius: 22px;
  background: #ffffff;
}

.site-footer {
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.copyright {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .two-column,
  .purpose-grid,
  .safety-grid,
  .legal-layout,
  .contact-grid,
  .trust-strip,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    display: grid;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero-copy {
    padding: 36px 28px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 10px;
  }

  .site-header,
  .section,
  .site-footer,
  .hero-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-copy {
    border-radius: 24px;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.9rem;
  }
}
