:root {
  --rust: #c65d24;
  --rust-dark: #9e4317;
  --navy: #0b1f3a;
  --navy-light: #153a66;
  --cream: #fff8ef;
  --white: #ffffff;
  --text: #172033;
  --muted: #667085;
  --shadow: 0 18px 45px rgba(11, 31, 58, 0.14);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Times New Roman", Times, serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 31, 58, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--rust);
}

.navbar {
  width: min(1180px, 92%);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--rust);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--rust);
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  font-size: 1.35rem;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(198, 93, 36, 0.5),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(198, 93, 36, 0.3),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      var(--navy) 0%,
      var(--navy-light) 58%,
      #071426 100%
    );
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -100px;
}

.hero::after {
  width: 300px;
  height: 300px;
  bottom: -140px;
  left: -80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1000px, 90%);
  padding: 90px 0;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.96;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  color: var(--rust);
  font-style: italic;
}

.hero p {
  max-width: 760px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid var(--rust);
  border-radius: 999px;
  background: var(--rust);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
  background: var(--rust-dark);
  box-shadow: 0 12px 24px rgba(198, 93, 36, 0.28);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
  color: var(--white);
}

.button.secondary:hover {
  background: var(--white);
  color: var(--navy);
}

.section {
  width: min(1180px, 90%);
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin: 0 0 8px;
  color: var(--rust-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.85rem;
}

.section h2,
.page-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.05;
}

.section-heading p,
.page-hero p {
  color: var(--muted);
  font-size: 1.15rem;
}

.feature-grid,
.card-grid,
.founder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.founder-grid {
  max-width: 800px;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
}

.feature-card,
.profile-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.feature-card:hover,
.profile-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 54px rgba(11, 31, 58, 0.2);
}

.feature-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-card h3,
.profile-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.5rem;
}

.page-hero {
  padding: 90px 0 72px;
  border-bottom: 1px solid rgba(11, 31, 58, 0.1);
  background:
    linear-gradient(
      rgba(255, 248, 239, 0.9),
      rgba(255, 248, 239, 0.9)
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 16px,
      rgba(198, 93, 36, 0.09) 16px,
      rgba(198, 93, 36, 0.09) 18px
    );
}

.page-hero-inner {
  width: min(1180px, 90%);
  margin: 0 auto;
}

.mission-text,
.policy-text {
  padding: clamp(26px, 5vw, 54px);
  border-left: 8px solid var(--rust);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 1.16rem;
}

.profile-card {
  padding-top: 80px;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 58px;
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
}

.profile-card.founder::after {
  content: "Founder";
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-meta {
  color: var(--rust-dark);
  font-weight: 700;
}

.subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.subject-tag {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(198, 93, 36, 0.12);
  color: var(--rust-dark);
  font-size: 0.92rem;
}

.notice {
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
}

.tutor-grid {
  margin-top: 28px;
}

.database-page {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
}

.database-heading {
  padding: 42px 5%;
  text-align: center;
  background: var(--cream);
}

.database-heading h1 {
  max-width: 1000px;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
}

.database-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.drive-shell {
  flex: 1;
  min-height: 70vh;
  margin: 0 3% 34px;
  overflow: hidden;
  border: 6px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.drive-shell iframe {
  width: 100%;
  min-height: 70vh;
  border: 0;
}

.drive-fallback {
  padding: 18px;
  text-align: center;
  background: var(--navy);
  color: var(--white);
}

.drive-fallback p {
  margin-top: 0;
}

.drive-link {
  color: var(--white);
  font-weight: 700;
}

.site-footer {
  padding: 30px 5%;
  border-top: 4px solid var(--rust);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

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

@media (max-width: 860px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 5% 24px;
    background: var(--navy);
    border-bottom: 3px solid var(--rust);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
  }

  .feature-grid,
  .card-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 100px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feature-card,
  .profile-card,
  .button,
  .nav-links a {
    transition: none;
  }
}
