:root {
  --bg-deep: #051613;
  --bg-elevated: #0a221d;
  --bg-card: rgba(11, 37, 31, 0.78);
  --emerald: #10d9a0;
  --emerald-soft: rgba(16, 217, 160, 0.16);
  --crimson: #e83b3b;
  --crimson-soft: rgba(232, 59, 59, 0.18);
  --gold: #f5b942;
  --gold-soft: rgba(245, 185, 66, 0.16);
  --text-main: #f1f7f5;
  --text-muted: #9eb9b1;
  --border-subtle: rgba(16, 217, 160, 0.18);
  --border-strong: rgba(16, 217, 160, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radius-lg: 24px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: 'Fredoka', 'Outfit', system-ui, sans-serif;
  letter-spacing: 0.01em;
}

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

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

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Ambient Background */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, #0d332a 0%, var(--bg-deep) 68%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.orb-emerald {
  width: 520px;
  height: 520px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(16, 217, 160, 0.45), transparent 70%);
}

.orb-crimson {
  width: 440px;
  height: 440px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(232, 59, 59, 0.28), transparent 70%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 217, 160, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 217, 160, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black 25%, transparent 80%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(5, 22, 19, 0.72);
  border-bottom: 1px solid rgba(16, 217, 160, 0.12);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-crest {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(11, 37, 31, 0.9);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.is-active {
  background: var(--emerald);
  color: #041d17;
  box-shadow: 0 4px 14px rgba(16, 217, 160, 0.35);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.back-btn:hover {
  border-color: var(--emerald);
  transform: translateY(-1px);
}

/* Hero */
main {
  flex: 1;
}

.hero {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(16, 217, 160, 0.12);
  border: 1px solid rgba(16, 217, 160, 0.34);
  color: var(--emerald);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 217, 160, 0.7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 217, 160, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(16, 217, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 217, 160, 0); }
}

.logo-wrap {
  width: min(370px, 92%);
  margin-top: 0.2rem;
}

.hero-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: var(--text-muted);
  max-width: 54ch;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
}

.meta-chip svg {
  width: 17px;
  height: 17px;
  color: var(--emerald);
  flex-shrink: 0;
}

/* Hero Visual Stage */
.hero-stage {
  position: relative;
}

.stage-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(16, 217, 160, 0.16);
  aspect-ratio: 16 / 10;
}

.stage-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 22, 19, 0.45) 100%);
  pointer-events: none;
}

.floating-crest {
  position: absolute;
  bottom: -22px;
  left: -18px;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  padding: 5px;
  background: linear-gradient(135deg, rgba(16, 217, 160, 0.8), rgba(232, 59, 59, 0.65));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.6);
  animation: floatSlow 5.5s ease-in-out infinite;
}

.floating-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17px;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

/* Pillars Section */
.pillars {
  padding: 2rem 0 4.5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: #ffffff;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.pillar-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
}

.pillar-icon svg {
  width: 25px;
  height: 25px;
}

.icon-crimson {
  background: var(--crimson-soft);
  color: #ff6b6b;
  border: 1px solid rgba(232, 59, 59, 0.35);
}

.icon-emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(16, 217, 160, 0.35);
}

.icon-gold {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(245, 185, 66, 0.35);
}

.pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* Legal Pages */
.legal-main {
  padding: 3rem 0 4.5rem;
  max-width: 920px;
}

.legal-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid var(--border-strong);
  color: var(--emerald);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.legal-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.legal-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  margin-bottom: 1.25rem;
}

.legal-card h2 {
  font-size: 1.22rem;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.legal-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card strong {
  color: var(--text-main);
}

.legal-link {
  color: var(--emerald);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(16, 217, 160, 0.14);
  background: rgba(4, 17, 14, 0.82);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--emerald);
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
  }

  .meta-chips {
    justify-content: center;
  }

  .floating-crest {
    width: 78px;
    height: 78px;
    bottom: -14px;
    left: 14px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .pulse-dot,
  .floating-crest {
    animation: none;
  }

  .pillar-card,
  .lang-btn,
  .back-btn {
    transition: none;
  }
}
