:root {
  color-scheme: dark;
  --bg-dark: #07070f;
  --bg-panel: rgba(11, 14, 33, 0.85);
  --bg-card: rgba(18, 22, 45, 0.75);
  --primary: #ff0f6b;
  --primary-soft: #ff5c8f;
  --text-bright: #f4f5ff;
  --text-muted: #9aa0c6;
  --border: rgba(255, 15, 107, 0.4);
  --glow: rgba(255, 15, 107, 0.25);
}

/* Header gradient overlay */
.header-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(180deg, 
    rgba(7, 7, 15, 0.95) 0%, 
    rgba(7, 7, 15, 0.8) 40%, 
    rgba(7, 7, 15, 0.4) 70%,
    transparent 100%);
  z-index: 99;
  pointer-events: none;
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 3rem;
  left: 3rem;
  right: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 100;
  pointer-events: none;
}

.nav-logo {
  pointer-events: auto;
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 0.5rem;
  transition: transform 0.2s ease;
  margin-left: 0;
  margin-top: 0;
  box-shadow: 0 0 15px rgba(255, 15, 107, 0.3), 0 0 30px rgba(255, 15, 107, 0.15);
}

.nav-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 15, 107, 0.4), 0 0 40px rgba(255, 15, 107, 0.2);
}

.nav-logo img {
  width: 140%;
  height: 140%;
  object-fit: cover;
  object-position: center;
  margin: -20%;
  filter: drop-shadow(0 0 10px rgba(255, 15, 107, 0.4));
}

.nav-menu {
  pointer-events: auto;
  position: relative;
  margin-right: 0;
  margin-top: 0;
}

.nav-toggle {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.5rem;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0 15px rgba(255, 15, 107, 0.3), 0 0 30px rgba(255, 15, 107, 0.15);
}

.nav-toggle:hover {
  background: rgba(255, 15, 107, 0.15);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 15, 107, 0.4), 0 0 40px rgba(255, 15, 107, 0.2);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 180px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.7rem 1.25rem;
  color: var(--text-bright);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown a:hover {
  background: rgba(255, 15, 107, 0.15);
  color: var(--primary);
}

.nav-divider {
  display: block;
  padding: 0.5rem 1.25rem 0.3rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.3rem;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text-bright);
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 15, 107, 0.12), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(92, 84, 255, 0.18), transparent 45%),
    linear-gradient(135deg, #050407, #090e1b 60%);
  overflow-x: hidden;
}

body.alt-page .hero {
  padding-bottom: 2rem;
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 10, 100, 0.35), transparent 55%) 20% 30% / 550px 550px no-repeat,
    radial-gradient(circle, rgba(80, 120, 255, 0.25), transparent 60%) 80% 10% / 600px 600px no-repeat;
  filter: blur(10px);
  z-index: 0;
}

.hero {
  position: relative;
  padding: 5rem clamp(1rem, 4vw, 4rem);
  text-align: center;
  z-index: 1;
}

.hero--subpage {
  padding-bottom: 3rem;
}

.tagline {
  font-family: 'Chakra Petch', monospace;
  letter-spacing: 0.4em;
  color: var(--primary-soft);
  text-transform: uppercase;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.subtitle {
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 600;
  margin: 0.5rem 0 2rem;
  color: var(--primary);
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.holo-box {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(18, 22, 45, 0.95), rgba(12, 16, 33, 0.75));
  border-radius: 1.15rem;
  backdrop-filter: blur(14px);
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
  padding: 1.75rem;
  box-shadow: 0 0 35px rgba(255, 15, 107, 0.08);
  position: relative;
  overflow: hidden;
}

.holo-box::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.holo-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.08), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}

.hero-card {
  text-align: left;
}

.hero-card__step {
  font-family: 'Chakra Petch', monospace;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.15);
}

.hero-card h3 {
  margin: 0.2rem 0;
}

.hero-card p {
  margin: 0;
  color: var(--text-muted);
}

.game-overview,
.cta-blurb {
  padding: 0 clamp(1rem, 4vw, 4rem) 2.5rem;
  max-width: 900px;
}

.game-overview p,
.cta-blurb p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.social-links {
  padding: 0 clamp(1rem, 4vw, 4rem) 4rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-bright);
  text-decoration: none;
}

.social-card h4 {
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--primary-soft);
}

.social-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

.info-grid {
  padding: 0 clamp(1rem, 4vw, 4rem) 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.info-card h4 {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--primary-soft);
}

.info-card p {
  margin: 0;
  color: var(--text-muted);
}

.challenge-grid,
.feature-grid {
  padding: 0 clamp(1rem, 4vw, 4rem) 4rem;
}

.challenge-list,
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.challenge-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.challenge-card p {
  margin: 0;
  color: var(--text-muted);
}

.feature-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-soft);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

.neural-cluster {
  position: relative;
  margin: 1rem clamp(1rem, 4vw, 4rem) 3rem;
  height: 90px;
  opacity: 0.55;
}

.neural-cluster::before,
.neural-cluster::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      90deg,
      rgba(255, 15, 107, 0.9),
      rgba(255, 15, 107, 0.9) 2px,
      transparent 2px,
      transparent 28px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 15, 107, 0.25),
      rgba(255, 15, 107, 0.25) 2px,
      transparent 2px,
      transparent 24px
    );
  filter: drop-shadow(0 0 6px rgba(255, 15, 107, 0.4));
  clip-path: polygon(0 0, 35% 0, 40% 25%, 70% 25%, 80% 60%, 100% 60%, 100% 100%, 0 100%);
}

.neural-cluster::after {
  inset: 15px;
  opacity: 0.4;
  clip-path: polygon(0 10%, 30% 10%, 35% 30%, 60% 30%, 70% 65%, 100% 65%, 100% 100%, 0 100%);
}

.neural-cluster--mid {
  transform: translateY(-10px);
}

.neural-cluster--footer {
  transform: translateY(10px);
}

.contact-terms {
  padding: 0 clamp(1rem, 4vw, 4rem) 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-terms.single-column {
  max-width: 900px;
  margin: 0 auto 4rem;
}

.contact-terms.single-column .contact-card,
.contact-terms.single-column .terms-card {
  grid-column: 1 / -1;
}

.privacy-stack,
.terms-stack {
  max-width: 900px;
  margin: 0 auto;
}

/* Product slider */
.products-section {
  padding: 0 clamp(1rem, 4vw, 4rem) 4rem;
}

.product-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-slide {
  border: 2px solid var(--border);
  background: linear-gradient(135deg, rgba(18, 22, 45, 0.95), rgba(12, 16, 33, 0.75));
  border-radius: 1.25rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-height: 580px;
  display: flex;
  flex-direction: column;
}

.product-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 50%);
  pointer-events: none;
}

.product-slide--toyobox {
  border-color: rgba(102, 126, 234, 0.5);
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.12), rgba(12, 16, 33, 0.9));
  box-shadow: 0 0 40px rgba(102, 126, 234, 0.15), inset 0 1px 0 rgba(102, 126, 234, 0.1);
}

.product-slide--toyocook {
  border-color: rgba(217, 119, 6, 0.5);
  background: linear-gradient(145deg, rgba(217, 119, 6, 0.2), rgba(180, 83, 9, 0.12), rgba(12, 16, 33, 0.9));
  box-shadow: 0 0 40px rgba(217, 119, 6, 0.15), inset 0 1px 0 rgba(217, 119, 6, 0.1);
}

.product-slide--toyocoop {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.12), rgba(12, 16, 33, 0.9));
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(59, 130, 246, 0.1);
}

.product-slide--toyoracing {
  border-color: rgba(255, 165, 0, 0.5);
  background: linear-gradient(145deg, rgba(30, 144, 255, 0.2), rgba(10, 92, 143, 0.12), rgba(12, 16, 33, 0.9));
  box-shadow: 0 0 40px rgba(30, 144, 255, 0.15), inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.product-slide--toyosnowcrew {
  border-color: rgba(34, 227, 239, 0.5);
  background: linear-gradient(145deg, rgba(34, 119, 239, 0.2), rgba(9, 94, 214, 0.12), rgba(12, 16, 33, 0.9));
  box-shadow: 0 0 40px rgba(34, 119, 239, 0.15), inset 0 1px 0 rgba(34, 227, 239, 0.1);
}

.product-slide--toyopuzzle {
  border-color: rgba(255, 149, 0, 0.5);
  background: linear-gradient(145deg, rgba(122, 154, 63, 0.2), rgba(230, 57, 70, 0.12), rgba(12, 16, 33, 0.9));
  box-shadow: 0 0 40px rgba(122, 154, 63, 0.15), inset 0 1px 0 rgba(255, 149, 0, 0.1);
}

.product-slide--coming {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(40, 40, 60, 0.5), rgba(20, 20, 35, 0.5));
}

.product-slide__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 1rem;
}

.product-slide__content > *:last-child,
.product-slide__content > div:last-child {
  margin-top: auto;
  flex-shrink: 0;
}

.product-slide__content h3 {
  margin: 0.5rem 0 1rem;
  font-size: 1.8rem;
}

.product-slide__content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.product-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(48, 164, 108, 0.2);
  color: #30A46C;
  border: 1px solid rgba(48, 164, 108, 0.4);
}

.product-badge--soon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.2);
}

.product-features {
  margin: 1rem 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.product-features li {
  margin-bottom: 0.35rem;
}



.product-cta-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.product-cta {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, var(--primary), #a510ff);
  color: white;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.product-cta:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.coming-soon-note {
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.8;
}

.policy-content {
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 2.5rem;
}

.policy-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.4rem;
}

.policy-content ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.policy-content li {
  margin-bottom: 0.35rem;
}

.policy-content p {
  color: var(--text-muted);
  line-height: 1.7;
}

.privacy-stack ul,
.terms-stack ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.privacy-stack li,
.terms-stack li {
  margin-bottom: 0.35rem;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.privacy-stack h2,
.terms-stack h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

.privacy-stack,
.terms-stack {
  padding: 0 clamp(1rem, 4vw, 4rem) 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.section-title span {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.section-title h2 {
  margin: 0.4rem 0 1.2rem;
  font-size: 1.8rem;
}

.section-title h2 {
  margin: 0.4rem 0 1.2rem;
  font-size: 1.8rem;
}

.section-title + p {
  margin-top: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 7, 15, 0.6);
  color: var(--text-bright);
  font-size: 1rem;
}

.contact-form button {
  margin-top: 0.3rem;
  padding: 0.9rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, var(--primary), #a510ff);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.terms-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.site-footer {
  padding: 2rem clamp(1rem, 4vw, 4rem) 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

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

.footer-links a {
  color: var(--primary-soft);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.corner-lines {
  position: fixed;
  width: 280px;
  height: 150px;
  pointer-events: none;
  z-index: 101;
  opacity: 0.85;
}

.corner-lines::before,
.corner-lines::after {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, var(--primary), rgba(255, 15, 107, 0));
  height: 2px;
  box-shadow: 0 0 8px var(--primary), 0 0 15px rgba(255, 15, 107, 0.5);
}

.corner-lines::after {
  width: 2px;
  height: 100px;
  background: linear-gradient(180deg, var(--primary), rgba(255, 15, 107, 0));
  box-shadow: 0 0 8px var(--primary), 0 0 15px rgba(255, 15, 107, 0.5);
}

.corner-lines--left {
  top: 1.5rem;
  left: 1.5rem;
}

.corner-lines--left::before {
  width: 240px;
  top: 0;
  left: 0;
}

.corner-lines--left::after {
  top: 0;
  left: 0;
}

.corner-lines--right {
  top: 1.5rem;
  right: 1.5rem;
  transform: scaleX(-1);
}

.corner-lines--right::before {
  width: 280px;
  top: 0;
  left: 0;
}

.corner-lines--right::after {
  top: 0;
  left: 0;
}

@media (max-width: 600px) {
  .hero {
    text-align: left;
  }

  .tagline {
    letter-spacing: 0.25em;
  }

  .challenge-list,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .corner-lines {
    display: none;
  }

  .neural-cluster {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

