/* Oloyid — inspired by guardrailsai.com/guardrailsoss */

:root {
  --green: #208b4e;
  --green-light: #2da866;
  --green-dark: #166b3a;
  --green-glow: rgba(32, 139, 78, 0.12);
  --charcoal: #1a2e2e;
  --charcoal-light: #2d4545;
  --slate: #5a6e6e;
  --muted: #8a9a9a;
  --bg: #f7f9f8;
  --white: #ffffff;
  --border: rgba(26, 46, 46, 0.08);
  --border-strong: rgba(26, 46, 46, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 2px 16px rgba(26, 46, 46, 0.05);
  --shadow-md: 0 8px 32px rgba(26, 46, 46, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 46, 46, 0.1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-math: "IBM Plex Serif", Georgia, serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 46, 46, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 46, 46, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: rgba(32, 139, 78, 0.18);
  color: var(--charcoal);
}

.site-top-actions {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-doc-link,
.site-github-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.site-github-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.65rem;
}

.site-github-link svg {
  width: 20px;
  height: 20px;
}

.site-doc-link:hover,
.site-github-link:hover {
  color: var(--green);
  border-color: rgba(32, 139, 78, 0.25);
  box-shadow: var(--shadow-md);
}

.site-main {
  position: relative;
  z-index: 1;
}

/* ── Background math & vectors ── */

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-vectors {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.math-layer {
  position: absolute;
  inset: 0;
}

.math {
  position: absolute;
  font-family: var(--font-math);
  font-style: italic;
  color: var(--green);
  opacity: 0.07;
  user-select: none;
  animation: mathFloat 18s ease-in-out infinite;
}

.sym-1  { top: 8%;  left: 6%;   font-size: 2.8rem; animation-delay: 0s; }
.sym-2  { top: 14%; right: 8%;  font-size: 2.2rem; animation-delay: -2s; color: var(--charcoal); }
.sym-3  { top: 28%; left: 12%;  font-size: 1.8rem; animation-delay: -4s; }
.sym-4  { top: 22%; right: 14%; font-size: 1.4rem; animation-delay: -6s; }
.sym-5  { top: 42%; left: 4%;   font-size: 3rem;   animation-delay: -1s; color: var(--charcoal); }
.sym-6  { top: 38%; right: 5%;  font-size: 2.4rem; animation-delay: -3s; }
.sym-7  { top: 55%; left: 9%;   font-size: 1.6rem; animation-delay: -5s; color: var(--charcoal); }
.sym-8  { top: 52%; right: 10%; font-size: 2rem;   animation-delay: -7s; }
.sym-9  { top: 68%; left: 7%;   font-size: 1.5rem; animation-delay: -2.5s; }
.sym-10 { top: 72%; right: 7%;  font-size: 1.7rem; animation-delay: -4.5s; color: var(--charcoal); }
.sym-11 { top: 85%; left: 15%;  font-size: 2.1rem; animation-delay: -6.5s; }
.sym-12 { top: 82%; right: 16%; font-size: 1.9rem; animation-delay: -8s; color: var(--charcoal); }
.sym-13 { top: 18%; left: 42%;  font-size: 1.3rem; animation-delay: -1.5s; }
.sym-14 { top: 48%; left: 38%;  font-size: 1.6rem; animation-delay: -3.5s; color: var(--charcoal); }
.sym-15 { top: 62%; right: 38%; font-size: 1.4rem; animation-delay: -5.5s; }
.sym-16 { top: 32%; right: 42%; font-size: 1.5rem; animation-delay: -7.5s; color: var(--charcoal); }
.sym-17 { top: 76%; left: 45%;  font-size: 1.2rem; animation-delay: -9s; }
.sym-18 { top: 10%; left: 78%;  font-size: 1.6rem; animation-delay: -2.2s; color: var(--charcoal); }
.sym-19 { top: 58%; left: 82%;  font-size: 2.3rem; animation-delay: -4.2s; }
.sym-20 { top: 90%; right: 42%; font-size: 1.4rem; animation-delay: -6.2s; color: var(--charcoal); }

@keyframes mathFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(2deg); }
  66% { transform: translateY(8px) rotate(-1deg); }
}

/* Per-section accent symbols */
.has-section-math {
  position: relative;
  overflow: hidden;
}

.section-math {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section-math span {
  position: absolute;
  font-family: var(--font-math);
  font-style: italic;
  color: var(--green);
  opacity: 0.06;
  animation: sectionMathDrift 22s ease-in-out infinite;
}

.section-math span:first-child {
  top: 12%;
  right: 6%;
  font-size: 4rem;
}

.section-math span:last-child {
  bottom: 10%;
  left: 5%;
  font-size: 3rem;
  animation-delay: -11s;
  color: var(--charcoal);
}

.section-math-light span {
  color: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.section-math-light span:last-child {
  color: rgba(255, 255, 255, 0.05);
}

@keyframes sectionMathDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -10px); }
}

.has-section-math > .container,
.hero > .container,
.hero > .hero-glow {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Typography ── */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-label::before,
.section-label::after {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(32, 139, 78, 0.4));
}

.section-label::after {
  background: linear-gradient(90deg, rgba(32, 139, 78, 0.4), transparent);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-title.center,
.center-block {
  text-align: center;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(32, 139, 78, 0.28);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(32, 139, 78, 0.35);
}

.btn-light {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

/* ── Hero ── */

.hero {
  position: relative;
  text-align: center;
  padding: 2.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 15%, var(--green-glow) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(26, 46, 46, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Logo showcase with orbiting math symbols */
.logo-showcase {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(380px, 88vw);
  height: min(300px, 68vw);
  margin: 0 auto 2rem;
}

.logo-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 139, 78, 0.14) 0%, transparent 70%);
  filter: blur(20px);
  animation: logoGlowPulse 4s ease-in-out infinite;
}

@keyframes logoGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

.logo-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: orbitSpin 60s linear infinite;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.orbit-sym {
  position: absolute;
  font-family: var(--font-math);
  font-style: italic;
  font-weight: 400;
  color: var(--green);
  opacity: 0.35;
  animation: orbitFloat 5s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(32, 139, 78, 0.15);
}

.os-1 { top: 2%;  left: 50%; transform: translateX(-50%); font-size: 1.6rem; animation-delay: 0s; }
.os-2 { top: 14%; right: 8%;  font-size: 1.3rem; color: var(--charcoal); opacity: 0.25; animation-delay: -0.6s; }
.os-3 { top: 42%; right: 0;  font-size: 1.5rem; animation-delay: -1.2s; }
.os-4 { bottom: 14%; right: 10%; font-size: 1.1rem; color: var(--charcoal); opacity: 0.28; animation-delay: -1.8s; }
.os-5 { bottom: 2%; left: 50%; transform: translateX(-50%); font-size: 1.8rem; animation-delay: -2.4s; }
.os-6 { bottom: 14%; left: 8%;  font-size: 1.4rem; color: var(--charcoal); opacity: 0.25; animation-delay: -3s; }
.os-7 { top: 42%; left: 0;   font-size: 1.2rem; animation-delay: -3.6s; }
.os-8 { top: 14%; left: 8%;  font-size: 1.35rem; color: var(--charcoal); opacity: 0.28; animation-delay: -4.2s; }

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

.os-1, .os-5 {
  animation-name: orbitFloatCenter;
}

@keyframes orbitFloatCenter {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(260px, 58vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(26, 46, 46, 0.08));
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.hero h1 span {
  color: var(--green);
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--slate);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── Trust strip ── */

.trust-strip {
  position: relative;
  padding: 1.5rem 0;
  background: linear-gradient(135deg, #142424 0%, #166b3a 45%, #1a2e2e 100%);
  overflow: hidden;
}

.trust-strip-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.trust-strip-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 14px 14px;
  background-position: 0 0, 0 0, 7px 7px;
}

.trust-strip-top .trust-strip-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 100% at 15% 50%, rgba(45, 168, 102, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 100% at 85% 50%, rgba(45, 168, 102, 0.1) 0%, transparent 70%);
}

.trust-sym {
  position: absolute;
  font-family: var(--font-math);
  font-style: italic;
  color: rgba(255, 255, 255, 0.07);
  user-select: none;
  line-height: 1;
}

.trust-strip-top .trust-sym:nth-child(2)  { top: 15%; left: 4%;   font-size: 1.4rem; }
.trust-strip-top .trust-sym:nth-child(3)  { top: 20%; right: 5%;  font-size: 1.1rem; }
.trust-strip-top .trust-sym:nth-child(4)  { top: 55%; left: 8%;   font-size: 1rem; }
.trust-strip-top .trust-sym:nth-child(5)  { top: 50%; right: 7%;  font-size: 1.3rem; }
.trust-strip-top .trust-sym:nth-child(6)  { top: 30%; left: 18%;  font-size: 0.9rem; }
.trust-strip-top .trust-sym:nth-child(7)  { top: 35%; right: 16%; font-size: 1rem; }
.trust-strip-top .trust-sym:nth-child(8)  { top: 60%; left: 22%;  font-size: 0.85rem; }
.trust-strip-top .trust-sym:nth-child(9)  { top: 65%; right: 20%; font-size: 1.1rem; }

.trust-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 168, 102, 0.5), transparent);
}

.trust-strip::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 168, 102, 0.3), transparent);
}

.trust-strip-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.trust-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25));
}

.trust-line:last-child {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent);
}

.trust-strip p {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.trust-strip p strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.trust-strip-top {
  padding: 1.1rem 0;
  background: #166b3a;
}

.trust-strip-top::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.trust-strip-top::after {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15), transparent);
}

.trust-strip-top .trust-strip-pattern::before {
  display: none;
}

.trust-strip-stacked {
  flex-direction: column;
  gap: 0.55rem;
}

.trust-line-primary {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.trust-line-secondary {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7) !important;
  letter-spacing: 0.02em;
}

.trust-line-secondary strong {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
}

.trust-strip-stacked p {
  white-space: normal;
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .trust-strip p {
    white-space: normal;
    font-size: 0.78rem;
  }

  .trust-line {
    display: none;
  }

}

/* ── Production section ── */

.production {
  padding: 5rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.prod-header {
  margin-bottom: 3rem;
}

.prod-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-glow);
  border: 1px solid rgba(32, 139, 78, 0.15);
  border-radius: 999px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prod-lead {
  max-width: 580px;
  margin: 1.25rem auto 0;
  font-size: 1.1rem;
  color: var(--slate);
  line-height: 1.7;
}

/* Metrics ribbon */
.prod-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.prod-metric {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 0.5rem 1rem;
}

.prod-metric-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  line-height: 1.2;
}

.prod-metric-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.prod-metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* Bento grid */
.prod-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.prod-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.prod-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--green);
  transition: height var(--transition);
}

.prod-card:hover {
  border-color: rgba(32, 139, 78, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.prod-card:hover::after {
  height: 100%;
}

.prod-card-featured {
  grid-row: span 2;
  background:
    linear-gradient(160deg, rgba(32, 139, 78, 0.03) 0%, transparent 50%),
    var(--white);
  border-color: rgba(32, 139, 78, 0.12);
}

.prod-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.prod-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-glow);
  border-radius: 12px;
  color: var(--green);
}

.prod-icon svg {
  width: 22px;
  height: 22px;
}

.prod-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  padding: 0.25rem 0.6rem;
  background: rgba(32, 139, 78, 0.08);
  border-radius: 4px;
}

.prod-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.prod-card-featured h3 {
  font-size: 1.35rem;
}

.prod-card p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.65;
}

.prod-checklist {
  list-style: none;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.prod-checklist li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}

.prod-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ── Architecture diagram ── */

.arch-section {
  padding: 3rem 0 5rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.arch-intro {
  margin-bottom: 2.5rem;
}

.center-desc {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.arch-diagram {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

/* Architecture canvas with pattern */
.arch-game {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 400px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fafcfb;
}

.arch-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.arch-pattern-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(32, 139, 78, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 139, 78, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(32, 139, 78, 0.07) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 20px 20px;
  background-position: 0 0, 0 0, 10px 10px;
}

.arch-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(32, 139, 78, 0.04) 0%, transparent 70%);
}

.pat-sym {
  position: absolute;
  font-family: var(--font-math);
  font-style: italic;
  color: var(--green);
  opacity: 0.06;
  user-select: none;
}

.pat-sym:nth-child(2)  { top: 8%;  left: 6%;   font-size: 2rem; }
.pat-sym:nth-child(3)  { top: 12%; right: 8%;  font-size: 1.6rem; color: var(--charcoal); }
.pat-sym:nth-child(4)  { top: 35%; left: 4%;   font-size: 1.4rem; }
.pat-sym:nth-child(5)  { top: 30%; right: 5%;  font-size: 2.2rem; color: var(--charcoal); }
.pat-sym:nth-child(6)  { top: 55%; left: 8%;   font-size: 1.5rem; }
.pat-sym:nth-child(7)  { top: 60%; right: 7%;  font-size: 1.3rem; }
.pat-sym:nth-child(8)  { bottom: 10%; left: 12%; font-size: 1.8rem; color: var(--charcoal); }
.pat-sym:nth-child(9)  { bottom: 8%; right: 10%; font-size: 1.6rem; }

.arch-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  height: 100%;
  padding: 3% 4%;
  box-sizing: border-box;
}

.arch-row {
  display: grid;
  align-items: center;
}

.arch-apps {
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  justify-items: center;
  align-self: start;
}

.arch-hub-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1% 0;
}

.arch-llms {
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  justify-items: center;
  align-self: end;
}

.arch-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.wire-paths path {
  stroke-dasharray: 8 6;
  animation: wireFlow 1.2s linear infinite;
}

.wire-glow path {
  stroke-dasharray: 4 12;
  animation: wireFlow 2s linear infinite reverse;
}

@keyframes wireFlow {
  to { stroke-dashoffset: -28; }
}

.data-square {
  transform-box: fill-box;
  transform-origin: center;
}

/* Game nodes */
.game-node {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  width: 100%;
}

.game-square {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.65rem 0.85rem;
  min-width: 90px;
  max-width: 130px;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(32, 139, 78, 0.25);
  box-shadow: 0 2px 8px rgba(26, 46, 46, 0.04);
  transition: all 0.3s ease;
  animation: squareBob 3s ease-in-out infinite;
}

.arch-apps .game-node:nth-child(2) .game-square { animation-delay: -0.5s; }
.arch-apps .game-node:nth-child(3) .game-square { animation-delay: -1s; }
.arch-apps .game-node:nth-child(4) .game-square { animation-delay: -1.5s; }
.arch-llms .game-node:nth-child(2) .game-square { animation-delay: -0.7s; }
.arch-llms .game-node:nth-child(3) .game-square { animation-delay: -1.4s; }

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

.game-square:hover {
  border-color: rgba(45, 168, 102, 0.7);
  box-shadow: 0 0 20px rgba(32, 139, 78, 0.3);
  transform: scale(1.04);
}

.game-square.llm {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border-color: rgba(32, 139, 78, 0.35);
}

.game-square.llm.dark {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border-color: rgba(26, 46, 46, 0.2);
}

/* HUD corner brackets */
.sq-corner, .hub-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #2da866;
  border-style: solid;
  opacity: 0.8;
}

.sq-corner.tl, .hub-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.sq-corner.tr, .hub-corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.sq-corner.bl, .hub-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.sq-corner.br, .hub-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.game-icon {
  font-size: 0.85rem;
  color: #2da866;
  line-height: 1;
}

.game-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.game-status {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

.game-status.live {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  animation: statusBlink 2s ease-in-out infinite;
}

.game-status.sync {
  color: #2da866;
  background: rgba(32, 139, 78, 0.15);
  border: 1px solid rgba(32, 139, 78, 0.35);
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Center hub */
.game-hub {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 200px;
}

.hub-frame {
  position: relative;
  padding: 0.55rem 0.7rem 0.45rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(32, 139, 78, 0.35);
  box-shadow: 0 4px 16px rgba(32, 139, 78, 0.08);
  overflow: hidden;
}

.hub-corner {
  width: 8px;
  height: 8px;
  border-color: #4ade80;
  opacity: 1;
}

.hub-scan-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4ade80, transparent);
  animation: hubScan 3s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes hubScan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

.hub-readout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

.readout-tag {
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--green);
  text-transform: uppercase;
}

.readout-dot {
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
  animation: readoutPulse 1s ease-in-out infinite;
  box-shadow: 0 0 5px rgba(32, 139, 78, 0.5);
}

@keyframes readoutPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hub-logo {
  display: block;
  width: min(110px, 85%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 8px rgba(32, 139, 78, 0.3));
}

.hub-metrics {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(45, 168, 102, 0.2);
}

.hub-metrics span {
  font-size: 0.42rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hub-metrics em {
  font-style: normal;
  color: #2da866;
  font-weight: 800;
  margin-right: 0.3rem;
}

/* ── Explainer ── */

.explainer {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.explainer-text p strong {
  color: var(--charcoal);
}

/* ── Risk categories section ── */

.risk-section {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.risk-header {
  margin-bottom: 2.5rem;
}

/* Domain pills */
.risk-domains {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.risk-pill {
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
  cursor: default;
}

.risk-pill.active,
.risk-pill:hover {
  color: var(--green);
  border-color: rgba(32, 139, 78, 0.3);
  background: var(--green-glow);
}

/* Risk card grid */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.risk-card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.risk-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--green);
  transition: height var(--transition);
}

.risk-card:hover {
  border-color: rgba(32, 139, 78, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.risk-card:hover::after {
  height: 100%;
}

.risk-card-accent {
  background:
    linear-gradient(160deg, rgba(32, 139, 78, 0.04) 0%, transparent 60%),
    var(--white);
  border-color: rgba(32, 139, 78, 0.15);
}

.risk-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.risk-level {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.risk-level.critical {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.15);
}

.risk-level.high {
  color: #d68910;
  background: rgba(214, 137, 16, 0.08);
  border: 1px solid rgba(214, 137, 16, 0.15);
}

.risk-level.extend {
  color: var(--green);
  background: var(--green-glow);
  border: 1px solid rgba(32, 139, 78, 0.15);
}

.risk-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.risk-card p {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.6;
}

.risk-footnote {
  display: inline-block;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.04em;
}

/* ── Resources (link cards) ── */

.resources {
  padding: 5rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.resources .section-title {
  margin-bottom: 3rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.resource-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem;
  background: rgba(247, 249, 248, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  position: relative;
}

.resource-card:hover {
  border-color: rgba(32, 139, 78, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.resource-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-glow);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}

.resource-card p {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.6;
}

.resource-arrow {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.25rem;
  color: var(--muted);
  transition: all var(--transition);
}

.resource-card:hover .resource-arrow {
  color: var(--green);
  transform: translateX(4px);
}

/* ── Code block ── */

.code-section {
  padding: 0 0 5rem;
  background: var(--white);
}

.code-block {
  background: var(--charcoal);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-filename {
  margin-left: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: "JetBrains Mono", monospace;
}

.code-block pre {
  padding: 1.75rem 2rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  line-height: 1.75;
  color: #c8e6d0;
  overflow-x: auto;
}

.code-block .comment { color: #6a8a7a; }
.code-block .keyword { color: #7ec8a0; }
.code-block .string { color: #a8d8b9; }

/* ── CTA banner ── */

.cta-banner {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(32, 139, 78, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 50%, rgba(32, 139, 78, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* ── Footer ── */

.footer {
  position: relative;
  padding: 0;
  text-align: center;
  border-top: 1px solid rgba(32, 139, 78, 0.12);
  background: transparent;
  overflow: visible;
}

.footer-world {
  background: linear-gradient(
    180deg,
    #d8ede4 0%,
    #e8f4ec 18%,
    #eef6f1 38%,
    #e8f4ec 58%,
    #e0f0e6 75%,
    #d4ebdc 92%,
    #d4ebdc 100%
  );
}

.footer-content {
  padding: 2.5rem 0 0.75rem;
  position: relative;
}

/* Clouds above social section — drift right to left */
.footer-clouds {
  position: relative;
  width: 100%;
  height: 58px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  pointer-events: none;
  background: transparent;
}

.footer-cloud-track {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  flex-wrap: nowrap;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  height: 100%;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-animation: footer-cloud-drift 45s linear infinite;
  -moz-animation: footer-cloud-drift 45s linear infinite;
  animation: footer-cloud-drift 45s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.footer-cloud-set {
  display: flex;
  align-items: flex-end;
  gap: 100px;
  padding: 0 50px;
  height: 100%;
}

.footer-cloud {
  display: block;
  flex-shrink: 0;
  width: 72px;
  height: 36px;
  filter: drop-shadow(0 2px 0 rgba(90, 110, 110, 0.15));
}

.footer-cloud-sm {
  width: 56px;
  height: 28px;
  margin-bottom: 4px;
}

.footer-cloud-lg {
  width: 84px;
  height: 42px;
  margin-bottom: 8px;
}

@-webkit-keyframes footer-cloud-drift {
  0%   { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  100% { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}

@-moz-keyframes footer-cloud-drift {
  0%   { -moz-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  100% { -moz-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}

@keyframes footer-cloud-drift {
  0%   { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  100% { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}

/* Pixel-art scene (guardrails mascot) */
.footer-pixel {
  position: relative;
  height: 110px;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  isolation: isolate;
  -ms-interpolation-mode: nearest-neighbor;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.footer-pixel-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 36px;
  z-index: 1;
  background: transparent;
}

.footer-pixel-sun {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #c8e8d4 35%, rgba(45, 168, 102, 0.15) 70%, transparent 100%);
  box-shadow: 0 0 28px rgba(32, 139, 78, 0.25);
  -webkit-animation: pixel-sun-pulse 4s ease-in-out infinite;
  -moz-animation: pixel-sun-pulse 4s ease-in-out infinite;
  animation: pixel-sun-pulse 4s ease-in-out infinite;
  will-change: transform, opacity;
}

@-moz-keyframes pixel-sun-pulse {
  0%, 100% { opacity: 0.85; -moz-transform: scale(1); transform: scale(1); }
  50% { opacity: 1; -moz-transform: scale(1.08); transform: scale(1.08); }
}

@keyframes pixel-sun-pulse {
  0%, 100% { opacity: 0.85; -webkit-transform: scale(1); transform: scale(1); }
  50% { opacity: 1; -webkit-transform: scale(1.08); transform: scale(1.08); }
}

.footer-pixel-scenery {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  height: 78px;
  z-index: 4;
  pointer-events: none;
}

.pixel-tree,
.pixel-flower,
.pixel-llm-building {
  position: absolute;
  bottom: 0;
  display: block;
  filter: drop-shadow(0 2px 0 rgba(26, 46, 46, 0.2));
}

.pixel-tree-1 {
  left: 22%;
  width: 36px;
  height: 66px;
}

.pixel-tree-2 {
  left: 90%;
  width: 42px;
  height: 78px;
}

.pixel-flower {
  left: 44%;
  width: 14px;
  height: 21px;
  filter: none;
}

.pixel-llm-building {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  filter: none;
}

.pixel-llm-svg {
  display: block;
  filter: drop-shadow(0 2px 0 rgba(26, 46, 46, 0.2));
}

.pixel-llm-label {
  font-size: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  white-space: nowrap;
  line-height: 1.1;
}

.pixel-llm-openai {
  left: 56%;
  width: 32px;
}

.pixel-llm-openai .pixel-llm-svg {
  width: 32px;
  height: 58px;
}

.pixel-llm-anthropic {
  left: 66%;
  width: 34px;
}

.pixel-llm-anthropic .pixel-llm-svg {
  width: 34px;
  height: 62px;
}

.pixel-llm-anthropic .pixel-llm-label {
  color: #8a5040;
}

.pixel-llm-custom {
  left: 76%;
  width: 38px;
  align-items: center;
}

.pixel-llm-custom .pixel-llm-svg {
  width: 38px;
  height: 48px;
}

.pixel-llm-custom .pixel-llm-label {
  font-size: 0.36rem;
  letter-spacing: 0.04em;
}

.footer-pixel-walker-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 64px;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.footer-pixel-walker-path {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
}

.footer-pixel-walker {
  position: absolute;
  bottom: 0;
  left: -48px;
  width: 48px;
  height: 60px;
  overflow: visible;
  -webkit-animation: pixel-walker-move 18s linear infinite;
  -moz-animation: pixel-walker-move 18s linear infinite;
  animation: pixel-walker-move 18s linear infinite;
  will-change: left;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.pixel-data-label,
.pixel-empty-label {
  position: absolute;
  top: -14px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pixel-data-label {
  color: #c9a020;
  -webkit-animation: pixel-data-label 18s linear infinite;
  -moz-animation: pixel-data-label 18s linear infinite;
  animation: pixel-data-label 18s linear infinite;
}

.pixel-empty-label {
  color: var(--green-dark);
  -webkit-animation: pixel-empty-label 18s linear infinite;
  -moz-animation: pixel-empty-label 18s linear infinite;
  animation: pixel-empty-label 18s linear infinite;
}

.pixel-data-cargo {
  position: absolute;
  right: calc(100% + 4px);
  bottom: 14px;
  display: flex;
  flex-direction: row-reverse;
  gap: 3px;
  align-items: flex-end;
}

.pixel-data-bit {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 rgba(26, 46, 46, 0.2));
}

.pixel-data-bit:nth-child(1) {
  -webkit-animation: pixel-data-bit-1 18s linear infinite;
  -moz-animation: pixel-data-bit-1 18s linear infinite;
  animation: pixel-data-bit-1 18s linear infinite;
}

.pixel-data-bit:nth-child(2) {
  -webkit-animation: pixel-data-bit-2 18s linear infinite;
  -moz-animation: pixel-data-bit-2 18s linear infinite;
  animation: pixel-data-bit-2 18s linear infinite;
  margin-bottom: 4px;
}

.pixel-data-bit:nth-child(3) {
  -webkit-animation: pixel-data-bit-3 18s linear infinite;
  -moz-animation: pixel-data-bit-3 18s linear infinite;
  animation: pixel-data-bit-3 18s linear infinite;
  margin-bottom: 8px;
}

@-moz-keyframes pixel-data-label {
  0%, 39% { opacity: 1; }
  41%, 100% { opacity: 0; }
}

@keyframes pixel-data-label {
  0%, 39% { opacity: 1; }
  41%, 100% { opacity: 0; }
}

@-moz-keyframes pixel-empty-label {
  0%, 42% { opacity: 0; }
  44%, 100% { opacity: 1; }
}

@keyframes pixel-empty-label {
  0%, 42% { opacity: 0; }
  44%, 100% { opacity: 1; }
}

@-moz-keyframes pixel-data-bit-1 {
  0%, 39% { opacity: 1; -moz-transform: translateX(0) scale(1); transform: translateX(0) scale(1); }
  41%, 100% { opacity: 0; -moz-transform: translateX(12px) scale(0.4); transform: translateX(12px) scale(0.4); }
}

@keyframes pixel-data-bit-1 {
  0%, 39% { opacity: 1; -webkit-transform: translateX(0) scale(1); transform: translateX(0) scale(1); }
  41%, 100% { opacity: 0; -webkit-transform: translateX(12px) scale(0.4); transform: translateX(12px) scale(0.4); }
}

@-moz-keyframes pixel-data-bit-2 {
  0%, 39% { opacity: 1; -moz-transform: translateX(0) scale(1); transform: translateX(0) scale(1); }
  41%, 100% { opacity: 0; -moz-transform: translateX(10px) scale(0.4); transform: translateX(10px) scale(0.4); }
}

@keyframes pixel-data-bit-2 {
  0%, 39% { opacity: 1; -webkit-transform: translateX(0) scale(1); transform: translateX(0) scale(1); }
  41%, 100% { opacity: 0; -webkit-transform: translateX(10px) scale(0.4); transform: translateX(10px) scale(0.4); }
}

@-moz-keyframes pixel-data-bit-3 {
  0%, 39% { opacity: 1; -moz-transform: translateX(0) scale(1); transform: translateX(0) scale(1); }
  40%, 100% { opacity: 0; -moz-transform: translateX(8px) scale(0.4); transform: translateX(8px) scale(0.4); }
}

@keyframes pixel-data-bit-3 {
  0%, 39% { opacity: 1; -webkit-transform: translateX(0) scale(1); transform: translateX(0) scale(1); }
  40%, 100% { opacity: 0; -webkit-transform: translateX(8px) scale(0.4); transform: translateX(8px) scale(0.4); }
}

.pixel-walker-body {
  position: relative;
  width: 48px;
  height: 60px;
  -webkit-animation: pixel-walker-bob 0.65s steps(2, end) infinite;
  -moz-animation: pixel-walker-bob 0.65s steps(2, end) infinite;
  animation: pixel-walker-bob 0.65s steps(2, end) infinite;
}

.pixel-shield {
  display: block;
  width: 48px;
  height: 60px;
  filter: drop-shadow(0 2px 0 rgba(26, 46, 46, 0.35));
}

.pixel-shield-green {
  -webkit-animation: shield-empty-after-policy 18s linear infinite;
  -moz-animation: shield-empty-after-policy 18s linear infinite;
  animation: shield-empty-after-policy 18s linear infinite;
}

.pixel-shield-yellow {
  position: absolute;
  top: 0;
  left: 0;
  filter: drop-shadow(0 2px 0 rgba(201, 160, 32, 0.4));
  -webkit-animation: shield-data-before-policy 18s linear infinite;
  -moz-animation: shield-data-before-policy 18s linear infinite;
  animation: shield-data-before-policy 18s linear infinite;
}

@-moz-keyframes shield-data-before-policy {
  0%, 40% { opacity: 1; }
  42%, 100% { opacity: 0; }
}

@keyframes shield-data-before-policy {
  0%, 40% { opacity: 1; }
  42%, 100% { opacity: 0; }
}

@-moz-keyframes shield-empty-after-policy {
  0%, 41% { opacity: 0; }
  43%, 100% { opacity: 1; }
}

@keyframes shield-empty-after-policy {
  0%, 41% { opacity: 0; }
  43%, 100% { opacity: 1; }
}

@-webkit-keyframes pixel-walker-move {
  0%   { left: -48px; }
  100% { left: calc(100% - 48px); }
}

@-moz-keyframes pixel-walker-move {
  0%   { left: -48px; }
  100% { left: calc(100% - 48px); }
}

@keyframes pixel-walker-move {
  0%   { left: -48px; }
  100% { left: calc(100% - 48px); }
}

@-webkit-keyframes pixel-walker-bob {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(-3px); transform: translateY(-3px); }
}

@-moz-keyframes pixel-walker-bob {
  0%, 100% { -moz-transform: translateY(0); transform: translateY(0); }
  50% { -moz-transform: translateY(-3px); transform: translateY(-3px); }
}

@keyframes pixel-walker-bob {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(-3px); transform: translateY(-3px); }
}

.footer-pixel-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  z-index: 2;
}

.footer-pixel-ground::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #208b4e;
  z-index: 2;
}

.footer-pixel-dirt {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1a2e2e;
  background-image:
    linear-gradient(45deg, #2d4545 25%, transparent 25%),
    linear-gradient(-45deg, #2d4545 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2d4545 75%),
    linear-gradient(-45deg, transparent 75%, #2d4545 75%);
  background-size: 8px 8px;
  background-position: 0 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

/* Pixel guardrails in scene */
.pixel-fence {
  position: absolute;
  bottom: 0;
  display: block;
}

.pixel-fence-1 {
  left: 10%;
  width: 40px;
  height: 28px;
}

.pixel-fence-2 {
  left: 82%;
  width: 40px;
  height: 28px;
}

.footer-pixel-policy {
  position: absolute;
  left: 41%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pixel-policy-box {
  width: 28px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 2px 0 rgba(26, 46, 46, 0.2));
}

.pixel-policy-label {
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green-dark);
  text-transform: uppercase;
}

.footer-pixel-checkpoint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 72px;
  height: 68px;
  z-index: 4;
  pointer-events: none;
}

.checkpoint-post {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 52px;
  background: #1a2e2e;
  border: 1px solid #208b4e;
}

.checkpoint-post-l { left: 4px; }
.checkpoint-post-r { right: 4px; }

.checkpoint-lintel {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 4px;
  background: #208b4e;
  box-shadow: 0 0 8px rgba(32, 139, 78, 0.35);
}

.checkpoint-lintel::before,
.checkpoint-lintel::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 4px;
  height: 6px;
  background: #166b3a;
}

.checkpoint-lintel::before { left: 4px; }
.checkpoint-lintel::after { right: 4px; }

.checkpoint-scan {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4ade80, transparent);
  -webkit-animation: hubScan 2.5s ease-in-out infinite;
  -moz-animation: hubScan 2.5s ease-in-out infinite;
  animation: hubScan 2.5s ease-in-out infinite;
  opacity: 0.75;
}

.checkpoint-tag {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--green);
  text-transform: uppercase;
  white-space: nowrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--green);
  border-color: rgba(32, 139, 78, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.footer p {
  font-size: 0.85rem;
  color: var(--slate);
}

/* ── Animations ── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .prod-bento {
    grid-template-columns: 1fr;
  }

  .prod-card-featured {
    grid-row: span 1;
  }

  .prod-metric-divider {
    display: none;
  }

  .prod-metrics {
    gap: 1.5rem;
  }

  .prod-metric {
    flex: 1 1 40%;
  }

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

  .risk-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch-game {
    min-height: 480px;
  }

  .arch-layout {
    padding: 4% 2%;
  }

  .arch-apps {
    gap: 0.25rem;
  }

  .game-square {
    min-width: 58px;
    max-width: 88px;
    padding: 0.4rem 0.35rem;
  }

  .game-label {
    font-size: 0.48rem;
  }

  .game-status {
    font-size: 0.42rem;
    padding: 0.1rem 0.25rem;
  }

  .game-icon {
    font-size: 0.7rem;
  }

  .game-hub {
    max-width: 160px;
  }

  .hub-logo {
    width: min(90px, 85%) !important;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 1.75rem 0 3rem;
  }

  .logo-showcase {
    width: min(320px, 92vw);
    height: min(250px, 72vw);
    margin-bottom: 1.5rem;
  }

  .orbit-sym {
    opacity: 0.28;
    font-size: 1rem !important;
  }

  .os-1, .os-5 { font-size: 1.3rem !important; }

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

  .prod-card,
  .risk-card,
  .resource-card {
    padding: 1.5rem;
  }

  .resource-arrow {
    display: none;
  }

  .math {
    opacity: 0.04;
  }

  .section-math span {
    font-size: 2.5rem !important;
    opacity: 0.04;
  }

  body::before {
    background-size: 32px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .math,
  .section-math span,
  .orbit-ring,
  .orbit-sym,
  .logo-glow {
    animation: none;
  }

  .wire-paths path,
  .wire-glow path,
  .hub-scan-bar,
  .game-square,
  .game-status.live,
  .readout-dot {
    animation: none;
  }
}
