:root {
  color-scheme: light dark;
  --background: #0c0d16;
  --background-alt: #101226;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --text: #0c0d16;
  --text-muted: #4b5166;
  --accent: #4b7ff2;
  --accent-dark: #355fcc;
  --border: rgba(12, 13, 22, 0.1);
  --border-strong: rgba(12, 13, 22, 0.2);
  font-size: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #11131f;
    --surface-alt: #151929;
    --text: #f3f5ff;
    --text-muted: #b3b8d4;
    --border: rgba(243, 245, 255, 0.08);
    --border-strong: rgba(243, 245, 255, 0.12);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background-color: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover,
button:hover {
  filter: brightness(0.95);
}

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

.hero {
  background: radial-gradient(circle at top left, #4b7ff2 0%, #2b2e44 55%, #0c0d16 100%);
  color: #f5f7fb;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero__content {
  max-width: 720px;
  margin: 0 auto;
}

.hero__tag {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin: 0.25rem 0;
}

.hero__subtitle {
  margin: 1rem 0 2rem;
  font-size: 1.1rem;
  color: rgba(245, 247, 251, 0.85);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background-color: transparent;
  color: inherit;
  font-weight: 600;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.button--primary {
  background-color: #f5f7fb;
  color: #0c0d16;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.section {
  padding: 4.5rem 1.5rem;
}

.section--alt {
  background-color: var(--surface-alt);
}

.section__heading {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section__heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.section__heading p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid--three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.card {
  background-color: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 16px 35px -24px rgba(12, 13, 22, 0.45);
  border: 1px solid var(--border);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

.card--outline {
  background-color: transparent;
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.steps {
  margin: 1rem 0 2rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.steps code {
  background-color: rgba(75, 127, 242, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.topics {
  list-style-position: inside;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
  color: var(--text-muted);
}

.topics__note {
  margin-top: 1rem;
  font-weight: 600;
}

.slideshow {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background-color: #000000;
  box-shadow: 0 25px 45px -20px rgba(12, 13, 22, 0.55);
}

.slideshow__track {
  display: flex;
  transform: translateX(0);
  transition: transform 500ms ease;
}

.slideshow__slide {
  min-width: 100%;
  flex: 0 0 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}

.slideshow__slide img {
  width: 100%;
  height: auto;
}

.slideshow__slide.is-active {
  opacity: 1;
}

.slideshow__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 150ms ease;
  z-index: 2;
}

.slideshow__control[data-action="prev"] {
  left: 1rem;
}

.slideshow__control[data-action="next"] {
  right: 1rem;
}

.slideshow__control:hover {
  background: rgba(0, 0, 0, 0.75);
}

.slideshow__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.slideshow__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.slideshow__dot.is-active {
  background: #ffffff;
}

.footer {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  color: var(--text-muted);
  background-color: var(--surface-alt);
}

.footer a {
  color: var(--accent);
}

@media (max-width: 640px) {
  .hero {
    padding: 4rem 1.25rem 3rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .slideshow__control {
    width: 38px;
    height: 38px;
  }
}
