:root {
  color-scheme: dark;
  --bg: #1b1e2a;
  --surface: #23273a;
  --surface-alt: #1f2232;
  --text: #f4f6ff;
  --muted: #b1b7cc;
  --primary: #7c6cff;
  --primary-soft: #2f2b4f;
  --accent: #3fd6c5;
  --border: #2f344a;
  --shadow: 0 18px 40px rgba(11, 12, 20, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: radial-gradient(circle at top, #202336 0%, #1b1e2a 55%, #141624 100%);
  color: var(--text);
  line-height: 1.7;
}

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

.hero {
  padding: 2.5rem 6vw 4rem;
  background: radial-gradient(circle at top, #2a2e43 0%, #1b1e2a 60%, #161826 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.15;
  pointer-events: none;
  transform: translateY(-40px);
}

.hero::after {
  content: "";
  position: absolute;
  top: 85px;
  left: 6vw;
  right: 6vw;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #f4f1b5 30%, #7c6cff 70%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  border-color: var(--primary);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem;
}

.hero-main h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  margin-bottom: 1rem;
}

.hero-main h1 span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-top: 0.4rem;
}

.hero-main p {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 36rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #c9c4ff;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

.nostalgia-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.nostalgia-strip span {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 181, 0.35);
  background: linear-gradient(135deg, rgba(67, 77, 87, 0.4), rgba(47, 52, 74, 0.6));
  color: #f4f1b5;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.button {
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.35),
    0 18px 30px rgba(12, 12, 30, 0.5);
  outline: 2px solid rgba(124, 108, 255, 0.6);
  outline-offset: 2px;
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button.small {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.button:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.hero-stats div {
  background: var(--surface);
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-size: 1rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-panel {
  display: grid;
  gap: 1.5rem;
}

.panel-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel-card h2 {
  margin-bottom: 0.75rem;
}

.panel-card p {
  color: var(--muted);
}

.snapshot-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 1.2rem 0 1.4rem;
  color: var(--muted);
}

.snapshot-list strong {
  color: var(--text);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill-row span {
  background: #2e3350;
  color: #c9c4ff;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.section {
  padding: 4rem 6vw;
}

.section.alt {
  background: linear-gradient(135deg, rgba(35, 39, 58, 0.85), rgba(25, 28, 45, 0.95));
}

.section-title {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--muted);
}

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

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: 0 12px 25px rgba(9, 10, 20, 0.35);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(124, 108, 255, 0.4);
  background: linear-gradient(135deg, rgba(63, 214, 197, 0.18), rgba(124, 108, 255, 0.2));
  opacity: 0.6;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.timeline-date {
  font-weight: 700;
  color: #c9c4ff;
}

.carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.carousel-button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.carousel-button:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.cert-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: thin;
}

.cert-carousel::-webkit-scrollbar {
  height: 6px;
}

.cert-carousel::-webkit-scrollbar-thumb {
  background: #3a3f59;
  border-radius: 999px;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  scroll-snap-align: start;
  box-shadow: 0 12px 25px rgba(9, 10, 20, 0.35);
}

.cert-card h3 {
  margin-bottom: 0.75rem;
}

.cert-card p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.cert-card p:last-child {
  margin-bottom: 0;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.chip-grid span {
  background: var(--primary-soft);
  color: #c9c4ff;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.text-link {
  color: #c9c4ff;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-flex;
  gap: 0.5rem;
}

.footer {
  padding: 2rem 6vw 3rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
}

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

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

  .timeline-item {
    grid-template-columns: 1fr;
  }

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

  .carousel-button {
    justify-self: center;
  }
}
