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

:root {
  /* Brand Colors - Blue theme matching logo */
  --brand-25: #EFF8FF;
  --brand-50: #F5FAFF;
  --brand-100: #D1E9FF;
  --brand-200: #B2DDFF;
  --brand-300: #84CAFF;
  --brand-400: #53B1FD;
  --brand-500: #2E90FA;
  --brand-600: #1570EF;
  --brand-700: #175CD3;
  --brand-800: #1849A9;
  --brand-900: #194185;

  /* Fresh Green Accent */
  --fresh-green: #22C55E;
  --fresh-green-light: #86EFAC;

  /* Grays */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Container */
  --container-max: 480px;
  --nav-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, var(--brand-50) 0%, white 50%, var(--brand-50) 100%);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Typography */
h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
}

p {
  color: var(--gray-600);
  line-height: 1.7;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-700);
}

/* App Container */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-content {
  flex: 1;
  padding: var(--spacing-lg);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding-top: calc(var(--nav-height) + var(--spacing-xl));
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-max);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-lg);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
}

.nav-links {
  display: flex;
  gap: var(--spacing-sm);
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand-600);
  background-color: var(--brand-50);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: var(--spacing-2xl) 0;
}

.hero-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: linear-gradient(135deg, var(--fresh-green-light), var(--fresh-green));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: var(--spacing-xl);
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
}

/* Social Proof */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0 var(--spacing-2xl);
  padding: var(--spacing-md) var(--spacing-lg);
  background: white;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
  object-fit: cover;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar-count {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  border: 2px solid white;
  margin-left: -8px;
}

.social-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(46, 144, 250, 0.35);
  min-width: 180px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 144, 250, 0.45);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
  min-width: 180px;
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-800);
}

.btn-white {
  background: white;
  color: var(--brand-600);
  font-weight: 700;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
}

.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
  color: var(--brand-700);
}

/* Section Headers */
.section-header {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
}

/* Feature Cards */
.feature-grid {
  display: grid;
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  color: var(--brand-600);
}

.feature-content h3 {
  margin-bottom: var(--spacing-xs);
}

.feature-content p {
  font-size: 0.9375rem;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl) var(--spacing-lg);
  margin: var(--spacing-3xl) 0;
  text-align: center;
}

.stats-title {
  color: white;
  margin-bottom: var(--spacing-xl);
  font-size: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.stat-card {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-300);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--spacing-xs);
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--fresh-green) 0%, #16A34A 100%);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  text-align: center;
  margin: var(--spacing-3xl) 0;
}

.cta-content h2 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
}

/* Footer */
.footer {
  background: white;
  padding: var(--spacing-xl) var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  border-top: 1px solid var(--gray-100);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand-600);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* Download Page */
.download-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.download-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
  max-width: 400px;
  width: 100%;
  border: 1px solid var(--gray-100);
}

.download-card > img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
}

.download-card h1 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.download-card .tagline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fresh-green);
  margin-bottom: var(--spacing-lg);
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.download-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray-900);
  transition: all 0.2s ease;
}

.download-option:hover {
  border-color: var(--brand-300);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.download-option.android:hover {
  border-color: #3DDC84;
}

.download-option.ios:hover {
  border-color: var(--brand-500);
}

.download-option.browser {
  border-style: dashed;
  background: var(--brand-50);
}

.download-option.browser:hover {
  border-color: var(--brand-400);
  border-style: solid;
  background: white;
}

.download-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.download-icon.android {
  background: linear-gradient(135deg, #3DDC84 0%, #2AA852 100%);
  color: white;
}

.download-icon.ios {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: white;
}

.download-icon.browser {
  background: linear-gradient(135deg, var(--gray-400) 0%, var(--gray-500) 100%);
  color: white;
}

.download-info {
  text-align: left;
  flex: 1;
}

.download-info h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.download-info p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--brand-600);
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  font-size: 0.875rem;
}

.back-link:hover {
  color: var(--brand-700);
}

/* Policy & Form Pages */
.policy-content,
.delete-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.policy-content h1,
.delete-card h1 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
}

.policy-content h2 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
  color: var(--brand-700);
}

.policy-content p,
.policy-content li {
  color: var(--gray-600);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.policy-content ul {
  padding-left: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

/* Delete Account Page */
.delete-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.warning-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
  display: block;
  text-align: center;
}

.delete-card h1 {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.delete-card > p {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--gray-500);
}

.delete-card .form-group {
  margin-bottom: var(--spacing-lg);
}

.delete-card .btn-danger {
  width: 100%;
  margin-top: var(--spacing-md);
}

/* Success Page */
.success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.success-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
  max-width: 400px;
  width: 100%;
  border: 1px solid var(--gray-100);
}

.success-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
  display: block;
}

/* Form Elements */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--spacing-sm);
}

.form-input {
  width: 100%;
  padding: var(--spacing-md);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(46, 144, 250, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.btn-danger {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
  padding: var(--spacing-md) var(--spacing-xl);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  transform: translateY(-2px);
  color: white;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* Responsive */
@media (min-width: 768px) {
  :root {
    --container-max: 700px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .stats-grid {
    gap: var(--spacing-lg);
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  :root {
    --container-max: 900px;
  }
}
