/*
 * Copyright (c) 2026 ThumbSword Studio. All rights reserved.
 * This source code is proprietary to ThumbSword Studio and may not be
 * copied, reused, or redistributed without permission.
 */

:root {
  --bg: #071a15;
  --bg-soft: #0b241c;
  --surface: #0f2b22;
  --surface-2: #143529;
  --border: rgba(150, 255, 220, 0.1);
  --border-strong: rgba(150, 255, 220, 0.2);
  --text: #f4f6f9;
  --text-dim: #97a1b0;

  --teal: #22e3a6;
  --teal-dark: #123b32;
  --lime: #d7e05a;
  --red: #ff5c4d;
  --red-soft: #ff8f6b;

  --grad-cool: linear-gradient(135deg, var(--teal), var(--lime));
  --grad-warm: linear-gradient(135deg, var(--red), var(--red-soft));

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--grad-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 26, 21, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--grad-warm);
  color: #1a0805;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px -8px rgba(255, 92, 77, 0.6);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.football {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
}

/* Dedicated play area for the football mini-game — sized independently of the
   hero's content height so it never sprawls down over the buttons when the
   hero stacks into a single column on narrow screens. */
.football-pitch {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 900px) {
  .football-pitch {
    top: 0;
    bottom: auto;
    height: 320px;
  }
}

@media (max-width: 480px) {
  .football-pitch {
    height: 260px;
  }
}

/* Football pitch decoration — kept faint so it never competes with the hero content */
.pitch {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.pitch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(34, 227, 166, 0.03) 0px,
    rgba(34, 227, 166, 0.03) 60px,
    rgba(255, 255, 255, 0.012) 60px,
    rgba(255, 255, 255, 0.012) 120px
  );
}

.pitch-line {
  position: absolute;
  border-color: rgba(255, 255, 255, 0.06);
}

.pitch-boundary {
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.pitch-center-line {
  top: 24px;
  bottom: 24px;
  left: 50%;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.pitch-center-circle {
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  margin: -65px 0 0 -65px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.goal {
  position: absolute;
  bottom: 24px;
  z-index: 0;
  width: 40px;
  height: 92px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 9px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 9px
    );
}

.goal-left {
  left: 24px;
  border-left: 3px solid rgba(255, 255, 255, 0.55);
  border-top: 3px solid rgba(255, 255, 255, 0.55);
}

.goal-right {
  right: 24px;
  border-right: 3px solid rgba(255, 255, 255, 0.55);
  border-top: 3px solid rgba(255, 255, 255, 0.55);
}

/* Goal celebration */
.goal-flash {
  position: absolute;
  z-index: 3;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--lime);
  text-shadow: 0 0 24px rgba(215, 224, 90, 0.55), 0 4px 14px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  white-space: nowrap;
  animation: goal-flash-pop 1.3s ease forwards;
}

@keyframes goal-flash-pop {
  0% { transform: translate(var(--gx, -50%), -50%) scale(0.6); opacity: 0; }
  15% { transform: translate(var(--gx, -50%), -50%) scale(1.1); opacity: 1; }
  30% { transform: translate(var(--gx, -50%), -50%) scale(1); opacity: 1; }
  100% { transform: translate(var(--gx, -50%), -50%) scale(1); opacity: 0; }
}

.confetti {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti-fall 1s ease-out forwards;
}

@keyframes confetti-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(34, 227, 166, 0.1);
  border: 1px solid rgba(34, 227, 166, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero p {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 30% 30%, rgba(34, 227, 166, 0.28), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(255, 92, 77, 0.28), transparent 55%),
    radial-gradient(circle at 55% 15%, rgba(215, 224, 90, 0.22), transparent 50%);
  filter: blur(30px);
}

.hero-art img {
  position: relative;
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}

/* Sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-tight {
  padding-top: 56px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-heading {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0;
}

/* Feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  display: flex;
  gap: 14px;
}

.feature-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  color: var(--teal);
}

.feature:nth-child(2) .feature-icon { color: var(--red-soft); }
.feature:nth-child(3) .feature-icon { color: var(--lime); }

.feature h3 {
  margin: 4px 0 4px;
  font-size: 1rem;
}

.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Grid / cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 600;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.card-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb.thumb-cool { background: linear-gradient(135deg, var(--teal-dark), #0d2b25 60%, #06110e); }
.card-thumb.thumb-warm { background: linear-gradient(135deg, #4a1712, #1c0906 60%, #0c0403); }
.card-thumb.thumb-mixed { background: linear-gradient(135deg, var(--teal-dark), #1c0906 120%); }

.card-body {
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card p {
  color: var(--text-dim);
  margin: 0 0 16px;
  font-size: 0.92rem;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  margin-right: 6px;
}

.badge-cool {
  color: var(--teal);
  background: rgba(34, 227, 166, 0.12);
}

.badge-warm {
  color: var(--red-soft);
  background: rgba(255, 92, 77, 0.12);
}

.badge-neutral {
  color: var(--lime);
  background: rgba(215, 224, 90, 0.12);
}

.subnav {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.store-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.store-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.store-links a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* Roadmap / process */
.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.roadmap-item {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.roadmap-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.roadmap-item:nth-child(1) .roadmap-num { color: var(--teal); border-color: rgba(34, 227, 166, 0.4); }
.roadmap-item:nth-child(2) .roadmap-num { color: var(--lime); border-color: rgba(215, 224, 90, 0.4); }
.roadmap-item:nth-child(3) .roadmap-num { color: var(--red-soft); border-color: rgba(255, 143, 107, 0.4); }
.roadmap-item:nth-child(4) .roadmap-num { color: var(--teal); border-color: rgba(34, 227, 166, 0.4); }

.roadmap-item .when {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.roadmap-item h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.loading-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 5px;
  vertical-align: middle;
}

.loading-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: loading-dot-bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loading-dot-bounce {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.7); }
  40% { opacity: 1; transform: scale(1); }
}

.roadmap-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* CTA banner */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: 44px;
  background:
    radial-gradient(circle at 15% 30%, rgba(255, 92, 77, 0.25), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(34, 227, 166, 0.25), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
}

.cta-banner p {
  margin: 0;
  color: var(--text-dim);
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-brand img {
  width: 22px;
  height: 22px;
}

.site-footer .footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.site-footer .footer-links a {
  color: var(--text-dim);
}

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

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
  color: var(--text-dim);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.social-icon:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* Mission section */
.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.mission-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.mission-art::before {
  content: "";
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle at 50% 50%, rgba(34, 227, 166, 0.18), transparent 60%);
  filter: blur(20px);
}

.mission-art img {
  position: relative;
  width: 100%;
  max-width: 280px;
}

.mission p {
  color: var(--text-dim);
  font-size: 1.02rem;
}

.address-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.address-block h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 800;
}

.address-block address {
  font-style: normal;
  color: var(--text-dim);
  margin: 0 0 24px;
  line-height: 1.7;
}

/* Long-form legal content (privacy policy, terms) */
.prose {
  max-width: 760px;
}

.prose .updated {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.prose .legal-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 40px;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 40px 0 12px;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin: 0 0 14px;
}

.prose ul {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin: 0 0 14px;
  padding-left: 20px;
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--teal);
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    min-height: 260px;
  }

  .hero-art img {
    max-width: 260px;
  }

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

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

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

  .mission-art {
    order: -1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-cta .btn {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
