:root {
  --bg: #050505;
  --bg-alt: #0c0b0a;
  --panel: rgba(10, 10, 10, 0.78);
  --sand: #d9b777;
  --sand-soft: #b9935a;
  --text: #f4efe6;
  --muted: #9b9485;
  --stroke: rgba(217, 183, 119, 0.25);
  --radius: 20px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

canvas#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(217, 183, 119, 0.15), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(185, 147, 90, 0.2), transparent 40%),
    var(--bg);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.5rem);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.7);
  color: var(--sand);
  font-size: 0.9rem;
}

.lang-switch select {
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.lang-switch option {
  background: var(--bg);
  color: var(--text);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.hero .lede {
  max-width: 720px;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--sand);
  margin: 0;
}

.label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--sand-soft);
  margin-bottom: 0.4rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.button.primary {
  background: var(--sand);
  color: #2c1f11;
}

.button.ghost {
  border-color: var(--sand);
  color: var(--sand);
}

.button:hover {
  transform: translateY(-2px);
}

.grid {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.section-head h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.data-grid,
.signal-grid {
  display: grid;
  gap: 1.5rem;
}

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

.signal-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.data-card,
.signal-card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(12, 11, 10, 0.8), rgba(6, 6, 6, 0.9));
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.data-card:hover,
.signal-card:hover {
  border-color: rgba(217, 183, 119, 0.65);
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(18, 16, 14, 0.9), rgba(7, 7, 7, 0.95));
}

.data-card h3,
.signal-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.data-card p,
.signal-card p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.data-card span {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--sand-soft);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.footer img {
  filter: sepia(80%) saturate(60%);
}

@media (max-width: 768px) {
  .cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .data-card,
  .signal-card {
    transition: none;
  }
}