:root {
  --bg: #020603;
  --panel: rgba(5, 18, 9, 0.72);
  --panel-strong: rgba(7, 24, 11, 0.94);
  --text: #ecfff1;
  --muted: #9cc9a6;
  --green: #8cff2c;
  --green-hot: #b6ff4e;
  --green-deep: #1f7a22;
  --line: rgba(140, 255, 44, 0.26);
  --shadow: 0 0 42px rgba(114, 255, 51, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 66% 34%, rgba(140, 255, 44, 0.2), transparent 28rem),
    radial-gradient(circle at 20% 48%, rgba(31, 122, 34, 0.22), transparent 30rem),
    radial-gradient(circle at 80% 92%, rgba(140, 255, 44, 0.1), transparent 34rem),
    linear-gradient(90deg, rgba(0, 4, 1, 0.96) 0%, rgba(0, 7, 2, 0.78) 42%, rgba(0, 4, 1, 0.82) 100%),
    url("public/aura.png"),
    url("public/aura.jpeg"),
    url("assets/hero-robin-aura.png"),
    var(--bg);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 0%, rgba(182, 255, 78, 0.08), transparent 30rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(1, 5, 2, 0.24));
  pointer-events: none;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.05), transparent 35%),
    repeating-radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

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

.particles span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  opacity: 0.45;
  animation: float-particle 13s linear infinite;
}

.particles span:nth-child(1) { left: 8%; animation-delay: -2s; }
.particles span:nth-child(2) { left: 18%; animation-delay: -7s; animation-duration: 16s; }
.particles span:nth-child(3) { left: 28%; animation-delay: -4s; animation-duration: 12s; }
.particles span:nth-child(4) { left: 43%; animation-delay: -10s; animation-duration: 18s; }
.particles span:nth-child(5) { left: 58%; animation-delay: -5s; }
.particles span:nth-child(6) { left: 66%; animation-delay: -9s; animation-duration: 15s; }
.particles span:nth-child(7) { left: 76%; animation-delay: -1s; animation-duration: 17s; }
.particles span:nth-child(8) { left: 88%; animation-delay: -12s; }
.particles span:nth-child(9) { left: 94%; animation-delay: -6s; animation-duration: 19s; }
.particles span:nth-child(10) { left: 37%; animation-delay: -14s; animation-duration: 14s; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(1, 7, 3, 0.76), rgba(1, 7, 3, 0.18), transparent);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-mark {
  position: relative;
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(140, 255, 44, 0.08);
  box-shadow: var(--shadow);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0.42rem;
  background: url("public/robin-feather.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(244, 255, 213, 0.85));
  transform: rotate(12deg);
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-header nav a:hover {
  color: var(--green-hot);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 8rem clamp(1rem, 6vw, 5rem) 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(140, 255, 44, 0.14), transparent 28rem),
    radial-gradient(circle at 26% 60%, rgba(12, 255, 64, 0.07), transparent 24rem);
  transform: scale(1.08);
  transition: transform 0.18s ease-out;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 850px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--green-hot);
  background: rgba(9, 30, 13, 0.72);
  box-shadow: 0 0 22px rgba(140, 255, 44, 0.14);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

h1,
h2 {
  margin: 0;
  font-family: "Archivo Black", Inter, sans-serif;
  text-transform: uppercase;
  line-height: 0.88;
}

h1 {
  max-width: 9ch;
  margin-top: 1rem;
  font-size: clamp(4.4rem, 14vw, 12.5rem);
  text-shadow:
    0 0 16px rgba(140, 255, 44, 0.5),
    0 0 72px rgba(34, 255, 0, 0.25);
}

h2 {
  margin-top: 1rem;
  font-size: clamp(2.3rem, 6vw, 5.6rem);
  text-shadow: 0 0 34px rgba(140, 255, 44, 0.2);
}

.subtitle {
  margin: 1.2rem 0 0;
  color: var(--green-hot);
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-weight: 900;
}

.intro,
.section p,
.site-footer p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.intro {
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  color: var(--text);
  background: rgba(8, 26, 11, 0.82);
  box-shadow: 0 0 18px rgba(140, 255, 44, 0.13);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(182, 255, 78, 0.78);
  box-shadow: 0 0 32px rgba(140, 255, 44, 0.32);
}

.btn.primary {
  color: #071006;
  background: linear-gradient(135deg, var(--green-hot), var(--green));
  box-shadow: 0 0 38px rgba(140, 255, 44, 0.46);
  animation: button-glow 2.8s ease-in-out infinite;
}

.btn.ghost {
  background: rgba(1, 7, 3, 0.44);
}

.feather-sigil {
  position: absolute;
  right: clamp(1rem, 8vw, 7rem);
  bottom: 8%;
  z-index: 3;
  width: clamp(7rem, 18vw, 14rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: inset 0 0 50px rgba(140, 255, 44, 0.17), var(--shadow);
  animation: pulse 2.6s ease-in-out infinite;
}

.feather-sigil span,
.robin-feather {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  height: 92%;
  background: url("public/robin-feather.svg") center / contain no-repeat;
  filter:
    drop-shadow(0 0 14px rgba(244, 255, 213, 0.95))
    drop-shadow(0 0 44px rgba(140, 255, 44, 0.8));
  transform: translate(-50%, -50%) rotate(8deg);
}

.section {
  position: relative;
  z-index: 5;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 6vw, 5rem);
  background: transparent;
}

.story-grid,
.aura-meter,
.feather-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.story p {
  max-width: 700px;
  color: #dfffe5;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 800;
}

.meter-copy p {
  max-width: 520px;
}

.meter-panel,
.stat-card,
.feather-card {
  border: 1px solid var(--line);
  background: rgba(5, 18, 9, 0.58);
}

.meter-panel {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.meter-panel::after {
  content: "AURA";
  position: absolute;
  right: 1rem;
  bottom: -0.65rem;
  color: rgba(140, 255, 44, 0.08);
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  pointer-events: none;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(140, 255, 44, 0.13);
  border-radius: 8px;
  background: rgba(1, 8, 3, 0.58);
}

.result-row span {
  color: var(--muted);
  font-weight: 800;
}

.result-row strong {
  color: var(--green-hot);
  text-align: right;
}

.result-row.blessing {
  background: linear-gradient(135deg, rgba(140, 255, 44, 0.16), rgba(3, 18, 6, 0.74));
}

.feather-card {
  position: relative;
  min-height: 430px;
  grid-template-columns: 0.7fr 1fr;
  padding: clamp(1.25rem, 4vw, 3rem);
  border-radius: 8px;
  overflow: hidden;
}

.robin-feather.large {
  position: relative;
  inset: auto;
  left: auto;
  top: auto;
  width: min(34vw, 300px);
  height: auto;
  aspect-ratio: 0.5;
  justify-self: center;
  animation: pulse 2.8s ease-in-out infinite;
  transform: rotate(7deg);
}

.robin-feather.large::before {
  content: "";
  position: absolute;
  inset: -22%;
  border: 1px solid rgba(140, 255, 44, 0.24);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(140, 255, 44, 0.12), 0 0 70px rgba(140, 255, 44, 0.16);
}

.stats-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.stats-heading p {
  max-width: 560px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  min-height: 180px;
  display: grid;
  gap: 1rem;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  background: rgba(5, 18, 9, 0.58);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(182, 255, 78, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.52), 0 0 38px rgba(140, 255, 44, 0.28);
}

.stat-card span,
.stat-card small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-card span {
  font-size: 0.78rem;
}

.stat-card strong {
  color: var(--green-hot);
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.92;
  text-shadow: 0 0 30px rgba(140, 255, 44, 0.38);
}

.stat-card small {
  font-size: 0.72rem;
  line-height: 1.5;
}

.stat-card:nth-child(1),
.stat-card:nth-child(6) {
  grid-column: span 2;
}

.stat-card:nth-child(5) strong,
.stat-card:nth-child(6) strong {
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
}

.live-stats .section-label {
  margin-bottom: 1rem;
}

.live-stats::after {
  content: "";
  display: block;
  width: min(100%, 620px);
  height: 1px;
  margin-top: 3rem;
  background: linear-gradient(90deg, transparent, rgba(140, 255, 44, 0.42), transparent);
  filter: blur(0.2px);
}

.final-actions {
  justify-content: center;
}

.site-footer {
  position: relative;
  z-index: 5;
  padding: 3rem clamp(1rem, 6vw, 5rem);
  background: transparent;
}

.site-footer strong {
  color: var(--green-hot);
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.site-footer p {
  max-width: 760px;
}

@keyframes stat-flicker {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.25);
  }
}

.stat-card.is-updating strong {
  animation: stat-flicker 0.38s ease-out;
}

@keyframes pulse {
  0%, 100% { filter: brightness(0.96); transform: scale(1); }
  50% { filter: brightness(1.24); transform: scale(1.035); }
}

@keyframes button-glow {
  0%, 100% { box-shadow: 0 0 28px rgba(140, 255, 44, 0.38); }
  50% { box-shadow: 0 0 54px rgba(140, 255, 44, 0.62); }
}

@keyframes float-particle {
  0% {
    transform: translate3d(0, 105vh, 0) scale(0.55);
  }
  100% {
    transform: translate3d(34px, -10vh, 0) scale(1.2);
  }
}

@media (max-width: 980px) {
  .story-grid,
  .aura-meter,
  .feather-card,
  .stats-heading {
    grid-template-columns: 1fr;
  }

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

  .stat-card:nth-child(1),
  .stat-card:nth-child(6) {
    grid-column: span 1;
  }

  .feather-card {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    display: none;
  }

  .brand {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 94svh;
    padding-top: 7rem;
  }

  h1 {
    font-size: clamp(4rem, 22vw, 6rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .feather-sigil {
    opacity: 0.44;
    right: -2rem;
    bottom: 4rem;
  }

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

  .result-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-row strong {
    text-align: left;
  }
}
