:root {
  color-scheme: dark;
  --bg-primary: #050b1b;
  --bg-deep: #040812;
  --accent: #56f0d2;
  --accent-2: #44d3ff;
  --text: #e4f0ff;
  --muted: #8aa4c7;
  --card: rgba(8, 18, 36, 0.75);
  --card-border: rgba(148, 163, 184, 0.2);
}

.font-display {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.font-body {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.bg-anim {
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(900px 500px at 85% 30%, rgba(52, 211, 153, 0.12), transparent 60%),
    radial-gradient(1000px 600px at 45% 95%, rgba(31, 94, 214, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg-primary) 0%, #050a17 40%, var(--bg-deep) 100%);
  position: relative;
  overflow-x: hidden;
}

.bg-anim::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.08) 0px, rgba(148, 163, 184, 0.08) 1px, transparent 1px, transparent 52px),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.05) 0px, rgba(148, 163, 184, 0.05) 1px, transparent 1px, transparent 52px);
  transform: rotate(10deg);
  opacity: 0.25;
  animation: drift 22s linear infinite;
  pointer-events: none;
}

.bg-anim::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(320px 220px at 10% 70%, rgba(86, 240, 210, 0.16), transparent 70%),
    radial-gradient(320px 220px at 80% 15%, rgba(68, 211, 255, 0.16), transparent 70%);
  opacity: 0.8;
  pointer-events: none;
}

.page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: url("assets/img/megarete-hero.png") center/cover no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: -2;
  will-change: transform;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.35) 0%, rgba(4, 10, 20, 0.8) 100%);
  z-index: -1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.75;
  filter: saturate(1.05) contrast(1.05);
}


.hero-content {
  max-width: 98rem;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  margin-top: 0;
  transform: translateY(50px);
}

.logo-float {
  position: absolute;
  top: -44px;
  left: 32px;
  z-index: 30;
  pointer-events: auto;
}

.lang-switch {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 40;
  display: inline-flex;
  gap: 0.5rem;
  pointer-events: auto;
}

.lang-pill {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.35);
  color: rgba(248, 250, 252, 0.8);
  text-decoration: none;
  background: rgba(5, 11, 27, 0.35);
  backdrop-filter: blur(6px);
}

.lang-pill.is-active {
  color: #0b1a1a;
  background: rgba(253, 224, 71, 0.95);
  border-color: rgba(253, 224, 71, 0.95);
}

@media (max-width: 900px) {
  .logo-float {
    top: -28px;
    left: 16px;
  }

  .lang-switch {
    top: 16px;
    right: 16px;
    gap: 0.4rem;
  }
}

.hero-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
}

@keyframes drift {
  0% { transform: translate3d(-2%, -2%, 0) rotate(10deg); }
  50% { transform: translate3d(2%, 1%, 0) rotate(10deg); }
  100% { transform: translate3d(-2%, -2%, 0) rotate(10deg); }
}

.section-eyebrow {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.85);
  margin-bottom: 0.75rem;
}

.logo-label {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f8fafc;
  text-decoration: none;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.hero-benefits {
  margin-top: 0;
}

.benefits-frame {
  border: 2px solid rgba(253, 224, 71, 0.85);
  border-radius: 1.25rem;
  padding: 1rem 1.5rem;
  background: rgba(253, 224, 71, 0.06);
  box-shadow: 0 16px 40px rgba(253, 224, 71, 0.12);
  display: inline-flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 100%;
  margin-top: 48px;
}

.benefit-item {
  margin: 0;
}

.hero-top {
  margin-top: calc(-12rem - 70px);
}

.physics-block {
  margin-top: 0;
  transform: translateY(50px);
}

.physics-gap {
  margin-top: 70px;
}

.section-title {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-lede {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.glass-panel {
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: linear-gradient(160deg, rgba(12, 25, 46, 0.85), rgba(7, 14, 28, 0.85));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.grid-card {
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(7, 14, 28, 0.7);
  color: var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  padding: 0.45rem 0.9rem;
  text-transform: uppercase;
}

.wave path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.6s ease forwards, pulse 3.2s ease-in-out infinite 2.6s;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
