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

:root {
  /* Vibrant Color Palette */
  --color-primary: #6366F1; /* Vibrant Indigo */
  --color-primary-dark: #4F46E5;
  --color-secondary: #EC4899; /* Vibrant Pink */
  --color-tertiary: #14B8A6; /* Vibrant Teal */
  
  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  
  --color-text-main: #0F172A;
  --color-text-muted: #64748B;
  
  --font-family: 'Outfit', sans-serif;
  
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;
  --spacing-2xl: 80px;
  
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-soft: 0 10px 40px -10px rgba(99, 102, 241, 0.15);
  --shadow-hover: 0 20px 40px -10px rgba(99, 102, 241, 0.3);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--color-text-main); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 56px; line-height: 1.1; font-weight: 800; }
h2 { font-size: 36px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.3; }
p { color: var(--color-text-muted); font-size: 18px; margin-bottom: var(--spacing-md); }

a { text-decoration: none; color: var(--color-primary); transition: all 0.3s ease; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-lg); }

/* Header */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 28px; font-weight: 800; color: var(--color-primary); display: flex; align-items: center; gap: 8px; }
.logo ion-icon { color: var(--color-secondary); }

/* Store Buttons */
.store-buttons { display: flex; gap: var(--spacing-md); flex-wrap: wrap; margin-top: var(--spacing-xl); }
.store-btn {
  display: flex; align-items: center; gap: 12px;
  background-color: var(--color-text-main); color: var(--color-surface);
  padding: 12px 24px; border-radius: var(--radius-full);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
}
.store-btn ion-icon { font-size: 28px; }
.store-text { display: flex; flex-direction: column; text-align: left; }
.store-text span { font-size: 11px; opacity: 0.8; line-height: 1; margin-bottom: 2px; }
.store-text strong { font-size: 18px; line-height: 1; font-weight: 600; }
.store-btn:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.4); color: var(--color-surface); }
.google-btn { background-color: var(--color-surface); color: var(--color-text-main); border: 2px solid #E2E8F0; box-shadow: var(--shadow-soft); }
.google-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* Hero Section */
.app-hero {
  padding: 160px 0 100px 0;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  position: relative;
  overflow: hidden;
}
.app-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(255,255,255,0) 70%);
}
.app-hero::after {
  content: ''; position: absolute; bottom: -50px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.1) 0%, rgba(255,255,255,0) 70%);
}

.hero-container { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-2xl); position: relative; z-index: 2; }
.hero-content { flex: 1; max-width: 600px; }
.hero-content h1 { 
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--spacing-md); 
}
.hero-image { flex: 1; position: relative; display: flex; justify-content: center; perspective: 1000px; }

/* Dynamic Phone Mockup */
.phone-mockup {
  width: 320px; height: 650px;
  background-color: #0F172A;
  border-radius: 48px;
  padding: 14px;
  box-shadow: 30px 30px 60px rgba(15, 23, 42, 0.2), -10px -10px 40px rgba(255,255,255,0.8);
  position: relative;
  border: 4px solid #334155;
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.phone-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
}
.phone-mockup::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 25px; background: #0F172A;
  border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; z-index: 10;
}
/* Detailed App Mockup UI */
.phone-screen {
  background: #F8FAFC;
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  font-family: var(--font-family);
}
.app-header { display: flex; justify-content: space-between; align-items: center; padding: 32px 20px 16px 20px; background: white; border-bottom: 1px solid #E2E8F0; }
.app-user { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.user-info { display: flex; flex-direction: column; }
.greeting { font-size: 14px; font-weight: 700; color: var(--color-text-main); }
.school-name { font-size: 11px; color: var(--color-text-muted); font-weight: 500; }
.bell-icon { font-size: 24px; color: var(--color-text-muted); position: relative; }
.bell-icon .dot { position: absolute; top: 0; right: 2px; width: 8px; height: 8px; background: var(--color-secondary); border-radius: 50%; border: 2px solid white; }

.app-search { margin: 16px 20px; background: white; padding: 12px 16px; border-radius: 12px; display: flex; align-items: center; gap: 10px; color: var(--color-text-muted); font-size: 13px; border: 1px solid #E2E8F0; }

.app-promo-banner { margin: 0 20px 16px 20px; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%); border-radius: 16px; padding: 16px; display: flex; justify-content: space-between; align-items: center; color: white; }
.promo-text { display: flex; flex-direction: column; }
.promo-text strong { font-size: 16px; }
.promo-text span { font-size: 12px; opacity: 0.9; }
.app-promo-banner ion-icon { font-size: 32px; opacity: 0.8; }

.app-section-title { margin: 0 20px 12px 20px; font-size: 15px; font-weight: 700; color: var(--color-text-main); }
.app-products { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 100px 20px; overflow-y: auto; flex: 1; }
.product-card { background: white; border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 12px; border: 1px solid #E2E8F0; }
.prod-img { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.prod-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.prod-info h4 { font-size: 12px; margin: 0; line-height: 1.3; color: var(--color-text-main); }
.prod-price { font-size: 14px; font-weight: 700; color: var(--color-primary); }
.add-btn { width: 32px; height: 32px; background: var(--color-primary); color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }

.app-bottom-nav { position: absolute; bottom: 0; width: 100%; background: white; display: flex; justify-content: space-around; align-items: center; padding: 12px 0 20px 0; border-top: 1px solid #E2E8F0; border-bottom-left-radius: 36px; border-bottom-right-radius: 36px;}
.nav-item { color: #94A3B8; font-size: 24px; }
.nav-item.active { color: var(--color-primary); }
.cart-item { position: relative; margin-top: -24px; }
.cart-fab { width: 50px; height: 50px; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 8px 16px rgba(99, 102, 241, 0.4); border: 4px solid #F8FAFC; }
.badge { position: absolute; top: -5px; right: -5px; background: var(--color-text-main); color: white; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid white; }

/* Features Grid */
.features { padding: var(--spacing-2xl) 0; position: relative; z-index: 2; }
.section-title { text-align: center; margin-bottom: var(--spacing-2xl); font-size: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--spacing-xl); }
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl); padding: var(--spacing-xl);
  box-shadow: var(--shadow-soft); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: var(--color-primary); }
.card-icon {
  width: 80px; height: 80px; border-radius: 24px;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  margin: 0 auto var(--spacing-lg) auto;
  transform: rotate(-5deg); transition: transform 0.3s;
}
.card:hover .card-icon { transform: rotate(0deg) scale(1.1); }
.card:nth-child(2) .card-icon { background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%); color: var(--color-secondary); transform: rotate(5deg); }
.card:nth-child(2):hover .card-icon { transform: rotate(0deg) scale(1.1); }
.card:nth-child(3) .card-icon { background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%); color: var(--color-tertiary); transform: rotate(-5deg); }
.card:nth-child(3):hover .card-icon { transform: rotate(0deg) scale(1.1); }
.card h3 { font-size: 24px; margin-bottom: 12px; }

/* Download Banner */
.download-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 80px 0; text-align: center;
  border-radius: var(--radius-xl);
  margin: 0 var(--spacing-lg) var(--spacing-2xl) var(--spacing-lg);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
  position: relative; overflow: hidden;
}
.download-banner::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="20"/></svg>') no-repeat center center;
  background-size: 200%; opacity: 0.5; pointer-events: none;
}
.banner-inner { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.banner-text h2 { color: var(--color-surface); margin-bottom: 16px; font-size: 40px; }
.banner-text p { color: rgba(255,255,255,0.9); font-size: 20px; max-width: 600px; margin: 0 auto; }
.download-banner .store-buttons { justify-content: center; margin-top: 40px; }

/* Footer */
.footer {
  background-color: var(--color-surface);
  padding: 80px 0 20px 0; border-top: 1px solid #E2E8F0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}
.brand-col p { font-size: 16px; margin-top: 20px; margin-bottom: 32px; }
.social-links { display: flex; gap: 16px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-full);
  background: #F1F5F9; color: var(--color-text-muted);
  font-size: 24px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-links a:hover { background: var(--color-primary); color: white; transform: translateY(-3px); }
.footer-col h4 { font-size: 18px; margin-bottom: 24px; color: var(--color-text-main); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 16px; }
.footer-col ul a { color: var(--color-text-muted); font-size: 15px; font-weight: 500; }
.footer-col ul a:hover { color: var(--color-primary); padding-left: 6px; }
.footer-bottom {
  text-align: center; padding-top: 32px;
  border-top: 1px solid #E2E8F0;
}
.footer-bottom p { font-size: 15px; margin: 0; }

@media (max-width: 992px) {
  h1 { font-size: 42px; }
  .hero-container { flex-direction: column; text-align: center; }
  .hero-content { margin-bottom: 40px; }
  .store-buttons { justify-content: center; }
  .hero-image { perspective: none; }
  .phone-mockup { transform: none; }
  .phone-mockup:hover { transform: translateY(-10px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  h1 { font-size: 36px; }
  .download-banner { margin: 0 0 var(--spacing-2xl) 0; border-radius: 0; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .brand-col { align-items: center; display: flex; flex-direction: column; }
}
