/* Material 3 Design System Variables */
:root {
  /* Primary Colors */
  --md-sys-color-primary: #123ea3;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #e6eeff;
  --md-sys-color-on-primary-container: #001b3a;

  /* Secondary Colors */
  --md-sys-color-secondary: #625b71;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #e8def8;
  --md-sys-color-on-secondary-container: #1d192b;

  /* Surface Colors */
  --md-sys-color-surface: #fffbfe;
  --md-sys-color-on-surface: #1c1b1f;
  --md-sys-color-surface-variant: #e7e0ec;
  --md-sys-color-on-surface-variant: #49454f;

  /* Background */
  --md-sys-color-background: #fffbfe;
  --md-sys-color-on-background: #1c1b1f;

  /* Outline */
  --md-sys-color-outline: #79747e;
  --md-sys-color-outline-variant: #cac4d0;

  /* Typography */
  --md-sys-typescale-display-large-font: "Roboto";
  --md-sys-typescale-display-large-weight: 400;
  --md-sys-typescale-display-large-size: 57px;
  --md-sys-typescale-display-large-line-height: 64px;

  --md-sys-typescale-headline-large-font: "Roboto";
  --md-sys-typescale-headline-large-weight: 400;
  --md-sys-typescale-headline-large-size: 32px;
  --md-sys-typescale-headline-large-line-height: 40px;

  --md-sys-typescale-body-large-font: "Roboto";
  --md-sys-typescale-body-large-weight: 400;
  --md-sys-typescale-body-large-size: 16px;
  --md-sys-typescale-body-large-line-height: 24px;

  /* Elevation */
  --md-sys-elevation-level0: none;
  --md-sys-elevation-level1: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.24);
  --md-sys-elevation-level2: 0px 3px 6px rgba(0, 0, 0, 0.16), 0px 3px 6px rgba(0, 0, 0, 0.23);
  --md-sys-elevation-level3: 0px 10px 20px rgba(0, 0, 0, 0.19), 0px 6px 6px rgba(0, 0, 0, 0.23);

  /* Shape */
  --md-sys-shape-corner-none: 0px;
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;
}

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

body {
  font-family: var(--md-sys-typescale-body-large-font), sans-serif;
  font-size: var(--md-sys-typescale-body-large-size);
  line-height: var(--md-sys-typescale-body-large-line-height);
  color: var(--md-sys-color-on-background);
  background-color: var(--md-sys-color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  background-color: var(--md-sys-color-surface);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand h2 {
  color: var(--md-sys-color-primary);
  font-size: 24px;
  font-weight: 500;
}

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

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

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

.language-toggle {
  display: flex;
  gap: 8px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--md-sys-color-outline);
  padding: 8px 16px;
  border-radius: var(--md-sys-shape-corner-small);
  cursor: pointer;
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border-color: var(--md-sys-color-primary);
}

.nav-mobile-toggle {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--md-sys-color-primary-container) 0%,
    var(--md-sys-color-secondary-container) 100%
  );
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-title {
  font-size: var(--md-sys-typescale-display-large-size);
  line-height: var(--md-sys-typescale-display-large-line-height);
  font-weight: 400;
  color: var(--md-sys-color-on-primary-container);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 28px;
  color: var(--md-sys-color-on-primary-container);
  margin-bottom: 40px;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: var(--md-sys-shape-corner-large);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--md-sys-elevation-level1);
}

.btn-primary {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.btn-primary:hover {
  box-shadow: var(--md-sys-elevation-level2);
}

.btn-secondary {
  background-color: var(--md-sys-color-secondary);
  color: var(--md-sys-color-on-secondary);
}

.btn-secondary:hover {
  box-shadow: var(--md-sys-elevation-level2);
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background-color: var(--md-sys-color-on-surface);
  border-radius: var(--md-sys-shape-corner-extra-large);
  padding: 16px;
  margin: 0 auto;
  box-shadow: var(--md-sys-elevation-level3);
}

.screen {
  width: 100%;
  height: 100%;
  background-color: var(--md-sys-color-surface);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.app-preview {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--md-sys-color-primary), var(--md-sys-color-secondary));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gradient-circle {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

.gradient-circle.secondary {
  width: 80px;
  height: 80px;
  top: 20%;
  right: 20%;
  animation-delay: -1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--md-sys-color-surface);
}

.section-title {
  font-size: var(--md-sys-typescale-headline-large-size);
  line-height: var(--md-sys-typescale-headline-large-line-height);
  text-align: center;
  margin-bottom: 64px;
  color: var(--md-sys-color-on-surface);
}

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

.feature-card {
  background-color: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 32px;
  text-align: center;
  transition: all 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--md-sys-elevation-level2);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background-color: var(--md-sys-color-primary-container);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.feature-icon .material-icons {
  font-size: 32px;
  color: var(--md-sys-color-on-primary-container);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--md-sys-color-on-surface);
}

.feature-card p {
  color: var(--md-sys-color-on-surface-variant);
  line-height: 24px;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--md-sys-color-background);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  margin-bottom: 24px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 28px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stat {
  padding: 24px;
  background-color: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
}

.stat h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--md-sys-color-primary);
}

.stat p {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14px;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--md-sys-color-primary) 0%,
    var(--md-sys-color-secondary) 100%
  );
  text-align: center;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 400;
  color: var(--md-sys-color-on-primary);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  color: var(--md-sys-color-on-primary);
  opacity: 0.9;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background-color: var(--md-sys-color-on-primary);
  color: var(--md-sys-color-primary);
}

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

/* Footer */
.footer {
  background-color: var(--md-sys-color-surface-variant);
  padding: 64px 0 24px;
}

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

.footer-brand h3 {
  color: var(--md-sys-color-primary);
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 500;
}

.footer-brand p {
  color: var(--md-sys-color-on-surface-variant);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-section h4 {
  color: var(--md-sys-color-on-surface);
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 500;
}

.footer-section a {
  display: block;
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--navbar-height, 65px);
    left: 0;
    width: 100%;
    background-color: var(--md-sys-color-surface);
    flex-direction: column;
    padding: 24px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--md-sys-elevation-level2);
    z-index: 999;
    display: flex;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
  }

  .language-toggle {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
  }

  .nav-mobile-toggle {
    display: block;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 40px;
    line-height: 48px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 40px 0;
  }

  .features,
  .about,
  .cta {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 32px;
    line-height: 40px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-content h2 {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 12px;
  }

  .cta-content p {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 32px;
    padding: 0 16px;
  }
}
