:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #596474;
  --line: #d7dee8;
  --panel: #ffffff;
  --panel-strong: #f7faf6;
  --accent: #c92f2f;
  --accent-2: #2f7d32;
  --field: #4f8c2f;
  --gold: #b78316;
  --grass-dark: #071008;
  --grass-mid: #102a14;
  --grass-bright: #6aa63c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: default;
  background:
    linear-gradient(180deg, rgba(47, 125, 50, 0.055), transparent 320px),
    #fbfcfa;
}

a,
button,
summary,
[role="button"],
[tabindex] {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

input,
select,
textarea {
  cursor: auto;
}

.adaptive-crosshair {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  width: 28px;
  aspect-ratio: 1;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 100% no-repeat,
    linear-gradient(90deg, var(--accent), var(--accent)) center / 100% 1.5px no-repeat;
  transform: translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0) translate(-50%, -50%);
  transition: opacity 120ms ease;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 1px 2px rgba(17, 24, 39, 0.28));
}

.adaptive-crosshair::before,
.adaptive-crosshair::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.adaptive-crosshair::before {
  width: 20px;
  height: 20px;
  border: 2px solid #111827;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.adaptive-crosshair::after {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

body.cursor-ready .adaptive-crosshair {
  opacity: 0.94;
}

body.cursor-hidden .adaptive-crosshair {
  opacity: 0;
}

@media (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button,
  summary,
  [role="button"],
  [tabindex] {
    cursor: pointer;
  }

  input,
  textarea {
    cursor: text;
  }

  select {
    cursor: auto;
  }
}

@media (pointer: coarse) {
  .adaptive-crosshair {
    display: none;
  }
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(183, 243, 107, 0.2), transparent 19rem),
    radial-gradient(circle at 24% 84%, rgba(106, 166, 60, 0.2), transparent 22rem),
    linear-gradient(140deg, #061006 0%, #143818 52%, #071008 100%);
  pointer-events: none;
  animation: splashVanish 4.4s ease forwards;
}

.skip-splash .splash-screen {
  display: none;
}

.splash-screen::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.36;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.13), transparent 18%),
    radial-gradient(ellipse at 75% 65%, rgba(255, 255, 255, 0.1), transparent 14%),
    linear-gradient(48deg, transparent 0 48%, rgba(255, 255, 255, 0.06) 49%, transparent 50% 100%);
  filter: blur(18px);
  transform: rotate(-8deg);
}

.splash-stage {
  position: relative;
  width: min(92vw, 900px);
  height: min(70vh, 560px);
}

.splash-crosshair {
  position: absolute;
  left: 50%;
  top: 45%;
  width: clamp(150px, 28vw, 280px);
  aspect-ratio: 1;
  border: 7px solid #f8fafc;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.72),
    inset 0 0 0 2px rgba(0, 0, 0, 0.72),
    0 22px 80px rgba(0, 0, 0, 0.42);
  animation: crosshairReveal 3.2s ease forwards;
}

.splash-crosshair::before,
.splash-crosshair::after,
.splash-crosshair span::before,
.splash-crosshair span::after {
  content: "";
  position: absolute;
  background: #f8fafc;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.72);
}

.splash-crosshair::before {
  left: 50%;
  top: -34%;
  width: 7px;
  height: 168%;
  transform: translateX(-50%);
}

.splash-crosshair::after {
  top: 50%;
  left: -34%;
  width: 168%;
  height: 7px;
  transform: translateY(-50%);
}

.splash-crosshair span::before {
  left: 50%;
  top: 50%;
  width: 42%;
  aspect-ratio: 1;
  border: 7px solid #f8fafc;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}

.splash-crosshair span::after {
  left: 50%;
  top: 50%;
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.splash-football {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 78px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c28a42 0%, #7b431f 58%, #3c1d0f 100%);
  offset-path: path("M -620 155 C -420 -130 -145 -160 0 0");
  offset-rotate: auto 18deg;
  offset-distance: 0%;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
  animation: footballArc 2.15s linear forwards;
  will-change: offset-distance, opacity, transform;
}

.splash-football::before {
  content: "";
  position: absolute;
  inset: auto auto auto auto;
  display: none;
}

.splash-football::after {
  content: "";
  position: absolute;
  display: none;
}

.splash-football span {
  position: absolute;
  inset: 7px 10px;
  border-left: 3px solid rgba(255, 255, 255, 0.46);
  border-right: 3px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
}

.impact-mark {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ef4444;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  box-shadow:
    0 0 0 0 rgba(239, 68, 68, 0.7),
    0 0 34px rgba(239, 68, 68, 0.85);
  animation: impactPulse 2.7s ease forwards;
}

.splash-title {
  position: absolute;
  left: 50%;
  top: 62%;
  display: grid;
  justify-items: center;
  gap: 0;
  opacity: 0;
  transform: translate(-50%, -38%) scale(0.9);
  color: #f8fafc;
  text-align: center;
  text-transform: uppercase;
  animation: titleReveal 4.2s ease forwards;
}

.splash-title span,
.splash-title strong {
  display: block;
  font-size: clamp(3.8rem, 12vw, 8.6rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.splash-title strong {
  color: #ef4444;
}

@keyframes splashVanish {
  0%,
  84% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes crosshairReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
  }
  18%,
  64% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  78% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    opacity: 0.16;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes footballArc {
  0% {
    opacity: 1;
    offset-distance: 0%;
    transform: translate(-50%, -50%) scale(1);
  }
  76% {
    opacity: 1;
    offset-distance: 100%;
    transform: translate(-50%, -50%) scale(0.98);
  }
  84% {
    opacity: 0;
    offset-distance: 100%;
    transform: translate(-50%, -50%) scale(0.24);
  }
  100% {
    opacity: 0;
    offset-distance: 100%;
    transform: translate(-50%, -50%) scale(0.24);
  }
}

@keyframes impactPulse {
  0%,
  58% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    box-shadow:
      0 0 0 0 rgba(239, 68, 68, 0.7),
      0 0 34px rgba(239, 68, 68, 0.85);
  }
  64% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 0 18px rgba(239, 68, 68, 0.2),
      0 0 44px rgba(239, 68, 68, 0.9);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.6);
    box-shadow:
      0 0 0 76px rgba(239, 68, 68, 0),
      0 0 64px rgba(239, 68, 68, 0);
  }
}

@keyframes titleReveal {
  0%,
  62% {
    opacity: 0;
    transform: translate(-50%, -24%) scale(0.9);
  }
  72%,
  88% {
    opacity: 1;
    transform: translate(-50%, -38%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -44%) scale(1.02);
  }
}

.home-shell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 0 22px;
}

.tool-status {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: grid;
  justify-items: center;
  gap: 10px;
  letter-spacing: 0;
  text-align: center;
}

.brand-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.brand-copy strong {
  color: var(--ink);
  font-size: clamp(2.4rem, 5.8vw, 4.45rem);
  font-weight: 950;
  line-height: 0.9;
}

.brand-copy em {
  color: #344154;
  font-size: clamp(0.96rem, 1.7vw, 1.22rem);
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 6px rgba(239, 68, 68, 0.13);
}

.brand-icon::before,
.brand-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 42px;
  height: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.brand-icon::after {
  width: 2px;
  height: 42px;
}

.hero-section {
  display: block;
  min-height: auto;
  padding: 6px 0 20px;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.hero-copy::before {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent-2));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  max-width: 820px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
}

.tools-section {
  padding: 18px 0 0;
}

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

.tool-card {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.tool-card h3 {
  margin: 48px 0 10px;
  font-size: 1.55rem;
}

.tool-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.tool-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.live-card {
  background: var(--panel-strong);
}

.muted-card {
  opacity: 0.7;
}

@media (max-width: 840px) {
  .home-shell {
    width: min(100% - 24px, 680px);
    padding-top: 14px;
  }

  .site-header {
    padding-top: 16px;
  }

  .hero-section,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 22px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen {
    animation-duration: 0.01ms;
  }

  .splash-crosshair,
  .splash-football,
  .impact-mark,
  .splash-title {
    animation-duration: 0.01ms;
  }
}
