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

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

:root {
  --bg-primary: #080808;
  --bg-secondary: #0f0f0f;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --border: rgba(255,255,255,0.07);
  --border-glow: rgba(139,92,246,0.3);
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-dark: #6d28d9;
  --gold: #f59e0b;
  --gold-light: #fcd34d;
  --cyan: #06b6d4;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(139,92,246,0.15);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 5%;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.header-brand .logo-img {
  width: 36px; height: 36px; border-radius: 8px; object-fit: contain;
}
.header-brand .brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  background: linear-gradient(135deg, var(--purple-light), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.header-actions { display: flex; gap: 10px; }
.btn-outline-sm {
  padding: 8px 18px; border-radius: 8px;
  border: 1px solid var(--border-glow); color: var(--purple-light);
  background: transparent; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: var(--transition);
}
.btn-outline-sm:hover { background: rgba(139,92,246,0.1); }
.btn-primary-sm {
  padding: 8px 18px; border-radius: 8px;
  background: var(--purple); color: #fff;
  border: none; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: var(--transition);
}
.btn-primary-sm:hover { background: var(--purple-dark); transform: translateY(-1px); }

/* HERO */
.hero {
  min-height: 100vh; padding: 120px 5% 80px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  font-size: 0.8rem; font-weight: 500; color: var(--purple-light);
  margin-bottom: 28px;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  max-width: 760px;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary); max-width: 540px;
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 60px; }
.btn-hero-primary {
  padding: 14px 32px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; text-decoration: none;
  transition: var(--transition); box-shadow: 0 4px 20px rgba(139,92,246,0.35);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(139,92,246,0.5); }
.btn-hero-outline {
  padding: 14px 32px; border-radius: 12px;
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border); font-weight: 600; font-size: 1rem;
  cursor: pointer; text-decoration: none; transition: var(--transition);
}
.btn-hero-outline:hover { border-color: var(--border-glow); background: rgba(255,255,255,0.03); }

.hero-stats {
  display: flex; gap: 48px; flex-wrap: wrap; justify-content: center;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem; font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* SECTION */
.section { padding: 90px 5%; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--purple-light);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700;
  margin-bottom: 14px;
}
.section-subtitle { color: var(--text-secondary); max-width: 500px; margin: 0 auto; font-size: 0.95rem; }

/* WHY CARDS */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  opacity: 0; transition: var(--transition);
}
.why-card:hover { border-color: var(--border-glow); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.why-card:hover::before { opacity: 1; }
.why-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(139,92,246,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.why-icon svg { width: 24px; height: 24px; color: var(--purple-light); }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* APPS SECTION */
.apps-section { background: var(--bg-secondary); }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}
.app-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  cursor: default;
  /* Force all cards same height */
  min-height: 0;
}
.app-item:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.app-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16%;
  box-sizing: border-box;
}
.app-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.app-img-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  flex-shrink: 0;
}
.app-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  padding: 8px 6px 10px;
  width: 100%;
  box-sizing: border-box;
  /* Allow wrapping so full name is always visible */
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  line-height: 1.3;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-logo {
  width: 48px; height: 48px; border-radius: 10px; object-fit: contain;
  background: #1a1a1a; padding: 4px;
}
.app-placeholder {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #fff;
}

/* FOOTER STRIP */
.cta-strip {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(245,158,11,0.05));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 60px 5%; text-align: center;
}
.cta-strip h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700;
  margin-bottom: 14px;
}
.cta-strip p { color: var(--text-secondary); margin-bottom: 28px; }

.footer {
  background: var(--bg-primary); border-top: 1px solid var(--border);
  padding: 28px 5%; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; }
.footer-text { font-size: 0.8rem; color: var(--text-muted); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@media (max-width: 600px) {
  .hero-stats { gap: 28px; }
  .apps-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .app-img-wrap { padding: 12%; }
  .app-name { font-size: 0.65rem; padding: 6px 4px 8px; }
  .footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .apps-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (min-width: 901px) {
  .apps-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
}
