:root {
  --primary: #1e2f97;
  --primary-hover: #182879;
  --dark: #0f0f0f;
  --light: #ffffff;
  --about-bg: #1d2f97;
  --install-bg: #cfdfd1;
  --text-dark: #0f0f0f;
  --radius: 999px;
  --card-radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ===== Focus ===== */
*:focus {
  outline: none;
}
*:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible,
.resource-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--primary);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-delay {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero,
  .resource-section,
  .install-section {
    background-attachment: scroll !important;
  }

  .hero-scroll-dot {
    animation: none !important;
  }
}

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

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

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: top 0.3s ease, left 0.3s ease, right 0.3s ease,
              background 0.3s ease, box-shadow 0.3s ease,
              border-radius 0.3s ease;
}

.site-header.scrolled {
  top: 8px;
  left: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  transition: padding 0.3s ease;
}

.site-header.scrolled .header-inner {
  padding: 10px 28px;
}

.logo {
  font-weight: 700;
  font-size: 17px;
  color: var(--text-dark);
  white-space: nowrap;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.desktop-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: opacity 0.2s;
}

.desktop-nav a:hover {
  opacity: 0.65;
}

.header-cta {
  white-space: nowrap;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
}

/* ===== Side Menu ===== */
.side-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}

.side-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: 88vw;
  background: #0f0f0f;
  color: #fff;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 12px 0 24px;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-top {
  display: flex;
  justify-content: flex-end;
  padding: 6px 14px;
}

.side-menu-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.side-menu-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.side-menu-nav {
  padding: 8px 0;
}

.side-menu-nav ul {
  list-style: none;
}

.side-menu-nav li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.side-menu-nav a {
  display: block;
  padding: 18px 28px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  transition: background 0.2s;
}

.side-menu-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.side-menu-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 28px 0;
}

.side-menu-cta .btn {
  width: 100%;
}

body.menu-open {
  overflow: hidden;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease,
              box-shadow 0.2s ease, border-color 0.2s ease;
  border: none;
  text-align: center;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 47, 151, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 8px 20px rgba(30, 47, 151, 0.45);
}

.btn-dark {
  background: #0f0f0f;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-dark:hover {
  background: #222;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-light:hover {
  background: #f3f4f8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 100px 24px 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.25) 70%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 32px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  opacity: 0.95;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.hero-scroll:hover {
  opacity: 1;
}

.hero-scroll-mouse {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollNudge 1.8s ease-in-out infinite;
}

@keyframes scrollNudge {
  0%, 20% { transform: translate(-50%, 0); opacity: 1; }
  80%, 100% { transform: translate(-50%, 10px); opacity: 0; }
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== About ===== */
.about {
  background: var(--about-bg);
  color: #fff;
  padding: 100px 24px;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.75;
  max-width: 60ch;
  margin-bottom: 28px;
  opacity: 0.92;
}

.about-video {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  background: #000;
}

.about-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Alumni ===== */
.alumni {
  background: var(--about-bg);
  color: #fff;
  padding: 100px 24px;
}

.alumni-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.alumni-image {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.alumni-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alumni-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.alumni-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Resource Sections ===== */
.resource-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 160px 24px;
  min-height: 620px;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.resource-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.resource-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.resource-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.resource-header p {
  font-size: 15px;
  line-height: 1.65;
  max-width: 42ch;
  opacity: 0.92;
}

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

.resource-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--card-radius);
  padding: 14px 42px 14px 18px;
  color: #fff;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  min-height: 64px;
  overflow: hidden;
}

.resource-card::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.45);
  border-top: 2px solid rgba(255, 255, 255, 0.45);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.resource-card:hover::after {
  transform: translateY(-50%) rotate(45deg) translate(2px, -2px);
  border-color: #fff;
}

.resource-card:hover .icon-circle {
  transform: scale(1.08);
}

.icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.icon-circle svg {
  width: 18px;
  height: 18px;
  color: #fff;
  stroke-width: 2;
}

.card-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

/* ===== Install ===== */
.install-section {
  background-color: var(--install-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 120px 24px;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.install-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.install-text {
  max-width: 520px;
}

.install-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.install-text p {
  font-size: 15px;
  line-height: 1.65;
  max-width: 48ch;
  margin-bottom: 28px;
  color: var(--text-dark);
}

.install-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
  background: #0f0f0f;
  color: #fff;
  padding: 60px 24px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
}

.footer-legal {
  display: flex;
  gap: 36px;
}

.footer-legal a {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-legal a:hover {
  opacity: 1;
}

.footer-socials {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.footer-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 28px 0 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: #fff;
  font-weight: 500;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.report-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.report-link svg {
  width: 12px;
  height: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .about-inner,
  .resource-inner,
  .alumni-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .alumni {
    padding: 60px 24px;
  }

  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    padding: 60px 24px;
  }

  .resource-section {
    padding: 90px 24px;
    min-height: 0;
  }

  .install-section {
    background-position: right center;
    padding: 80px 24px;
  }

  .hero,
  .resource-section,
  .install-section {
    background-attachment: scroll;
  }

  .install-text {
    background: rgba(207, 223, 209, 0.85);
    padding: 20px;
    border-radius: 14px;
  }
}

@media (max-width: 560px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons,
  .install-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
