:root {
  --red: #1a52d0;
  --red-dark: #123494;
  --ink: #15181d;
  --muted: #5f6773;
  --line: #d9dee7;
  --paper: #f7f8fb;
  --white: #ffffff;
  --teal: #0b7a75;
  --gold: #c6922e;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 222, 231, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-logo {
  width: 78px;
  height: 78px;
  margin: -10px 0;
  object-fit: contain;
  flex-shrink: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand small {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: #2d333b;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  background: var(--ink);
  border-radius: 999px;
  transform-origin: center;
  transition: opacity 200ms ease, transform 200ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--red);
  box-shadow: 0 8px 22px rgba(26, 82, 208, 0.12);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 20, 25, 0.88) 0%, rgba(18, 20, 25, 0.66) 42%, rgba(18, 20, 25, 0.14) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.38));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 92px);
  padding-top: 76px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #c5d8fc;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-content > p:not(.eyebrow) {
  width: min(620px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 16px 32px rgba(26, 82, 208, 0.28);
}

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

section {
  padding: clamp(68px, 10vw, 124px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.22;
}

.intro-section,
.activities-section {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: start;
}

.intro-copy {
  color: #303741;
  font-size: 18px;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.stats-panel {
  display: grid;
  gap: 14px;
}

.stats-panel div {
  padding: 26px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background: var(--paper);
}

.stats-panel strong {
  display: block;
  font-size: 40px;
  line-height: 1;
}

.stats-panel span {
  color: var(--muted);
  font-weight: 700;
}

.identity-section {
  background: #11151b;
  color: var(--white);
}

.identity-section .eyebrow,
.network-section .eyebrow {
  color: #f3c75d;
}

.identity-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.identity-layout p {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.activity-card {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 82, 208, 0.24);
  box-shadow: var(--shadow);
}

.activity-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.activity-card:nth-child(2n) .icon {
  background: var(--red);
}

.activity-card:nth-child(3n) .icon {
  background: var(--gold);
}

.process-section {
  background: var(--paper);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.timeline-item {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.timeline-item:last-child {
  border-right: 0;
}

.timeline-item span {
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(26, 82, 208, 0.12);
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.network-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(20, 24, 30, 0.92), rgba(20, 24, 30, 0.76)),
    url("assets/hero-campus.png") center / cover;
}

.network-section p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.join-section {
  background: var(--white);
}

.join-content {
  max-width: 860px;
  padding: clamp(34px, 6vw, 64px);
  border-left: 8px solid var(--red);
  border-radius: 8px;
  background: var(--paper);
}

.join-content p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.join-content .button {
  margin-top: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #11151b;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 20px 12px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .intro-grid,
  .identity-layout,
  .network-section {
    grid-template-columns: 1fr;
  }

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

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

  .timeline-item:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 11px 16px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    max-width: calc(100% - 56px);
  }

  .brand-logo {
    width: 72px;
    height: 72px;
    margin: -6px 0;
  }

  .brand strong {
    display: none;
  }

  .brand small {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
  }

  .site-nav {
    padding: 4px 16px 10px;
  }

  .site-nav a {
    padding: 14px 0;
    font-size: 15px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(17, 21, 27, 0.78), rgba(17, 21, 27, 0.86));
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 84px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }

  .button {
    width: 100%;
  }

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

  .timeline-item,
  .timeline-item:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-item:last-child {
    border-bottom: 0;
  }

  .activity-card {
    min-height: auto;
  }
}

/* ========================================
   DESIGN ENHANCEMENTS
   ======================================== */

/* Buttons — smooth transitions and hover lift */
.button {
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease;
  cursor: pointer;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(26, 82, 208, 0.4);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.76);
  transform: translateY(-2px);
}

/* Eyebrow — decorative leading dash */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Header — compact state on scroll */
.site-header {
  transition: padding 250ms ease, box-shadow 250ms ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
}

/* Nav — active section indicator */
.site-nav a.active {
  border-color: var(--red);
  color: var(--red);
}

/* Stats — gradient accent on numbers */
.stats-panel strong {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Activity cards — top accent bar on hover */
.activity-card {
  position: relative;
  overflow: hidden;
}

.activity-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.activity-card:hover::after {
  transform: scaleX(1);
}

/* Timeline — numbered step circles */
.timeline {
  counter-reset: step;
}

.timeline-item {
  counter-increment: step;
}

.timeline-item > span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 0 8px rgba(26, 82, 208, 0.1);
}

.timeline-item > span::before {
  content: counter(step);
}

/* Join section — bold red gradient CTA */
.join-section {
  background: linear-gradient(135deg, #1a52d0 0%, #0e2871 100%);
  color: var(--white);
}

.join-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.join-content .eyebrow {
  color: #c5d8fc;
  justify-content: center;
}

.join-content h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.join-content p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
}

.join-content .button.primary {
  background: var(--white);
  color: var(--red-dark);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.join-content .button.primary:hover,
.join-content .button.primary:focus-visible {
  background: rgba(255, 255, 255, 0.94);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}

.join-content .button.social {
  min-width: 170px;
  overflow: hidden;
  border: 0;
  background-clip: padding-box;
  box-shadow: none;
}

.join-content .button.whatsapp {
  color: #ffffff;
  background: #128c4a;
}

.join-content .button.instagram {
  color: #ffffff;
  background: linear-gradient(135deg, #f04b4f 0%, #db2d8a 56%, #9c38c9 100%);
  font-size: 15px;
}

.join-content .button.social:hover,
.join-content .button.social:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

/* Feedback form */
.feedback-section {
  background: var(--white);
}

.feedback-form {
  max-width: 780px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.anon-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.anon-toggle input[type="checkbox"] {
  display: none;
}

.toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  background: var(--line);
  border-radius: 12px;
  transition: background 200ms;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 200ms;
}

.anon-toggle input:checked ~ .toggle-switch {
  background: var(--red);
}

.anon-toggle input:checked ~ .toggle-switch::after {
  transform: translateX(18px);
}

.toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-text strong {
  font-size: 14px;
}

.toggle-text small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.optional-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.form-group label span {
  color: var(--red);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(26, 82, 208, 0.12);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #d63b3b;
  box-shadow: 0 0 0 3px rgba(214, 59, 59, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f6773' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

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

.form-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  background: #f0faf9;
  border: 1px solid #b2dbd8;
}

.form-success:not([hidden]) {
  display: flex;
}

.form-success p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0b7a75;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .anon-toggle {
    padding: 12px 14px;
    gap: 10px;
  }

  .toggle-text strong {
    font-size: 13px;
  }

  .toggle-text small {
    font-size: 11px;
  }
}

/* Scroll-reveal animations */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms cubic-bezier(0.2, 0.8, 0.4, 1), transform 650ms cubic-bezier(0.2, 0.8, 0.4, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
