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

:root {
  --bg-color: #050508;
  --bg-gradient: radial-gradient(circle at 50% 0%, #151528 0%, #050508 100%);
  --card-bg: rgba(13, 13, 23, 0.65);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-hover: rgba(99, 102, 241, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --color-primary: #6366f1; /* Indigo */
  --color-secondary: #a855f7; /* Purple */
  --color-accent: #22d3ee; /* Cyan */
  
  --gradient-accent: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-accent);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  background: rgba(5, 5, 8, 0.6);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo svg {
  fill: url(#logo-grad);
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

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

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

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

.btn-primary {
  background: var(--gradient-accent);
  color: var(--text-primary) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-bounce);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 80vw;
  height: 40vw;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.badge {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--color-accent);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* Interactive Simulator (The App Mockup) */
.simulator-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.simulator-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 50%, rgba(99, 102, 241, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.simulator-frame {
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: #000;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.simulator-player-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Simulator Overlay UI */
.simulator-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.6) 100%);
}

.simulator-container:hover .simulator-overlay {
  opacity: 1;
}

.simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.simulator-app-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.simulator-tag-badge {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.simulator-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: auto;
}

.simulator-title-bar {
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.simulator-video-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.simulator-video-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Category Guide bar */
.simulator-guide {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  scrollbar-width: none;
}

.simulator-guide::-webkit-scrollbar {
  display: none;
}

.guide-item {
  background: rgba(13, 13, 23, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.guide-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-secondary);
  fill: none;
  transition: var(--transition-smooth);
}

.guide-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.guide-item.active {
  background: var(--gradient-accent);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.guide-item.active svg {
  stroke: var(--text-primary);
}

/* App Features Section */
.features {
  padding: 100px 0;
  position: relative;
}

.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 5rem auto;
}

.features-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.features-header p {
  color: var(--text-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2.5rem;
  border-radius: 20px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-hover);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.08);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.feature-icon-wrapper svg {
  stroke: var(--color-accent);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Call To Action (App Store Promo) */
.download-section {
  padding: 100px 0 140px 0;
  position: relative;
  text-align: center;
}

.cta-box {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
  border: 1px solid var(--card-border);
  padding: 4.5rem 2rem;
  border-radius: 30px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-box h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  gap: 1rem;
  transition: var(--transition-bounce);
}

.app-store-badge:hover {
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.badge-text {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.badge-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.badge-main {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Footer styling */
footer {
  border-top: 1px solid var(--card-border);
  padding: 3rem 0;
  background: rgba(3, 3, 5, 0.9);
}

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

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

.footer-links {
  display: flex;
  gap: 2rem;
}

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

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

/* Responsive design adjustments */
@media (max-width: 768px) {
  .nav-container {
    height: 70px;
  }
  .nav-links a:not(.btn-primary) {
    display: none;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .simulator-container {
    padding: 0.75rem;
    border-radius: 16px;
  }
  .simulator-overlay {
    padding: 0.75rem;
  }
  .simulator-video-title {
    font-size: 1.1rem;
  }
  .guide-item {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  .features-header h2 {
    font-size: 2rem;
  }
  .cta-box h2 {
    font-size: 2rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
