:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --surface: #1c2333;
  --surface-2: #21262d;
  --ink: #e6edf3;
  --ink-muted: #8b949e;
  --brand: #2f81f7;
  --brand-dim: rgba(47, 129, 247, 0.15);
  --accent: #f78166;
  --line: rgba(255,255,255,0.08);
  --radius: 12px;
  --radius-l: 20px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.2; }
h1, h2 { font-family: "Literata", serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── CONTAINER ── */
.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #1a6fd4);
  flex-shrink: 0;
}

.brand-text {
  font-size: 0.9rem;
  color: var(--ink);
}

.topbar-cta {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand);
  border: 1px solid rgba(47, 129, 247, 0.4);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  transition: background 200ms, color 200ms;
}

.topbar-cta:hover {
  background: var(--brand);
  color: #fff;
}

/* ── EYEBROW ── */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

/* ── HERO ── */
.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(ellipse 80% 60% at 60% -10%, rgba(47,129,247,0.12), transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
  color: var(--ink);
}

.hero-sub {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary {
  text-decoration: none;
  font-weight: 700;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  transition: opacity 200ms, transform 200ms;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  text-decoration: none;
  font-weight: 600;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  transition: border-color 200ms, color 200ms;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.25); color: var(--ink); }

.hero-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stats strong {
  font-size: 1.1rem;
  color: var(--ink);
}

.hero-stats span {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.hero-img {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-img img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-badge svg { color: var(--brand); flex-shrink: 0; }

/* ── SECTION ── */
.section { padding: 5rem 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-top: 0.25rem;
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.5rem;
  transition: border-color 250ms, transform 250ms;
}

.card:hover {
  border-color: rgba(47, 129, 247, 0.35);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ── STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.5rem;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brand);
  background: var(--brand-dim);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ── GALLERY ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 0.75rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.82rem;
  opacity: 0;
  transition: opacity 300ms;
}

.gallery-item:hover figcaption {
  opacity: 1;
}

/* ── MENTOR ── */
.mentor-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.mentor-photo {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mentor-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.mentor-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0.25rem 0 0.9rem;
}

.mentor-copy > p {
  color: var(--ink-muted);
  margin-bottom: 1.2rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.check-list li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── REGISTER ── */
.section-register {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.register-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.register-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0.25rem 0 0.9rem;
}

.register-copy > p {
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.info-block strong { color: var(--ink); }

/* ── FORM ── */
form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
}

label span { color: var(--accent); }

input, select, textarea {
  font: inherit;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  transition: border-color 200ms;
}

input::placeholder, textarea::placeholder { color: rgba(139,148,158,0.5); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
}

select option { background: var(--surface); }
textarea { resize: vertical; }

button[type="submit"] {
  width: 100%;
  font: inherit;
  font-weight: 700;
  padding: 0.82rem;
  border: none;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: opacity 200ms;
  margin-top: 0.25rem;
}

button[type="submit"]:hover { opacity: 0.88; }
button[type="submit"]:disabled { opacity: 0.5; cursor: wait; }

.status { font-size: 0.9rem; font-weight: 600; min-height: 1.4em; }
.status.success { color: #3fb950; }
.status.error { color: #f85149; }

/* ── LOCATION ── */
.location-sub {
  color: var(--ink-muted);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.map-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  align-items: start;
}

.footer-brand .brand {
  margin-bottom: 0.75rem;
  display: inline-flex;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
  max-width: 36ch;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 200ms;
}

.footer-contact-item:hover { color: var(--ink); }
.footer-contact-item svg { flex-shrink: 0; color: var(--brand); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.footer-bottom a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 200ms;
}

.footer-bottom a:hover { color: var(--ink); }

.footer-home-link {
  color: var(--brand) !important;
  font-weight: 600;
}

/* ── HONEYPOT ── */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.visible {
  animation: fade-up 600ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner,
  .mentor-wrap,
  .register-wrap { grid-template-columns: 1fr; }

  .hero { padding: 3rem 0; }
  .hero-img img { height: 300px; }
  .mentor-photo img { height: 300px; }

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

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
  }

  .gallery-item--tall { grid-row: span 2; }
  .gallery-item--wide { grid-column: span 2; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .section { padding: 3.5rem 0; }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item,
  .gallery-item--tall,
  .gallery-item--wide {
    grid-row: auto;
    grid-column: auto;
    height: 220px;
  }

  .gallery-item figcaption { opacity: 1; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-contact { align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
