/* DogGameApp.com - Global styles */
:root {
  --bg-primary: #05070b;
  --bg-secondary: #0c1220;
  --bg-card: #101a2b;
  --text-primary: #f3f7ff;
  --text-secondary: #b9c7dd;
  --text-muted: #8ea0bf;
  --line: rgba(120, 167, 255, 0.22);
  --accent: #4dd9ff;
  --accent-2: #7bffb9;
  --accent-3: #ffb36b;
  --danger: #ff6b7a;
  --max-width: 1240px;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(77, 217, 255, 0.2), transparent 65%),
    radial-gradient(900px 700px at -5% 10%, rgba(123, 255, 185, 0.16), transparent 55%),
    linear-gradient(160deg, #05070b 0%, #0a1120 55%, #05070b 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

#site-loader {
  position: fixed;
  inset: 0;
  background: #04060a;
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity 0.5s ease;
}

#site-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-core {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}

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

canvas#gridfx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.38;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.03em;
}

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

nav ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
  background: rgba(77, 217, 255, 0.14);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--line);
  padding: 0.5rem;
  border-radius: 10px;
}

main {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.hero {
  padding: 6rem 0 4rem;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 68ch;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-2);
  border: 1px solid rgba(123, 255, 185, 0.45);
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 12px;
  padding: 0.74rem 1rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), #7bd7ff);
  color: #002b37;
  box-shadow: 0 9px 26px rgba(77, 217, 255, 0.35);
}

.btn-secondary {
  color: var(--text-primary);
  border: 1px solid var(--line);
  background: rgba(16, 26, 43, 0.5);
}

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

.visual {
  background: linear-gradient(155deg, rgba(123, 255, 185, 0.12), rgba(77, 217, 255, 0.12));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual img {
  width: 100%;
  display: block;
}

.section {
  padding: 2.2rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.section p.lead {
  color: var(--text-secondary);
  max-width: 85ch;
}

.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 1rem;
}

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

.card {
  border: 1px solid var(--line);
  background: rgba(16, 26, 43, 0.62);
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 100%;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading);
}

.card p,
.card li,
article p,
article li {
  color: var(--text-secondary);
}

.kpi {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--accent);
}

.timeline {
  position: relative;
  padding-left: 1.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}

.timeline article {
  position: relative;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: rgba(16, 26, 43, 0.62);
  border-radius: 14px;
  padding: 0.95rem;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -1.19rem;
  top: 1.07rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(77, 217, 255, 0.2);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.7rem;
}

.contact-list a {
  color: #9afcff;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.card a,
.legal-article a,
.section a {
  color: #9afcff;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.card a:visited,
.legal-article a:visited,
.section a:visited,
.contact-list a:visited {
  color: #9afcff;
}

.card a:hover,
.legal-article a:hover,
.section a:hover,
.contact-list a:hover {
  color: #c7ff8f;
}

.legal main {
  width: min(100% - 2rem, 980px);
}

.legal-article {
  margin-top: 2rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(16, 26, 43, 0.6);
  border-radius: var(--radius);
}

.legal-article h1,
.legal-article h2,
.legal-article h3 {
  font-family: var(--font-heading);
}

.legal-article h2 {
  margin-top: 1.8rem;
}

.legal-article ul,
.legal-article ol {
  padding-left: 1.25rem;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 13, 0.8);
}

.footer-wrap {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

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

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

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  nav ul {
    position: absolute;
    right: 1rem;
    top: 70px;
    width: min(320px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    background: rgba(8, 12, 20, 0.95);
    border-radius: 12px;
    padding: 0.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  nav ul.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
