/* ==========================================================================
   MR UNKNOWN STUDIOS - CLEAN & MINIMAL DESIGN SYSTEM
   Modern Dark Aesthetic | Clean Typography | Responsive
   ========================================================================== */

:root {
  /* Colors */
  --bg-page: #080b11;
  --bg-surface: #0f141f;
  --bg-surface-hover: #151c2b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 229, 255, 0.35);

  --accent-cyan: #00e5ff;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1080px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Section Common */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #040912;
}

.btn-primary:hover {
  background: #33ecff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: #fff;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
}

/* Store Badge Buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #0b0f17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.1rem;
  color: #fff;
  transition: all var(--transition);
}

.store-btn:hover {
  border-color: var(--accent-cyan);
  background: #101622;
  transform: translateY(-2px);
}

.store-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-btn-text {
  text-align: left;
  line-height: 1.15;
}

.store-btn-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  display: block;
}

.store-btn-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(8, 11, 17, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  height: 70px;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.nav-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 5.5rem 0 4rem 0;
  text-align: center;
}

.hero-box {
  max-width: 780px;
  margin: 0 auto;
}

.hero-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-logo-badge img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-title span {
  color: var(--accent-cyan);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  max-width: 580px;
  margin: 0 auto;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   FEATURED GAME: LEAST COUNT RUSH
   ========================================================================== */
.featured-game-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 5rem 0;
}

.featured-game-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.game-badge-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.game-logo-img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.game-title {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.game-tagline {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.game-summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Simple Rules Pill List */
.game-rules-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.rule-item {
  background: rgba(8, 11, 17, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
}

.rule-item strong {
  color: #fff;
  display: block;
  font-size: 0.92rem;
}

.game-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.game-preview-box {
  background: #080b11;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.game-preview-box img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   ALL CREATIONS (APPS & GAMES)
   ========================================================================== */
.creations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.creation-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.creation-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
  transform: translateY(-3px);
}

.creation-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.creation-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.creation-type.app {
  color: #c084fc;
}

.creation-status {
  font-size: 0.78rem;
  color: var(--accent-green);
  font-weight: 600;
}

.creation-name {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.creation-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.creation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-dim);
}

.creation-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.creation-link:hover {
  color: #fff;
  gap: 0.6rem;
}

/* ==========================================================================
   ABOUT & ETHOS
   ========================================================================== */
.about-section {
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0;
}

.ethos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ethos-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.ethos-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.ethos-heading {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.ethos-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 5rem 0;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
}

.contact-info p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.email-highlight-box {
  background: #080b11;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.email-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
}

.email-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.email-link:hover {
  text-decoration: underline;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #080b11;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-field input:focus, .form-field textarea:focus {
  border-color: var(--accent-cyan);
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
}

/* Simple Alert Banner */
.form-status {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-dim);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 1.5rem;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .featured-game-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .creations-grid {
    grid-template-columns: 1fr;
  }
  .ethos-grid {
    grid-template-columns: 1fr;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .site-nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #080b11;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 1.25rem;
  }
  .hero-stats {
    gap: 1.5rem;
  }
  .stat-value {
    font-size: 1.4rem;
  }
  .game-rules-list {
    grid-template-columns: 1fr;
  }
  .footer-row {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
