:root {
  --bg: #0b1220;
  --bg2: #0f1b33;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.60);
  --line: rgba(255, 255, 255, 0.12);
  --brand: #78b7ff;
  --brand2: #9bffa6;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius2: 24px;
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: 
    /* Hexagonal pattern - tessellating with joint circles */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90.066 156'%3E%3Cdefs%3E%3Cpattern id='hex' patternUnits='userSpaceOnUse' width='90.066' height='156'%3E%3Cpath d='M45.033 0 L90.066 26 L90.066 78 L45.033 104 L0 78 L0 26 Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='0.8'/%3E%3Ccircle cx='45.033' cy='0' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='90.066' cy='26' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='90.066' cy='78' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='45.033' cy='104' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='0' cy='78' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='0' cy='26' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Cpath d='M0 78 L45.033 104 L45.033 156 L0 182 L-45.033 156 L-45.033 104 Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='0.8'/%3E%3Ccircle cx='0' cy='78' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='45.033' cy='104' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='45.033' cy='156' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='0' cy='182' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='-45.033' cy='156' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='-45.033' cy='104' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Cpath d='M90.066 78 L135.099 104 L135.099 156 L90.066 182 L45.033 156 L45.033 104 Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='0.8'/%3E%3Ccircle cx='90.066' cy='78' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='135.099' cy='104' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='135.099' cy='156' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='90.066' cy='182' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='45.033' cy='156' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='45.033' cy='104' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23hex)'/%3E%3C/svg%3E"),
    radial-gradient(1200px 900px at 20% -10%, rgba(120, 183, 255, 0.18), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(155, 255, 166, 0.14), transparent 50%),
    linear-gradient(180deg, var(--bg), #070b14 70%);
  background-size: 90.066px 156px, auto, auto, auto;
  background-position: 0 0, 20% -10%, 90% 10%, 0 0;
  color: var(--text);
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

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

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(135deg, rgba(120, 183, 255, 1), rgba(155, 255, 166, 0.9));
  box-shadow: 0 10px 25px rgba(120, 183, 255, 0.15);
}

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

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-tag {
  font-size: 0.88rem;
  color: var(--muted2);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-lines {
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  display: block;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.nav-menu a {
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(120, 183, 255, 0.95), rgba(155, 255, 166, 0.85));
  color: #06101a;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

.btn-small {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}

/* Language switch (segmented control) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  min-width: 44px;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.is-active {
  color: #06101a;
  background: linear-gradient(135deg, rgba(120, 183, 255, 0.95), rgba(155, 255, 166, 0.85));
}

/* Make language switch buttons keyboard-visible */
.lang-btn:focus,
.nav-toggle:focus,
.btn:focus,
.nav-menu a:focus,
input:focus,
textarea:focus {
  outline: none;
}

.hero {
  position: relative;
  padding: 70px 0 40px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin: 0 0 10px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 3.2vw, 3.1rem);
  line-height: 1.1;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.stat {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  min-width: 140px;
}

.stat-value {
  font-weight: 800;
  font-size: 1.05rem;
}

.stat-label {
  color: var(--muted2);
  font-size: 0.92rem;
}

.hero-card .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
}

.card-title {
  margin: 4px 0 10px;
}

.checklist {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.checklist li {
  margin: 10px 0;
}

.card-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-visual {
  position: absolute;
  left: 50%;
  transform: translateX(-35%);
  bottom: -6%;
  width: min(78vw, 1100px);
  aspect-ratio: 16 / 9;
  border-radius: 32px;
  border: 1px solid var(--line);
  overflow: hidden;
  background-image:
    linear-gradient(115deg, rgba(11, 18, 32, 0.95) 0%, rgba(11, 18, 32, 0.85) 35%, rgba(11, 18, 32, 0.45) 60%, rgba(11, 18, 32, 0) 78%),
    url("/assets/img/media/ch-mars-1.png");
  background-size: cover;
  background-position: center;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
  clip-path: inset(8% 6% 0 6% round 32px);
  opacity: 0.9;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0) 55%, rgba(11, 18, 32, 0.4) 100%),
    linear-gradient(90deg, rgba(11, 18, 32, 0.55) 0%, rgba(11, 18, 32, 0) 40%);
}

.gridlines {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotate(-6deg);
  opacity: 0.20;
}

.glow {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -220px;
  bottom: -260px;
  background: radial-gradient(circle at 30% 30%, rgba(120, 183, 255, 0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(155, 255, 166, 0.22), transparent 55%);
  filter: blur(18px);
  opacity: 0.9;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.00));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 78ch;
}

.section-head h2 {
  margin: 0;
  font-size: 1.8rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.card h3 {
  margin: 0 0 10px;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.feature h3 {
  margin: 0 0 10px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #06101a;
  background: linear-gradient(135deg, rgba(120, 183, 255, 0.95), rgba(155, 255, 166, 0.85));
}

.step-body h3 {
  margin: 0 0 6px;
}

.step-body p {
  margin: 0;
  color: var(--muted);
}

.callout {
  margin-top: 18px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(800px 400px at 20% 20%, rgba(120, 183, 255, 0.16), transparent 60%),
    radial-gradient(800px 400px at 80% 10%, rgba(155, 255, 166, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.03);
}

.callout-inner {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.callout-inner h3 {
  margin: 0;
}

.callout-inner p {
  margin: 0;
  max-width: 72ch;
}

.partner-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.partner .muted {
  margin-top: 6px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-image {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  margin: 0 auto;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info h3 {
  margin: 0 0 4px;
}

.team-role {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--brand);
  font-size: 0.95rem;
}

.team-info p.muted {
  margin: 0;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.media-item {
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  aspect-ratio: 16 / 9;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.media-item:hover img {
  transform: scale(1.02);
}

.form .field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(120, 183, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(120, 183, 255, 0.12);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.bullets li {
  margin: 10px 0;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.18);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-title {
  font-weight: 800;
}

.footer-subtitle {
  font-size: 0.95rem;
}

.footer-right {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

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

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

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

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

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

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

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    right: 20px;
    top: 70px;
    width: min(340px, calc(100vw - 40px));
    background: rgba(11, 18, 32, 0.92);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  /* Make language buttons sit nicely inside the dropdown */
  .lang-switch {
    padding: 6px 6px;
    justify-content: flex-start;
  }

  .nav-menu a {
    padding: 12px 12px;
  }

  .nav-menu.is-open {
    display: flex;
  }
}

/* Medium screens: reduce header crowding before mobile breakpoint */
@media (max-width: 1100px){
  .brand-tag{ display:none; }
  .nav-menu{ gap: 10px; }
  .nav-menu a{ padding: 10px 8px; }
}
