:root {
  --bg: #08090e;
  --bg2: #0f1018;
  --bg3: #161825;
  --accent: #4f8ef7;
  --accent2: #7c3aed;
  --text: #e8eaf0;
  --text-muted: #8890a8;
  --border: #1e2136;
  --card: #111320;
  --font: 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

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

/* MAIN */
main { flex: 1; }

/* HERO */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(79,142,247,0.12) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* SECTION */
section { padding: 5rem 2rem; }
section:nth-child(even) { background: var(--bg2); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

/* PURPOSE CARDS */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.purpose-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.purpose-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.purpose-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.purpose-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.purpose-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  word-break: keep-all;
}

/* NEWS */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
  transition: border-color 0.2s, transform 0.2s;
}

.news-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.news-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg3);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.news-card:hover .news-thumb img { transform: scale(1.04); }

.news-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
}

.news-body {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.news-body h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.news-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  word-break: keep-all;
  margin-bottom: 1.5rem;
}

.news-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .news-card { grid-template-columns: 1fr; }
  .news-thumb { aspect-ratio: 16/9; }
}

/* GAMES */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

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

.game-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.game-card:hover .game-thumb img {
  transform: scale(1.04);
}

.game-body { padding: 1.5rem; }

.game-genre {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
}

.game-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.game-body .game-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.game-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  word-break: keep-all;
}

.game-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}

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

.btn-secondary {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

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

/* HISTORY */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

.timeline-year { margin-bottom: 2.5rem; }

.year-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  position: relative;
}

.year-label::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.timeline-items { display: flex; flex-direction: column; gap: 0.4rem; }

.timeline-item {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.timeline-item:hover {
  background: var(--bg3);
  color: var(--text);
}

/* COUPON */
.coupon-box {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.coupon-input-wrap {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0;
}

.coupon-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.coupon-input:focus { border-color: var(--accent); }

.coupon-note { font-size: 0.85rem; color: var(--text-muted); }

/* TERMS */
.terms-card {
  max-width: 700px;
  margin: 0 auto;
}

.terms-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.terms-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}

.terms-list li a:hover { border-color: var(--accent); }

.terms-list li a span:last-child {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CAREERS */
.careers-stat {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(79,142,247,0.1) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}

.careers-stat .stat-num {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.careers-stat p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.job-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.job-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.job-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.job-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }

.job-stack {
  font-size: 0.75rem;
  color: var(--accent2);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.job-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; word-break: keep-all; }

.job-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg3);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  display: inline-block;
  margin-top: 0.5rem;
}

.apply-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}

.apply-box h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.apply-box p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; word-break: keep-all; }

.apply-box .email-link {
  display: inline-block;
  margin: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(79,142,247,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.apply-box .email-link:hover { border-color: var(--accent); }

.qualifications {
  text-align: left;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.qualifications h4 { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.75rem; }
.qualifications ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.qualifications li { font-size: 0.85rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.qualifications li::before { content: '·'; position: absolute; left: 0; color: var(--accent); }

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand .logo {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-info p, .footer-info a {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.footer-copy {
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-links a { padding: 0.4rem 0.6rem; font-size: 0.82rem; }
  section { padding: 3rem 1rem; }
  .hero { padding: 4rem 1rem 3rem; }
  .coupon-input-wrap { flex-direction: column; }
}
