:root {
  --bg: radial-gradient(circle at 20% 20%, #13223a 0, #0b1626 35%, #08101c 65%);
  --surface: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8efff;
  --muted: #a9b8d9;
  --accent: linear-gradient(120deg, #7cf2c6 0%, #4ad2ff 50%, #f6c64f 100%);
  --accent-strong: #f6c64f;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(122, 242, 198, 0.18);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-strong);
  color: #0a0f18;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  backdrop-filter: blur(12px);
  background: rgba(6, 12, 20, 0.7);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: "Chakra Petch", "Space Grotesk", sans-serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.logo-brand {
  font-size: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.top-bar .logo-img {
  height: 110px;
}

.footer__brand .logo-img {
  height: 110px;
  margin-bottom: 8px;
}

.header-nav-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background-image: var(--accent);
  color: #0a0f18;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(122, 242, 198, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(74, 210, 255, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f8ff;
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-small {
  padding: 10px 14px;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  padding: 96px 6vw 72px;
  align-items: center;
}

.hero__copy h1 {
  font-size: clamp(38px, 5vw, 56px);
  margin: 10px 0 12px;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--muted);
  max-width: 640px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin: 20px 0 10px;
  flex-wrap: wrap;
}

.hero__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.hero__meta span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.hero__panel {
  position: relative;
  min-height: 280px;
}

.panel-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 420px;
  isolation: isolate;
}

.panel-label {
  color: var(--muted);
  margin: 0 0 4px;
  font-size: 14px;
}

.panel-card h3 {
  margin: 6px 0 6px;
  font-size: 22px;
}

.panel-note {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(122, 242, 198, 0.12);
  color: #7cf2c6;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(124, 242, 198, 0.2);
}

.panel-glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(122, 242, 198, 0.14), transparent 60%);
  filter: blur(30px);
  z-index: 0;
}

.section {
  padding: 42px 6vw 72px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 38px);
}

.section-head p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #d8e5ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

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

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(124, 242, 198, 0.4);
}

.game-image {
  position: relative;
  aspect-ratio: 16 / 12;
  overflow: hidden;
  background: transparent;
}

.game-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.6));
  z-index: 1;
  pointer-events: none;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.game-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-body h3 {
  margin: 2px 0;
  font-size: 20px;
}

.game-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: fit-content;
}

.pill-amber { border-color: rgba(246, 198, 79, 0.4); color: #ffd277; }
.pill-lime { border-color: rgba(124, 242, 198, 0.5); color: #9ff3d6; }
.pill-rose { border-color: rgba(255, 145, 190, 0.45); color: #ffb9d8; }
.pill-cyan { border-color: rgba(94, 206, 255, 0.45); color: #97ddff; }

.game-actions {
  margin-top: 6px;
}

.highlights {
  padding-top: 18px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 160px;
  box-shadow: var(--shadow);
}

.highlight-card h3 {
  margin: 4px 0 8px;
  font-size: 18px;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cta {
  padding: 72px 6vw 90px;
}

.cta__content {
  background: linear-gradient(120deg, rgba(124, 242, 198, 0.14), rgba(74, 210, 255, 0.08));
  border: 1px solid rgba(124, 242, 198, 0.3);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
  max-width: 960px;
}

.cta__content h2 {
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 36px);
}

.cta__content p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 6vw 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  color: var(--muted);
  background: rgba(6, 12, 20, 0.8);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer a {
  color: #e3edff;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__note {
  font-size: 14px;
}

@media (max-width: 720px) {
  .top-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .top-bar .brand {
    width: 100%;
    text-align: center;
  }

  .header-nav-group {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
  }

  .nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
  }

  .hero {
    padding-top: 72px;
  }
}

/* Contact Form Styles */
.contact-section {
  padding: 96px 6vw 72px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-container {
  margin-top: 40px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.form-group .required {
  color: #ff6b6b;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(124, 242, 198, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(124, 242, 198, 0.1);
}

.form-group input:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: rgba(255, 107, 107, 0.6);
  background: rgba(255, 107, 107, 0.05);
}

.form-group input[aria-invalid="true"]:focus,
.form-group textarea[aria-invalid="true"]:focus {
  border-color: rgba(255, 107, 107, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.error-message {
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 500;
  margin-top: -4px;
  min-height: 18px;
}

.error-message:empty {
  display: none;
}

.form-actions {
  margin-top: 8px;
}

.form-actions .btn {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 14px 24px;
}

.form-actions .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: none;
}

.form-message {
  padding: 20px 24px;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  margin-top: 16px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.6;
  animation: fadeIn 0.3s ease-in;
}

.form-message:empty {
  display: none;
}

.form-message strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.form-message--success {
  background: rgba(124, 242, 198, 0.25);
  border: 2px solid #7cf2c6;
  color: #7cf2c6;
  box-shadow: 0 8px 32px rgba(124, 242, 198, 0.3);
  font-size: 16px;
  font-weight: 600;
}

.form-message--success strong {
  color: #ffffff;
  font-size: 18px;
}

.form-message--error {
  background: rgba(255, 107, 107, 0.2);
  border: 2px solid rgba(255, 107, 107, 0.5);
  color: #ff6b6b;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .contact-section {
    padding: 72px 4vw 48px;
  }

  .contact-form {
    padding: 28px 20px;
    gap: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 16px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
