:root {
  --bg: #081421;
  --bg-soft: #112338;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --text: #0e1a29;
  --text-invert: #f4f9ff;
  --accent: #12c7d9;
  --accent-2: #ffd166;
  --line: #d3deea;
  --success: #4ed094;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(5, 15, 31, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(circle at 15% -10%, rgba(18, 199, 217, 0.28), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(255, 209, 102, 0.2), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%);
}

h1,
h2,
h3,
.eyebrow,
.btn,
.menu a,
.lang-toggle {
  font-family: "Sora", "Trebuchet MS", sans-serif;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 20, 33, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
}

.brand img {
  height: 36px;
  width: auto;
  border-radius: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.22));
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.menu a {
  color: var(--text-invert);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
}

.menu a:hover,
.menu a:focus-visible {
  opacity: 1;
  color: var(--accent);
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--text-invert);
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary {
  color: #04101a;
  background: linear-gradient(90deg, var(--accent), #56e6ce);
  box-shadow: 0 10px 30px rgba(18, 199, 217, 0.35);
}

.btn-secondary {
  color: var(--text-invert);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-light {
  color: var(--text);
  background: #fff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle .line {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  position: relative;
  color: var(--text-invert);
  overflow: hidden;
  background: linear-gradient(125deg, var(--bg), #0c1f34 50%, #153554 100%);
}

.aurora-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(18, 199, 217, 0.3), transparent 42%),
    radial-gradient(circle at 80% 10%, rgba(255, 209, 102, 0.25), transparent 38%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0.2rem 0 0.9rem;
}

.lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 64ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-meta span {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-panel ul {
  margin: 1rem 0 1.2rem;
  padding-left: 1.1rem;
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head.with-tools {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.mini-note {
  color: #4c6078;
  font-size: 0.92rem;
}

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

.cards-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.program-card,
.about-card,
.partner-form,
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.program-card,
.about-card {
  padding: 1.2rem;
}

.glow {
  position: relative;
  isolation: isolate;
}

.glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(18, 199, 217, 0.36), transparent 50%, rgba(255, 209, 102, 0.32));
  z-index: -1;
}

.program-card {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
}

.chip {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  color: #0a324f;
  background: #c5f4fa;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.4rem;
  align-items: center;
}

.table-wrap {
  padding: 0.8rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.7rem;
  font-size: 0.95rem;
}

th {
  background: #f2f7fd;
  font-family: "Sora", "Trebuchet MS", sans-serif;
}

.tags {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tag {
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  border: 1px solid #b7cadf;
  font-size: 0.85rem;
  background: #fff;
}

.flipbook-shell {
  margin-top: 1.4rem;
  padding: 1.2rem;
  border: 1px solid #c6d8ea;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fcff 0%, #eef5fc 100%);
  box-shadow: var(--shadow);
}

.flipbook-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.9rem;
}

.flipbook-head h3 {
  margin: 0.15rem 0;
}

.flipbook-note {
  margin: 0;
  color: #405a75;
}

.flipbook-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.flipbook-frame-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #b9cee3;
  background: #0f2033;
}

.flipbook-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 480px;
  border: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.about-card.dark {
  background: linear-gradient(150deg, #0b1f33, #163a5d);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-invert);
}

.about-card.dark li + li {
  margin-top: 0.55rem;
}

.contact {
  background: linear-gradient(180deg, #eff6fd 0%, #e5eef8 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.contact-list a {
  font-weight: 600;
  color: #12314f;
}

.partner-form {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.partner-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.partner-form input,
.partner-form select,
.partner-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #bed0e3;
  background: #fff;
  padding: 0.62rem 0.7rem;
  font: inherit;
}

.partner-form input:focus-visible,
.partner-form select:focus-visible,
.partner-form textarea:focus-visible,
.menu a:focus-visible,
.btn:focus-visible,
.lang-toggle:focus-visible,
.whats-float:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.partner-form .form-note {
  font-size: 0.84rem;
  color: #55708d;
  margin: 0;
}

.footer {
  background: #071524;
  color: #dce8f5;
  padding: 1.2rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.whats-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: linear-gradient(120deg, var(--success), #a2f0c8);
  color: #062514;
  font-weight: 700;
  box-shadow: 0 12px 35px rgba(2, 91, 44, 0.3);
  z-index: 70;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .hero-grid,
  .split,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid.three {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 80px;
    display: grid;
    gap: 0;
    background: #0b2138;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }

  .menu.open {
    transform: translateY(0);
  }

  .menu a {
    padding: 1rem 4vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .actions .btn {
    display: none;
  }

  .section {
    padding: 3.7rem 0;
  }

  .cards-grid.three {
    grid-template-columns: 1fr;
  }

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

  .flipbook-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .brand img {
    height: 30px;
  }

  .hero-meta span {
    font-size: 0.74rem;
  }

  .btn {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
  }

  .flipbook-frame {
    min-height: 340px;
  }
}
