@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Kanit:wght@500;600;700&display=swap');

:root {
  --bg: #f4f7ff;
  --panel: #ffffff;
  --ink: #0c1533;
  --muted: #4c5671;
  --accent: #00c2ff;
  --accent-2: #0ea5e9;
  --border: #e0e6f4;
  --shadow: 0 20px 60px rgba(12, 21, 51, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Kanit', sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 194, 255, 0.08), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.08), transparent 28%),
    linear-gradient(150deg, #f8faff 0%, #eef2fb 42%, #f9fbff 100%);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0;
  font-family: 'Kanit', 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

p { margin: 0; color: var(--muted); }

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

.page { min-height: 100vh; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
}

.brand-logo { width: 142px; height: auto; }

.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name { font-size: 18px; }

.brand-tagline { font-size: 12px; color: var(--muted); }

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.28);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(12, 21, 51, 0.06);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero .btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

main { display: flex; flex-direction: column; gap: 26px; }

.hero {
  position: relative;
  padding: 64px 32px 48px;
  overflow: hidden;
  color: #fff;
  min-height: 70vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.25));
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0, 194, 255, 0.25), transparent 35%);
  z-index: 2;
}

.hero-grid {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero-grid.single { grid-template-columns: 1fr; }

.hero-copy {
  display: grid;
  gap: 14px;
  color: #fff;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.hero h1, .hero .lede { color: #fff; }
.hero h1 { font-family: 'Kanit', 'Space Grotesk', sans-serif; font-weight: 800; font-size: 38px; line-height: 1.1; }
.lede { font-size: 18px; max-width: 700px; font-weight: 600; }

.search { display: grid; gap: 8px; }

.search-bar {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.25);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  color: #fff;
}

.search-input::placeholder { color: rgba(255, 255, 255, 0.78); }

.suggestions {
  position: relative;
}

.suggestions-panel {
  position: absolute;
  top: 6px;
  width: 100%;
  margin-top: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 5;
}

.suggestion-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.suggestion-item:last-child { border-bottom: none; }

.suggestion-item:hover { background: rgba(14, 165, 233, 0.08); }

.cta-inline {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-ghost {
  border: none;
  background: transparent;
  color: var(--accent-2);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.hero .link-ghost { color: #fff; }

.form-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.form-vertical { display: grid; gap: 12px; }

.form-vertical .field { width: 100%; }

.field { display: grid; gap: 8px; }

.field label {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}

.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border 0.18s ease, box-shadow 0.18s ease;
}

.input:focus, .textarea:focus {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

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

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

.helper { color: var(--muted); font-size: 13px; }

.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.btn-danger {
  background: linear-gradient(120deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.28);
}

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 21, 51, 0.04);
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
}

.list { display: grid; gap: 12px; }

.request-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 12px 24px rgba(12, 21, 51, 0.05);
  display: grid;
  gap: 8px;
}

.request-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.search-hint { font-size: 13px; color: var(--muted); }

.pill-trail { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(12, 21, 51, 0.06);
  color: var(--ink);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

.hero .pill {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero .search-feedback { color: #f1f5ff; font-weight: 600; }

.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-weight: 600;
}

.hero-panel { display: grid; gap: 14px; }

.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.hero-card.outline {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.stat-row { display: flex; gap: 14px; flex-wrap: wrap; }

.stat {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.08);
  color: var(--ink);
  border: 1px solid var(--border);
}

.stat span { display: block; color: var(--muted); font-size: 12px; }

.hero-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.hero-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 21, 51, 0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 70px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-sub { margin-top: 6px; }

.games-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 10px;
  box-shadow: 0 16px 26px rgba(12, 21, 51, 0.05);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(12, 21, 51, 0.08);
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--ink);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 12px;
}

.game-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.game-tags span {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(12, 21, 51, 0.06);
  color: var(--muted);
  font-size: 12px;
  border: 1px solid var(--border);
}

.search-feedback { font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .site-nav { padding: 14px 18px; }
  .brand-copy { display: none; }
  .hero { padding: 42px 18px 14px; }
  .section { padding: 0 18px 60px; }
  .search-bar { flex-direction: column; }
  .search-bar .btn { width: 100%; }
  .hero-list li { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.pulse {
  animation: pulseHighlight 0.8s ease;
}

@keyframes pulseHighlight {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
  100% { box-shadow: 0 0 0 20px rgba(14, 165, 233, 0); }
}
