/* =========================================================================
   TechLegion Switzerland — Design System
   Brand: Deep navy + electric blue, futuristic Swiss tech
   ========================================================================= */

:root {
  /* Brand colors */
  --bg-deep: #050816;
  --bg-navy: #0a0e2a;
  --bg-elev: #111638;
  --bg-card: rgba(20, 28, 70, 0.55);
  --bg-card-hover: rgba(30, 42, 95, 0.75);
  --border: rgba(120, 160, 255, 0.18);
  --border-strong: rgba(120, 160, 255, 0.4);

  --accent: #4d8bff;
  --accent-2: #6fa8ff;
  --accent-glow: #7dd3ff;
  --accent-cyan: #00d4ff;
  --accent-violet: #8b5cf6;

  --text: #e8edff;
  --text-dim: #a8b3d9;
  --text-muted: #7a85a8;
  --white: #ffffff;
  --swiss-red: #d52b1e;

  --grad-hero: radial-gradient(ellipse at 20% 0%, rgba(77, 139, 255, 0.18), transparent 55%),
               radial-gradient(ellipse at 80% 30%, rgba(139, 92, 246, 0.12), transparent 50%),
               linear-gradient(180deg, #050816 0%, #0a0e2a 100%);
  --grad-accent: linear-gradient(135deg, #4d8bff 0%, #8b5cf6 100%);
  --grad-cyan: linear-gradient(135deg, #00d4ff 0%, #4d8bff 100%);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing */
  --container: 1200px;
  --container-narrow: 880px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(77, 139, 255, 0.25);

  --t-fast: 0.18s ease;
  --t: 0.3s ease;
}

/* =========== Base reset =========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent-2); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-glow); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--white);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; color: var(--text-dim); }

/* =========== Background stars =========== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(125,211,255,0.4), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(125,211,255,0.5), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.4), transparent);
  background-size: 600px 600px, 400px 400px, 500px 500px, 350px 350px, 700px 700px;
  background-position: 0 0, 100px 200px, 300px 100px, 200px 400px, 500px 300px;
  opacity: 0.6;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: var(--grad-hero);
}

/* =========== Layout =========== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.25rem; }

section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(77, 139, 255, 0.08);
}
.section-head p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

.text-gradient {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========== Navigation =========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 22, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-logo img { width: 38px; height: 38px; border-radius: 50%; }
.nav-logo:hover { color: var(--white); }
.nav-logo .accent { color: var(--accent-glow); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--t-fast);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(77, 139, 255, 0.1);
}

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

.lang-switch {
  position: relative;
}
.lang-switch button.lang-toggle {
  background: rgba(77, 139, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--t-fast);
}
.lang-switch button.lang-toggle:hover {
  background: rgba(77, 139, 255, 0.18);
  border-color: var(--border-strong);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.4rem;
  box-shadow: var(--shadow);
  display: none;
  z-index: 200;
}
.lang-menu.open { display: block; }
.lang-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lang-menu button:hover { background: rgba(77, 139, 255, 0.15); }
.lang-menu button.active { color: var(--accent-glow); background: rgba(77, 139, 255, 0.1); }
.lang-menu .flag { font-size: 1rem; }

.nav-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* =========== Buttons =========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-accent);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(77, 139, 255, 0.45);
  color: var(--white);
}
.btn-ghost {
  background: rgba(77, 139, 255, 0.08);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(77, 139, 255, 0.18);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent-glow);
  color: var(--white);
}
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-whatsapp {
  background: #25d366;
  color: #052b1c;
  border-color: #25d366;
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  color: #052b1c;
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(37, 211, 102, 0.55);
}
.btn-whatsapp::before { content: '💬'; }

/* =========== Hero =========== */
.hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Constellation canvas — animated dots-and-lines network */
.constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
/* Hero backdrop image (uses banner.png with heavy blend) */
.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url('../img/banner.png');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.18;
  z-index: -2;
  mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%);
  transform: translateZ(0);
  transition: transform 0.1s linear;
  filter: saturate(1.3) hue-rotate(-8deg);
}
/* Decorative floating shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
.hero-shape.s1 { top: 10%; left: -5%; width: 280px; height: 280px; background: rgba(77, 139, 255, 0.35); }
.hero-shape.s2 { bottom: 0; right: -8%; width: 380px; height: 380px; background: rgba(139, 92, 246, 0.25); animation-delay: -7s; }
.hero-shape.s3 { top: 50%; left: 50%; width: 220px; height: 220px; background: rgba(0, 212, 255, 0.20); animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(40px, -30px); }
  66% { transform: translate(-30px, 25px); }
}
.hero h1 {
  text-shadow: 0 0 60px rgba(77, 139, 255, 0.35);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero-text { max-width: 620px; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero .tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero .tagline::before, .hero .tagline::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-left: auto;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(77, 139, 255, 0.35), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}
.hero-visual img { width: 100%; height: auto; filter: drop-shadow(0 20px 60px rgba(77, 139, 255, 0.35)); }
.orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
.orbit::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px; height: 12px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--accent-cyan);
}
.orbit.orbit-2 { inset: -8%; animation-duration: 90s; animation-direction: reverse; }
.orbit.orbit-2::before { background: var(--accent-violet); box-shadow: 0 0 18px var(--accent-violet); }

@keyframes spin { to { transform: rotate(360deg); } }

/* =========== Cards & Grids =========== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(77, 139, 255, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
/* Light-sweep effect on card hover */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(125, 211, 255, 0.10) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }
.card:hover::after { left: 130%; }

/* Circuit-line section divider — subtle hand-drawn feel */
.circuit-divider {
  position: relative;
  height: 1px;
  margin: 2rem auto;
  max-width: 800px;
  background: linear-gradient(90deg, transparent 0%, var(--border-strong) 20%, var(--accent) 50%, var(--border-strong) 80%, transparent 100%);
  opacity: 0.6;
}
.circuit-divider::before,
.circuit-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan);
  transform: translateY(-50%);
}
.circuit-divider::before { left: 50%; transform: translate(-50%, -50%); }
.circuit-divider::after  { left: 50%; transform: translate(-50%, -50%); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 14px var(--accent-cyan); opacity: 1; }
  50% { box-shadow: 0 0 26px var(--accent-cyan); opacity: 0.55; }
}
.card .card-icon {
  display: inline-flex;
  width: 48px; height: 48px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(77, 139, 255, 0.15);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-glow);
}
.card .card-link::after { content: '→'; transition: transform var(--t-fast); }
.card:hover .card-link::after { transform: translateX(4px); }

/* Program card variant */
.program-card { height: 100%; display: flex; flex-direction: column; }
.program-card .card-link { margin-top: auto; padding-top: 1rem; }

/* =========== Stats =========== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* =========== Events =========== */
.event-list { display: flex; flex-direction: column; gap: 1rem; }
.event-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t);
}
.event-item:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.event-date {
  text-align: center;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(77, 139, 255, 0.12);
  border: 1px solid var(--border);
}
.event-date .day {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
}
.event-date .month {
  font-size: 0.75rem;
  color: var(--accent-glow);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-top: 0.25rem;
  display: block;
}
.event-info h4 { margin-bottom: 0.25rem; }
.event-info p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.event-info .meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.4rem; }

.calendar-embed {
  width: 100%;
  height: 700px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}
.calendar-embed iframe { width: 100%; height: 100%; border: 0; }

/* =========== Forms =========== */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.form-group label .req { color: var(--accent-cyan); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(5, 8, 22, 0.6);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--t-fast), background var(--t-fast);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(5, 8, 22, 0.8);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  cursor: pointer;
}
.checkbox input[type=checkbox] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  backdrop-filter: blur(10px);
}
.form-card h3 { margin-bottom: 0.5rem; }
.form-card .form-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.form-section-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.form-section-title:first-child { margin-top: 0; }

/* =========== Team =========== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: all var(--t);
}
.team-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.team-avatar,
.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.team-photo {
  object-fit: cover;
  background: var(--bg-elev);
}
.team-card h4 { margin-bottom: 0.15rem; }
.team-card .role {
  color: var(--accent-glow);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.team-card p { font-size: 0.9rem; }
.team-card .social { display: inline-flex; gap: 0.5rem; margin-top: 0.75rem; }
.team-card .social a {
  display: inline-flex;
  width: 34px; height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(77, 139, 255, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all var(--t-fast);
}
.team-card .social a:hover { background: var(--accent); color: var(--white); }

/* =========== Partners =========== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: all var(--t);
  min-height: 100px;
}
.partner-tile:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  color: var(--white);
}

/* =========== Footer =========== */
.footer {
  background: var(--bg-navy);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 320px; }
.footer h5 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer a { color: var(--text-dim); font-size: 0.92rem; }
.footer a:hover { color: var(--white); }
.footer .social-row { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer .social-row a {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(77, 139, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--text);
}
.footer .social-row a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========== Misc =========== */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-glow);
  background: rgba(77, 139, 255, 0.12);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 3rem 0;
  border: 0;
}

.callout {
  background: linear-gradient(135deg, rgba(77, 139, 255, 0.12), rgba(139, 92, 246, 0.08));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.callout h3 { margin-bottom: 0.5rem; }

/* NASA Space Apps band — two-col with real logo */
.nasa-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top right, rgba(213, 43, 30, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(77, 139, 255, 0.14), rgba(139, 92, 246, 0.08));
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}
.nasa-band::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--swiss-red), transparent 30%, var(--accent) 70%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.nasa-band-text h3 { margin-bottom: 0.5rem; }
.nasa-band-text p { color: var(--text); margin-bottom: 0; }
.nasa-band-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nasa-band-logo img {
  max-width: 240px;
  width: 100%;
  filter: drop-shadow(0 10px 30px rgba(213, 43, 30, 0.25));
  animation: gentle-float 7s ease-in-out infinite;
}
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 760px) {
  .nasa-band { grid-template-columns: 1fr; text-align: center; }
}

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.5rem; color: var(--text-dim); }
.prose li { margin-bottom: 0.4rem; }

.swiss-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--swiss-red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.swiss-badge::before { content: '+'; font-weight: 900; }

/* =========== Animations =========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========== Responsive =========== */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    gap: 0.25rem;
  }
  .nav-links.mobile-open a { padding: 0.75rem 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .event-item { grid-template-columns: 80px 1fr; }
  .event-item .btn { grid-column: 2; justify-self: start; }
  .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .orbit { animation: none; }
}
