/* ==========================================================================
   Event Horizon - Core Design System & Global Styles
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@200;300;400;500;600;700&display=swap');

:root {
  /* Cosmic Color Palette */
  --bg-color: #06060c;
  --surface-color: rgba(255, 255, 255, 0.02);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-glow: rgba(0, 242, 254, 0.15);
  
  --primary-accent: #00F2FE; /* Glowing Nova Cyan */
  --secondary-accent: #FF7E40; /* Solar Edge Orange */
  
  --text-primary: #FFFFFF;
  --text-secondary: #8E92B2;
  --text-muted: #4F5272;
  
  /* Layout tokens */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-display: 'Outfit', var(--font-family-sans);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 126, 64, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  font-weight: 300;
}

/* Premium Layout Components */

/* Floating Navigation Bar */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 64px;
  background: rgba(10, 10, 20, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-border);
  border-radius: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.navbar:hover {
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  box-shadow: 0 0 15px var(--primary-accent);
}

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

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

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 60px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
}

.hero-subtitle {
  font-family: var(--font-family-display);
  color: var(--primary-accent);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 24px;
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 32px;
}

.hero-title span {
  font-weight: 600;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-accent) 70%, var(--secondary-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 600px;
  font-size: 1.15rem;
  margin-bottom: 48px;
}

/* Glassmorphism Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(255, 126, 64, 0.05) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 30px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-family-display);
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  border-color: var(--primary-accent);
  box-shadow: 0 10px 40px var(--surface-glow);
}

/* Bento Grid System for Apps */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

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

.section-tag {
  color: var(--secondary-accent);
  font-family: var(--font-family-display);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
}

.section-title span {
  font-weight: 600;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

/* Card sizes */
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }

/* Bento card details */
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 24px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.card-desc {
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 500px;
}

/* Custom Mockup Frames within Bento cards */
.mockup-container {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 50%;
  height: 80%;
  border-radius: 20px 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 10, 20, 0.5);
  overflow: hidden;
  box-shadow: -15px -15px 40px rgba(0, 0, 0, 0.5);
}

.mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* App badge link utilities */
.btn-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-family-display);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-badge-active {
  background: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}

.btn-badge-active:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--bg-color);
}

.card-actions {
  display: flex;
  gap: 16px;
}

/* Footer & Legal */
.footer {
  background: rgba(5, 5, 10, 0.8);
  border-top: 1px solid var(--surface-border);
  padding: 80px 24px 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-title {
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .col-8, .col-4, .col-6 {
    grid-column: span 12;
  }
  
  .mockup-container {
    position: relative;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 300px;
    margin-top: 32px;
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }
  
  .nav-links {
    display: none; /* Can build toggle hamburger menu in JS later if needed */
  }
  
  .footer-content {
    flex-direction: column;
  }
}
