:root {
  /* --bg-blur: 12px; */
  --glass: rgba(0, 0, 0, 0.36);
  --glass-strong: rgba(0, 0, 0, 0.6);
  --text: #f7f9fb;
  --muted: #c8d3df;
  --accent: #44d07b;
  --accent-strong: #2eb162;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max-width: 1200px;
  --transition: 60ms ease;
}

/* Light theme overrides */
:root.light-theme,
:root[data-theme="light"] {
  --glass: rgba(255, 255, 255, 0.65);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --text: #1a1d24;
  --muted: #4b5563;
  --card: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

:root.light-theme body.shell-body,
:root[data-theme="light"] body.shell-body {
  background: #f0f4f8;
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle:active {
  background: rgba(255, 255, 255, 0.15);
}

.theme-toggle .material-symbols-outlined {
  font-size: 18px;
}

:root.light-theme .theme-toggle,
:root[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

:root.light-theme .theme-toggle:hover,
:root[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

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

body.shell-body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: #05070a;
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watermark {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: grid;
  place-items: center;
  mix-blend-mode: screen;
  animation: brand-grow 5s ease-out forwards;
}

.watermark img {
  width: min(60vw, 520px);
  opacity: 0.78;
  filter: drop-shadow(0 0 36px rgba(99, 247, 255, 0.22));
}

@keyframes brand-grow {
  0% { transform: scale(0.28); opacity: 0.12; filter: drop-shadow(0 0 0 rgba(99, 247, 255, 0)); }
  60% { transform: scale(0.76); opacity: 0.68; filter: drop-shadow(0 0 24px rgba(99, 247, 255, 0.28)); }
  100% { transform: scale(0.84); opacity: 0.78; filter: drop-shadow(0 0 36px rgba(99, 247, 255, 0.22)); }
}

/* Low graphics mode - no GPU acceleration */
body.low-graphics .watermark {
  animation: none;
  transform: scale(0.84);
}

body.low-graphics .watermark img {
  opacity: 1;
  filter: none;
}

body.low-graphics .video-bg {
  filter: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  /* backdrop-filter: blur(6px); */
  /* -webkit-backdrop-filter: blur(6px); */
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.45));
  border-bottom: 1px solid var(--border);
  will-change: transform;
}

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

.brand,
.header-actions {
  flex: 1;
  min-width: 0;
}

.header-actions {
  justify-content: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  height: 36px;
  width: auto;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-divider,
.nav-lang-slot,
.nav-login-link,
.nav-controls-row {
  display: none;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav a.active {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(68, 208, 123, 0.5);
  border-radius: 8px;
}

.nav .login-link {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(68, 208, 123, 0.35);
  font-weight: 600;
}

.nav .login-link:hover {
  background: rgba(68, 208, 123, 0.12);
  color: var(--text);
}

.header-actions .login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(68, 208, 123, 0.35);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: none;
}

.header-actions .login-link:hover {
  background: rgba(68, 208, 123, 0.12);
  border-color: rgba(68, 208, 123, 0.6);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform var(--transition), opacity var(--transition);
}

body.menu-open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  flex: 1;
}

[data-slot="content-target"] {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-empty {
  padding: 0 0 40px;
  min-height: 0;
  gap: 0;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(145deg, var(--glass), rgba(0, 0, 0, 0.55));
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  /* backdrop-filter: blur(var(--bg-blur)); */
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--muted);
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.btn.primary {
  background: var(--accent);
  color: #0c0c0c;
  border: none;
}

.btn.primary:hover { background: var(--accent-strong); }

.btn.ghost {
  background: rgba(0, 0, 0, 0.35);
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  /* backdrop-filter: blur(var(--bg-blur)); */
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }

.section {
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.section h2, .section h3 { margin-bottom: 10px; }
.section p { color: var(--muted); line-height: 1.6; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.tile {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

[data-slot="footer"] {
  margin-top: auto;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 12px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(20, 52, 36, 0.7);
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 840px) {
  .nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(8, 24, 16, 0.96);
    border: 1px solid rgba(68, 208, 123, 0.3);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav a {
    border: 1px solid rgba(68, 208, 123, 0.2);
    width: 100%;
  }

  body.menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hamburger { display: inline-flex; }

  .header-actions .theme-toggle,
  .header-actions .lang-slot,
  .header-actions .login-link {
    display: none;
  }

  .nav-divider {
    display: block;
    width: 100%;
    border: none;
    border-top: 1px solid var(--border);
    margin: 6px 0;
  }

  .nav-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 12px;
  }

  .nav-lang-slot {
    display: block;
    flex: 1;
    padding: 0;
  }

  .nav-theme-toggle {
    flex-shrink: 0;
  }

  .nav-login-link {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
  }

  .nav-login-link:hover {
    background: rgba(68, 208, 123, 0.12);
  }
}

@media (max-width: 540px) {
  .site-header { padding: 12px 16px; }
  .content { padding: 28px 16px 60px; gap: 40px; }
  .hero-text { padding: 18px; }
  .tile, .card { padding: 14px; }
  .cta-strip { align-items: flex-start; }
}

/* POCs Page Styles */
.pocs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.poc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.poc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.poc-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(68, 208, 123, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.poc-icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--accent);
}

.poc-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.poc-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.poc-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.poc-status--planned {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.poc-status--progress {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.poc-status--done {
  background: rgba(68, 208, 123, 0.15);
  color: var(--accent);
}

/* ===========================================
   PARK PAGE OVERRIDES
   =========================================== */

/* Hide nav, login, theme toggle in header - but keep language selector */
.site-header .nav {
  display: none !important;
}

.site-header .header-actions .login-link,
.site-header .header-actions .theme-toggle {
  display: none !important;
}

.site-header .hamburger {
  display: none !important;
}

/* Show language selector */
.site-header .header-actions .lang-slot {
  display: block !important;
}
