:root {
  --page-dark: #160811;
  --surface-dark: #24101b;
  --surface-raised: #321526;
  --border-dark: #713254;
  --text-bright: #fff7fb;
  --text-soft: #f1cbdc;
  --text-muted: #c89aae;
  --accent-pink: #ff4f9a;
  --accent-pink-light: #ffb7d3;
  --max-width: 1170px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-dark);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-bright);
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 79, 154, .16), transparent 28rem),
    radial-gradient(circle at 92% 26%, rgba(198, 45, 114, .13), transparent 25rem),
    linear-gradient(180deg, #160811 0%, #210b18 50%, #12060e 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a {
  color: var(--accent-pink-light);
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: #ffffff;
}

strong {
  color: var(--text-bright);
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 8px;
  color: #160811;
  background: var(--accent-pink-light);
  font-weight: 900;
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border-dark);
  background: linear-gradient(135deg, rgba(19, 6, 14, .98), rgba(47, 12, 32, .98), rgba(24, 7, 17, .98));
  box-shadow: 0 8px 28px rgba(0, 0, 0, .32);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding-block: 14px;
}

.brand {
  flex: 0 1 240px;
}

.brand img {
  width: 225px;
  aspect-ratio: 478 / 128;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid #88405f;
  border-radius: 999px;
  color: var(--text-bright);
  background: rgba(55, 16, 39, .9);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  border-color: var(--accent-pink);
  color: var(--accent-pink-light);
  background: #4a1735;
}

.page-main {
  padding: 36px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: center;
  gap: 34px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--border-dark);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(50, 21, 38, .98), rgba(31, 10, 23, .98));
  box-shadow: 0 22px 64px rgba(0, 0, 0, .32);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 79, 154, .55);
  border-radius: 999px;
  color: var(--accent-pink-light);
  background: rgba(255, 79, 154, .09);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text-bright);
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -.04em;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 4vw, 34px);
  letter-spacing: -.025em;
}

h3 {
  margin: 0 0 9px;
  font-size: 19px;
}

p {
  margin: 0 0 16px;
}

.lead {
  max-width: 720px;
  color: var(--text-soft);
  font-size: clamp(16px, 2.2vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--accent-pink);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #8f1a52, #c62d72);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover,
.button:focus {
  color: #ffffff;
  filter: brightness(1.12);
}

.button-secondary {
  color: var(--text-bright);
  background: #3a182b;
  border-color: #7d365e;
}

.button-secondary:hover,
.button-secondary:focus {
  border-color: var(--accent-pink);
  color: var(--accent-pink-light);
  background: #4a1735;
}

.hero-visual {
  position: relative;
  padding: 9px;
  border: 1px solid rgba(255, 140, 187, .45);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 79, 154, .16), rgba(255, 183, 211, .08));
}

.hero-visual img {
  width: 100%;
  border-radius: 15px;
  aspect-ratio: 1;
  object-fit: cover;
}

.section {
  padding-top: 48px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.section-heading p,
.content-panel p,
.card p {
  color: var(--text-soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 23px;
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  background: var(--surface-dark);
}

.card-number {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #9f205d, var(--accent-pink));
  font-weight: 900;
}

.content-panel {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  background: var(--surface-dark);
}

.content-panel + .content-panel {
  margin-top: 18px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 13px 14px 13px 44px;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  color: var(--text-soft);
  background: var(--surface-raised);
}

.check-list li::before {
  position: absolute;
  top: 13px;
  left: 15px;
  color: var(--accent-pink-light);
  content: "✓";
  font-weight: 900;
}

.home-link {
  color: var(--accent-pink-light);
  font-weight: 850;
}

.spaced {
  margin-top: 22px;
}

.site-footer {
  border-top: 1px solid var(--border-dark);
  background: #13070e;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding-block: 22px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--text-soft);
}

.error-page {
  display: flex;
  flex-direction: column;
}

.error-page .page-main {
  display: grid;
  flex: 1;
  place-items: center;
}

.error-panel {
  width: min(100%, 780px);
  padding: clamp(34px, 8vw, 76px);
  border: 1px solid var(--border-dark);
  border-radius: 26px;
  background: linear-gradient(145deg, var(--surface-raised), #1b0914);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--accent-pink);
  font-size: clamp(82px, 22vw, 170px);
  font-weight: 950;
  letter-spacing: -.08em;
  line-height: .82;
  text-shadow: 0 10px 35px rgba(255, 79, 154, .22);
}

.error-panel h1 {
  margin-top: 24px;
  font-size: clamp(30px, 5vw, 46px);
}

.error-panel .lead {
  margin-inline: auto;
}

.error-panel .hero-actions {
  justify-content: center;
}

@media (max-width: 820px) {
  .nav-wrap,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-wrap {
    padding-block: 17px;
  }

  .brand {
    flex-basis: auto;
  }

  .site-nav {
    justify-content: flex-start;
  }

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

  .hero-visual {
    width: min(100%, 520px);
  }

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

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 22px), var(--max-width));
    padding-inline: 0;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .site-nav a {
    justify-content: center;
  }

  .hero {
    padding: 23px;
    border-radius: 18px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
