:root {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1c1c1f;
  --purple: #6a0dad;
  --purple-dark: #4b0082;
  --purple-light: #8a2be2;
  --white: #fff;
  --muted: #ccc;
  --border: rgb(255 255 255 / 10%);
  --content-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font: 1rem/1.7 Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  color: var(--white);
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

header,
main,
footer {
  width: min(100% - 32px, var(--content-width));
  margin-inline: auto;
}

header {
  margin-top: 20px;
  padding: clamp(24px, 5vw, 48px) 24px 26px;
  background: var(--purple);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 28%);
  text-align: center;
}

header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.tagline {
  margin-bottom: 24px;
  color: rgb(255 255 255 / 90%);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
}

.nav-buttons,
.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-buttons {
  gap: 10px;
}

.nav-button,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.nav-button {
  background: var(--purple-dark);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 8px;
  font-size: 0.95rem;
}

.button {
  margin: 6px 0 16px;
  background: var(--purple);
  border-radius: 7px;
}

.nav-button:hover,
.button:hover,
.social-icons a:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
}

main {
  padding-block: 12px 40px;
}

section {
  margin: 28px 0;
  padding: clamp(22px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

section h2 {
  margin: 0 0 22px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-image {
  display: block;
  width: min(100%, 380px);
  max-height: 420px;
  height: auto;
  margin-inline: auto;
  object-fit: cover;
  border-radius: 12px;
}

.hero-copy {
  width: 100%;
}

.social-links {
  text-align: center;
}

.social-icons {
  gap: 14px;
}

.social-icons a {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: var(--purple-dark);
  border-radius: 50%;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
}

.social-icons img {
  display: block;
  width: 24px;
  height: 24px;
}

footer {
  margin-bottom: 20px;
  padding: 24px;
  background: var(--purple);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
  text-align: center;
}

footer p {
  margin-bottom: 12px;
  color: var(--white);
}

a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  header,
  main,
  footer {
    width: min(100% - 20px, var(--content-width));
  }

  header {
    margin-top: 10px;
    padding-inline: 16px;
  }

  .nav-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-button {
    padding-inline: 10px;
    text-align: center;
  }

  section {
    margin-block: 18px;
    padding: 22px 18px;
  }

  .hero {
    padding: 18px;
  }

  .hero-image {
    width: 100%;
  }

  p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-button,
  .button,
  .social-icons a {
    transition-duration: 0.01ms;
  }
}