:root {
  --bg-primary: #111317;
  --bg-surface: #1A1D24;
  --bg-surface-hover: #222630;
  --accent-emerald: #34D399;
  --accent-cyan: #06B6D4;
  --accent-violet: #A855F7;
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --border-subtle: #2A2F3A;
  --grad-brand: linear-gradient(135deg, #34D399 0%, #06B6D4 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(17, 19, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand img {
  height: 44px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad-brand);
  color: #111317;
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(52, 211, 153, 0.28);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Hero Section */
.hero {
  padding: 64px 0 88px;
  position: relative;
  overflow-x: clip;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 400px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, rgba(6, 182, 212, 0.04) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-isologo {
  width: 240px;
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: var(--accent-emerald);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero h1 {
  font-size: clamp(2.15rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.06rem;
  max-width: 520px;
  margin-bottom: 28px;
}

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

/* Featured Game Showcase Window */
.browser-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.55);
}

.browser-bar {
  height: 38px;
  background: #14171D;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2A2F3A;
}

.browser-dots span:nth-child(1) { background: #34D399; }
.browser-dots span:nth-child(2) { background: #22D3EE; }
.browser-dots span:nth-child(3) { background: #A855F7; }

.browser-url {
  background: #0D0F12;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 3px 12px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-url strong {
  color: var(--accent-emerald);
  font-weight: 600;
}

.showcase-body {
  padding: 28px 24px;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 55%),
              linear-gradient(180deg, #161920 0%, #111317 100%);
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.showcase-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.showcase-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--accent-emerald);
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-weight: 600;
}

.showcase-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.feature-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.feature-pill {
  background: rgba(26, 29, 36, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 12px;
}

.feature-pill .val {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.feature-pill .lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
}

.section-kicker {
  color: var(--accent-cyan);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-secondary);
  max-width: 440px;
  font-size: 0.95rem;
}

/* Games Catalog Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 14px 36px rgba(6, 182, 212, 0.12);
}

.game-card.featured {
  border-color: rgba(52, 211, 153, 0.45);
}

.game-thumb {
  aspect-ratio: 16 / 9;
  background: #14171D;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.game-thumb.fragstrike-bg {
  background: radial-gradient(circle at 30% 30%, rgba(52, 211, 153, 0.22), transparent 55%),
              radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.22), transparent 55%),
              #131720;
}

.game-thumb-art {
  text-align: center;
  padding: 16px;
}

.game-thumb-art .code-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
}

.game-thumb-art .code-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-live {
  background: rgba(52, 211, 153, 0.16);
  color: var(--accent-emerald);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.status-beta {
  background: rgba(6, 182, 212, 0.16);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.status-dev {
  background: rgba(168, 85, 247, 0.16);
  color: var(--accent-violet);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.game-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-meta {
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.game-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.game-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.game-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.domain-chip {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Studio Story Section */
.story-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}

.story-header h2 {
  line-height: 1.2;
}

.timeline-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 24px;
}

.timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.timeline-card.highlight {
  border-color: rgba(6, 182, 212, 0.45);
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-emerald);
  margin-bottom: 10px;
  display: block;
}

.timeline-card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.timeline-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.timeline-card p + p {
  margin-top: 10px;
}

/* Tech Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 22px;
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-weight: 700;
}

.pillar-card h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.pillar-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* Community CTA */
.cta-box {
  background: linear-gradient(135deg, rgba(26, 29, 36, 0.95) 0%, rgba(17, 19, 23, 0.98) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-box h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.cta-box p {
  color: var(--text-secondary);
  max-width: 540px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  background: #0D0F12;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s;
}

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

.footer-copy {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid rgba(42, 47, 58, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 960px) {
  .hero-grid,
  .timeline-cards {
    grid-template-columns: 1fr;
  }
  .games-grid,
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .section-header,
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn) {
    display: none;
  }
  .feature-pills {
    grid-template-columns: 1fr;
  }
  .footer-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-copy .font-mono {
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
  }
}
