/* 
  ExpenseIQ - Premium Landing Page Design System
  Colors derived from Flutter App's theme.dart
  v2.1.0 - 2026-04-15
*/

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

:root {
  /* Color Palette */
  --primary: hsl(217, 91%, 60%);        /* blue #4F8EF7 */
  --primary-hover: hsl(217, 91%, 50%);
  --secondary: hsl(152, 69%, 47%);      /* green #33C17A */
  --accent: hsl(262, 83%, 58%);         /* purple */
  
  --bg-light: hsl(210, 40%, 98%);       /* #F5F8FF */
  --bg-white: #ffffff;
  --fg-dark: hsl(215, 25%, 15%);        /* #1F2937 */
  --fg-muted: hsl(215, 16%, 47%);       /* #6B7280 */
  
  --border: hsl(214, 20%, 90%);         /* #D9E4F0 */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-max: 1200px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--fg-dark);
  line-height: 1.6;
}

h1, h2, h3, .heading {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--fg-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Layout Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* Premium Components */

/* Navbar */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: var(--container-max);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 10px 20px;
  border-radius: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.nav-link:hover {
  color: var(--primary);
}

.btn-nav {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 56px;
}

.btn-nav:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(79, 142, 247, 0.3);
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  background: rgba(79, 142, 247, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 10vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--fg-dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary {
  background: white;
  color: var(--fg-dark);
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid var(--border);
}

.hero-mockup {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero-mockup img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Gradient Blobs Background */
.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(60px);
  z-index: -1;
}

.blob-1 { top: -100px; right: -100px; }
.blob-2 { bottom: -100px; left: -100px; background: radial-gradient(circle, rgba(51, 193, 122, 0.15) 0%, rgba(255, 255, 255, 0) 70%); }

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(79, 142, 247, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon img {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--fg-muted);
}

/* Download Section */
.download {
  background: var(--fg-dark);
  color: white;
  border-radius: 40px;
  padding: 80px 40px;
  margin: 60px 24px;
  text-align: center;
}

.download h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.download p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.migration-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 167, 38, 0.14);
  border: 1px solid rgba(255, 167, 38, 0.45);
}

.migration-notice-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 167, 38, 0.2);
  color: #ffb74d;
}

.migration-notice strong {
  color: #fff;
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.migration-notice p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: none;
}

.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.download-btn {
  background: white;
  color: var(--fg-dark);
  padding: 14px 28px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  min-width: 240px;
  overflow: visible; /* Ensure absolute badges aren't clipped */
}

.download-btn:hover {
  transform: scale(1.05);
}

.download-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.badge-soon {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(79, 142, 247, 0.3);
}

.badge-beta {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}

.nav-beta {
  display: inline-block;
  margin-left: 6px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.badge-beta-inline {
  display: inline-block;
  margin-left: 8px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.download-btn.coming-soon:hover {
  transform: none;
}

.download-btn .subtext {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.download-btn .small {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Developer Section */
.developer {
  text-align: center;
}

.team-layout {
  margin-top: 50px;
}

.lead-row {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.lead-row .dev-card {
  max-width: 450px;
  width: 100%;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.dev-card {
  background: white;
  padding: 40px 30px;
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dev-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.dev-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(79, 142, 247, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dev-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dev-card:hover .dev-avatar {
  transform: scale(1.05);
  border-color: var(--primary);
}

.dev-socials {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.dev-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.dev-socials a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.dev-content h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.dev-role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

/* Mentorship Section */
.mentorship-section {
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(79, 142, 247, 0.03));
}

.mentorship-header {
    margin-bottom: 50px;
}

.mentorship-header h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.mentorship-header p {
    color: var(--fg-muted);
}

.mentorship-card {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    background: white;
    padding: 60px 40px;
    border-radius: 32px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.mentorship-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.mentorship-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mentorship-avatar {
    position: relative;
    width: 140px;
    height: 140px;
}

.avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.mentorship-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mentorship-text {
    max-width: 600px;
}

.dean-title {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}

.mentorship-text h3 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.university {
    color: var(--fg-muted);
    font-weight: 500;
    font-size: 1rem;
    display: block;
    margin-bottom: 24px;
}

.mentorship-quote {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--fg-dark);
    font-style: italic;
    opacity: 0.9;
    position: relative;
}

.mentorship-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
}

@media (max-width: 768px) {
    .mentorship-card {
        padding: 40px 20px;
    }
    
    .mentorship-text h3 {
        font-size: 1.5rem;
    }
}

/* Footer Redesign */
footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  margin-top: 100px;
  color: var(--fg-dark);
}

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

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 700;
}

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

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-card, .hero-content, .hero-mockup, .download, .dev-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links, .btn-nav, .blob { display: none; }
  
  nav {
    position: relative;
    width: 100%;
    left: 0;
    top: 0;
    margin: 20px 0;
    transform: none;
    padding: 12px 20px;
    border-radius: 16px;
  }

  .nav-logo span {
    font-size: 1.1rem;
  }
  
  .hero { 
    padding-top: 40px; 
    padding-bottom: 40px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0;
  }
  
  .hero h1 {
    font-size: 1.7rem;
    padding: 0;
    text-align: center;
  }

  .hero p {
    padding: 0;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }
  
  .feature-card {
    padding: 30px;
  }

  .download {
    padding: 60px 20px;
    margin: 40px 16px;
    border-radius: 24px;
  }
  
  .download h2 {
    font-size: 2rem;
  }

  .download-grid { 
    flex-direction: column; 
    align-items: stretch;
  }
  
  .download-btn {
    justify-content: center;
  }

  .dev-card { 
    padding: 30px 20px;
  }
}
