@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
  background-color: #f9f9f9;
  color: #202020;
}

.nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 30px;
  font-size: 24px;
  align-items: center;
}

.full-width-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

.nav-title {
  font-size: 40px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.nav-offers {
  display: flex;
  gap: 24px;
}

.nav-offer {
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.login-button {
  background-color: rgba(0, 158, 255, 1);
  color: white;
  border-radius: 16px;
  padding: 16px;
}

.hero, .intro, .form-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.hero .text, .intro .text, .form-offer .form {
  flex: 1 1 400px;
}

.hero .image {
  position: relative;
  width: 100vw;
  height: 80vh;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
}

.hero .image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero .image img,
.intro .image img,
.form-offer .image img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

button {
  padding: 14px 22px;
  font-weight: 600;
  border-radius: 8px;
  background-color: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  opacity: 0.8;
}

.benefits {
  padding: 40px 5%;
  text-align: center;
}

.item {
  gap: 16px;
}

.benefits .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.benefits .item {
  font-size: 14px;
  color: #202020;
  text-align: center;
  padding: 20px 15px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefits .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.benefits .icon-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}

.benefits .icon {
  width: 120px;
  height: 120px;
  margin-bottom: 12px;
  object-fit: contain;
}

.benefits .item h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  font-family: 'Manrope', sans-serif;
}

.benefits .item p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: #555;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  text-align: left;
}

.benefits img {
  width: 40px;
  margin-bottom: 10px;
}

.form-offer {
  background: transparent;
}

.form-offer .form {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: 420px;
  width: 100%;
}

.form-offer input[type="email"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #000;
  background: none;
  color: #202020;
  margin-bottom: 10px;
}

.form-offer .price {
  font-weight: 600;
}

.form-offer .old {
  text-decoration: line-through;
  color: #999;
  margin-left: 10px;
}

#timer {
  font-family: monospace;
  font-size: 18px;
  margin: 10px 0;
}

.form-offer label {
  display: block;
  font-size: 13px;
  margin: 8px 0;
}

.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 80px 5%;
}

.topics .topic {
  font-weight: 600;
  font-size: 15px;
}

footer {
  background: #1a1a1a;
  color: #fff;
  padding: 60px 5% 40px;
  font-family: 'Montserrat', sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  gap: 16px;
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 40px;
  font-weight: 500;
  margin: 0;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

.footer-offers {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
}

.footer-offer {
  font-size: 18px;
  font-weight: 400;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-offer:hover {
  color: rgba(0, 158, 255, 1);
}

.footer-links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
}

.footer-links a {
  font-size: 14px;
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-title {
    font-size: 36px;
  }
  
  .footer-offers {
    gap: 20px;
  }
  
  .footer-offer {
    font-size: 16px;
  }
  
  .footer-links {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-links a {
    font-size: 13px;
  }
}

.fade-in {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  position: absolute;
  bottom: 15%;
  left: 90px;
  transform: none;
  text-align: left;
  color: white;
  z-index: 2;
  max-width: calc(100% - 180px);
}

.hero-title {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-family: 'Montserrat' sans-serif;
}

.hero-text {
  font-size: 20px;
  margin-bottom: 24px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  font-family: 'Montserrat' sans-serif;
  font-weight: 400;
}

.hero-button {
  background-color: rgba(0, 158, 255, 1);
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.hero-button:hover {
  background-color: rgba(0, 138, 225, 1);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  height: 439px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease;
  gap: 24px;
  display: flex;
  flex-direction: column;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0;
  margin-bottom: 20px;
}

.modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #202020;
}

.close {
  color: #999;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close:hover {
  color: #202020;
}

.login-form {
  display: flex;
  flex-direction: column;
  padding: 0 24px 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #202020;
  font-family: 'Montserrat', sans-serif;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background-color: #f5f5f5;
  color: #202020;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(0, 158, 255, 1);
}

.forgot-password {
  display: block;
  text-align: left;
  color: #202020;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #555;
  text-decoration: underline;
}

.login-submit-btn {
  width: 100%;
  background-color: rgba(0, 158, 255, 1);
  color: white;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-submit-btn:hover {
  background-color: rgba(0, 138, 225, 1);
}

@media (max-width: 768px) {
  .hero-content {
    left: 20px;
    max-width: calc(100% - 40px);
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-text {
    font-size: 16px;
  }
}

/* Mobile-specific adjustments for small phones */
@media (max-width: 480px) {
  .nav {
    padding: 12px 16px;
    font-size: 18px;
    align-items: center;
    gap: 8px;
  }

  .nav-title {
    font-size: 28px;
  }

  /* hide wide nav links to keep header clean on phones */
  .nav-offers {
    display: none;
  }

  /* make login button compact */
  #login-btn, .login-button {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  /* hero adjustments */
  .hero .image {
    height: 60vh;
    margin-left: 0;
    width: 100%;
  }

  .hero .image::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 60%, rgba(0,0,0,0.85) 100%);
  }

  .hero-content {
    position: relative;
    bottom: 0;
    left: 0;
    padding: 18px;
    text-align: left;
    color: white;
    z-index: 2;
    max-width: 100%;
  }

  .hero-title {
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
  }

  .hero-text {
    font-size: 14px;
    margin-bottom: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
  }

  .hero-button {
    padding: 12px 18px;
    font-size: 16px;
  }

  /* benefits/grid stack */
  .benefits {
    padding: 20px 4%;
  }

  .benefits .grid {
    grid-template-columns: 1fr;
  }

  /* override large inline h2 on phones */
  .benefits h2 {
    font-size: 24px !important;
    margin-bottom: 28px !important;
    line-height: 1.2;
  }

  .benefits .icon-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .benefits .icon {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
  }

  .benefits .item {
    text-align: left;
    padding: 16px;
    font-size: 14px;
  }

  .benefits .item p {
    font-size: 14px;
  }

  /* compact the promo form */
  .form-offer .form {
    padding: 18px;
    max-width: 100%;
  }

  /* topics spacing */
  .topics {
  padding: 40px 4%;
  gap: 18px;
  grid-template-columns: 1fr;
  }

  /* footer tweaks */
  footer {
    padding: 40px 4% 24px;
  }

  .footer-title {
    font-size: 28px;
  }

  .footer-offers {
    gap: 12px;
  }

  .footer-links {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  /* modal sizing on small screens */
  .modal-content {
    margin: 18% auto;
    width: 95%;
    max-width: 420px;
    height: auto;
    padding-bottom: 20px;
  }

  .modal-header {
    padding: 18px 18px 0;
  }

  .login-form {
    padding: 0 18px 18px;
  }

  .form-group input {
    padding: 10px 12px;
    font-size: 15px;
  }
}
