/* Modern CSS Design System - Morebits Solutions */

:root {
  --bg-dark: #070d0a;
  --bg-card: #0f1c14;
  --bg-card-hover: #15261c;
  --bg-surface: #142219;
  --border-gold: rgba(200, 168, 75, 0.3);
  --border-gold-bright: #c8a84b;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --color-primary: #c8a84b;
  --color-primary-light: #e8d48a;
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.2);
  --color-text-main: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-text-gold: #e8d48a;

  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-glow: 0 0 35px rgba(200, 168, 75, 0.15);
  --shadow-emerald: 0 0 35px rgba(16, 185, 129, 0.15);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(200, 168, 75, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--color-text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 13, 10, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c8a84b 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(200, 168, 75, 0.3);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-text-main);
}

.brand-name span {
  color: var(--color-primary);
}

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

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

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

.btn-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #b3923b 100%);
  color: #05120a;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 168, 75, 0.4);
}

/* Hero Section */
.hero-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  color: var(--color-emerald);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #a68532 100%);
  color: #07130c;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(200, 168, 75, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(200, 168, 75, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-main);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Sections Common */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 54px;
}

.section-tag {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.section-description {
  color: var(--color-text-muted);
  font-size: 16px;
  max-width: 580px;
  margin: 12px auto 0;
}

/* Apps Section - Featured App Card */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.app-card {
  background: linear-gradient(145deg, rgba(15, 28, 20, 0.9) 0%, rgba(20, 38, 27, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
  border-color: var(--border-gold-bright);
  box-shadow: 0 0 50px rgba(200, 168, 75, 0.25);
}

.app-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #b3923b 100%);
  color: #07140b;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.app-icon-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, #2a4d34 0%, #0d1a10 100%);
  border: 2px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.app-meta h3 {
  font-size: 30px;
  font-weight: 900;
  color: var(--color-text-gold);
  letter-spacing: -0.5px;
}

.app-meta p {
  color: var(--color-emerald);
  font-size: 14px;
  font-weight: 600;
}

.app-description {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.app-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}

.app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-main);
  font-size: 14px;
  font-weight: 500;
}

.app-features li span.icon {
  color: var(--color-emerald);
  font-size: 16px;
}

.app-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.app-visual {
  background: rgba(7, 13, 10, 0.6);
  border: 1px solid rgba(200, 168, 75, 0.2);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  position: relative;
}

.game-preview-box {
  background: #0b1710;
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-md);
  padding: 30px 20px;
}

.cards-visual {
  font-size: 48px;
  letter-spacing: 8px;
  margin-bottom: 12px;
}

.preview-title {
  color: var(--color-primary-light);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}

.preview-sub {
  color: var(--color-text-muted);
  font-size: 13px;
}

/* Infrastructure & Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Health & API Status Banner */
.status-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(7, 13, 10, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.status-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 12px var(--color-emerald);
}

.status-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.status-sub {
  font-size: 13px;
  color: var(--color-text-muted);
}

.btn-status-link {
  color: var(--color-emerald);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-status-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 10, 8, 0.95);
  padding: 48px 24px;
  margin-top: 60px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-brand strong {
  color: var(--color-text-main);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .app-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .hero-title {
    font-size: 38px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 30px;
  }

  .app-features {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }
}
