:root {
  --navy: #07152d;
  --navy-2: #0b2144;
  --blue: #1769ff;
  --cyan: #20d9ff;
  --ink: #10213d;
  --muted: #63718a;
  --paper: #f6f9fc;
  --white: #ffffff;
  --line: #dce5ef;
  --radius: 22px;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(7, 21, 45, .12);
}

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

html { scroll-behavior: smooth; }

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

body.modal-open { overflow: hidden; }

h1, h2, h3, .brand, .btn { font-family: "Space Grotesk", sans-serif; }

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

button, input, select { font: inherit; }

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

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  color: white;
  transition: .3s ease;
}

.site-header.scrolled {
  background: rgba(7, 21, 45, .94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0,0,0,.14);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 700;
  color: white;
}

.brand strong { display: block; font-size: 15px; letter-spacing: .08em; }
.brand small { display: block; font-size: 9px; opacity: .68; letter-spacing: .16em; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { font-size: 14px; font-weight: 600; opacity: .84; }
.nav-links > a:hover { opacity: 1; }

.nav-cta {
  padding: 11px 17px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: white;
  color: var(--navy);
  opacity: 1 !important;
}

.menu-toggle { display: none; background: none; border: 0; color: white; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: white; margin: 5px; }

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 75% 45%, rgba(32,217,255,.17), transparent 25%),
    radial-gradient(circle at 10% 85%, rgba(23,105,255,.22), transparent 30%),
    linear-gradient(135deg, #061229, #0b2349 60%, #07152d);
  display: grid;
  align-items: center;
}

.hero-grid {
  position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.orb-one { width: 360px; height: 360px; right: 5%; top: 15%; border: 1px solid rgba(32,217,255,.25); box-shadow: 0 0 120px rgba(32,217,255,.08); }
.orb-two { width: 180px; height: 180px; right: 20%; bottom: 10%; border: 1px solid rgba(23,105,255,.3); }

.hero-content { position: relative; z-index: 2; padding: 130px 0 80px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; opacity: .72; display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 1px; background: currentColor; display: inline-block; }
.eyebrow.dark { color: var(--blue); opacity: 1; }

.hero h1 { margin-top: 18px; font-size: clamp(68px, 9vw, 132px); line-height: .84; letter-spacing: -.07em; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero h1 span { font-size: .65em; letter-spacing: -.05em; }

.hero-text { max-width: 560px; margin-top: 28px; color: rgba(255,255,255,.72); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; cursor: pointer; border-radius: 999px; padding: 14px 20px;
  font-weight: 700; font-size: 13px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: white; box-shadow: 0 14px 34px rgba(23,105,255,.25); }
.btn-ghost { border: 1px solid rgba(255,255,255,.22); color: white; background: rgba(255,255,255,.04); }

.hero-meta { display: flex; gap: 30px; margin-top: 45px; }
.hero-meta div { display: grid; gap: 2px; }
.hero-meta strong { font-family: "Space Grotesk"; font-size: 25px; }
.hero-meta span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }

.hero-visual { display: grid; place-items: center; }
.visual-card {
  width: min(420px, 100%);
  aspect-ratio: 1 / 1.08;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 34px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.025));
  backdrop-filter: blur(14px);
  box-shadow: 0 35px 90px rgba(0,0,0,.28);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(3deg);
}
.visual-top, .visual-bottom { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .16em; opacity: .55; }
.visual-center { position: relative; display: grid; place-items: center; flex: 1; }
.pulse-ring { position: absolute; border: 1px solid rgba(32,217,255,.5); border-radius: 50%; animation: pulse 3.2s infinite ease-out; }
.ring-one { width: 180px; height: 180px; }
.ring-two { width: 270px; height: 270px; animation-delay: 1s; opacity: .5; }
.pulse-core {
  width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center; font: 700 38px "Space Grotesk";
  background: radial-gradient(circle at 35% 25%, #5ceaff, #1769ff 65%, #09255a);
  box-shadow: 0 0 70px rgba(32,217,255,.35);
}
@keyframes pulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }

.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 10px; text-transform: uppercase; letter-spacing: .15em; opacity: .5; display: flex; gap: 10px; align-items: center; }
.scroll-cue span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: bounce 1.5s infinite; }
@keyframes bounce { 50% { transform: translateY(5px); } }

.section { padding: 110px 0; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
.section-heading h2, .section-intro h2, .narrow h2, .register-intro h2 { font-size: clamp(42px, 5vw, 70px); line-height: .98; letter-spacing: -.055em; margin-top: 18px; }
.section h2 span { color: var(--blue); }
.about-copy { max-width: 620px; color: var(--muted); font-size: 17px; }
.about-copy p + p { margin-top: 18px; }
.text-link { display: inline-flex; gap: 10px; margin-top: 26px; font-weight: 700; color: var(--blue); }

.events-section { background: white; }
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 55px; }
.section-intro > p { max-width: 380px; color: var(--muted); }

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.event-card { min-height: 450px; padding: 28px; border-radius: var(--radius); color: white; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.event-card::after { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; right: -70px; top: 80px; }
.event-games { background: linear-gradient(145deg, #0b2144, #123e7a); }
.event-learning { background: linear-gradient(145deg, #075a68, #0b8697); }
.event-dinner { background: linear-gradient(145deg, #25204d, #4c3d89); }
.event-number { font: 700 12px "Space Grotesk"; opacity: .6; }
.event-icon { font-size: 45px; opacity: .75; }
.event-tag { font-size: 10px; letter-spacing: .16em; font-weight: 700; opacity: .65; }
.event-content h3 { font-size: 35px; line-height: 1; margin: 10px 0 14px; letter-spacing: -.04em; }
.event-content p:last-child { color: rgba(255,255,255,.68); font-size: 14px; max-width: 290px; }

.program-section { background: var(--paper); }
.program-list { border-top: 1px solid var(--line); }
.program-row { display: grid; grid-template-columns: 130px 1fr 55px; gap: 25px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.program-day { font: 700 11px "Space Grotesk"; color: var(--blue); letter-spacing: .13em; }
.program-main > span { font-size: 10px; font-weight: 700; letter-spacing: .15em; color: var(--muted); }
.program-main h3 { font-size: 27px; margin: 4px 0; }
.program-main p { color: var(--muted); font-size: 14px; max-width: 720px; }
.program-badge { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 700 12px "Space Grotesk"; }

.contribution { background: var(--navy); color: white; }
.contribution-box { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 50px; align-items: center; }
.contribution h2 { font-size: 68px; letter-spacing: -.06em; margin-top: 8px; }
.contribution p { color: rgba(255,255,255,.64); }
.contribution-details ul { list-style: none; margin-top: 12px; display: grid; gap: 9px; color: rgba(255,255,255,.78); }
.contribution-details li::before { content: "✓"; color: var(--cyan); margin-right: 10px; }
.account-box { padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.04); }
.account-box > p { font-size: 10px; letter-spacing: .15em; margin-bottom: 15px; }
.account-box div { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.09); display: flex; justify-content: space-between; gap: 15px; font-size: 12px; }
.account-box span { color: rgba(255,255,255,.48); }
.account-box strong { text-align: right; }

.transparency { background: white; }
.narrow { max-width: 760px; }
.narrow > p:last-child { color: var(--muted); font-size: 18px; margin-top: 28px; }

.register-section { color: white; background: linear-gradient(135deg, #07152d, #0d2f5f); }
.register-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.register-intro > p:not(.eyebrow) { color: rgba(255,255,255,.67); margin-top: 25px; max-width: 480px; }
.rules { display: grid; gap: 9px; margin-top: 28px; color: rgba(255,255,255,.7); font-size: 12px; }

.registration-form { padding: 35px; border-radius: 26px; background: white; color: var(--ink); box-shadow: var(--shadow); }
.form-title { display: flex; align-items: center; gap: 15px; margin-bottom: 26px; }
.form-title span { color: var(--blue); font: 700 12px "Space Grotesk"; }
.form-title h3 { font-size: 25px; }
.registration-form label { display: block; margin-bottom: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.registration-form label > span { display: block; font-size: 11px; font-weight: 700; margin-bottom: 7px; }
.registration-form input, .registration-form select {
  width: 100%; border: 1px solid var(--line); background: #fbfdff; color: var(--ink);
  border-radius: 12px; padding: 13px 14px; outline: none; transition: .2s;
}
.registration-form input:focus, .registration-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,255,.08); }
.registration-form input.invalid, .registration-form select.invalid { border-color: #e04848; }
.hint { display: block; color: #8995a7; font-size: 10px; margin-top: 5px; }
.error { display: block; color: #d43e3e; font-size: 11px; min-height: 0; margin-top: 4px; }
.form-submit { width: 100%; margin-top: 3px; }
.form-note { font-size: 10px; color: #8a95a5; text-align: center; margin-top: 12px; }

.success-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(4,13,28,.78); backdrop-filter: blur(12px); display: none; place-items: center; padding: 20px; }
.success-modal.show { display: grid; }
.success-card { position: relative; background: white; color: var(--ink); max-width: 500px; width: 100%; padding: 48px; border-radius: 28px; text-align: center; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 18px; top: 15px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--muted); }
.success-check { width: 70px; height: 70px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: #e8f8ff; color: var(--blue); font-size: 34px; font-weight: 700; }
.success-card h2 { font-size: 44px; line-height: .98; letter-spacing: -.05em; margin: 15px 0; }
.success-card p:not(.eyebrow) { color: var(--muted); margin-bottom: 24px; }

.footer { background: #041022; color: white; padding: 75px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; padding-bottom: 60px; }
.footer-brand { margin-bottom: 18px; }
.footer-grid > div > p { color: rgba(255,255,255,.5); font-size: 13px; }
.footer-motto { margin-top: 10px; color: var(--cyan) !important; }
.footer-links { display: grid; gap: 8px; min-width: 180px; }
.footer-links p { color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .16em; margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.72); }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.4); font-size: 10px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 20px; right: 20px; padding: 20px; border-radius: 18px; background: rgba(7,21,45,.97); flex-direction: column; align-items: stretch; gap: 5px; }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px; }
  .nav-cta { text-align: center; }
  .menu-toggle { display: block; }
  .hero-content, .two-col, .register-layout { grid-template-columns: 1fr; }
  .hero-content { gap: 50px; }
  .hero-visual { order: -1; }
  .visual-card { max-width: 330px; }
  .hero { min-height: auto; }
  .section-intro { align-items: start; flex-direction: column; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card { min-height: 360px; }
  .contribution-box { grid-template-columns: 1fr; }
  .register-layout { gap: 45px; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .navbar { min-height: 68px; }
  .hero-content { padding: 115px 0 70px; }
  .hero h1 { font-size: 70px; }
  .hero-text { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero-meta { gap: 18px; }
  .section { padding: 78px 0; }
  .section-heading h2, .section-intro h2, .narrow h2, .register-intro h2 { font-size: 46px; }
  .program-row { grid-template-columns: 70px 1fr; gap: 12px; }
  .program-badge { display: none; }
  .program-main h3 { font-size: 22px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .registration-form { padding: 25px 20px; }
  .contribution h2 { font-size: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
