/* AcademiaPro website — base: tokens, typography, layout, buttons, nav, motion. */

:root {
  --navy-950: #070e22;
  --navy-900: #0b1530;
  --navy-800: #101e44;
  --navy-700: #1a2b5c;
  --gold: #c7a252;
  --gold-soft: #e6c97f;
  --green: #3ddc97;
  --red: #ff6b6b;
  --ink: #0f172a;
  --paper: #f7f6f2;
  --white: #ffffff;
  --muted-dark: #a9b3cc;
  --muted-light: #5b6475;
  --line-dark: rgba(255, 255, 255, 0.09);
  --line-light: rgba(15, 23, 42, 0.09);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 30px 80px -30px rgba(7, 14, 34, 0.55);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section {
  padding: clamp(80px, 11vw, 140px) 0;
  position: relative;
}

.section--dark {
  background: var(--navy-900);
  color: var(--white);
}

.section--dark .lead {
  color: var(--muted-dark);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

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

.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.lead {
  margin-top: 18px;
  font-size: 1.12rem;
  color: var(--muted-light);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  --glow: rgba(199, 162, 82, 0.45);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  isolation: isolate;
}

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

.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--navy-950);
  box-shadow: 0 12px 30px -10px var(--glow);
}

.btn--gold:hover {
  box-shadow: 0 18px 44px -12px var(--glow);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--dark {
  background: var(--navy-900);
  color: var(--white);
}

.btn .arrow {
  transition: transform 0.35s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ── Navigation ───────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 18px 0;
  color: var(--white);
}

.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(7, 14, 34, 0.92);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line-dark);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.45rem;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav__links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav__links a {
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.25s;
}

.nav__links a:hover {
  opacity: 1;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__actions .btn {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.92rem;
}

.nav__login {
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
}

.lang-switch {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  opacity: 0.85;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
  position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle span::before {
  top: -6px;
}

.nav__toggle span::after {
  top: 6px;
}

@media (max-width: 960px) {
  .nav__links,
  .nav__login {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav.is-open {
    background: rgba(7, 14, 34, 0.97);
  }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 0;
    padding: 8px 16px 20px;
    background: rgba(7, 14, 34, 0.97);
  }

  .nav.is-open .nav__links a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-dark);
    opacity: 1;
  }
}

@media (max-width: 520px) {
  .nav__actions .btn {
    display: none;
  }
}

/* ── Scroll reveal ────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Without JavaScript everything is simply visible. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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