:root {
  --navy: #1a237e;
  --navy-hover: #0d47a1;
  --green: #2e7d32;
  --bg: #ffffff;
  --alt-bg: #f6f7fb;
  --text: #000000;
  --focus: #ffc107;
  --black: #000000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Skip Link */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--focus);
  color: var(--text);
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* Layout */

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */

.site-header {
  background: var(--black);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.beta-badge {
  display: inline-block;
  background: var(--green);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.brand h1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.tagline {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  max-width: 40rem;
  margin: 0 auto;
}

.hero-description {
  max-width: 42rem;
  margin: 1.75rem auto 0;
  color: #cccccc;
}

/* CTA */
.cta-button {
  display: inline-block;
  background-color: #1a237e;
  color: #ffffff;
  padding: 0.875rem 1.5rem;
  border: 2px solid #1a237e;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #0d47a1;
  border-color: #0d47a1;
  color: #ffffff;
}

.cta-button:focus-visible {
  outline: 3px solid #ffc107;
  outline-offset: 3px;
}

.cta-button-bottom {
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(26, 35, 126, 0.15);
}

/* Sections */

.section {
  padding: 60px 0;
}

.section.alt {
  background: var(--alt-bg);
}

.section h2 {
  margin-top: 0;
}

/* Features */

.features {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.card {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
}

.card h3 {
  margin-top: 0;
}

/* Tablet */

@media (min-width: 700px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 cards on top, 2 centered below */

@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(6, 1fr);
  }

  .card {
    grid-column: span 2;
  }
}

/* Carousel */

.carousel {
  margin-top: 40px;
}

.carousel h3 {
  text-align: center;
}

.carousel-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.carousel-track {
  width: 320px;
  height: 600px;
  overflow: hidden;
  border: 12px solid #111;
  border-radius: 30px;
  background: black;
  position: relative;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.carousel-track img.active {
  display: block;
}

.carousel-btn {
  background: var(--navy);
  color: white;
  border: none;
  padding: 10px;
  font-size: 20px;
  border-radius: 6px;
  cursor: pointer;
}

.carousel-btn:hover {
  background: var(--navy-hover);
}

.carousel-btn:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/*icons */
.material-symbols-outlined.feature-icon {
  font-size: 1.5rem;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.icon-library {
  color: #2e7d32;
}

.icon-resources {
  color: #004d40;
}

.icon-swaps {
  color: #ff9800;
}

.icon-filters {
  color: #1976d2;
}

.icon-picks {
  color: #6a1b9a;
}

/* Footer */

.site-footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: white;
}
