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

:root {
  --bg-primary: #07080e;
  --bg-secondary: #0f111e;
  --bg-card: rgba(18, 20, 36, 0.7);
  --bg-card-hover: rgba(26, 29, 52, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 229, 255, 0.3);
  
  --neon-cyan: #00e5ff;
  --neon-blue: #2f80ed;
  --neon-purple: #9d4edd;
  --neon-pink: #ff3366;
  --neon-orange: #ff7a00;
  --neon-green: #00f59b;
  
  --text-primary: #ffffff;
  --text-secondary: #cfd2ea;
  --text-muted: #a6aacb;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --glow-cyan: 0 0 35px rgba(0, 229, 255, 0.35);
  --glow-purple: 0 0 35px rgba(157, 78, 221, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

/* Ambient glow blobs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--neon-cyan), transparent 70%);
  top: -100px;
  left: -100px;
}
.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--neon-purple), transparent 70%);
  top: 30%;
  right: -150px;
}
.glow-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--neon-pink), transparent 70%);
  bottom: 10%;
  left: 10%;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--neon-cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 99px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

/* Primary Button with high contrast black text */
.btn-primary,
.nav-links a.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), #00b4d8);
  color: #050711 !important;
  font-weight: 800;
  letter-spacing: -0.2px;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
}

.btn-primary:hover,
.nav-links a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.65);
  color: #000000 !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding-top: 90px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 58px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--neon-cyan) 75%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.store-badge {
  height: 50px;
  transition: transform 0.2s;
}
.store-badge:hover {
  transform: scale(1.03);
}

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-item h4 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--neon-cyan);
}

.stat-item span {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* iPhone Mockup Frame Presentation */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-iphone {
  width: 380px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 35px rgba(0, 229, 255, 0.25));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  user-select: none;
}

.hero-iphone:hover {
  transform: translateY(-8px) scale(1.02);
  filter: drop-shadow(0 35px 70px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 45px rgba(0, 229, 255, 0.45));
}

.showcase-iphone {
  width: 320px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(157, 78, 221, 0.3));
  transition: transform 0.3s ease;
}

.showcase-iphone:hover {
  transform: scale(1.03);
}

/* App Showcase Gallery */
.gallery-section {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.gallery-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-iphone {
  width: 280px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-iphone {
  transform: translateY(-10px);
}

.gallery-item h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-top: 22px;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.gallery-item p {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 400;
  margin-top: 6px;
  max-width: 280px;
  line-height: 1.5;
}

/* Features Section */
.section {
  padding-top: 90px;
  padding-bottom: 90px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 17px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1080px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.feature-icon-wrapper {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.08) rotate(2deg);
}

/* Custom glowing themes per card */
.theme-cyan .feature-icon-wrapper {
  background: radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.25), rgba(0, 229, 255, 0.05));
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
}
.feature-card.theme-cyan:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.2);
}

.theme-purple .feature-icon-wrapper {
  background: radial-gradient(circle at 30% 30%, rgba(157, 78, 221, 0.25), rgba(157, 78, 221, 0.05));
  border: 1px solid rgba(157, 78, 221, 0.4);
  box-shadow: 0 0 25px rgba(157, 78, 221, 0.2);
}
.feature-card.theme-purple:hover {
  border-color: rgba(157, 78, 221, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(157, 78, 221, 0.2);
}

.theme-pink .feature-icon-wrapper {
  background: radial-gradient(circle at 30% 30%, rgba(255, 51, 102, 0.25), rgba(255, 51, 102, 0.05));
  border: 1px solid rgba(255, 51, 102, 0.4);
  box-shadow: 0 0 25px rgba(255, 51, 102, 0.2);
}
.feature-card.theme-pink:hover {
  border-color: rgba(255, 51, 102, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 51, 102, 0.2);
}

.theme-green .feature-icon-wrapper {
  background: radial-gradient(circle at 30% 30%, rgba(0, 245, 155, 0.25), rgba(0, 245, 155, 0.05));
  border: 1px solid rgba(0, 245, 155, 0.4);
  box-shadow: 0 0 25px rgba(0, 245, 155, 0.2);
}
.feature-card.theme-green:hover {
  border-color: rgba(0, 245, 155, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 245, 155, 0.2);
}

.theme-blue .feature-icon-wrapper {
  background: radial-gradient(circle at 30% 30%, rgba(47, 128, 237, 0.25), rgba(47, 128, 237, 0.05));
  border: 1px solid rgba(47, 128, 237, 0.4);
  box-shadow: 0 0 25px rgba(47, 128, 237, 0.2);
}
.feature-card.theme-blue:hover {
  border-color: rgba(47, 128, 237, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(47, 128, 237, 0.2);
}

.theme-orange .feature-icon-wrapper {
  background: radial-gradient(circle at 30% 30%, rgba(255, 122, 0, 0.25), rgba(255, 122, 0, 0.05));
  border: 1px solid rgba(255, 122, 0, 0.4);
  box-shadow: 0 0 25px rgba(255, 122, 0, 0.2);
}
.feature-card.theme-orange:hover {
  border-color: rgba(255, 122, 0, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 122, 0, 0.2);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

/* Showcase Banner */
.showcase-banner {
  background: linear-gradient(135deg, rgba(20, 24, 45, 0.8), rgba(12, 14, 25, 0.95));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  margin-top: 60px;
}

.showcase-banner h3 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 18px;
}

/* Legal Pages (Privacy Policy & Support) */
.legal-content {
  max-width: 820px;
  margin: 60px auto 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(14px);
}

.legal-content h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin: 32px 0 14px;
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.contact-card {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
}

.contact-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.contact-email {
  color: var(--neon-cyan);
  font-weight: 600;
  text-decoration: none;
  font-size: 17px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  background: rgba(7, 8, 14, 0.95);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 14px;
  max-width: 320px;
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 13px;
}

/* Performance & Rendering Optimization */
.section, .gallery-section, footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Nav Actions Container */
.nav-actions {
  display: flex;
  align-items: center;
}

/* Mobile & Tablet Responsive Optimizations */
@media (max-width: 900px) {
  header {
    padding: 12px 0;
  }
  
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 50px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(34px, 7vw, 48px);
    letter-spacing: -0.8px;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
  }

  .hero-actions {
    justify-content: center;
    gap: 12px;
  }

  .hero-stats {
    justify-content: center;
    gap: 24px;
  }

  .hero-iphone {
    width: 320px;
  }

  .showcase-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px;
    gap: 36px;
  }

  .showcase-banner h3 {
    font-size: 26px;
  }

  .gallery-grid {
    gap: 24px;
  }

  .gallery-iphone {
    width: 240px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 580px) {
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .brand {
    font-size: 20px;
    gap: 10px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .btn {
    padding: 11px 20px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: clamp(28px, 8.5vw, 36px);
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-item h4 {
    font-size: 20px;
  }

  .stat-item span {
    font-size: 11px;
  }

  .hero-iphone {
    width: 270px;
  }

  .section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .section-header {
    margin-bottom: 36px;
    padding: 0 4px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .section-header p {
    font-size: 15px;
  }

  .feature-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .feature-icon-wrapper svg {
    width: 28px;
    height: 28px;
  }

  .feature-card h3 {
    font-size: 19px;
  }

  .feature-card p {
    font-size: 14px;
  }

  .showcase-banner {
    padding: 30px 18px;
    border-radius: 20px;
  }

  .showcase-iphone {
    width: 220px;
  }

  .gallery-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .gallery-grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .gallery-iphone {
    width: 230px;
  }
}
