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

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Color Palette - HSL Tailored Cosmic Theme */
  --bg-base: hsl(252, 45%, 5%);
  --bg-surface: hsla(250, 30%, 10%, 0.65);
  --bg-surface-hover: hsla(250, 30%, 15%, 0.85);
  --border-color: rgba(99, 102, 241, 0.15);
  --border-hover: rgba(168, 85, 247, 0.4);

  /* Accents */
  --accent-indigo: hsl(239, 84%, 67%);
  --accent-purple: hsl(271, 91%, 65%);
  --accent-pink: hsl(328, 86%, 62%);
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(240, 10%, 70%);
  --text-muted: hsl(240, 6%, 50%);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple), var(--accent-pink));
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.25);
  --shadow-glow-hover: 0 0 32px rgba(168, 85, 247, 0.45);

  /* Layout and Animations */
  --radius-lg: 16px;
  --radius-md: 10px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASIC STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

/* --- BACKGROUND ANIMATION ELEMENTS --- */
.bg-glow-orb-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: orbFloat 12s infinite alternate ease-in-out;
}

.bg-glow-orb-2 {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: orbFloat 15s infinite alternate-reverse ease-in-out;
}

/* --- MAIN CONTAINER --- */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  z-index: 1;
  position: relative;
}

/* --- HEADER / NAVIGATION --- */
header {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--bg-base);
  box-shadow: var(--shadow-glow);
}

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

/* --- HERO SECTION --- */
.hero {
  text-align: center;
  padding: 96px 0 64px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: hsl(239, 100%, 75%);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: hsl(239, 100%, 75%);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite alternate;
}

.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
}

.hero h1 span {
  background: linear-gradient(135deg, hsl(239, 100%, 75%), hsl(271, 95%, 70%), hsl(328, 95%, 68%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-secondary);
  font-size: clamp(16px, 3vw, 20px);
  max-width: 600px;
  font-weight: 400;
  margin-bottom: 40px;
}

/* --- APP SECTION & GRID --- */
.apps-section {
  padding-bottom: 96px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.section-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* --- CARD COMPONENT (GLASSMORPHISM) --- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-glow);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card:hover::before {
  opacity: 1;
}

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

.card-icon-container {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.card:hover .card-icon-container {
  background: var(--grad-primary);
  border-color: transparent;
  color: var(--bg-base);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 28px;
  height: 28px;
  stroke: var(--text-primary);
  stroke-width: 2;
  fill: none;
  transition: var(--transition-smooth);
}

.card:hover .card-icon {
  stroke: var(--bg-base);
}

.card-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.card-badge.active {
  background: rgba(16, 185, 129, 0.1);
  color: hsl(150, 100%, 45%);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.card-badge.upcoming {
  background: rgba(245, 158, 11, 0.1);
  color: hsl(38, 92%, 58%);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.card-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.card-action {
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-base);
}

.btn-primary:hover {
  background: var(--grad-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: var(--transition-smooth);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- EXPLANATION BANNER --- */
.info-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 96px;
  backdrop-filter: blur(8px);
}

.info-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .info-content {
    grid-template-columns: 1.2fr 2fr;
    align-items: center;
  }
}

.info-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-text p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.info-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: hsl(239, 100%, 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.step-desc h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-desc p {
  color: var(--text-muted);
  font-size: 13px;
}

/* --- FOOTER --- */
footer {
  margin-top: auto;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, -50px) scale(1.1);
  }
}

@keyframes pulseDot {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Responsive Overrides */
@media (max-width: 576px) {
  .hero {
    padding: 64px 0 40px 0;
  }
  
  .card {
    padding: 24px;
  }
}
