/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Material 3 Light Theme Colors */
  --md-sys-color-primary: #0061a6;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #d0e4ff;
  --md-sys-color-on-primary-container: #001d36;

  --md-sys-color-secondary: #535f70;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #d7e3f7;
  --md-sys-color-on-secondary-container: #101c2b;

  --md-sys-color-surface: #f8fbff;
  --md-sys-color-on-surface: #1a1c1e;
  --md-sys-color-surface-variant: #dfe2eb;
  --md-sys-color-on-surface-variant: #43474e;

  --md-sys-color-background: #f8fbff;
  --md-sys-color-on-background: #1a1c1e;

  --md-sys-color-outline: #73777f;
  --md-sys-color-outline-variant: #c3c6cf;

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

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

  /* Shadows - Enhanced for depth */
  --shadow-sm: 0 1px 3px rgba(0, 97, 166, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 97, 166, 0.12), 0 2px 6px rgba(0, 97, 166, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 97, 166, 0.15), 0 6px 12px rgba(0, 97, 166, 0.1);
  --shadow-xl: 0 24px 48px rgba(0, 97, 166, 0.18), 0 12px 24px rgba(0, 97, 166, 0.12);

  /* Typography */
  --font-family:
    'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;

  /* Custom accents */
  --accent-gradient: linear-gradient(135deg, #0061a6 0%, #0077cc 100%);
  --surface-gradient: linear-gradient(180deg, #f8fbff 0%, #e8f2ff 100%);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --md-sys-color-primary: #9ccaff;
    --md-sys-color-on-primary: #003258;
    --md-sys-color-primary-container: #00497d;
    --md-sys-color-on-primary-container: #d0e4ff;

    --md-sys-color-secondary: #bbc7db;
    --md-sys-color-on-secondary: #253140;
    --md-sys-color-secondary-container: #3c4858;
    --md-sys-color-on-secondary-container: #d7e3f7;

    --md-sys-color-surface: #1a1c1e;
    --md-sys-color-on-surface: #e2e2e5;
    --md-sys-color-surface-variant: #43474e;
    --md-sys-color-on-surface-variant: #c3c6cf;

    --md-sys-color-background: #1a1c1e;
    --md-sys-color-on-background: #e2e2e5;

    --md-sys-color-outline: #8d9199;
    --md-sys-color-outline-variant: #43474e;

    --accent-gradient: linear-gradient(135deg, #9ccaff 0%, #b8d8ff 100%);
    --surface-gradient: linear-gradient(180deg, #1a1c1e 0%, #252729 100%);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.feature-card,
.step {
  animation: fadeInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}
.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}
.feature-card:nth-child(5) {
  animation-delay: 0.5s;
}
.feature-card:nth-child(6) {
  animation-delay: 0.6s;
}

.step:nth-child(1) {
  animation-delay: 0.1s;
}
.step:nth-child(2) {
  animation-delay: 0.2s;
}
.step:nth-child(3) {
  animation-delay: 0.3s;
}
.step:nth-child(4) {
  animation-delay: 0.4s;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--md-sys-color-surface);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  z-index: 1000;
  backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(248, 251, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 97, 166, 0.04);
}

@media (prefers-color-scheme: dark) {
  .header {
    background-color: rgba(26, 28, 30, 0.85);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.logo img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 97, 166, 0.2));
}

.logo-text {
  color: var(--md-sys-color-on-surface);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--md-sys-color-on-primary);
  box-shadow: 0 2px 8px rgba(0, 97, 166, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 97, 166, 0.3);
}

.btn-secondary {
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-primary);
  border: 2px solid var(--md-sys-color-primary);
}

.btn-secondary:hover {
  background-color: var(--md-sys-color-primary-container);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  margin-top: 5rem;
  padding: var(--spacing-3xl) 0;
  background: var(--surface-gradient);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 97, 166, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--md-sys-color-on-surface);
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-sm);
}

.hero-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-gradient);
  margin-top: var(--spacing-md);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 97, 166, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 8px var(--md-sys-color-on-surface),
    0 24px 64px rgba(0, 97, 166, 0.25),
    0 12px 32px rgba(0, 97, 166, 0.15);
  background: var(--md-sys-color-surface);
  border: 8px solid var(--md-sys-color-on-surface);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Features Section */
.features {
  padding: var(--spacing-3xl) 0;
  background-color: var(--md-sys-color-surface);
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--md-sys-color-on-surface);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.section-description {
  max-width: 720px;
  margin: 0 auto var(--spacing-2xl);
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background-color: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--md-sys-color-primary);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: var(--md-sys-color-on-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: 0 4px 12px rgba(0, 97, 166, 0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--md-sys-color-on-surface);
  letter-spacing: -0.01em;
}

.feature-description {
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  padding: var(--spacing-3xl) 0;
  background: var(--surface-gradient);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.step {
  text-align: center;
  position: relative;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover {
  transform: translateY(-4px);
}

.step-number {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: var(--md-sys-color-on-primary);
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 auto var(--spacing-md);
  box-shadow: 0 6px 20px rgba(0, 97, 166, 0.3);
  position: relative;
}

.step-number::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.2;
  z-index: -1;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--md-sys-color-on-surface);
  letter-spacing: -0.01em;
}

.step-description {
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding: var(--spacing-3xl) 0;
  background: var(--accent-gradient);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -25%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  color: var(--md-sys-color-on-primary);
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  background-color: var(--md-sys-color-surface);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  color: black;
}

.cta .btn-primary:hover {
  background-color: var(--md-sys-color-on-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: linear-gradient(
    180deg,
    var(--md-sys-color-surface-variant) 0%,
    var(--md-sys-color-surface) 100%
  );
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-section .logo {
  margin-bottom: var(--spacing-sm);
}

.footer-section .logo svg {
  filter: drop-shadow(0 2px 4px rgba(0, 97, 166, 0.15));
}

.footer-tagline {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--md-sys-color-on-surface);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-links a {
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--md-sys-color-primary);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  text-align: center;
}

.footer-bottom p {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .hero::before,
  .hero-image::before {
    display: none;
  }

  .hero-image {
    order: -1;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .nav-links {
    gap: var(--spacing-md);
  }

  .phone-mockup {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  }
}

@media (max-width: 640px) {
  .hero {
    margin-top: 4rem;
    padding: var(--spacing-xl) 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-title::after {
    width: 60px;
    height: 3px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .nav-links {
    display: none;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }

  .features {
    padding: var(--spacing-xl) 0;
  }

  .how-it-works {
    padding: var(--spacing-xl) 0;
  }

  .cta {
    padding: var(--spacing-xl) 0;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
  }

  .step-number {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
}

/* Mobile menu toggle - for future enhancement */
@media (max-width: 640px) {
  .nav::after {
    content: '☰';
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--md-sys-color-on-surface);
  }
}
