/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root {
  /* Premium Dark Palette */
  --bg-deep: #050608;
  --bg-surface: #0f1118;
  --bg-glass: rgba(15, 17, 24, 0.7);
  --text-main: #f0f2f5;
  --text-muted: #949ba4;
  --accent: #00f2ff;
  --accent-glow: rgba(0, 242, 255, 0.3);
  --success: #00d1b2;

  /* Borders & Lines */
  --line: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(69, 162, 158, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(102, 252, 241, 0.05), transparent 25%);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
  list-style: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Layout Container */
.container {
  width: min(1200px, 90%);
  margin-inline: auto;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-item {
  position: relative;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-item:hover,
.nav-item.active {
  color: var(--accent);
}

.nav-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Main Content Area */
main {
  flex: 1;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 5;
  cursor: pointer;
  pointer-events: auto !important;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 0 20px -5px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px -5px var(--accent-glow);
  background: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  color: var(--text-main);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 242, 255, 0.05);
  transform: translateY(-2px);
}

/* Cards & Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  /* Changed from hidden to ensure no clipping */
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 242, 255, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  transform: scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
  opacity: 1;
}

/* Footer */
.footer {
  background: #050608;
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-link:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 6, 8, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--line);
    gap: 1.5rem;
    text-align: center;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }
}

/* Animations - Reveal System */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
}

.reveal.active {
  opacity: 1;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}


/* Refined Playstore Section (Minimal) */
.playstore-minimal-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 40px;
  border: 1px solid var(--line);
}

.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.app-tagline {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.app-description {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.app-minimal-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-main);
  opacity: 0.8;
}

.feat-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.playstore-badge {
  height: 240px;
  /* Large for desktop as requested */
  width: auto;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.playstore-badge:hover {
  transform: scale(1.05) translateY(-5px);
  filter: brightness(1.2);
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .playstore-minimal-card {
    padding: 3rem 1.5rem;
  }

  .app-description {
    font-size: 1.1rem;
  }

  .app-icon {
    width: 140px;
    /* Reverted/Balanced */
    height: 140px;
    border-radius: 30px;
  }

  .playstore-badge {
    height: 150px;
    /* Even bigger as requested */
    width: auto;
    max-width: 100%;
    /* Prevent overflow */
    object-fit: contain;
  }

  .app-minimal-grid {
    gap: 0.8rem;
    flex-direction: column;
    align-items: center;
  }
}