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

:root {
  --md-sys-color-primary: #5895ee;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-secondary-container: #1d2024;
  --md-sys-color-on-secondary-container: #ffffff;
  --md-sys-color-surface: #0b0d11;
  --md-sys-color-on-surface: #ffffff;
  --md-sys-color-on-surface-variant: #abb2bf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -5%;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(88, 149, 238, 0.12) 0%, rgba(11, 13, 17, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.hero {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: 100vh;
}

.hero-logo {
  margin-bottom: 24px;
}

.hero-content {
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 32px 0;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.download-buttons {
  display: flex;
  gap: 16px;
  width: 100%;
}

.download-buttons a {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
}

.download-buttons img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s;
}

.download-badge:hover img {
  opacity: 0.9;
}

.m3-btn {
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.m3-btn-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

.m3-btn:active {
  transform: scale(0.98);
}

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

.m3-btn-primary:hover {
  background-color: #8db5f5;
  box-shadow: 0 2px 8px rgba(109, 161, 242, 0.3);
}

.m3-btn-secondary {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.m3-btn-secondary:hover {
  background-color: #2a2e38;
}

.hero-illustration {
  display: flex;
  justify-content: flex-end;
}

.hero-illustration img {
  max-width: 110%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 80px rgba(109, 161, 242, 0.15));
}

.features {
  background-color: #0b0d11;
  padding: 60px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.features-container {
  max-width: 1400px;
  width: 100%;
  padding: 0 80px;
}

.features-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 48px 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.feature-icon {
  width: 1.75rem;
  height: 1.75rem;
  background-color: #5696fd;
  flex-shrink: 0;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.feature-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  line-height: 1.4;
}

.icon-widget { -webkit-mask-image: url('../assets/widget.svg'); mask-image: url('../assets/widget.svg'); }
.icon-wifi-off { -webkit-mask-image: url('../assets/wifi_off.svg'); mask-image: url('../assets/wifi_off.svg'); }
.icon-live-update { -webkit-mask-image: url('../assets/live_update_notification.svg'); mask-image: url('../assets/live_update_notification.svg'); }
.icon-clock { -webkit-mask-image: url('../assets/clock.svg'); mask-image: url('../assets/clock.svg'); }
.icon-teacher { -webkit-mask-image: url('../assets/teacher.svg'); mask-image: url('../assets/teacher.svg'); }

.help {
  padding: 100px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--md-sys-color-surface);
}

.help-container {
  max-width: 1400px;
  width: 100%;
  padding: 0 80px;
  text-align: center;
}

.help-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.help-subtitle {
  font-size: 1.25rem;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 32px;
}

.help-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 868px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 20px;
    gap: 20px;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 24px;
    padding: 0 10px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    gap: 16px;
    align-items: center;
  }

  .download-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .download-buttons a {
    max-width: 188px;
    flex: 1;
    min-width: 0;
  }

  .download-buttons img {
    height: auto;
    width: 100%;
  }

  .m3-btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-illustration {
    justify-content: center;
  }

  .hero-illustration img {
    max-width: min(100%, 720px);
  }

  .features {
    padding: 20px 0;
  }

  .features-container {
    padding: 0 20px;
  }

  .features-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
  }

  .feature-text {
    font-size: 1.125rem;
  }

  .features-list {
    gap: 24px;
  }

  .help {
    padding: 60px 0;
  }

  .help-container {
    padding: 0 20px;
  }

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

  .help-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .help-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .download-badge img {
    height: 36px;
  }
}
