* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f8f9;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: #1e73be;
}

a:hover,
a:focus {
  color: #222;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 100;
}

.page-shell {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  overflow: hidden;
}

.hero__content {
  background: #131a33;
  text-align: center;
  position: relative;
  left: -40px;
  top: -40px;
  width: calc(100% + 80px);
  padding: 40px 20px;
}

.hero__image {
  width: 120px;
  margin: 0 auto 1rem;
}

.hero__title {
  font-size: 2rem;
  font-weight: 800;
  color: #54f2f2;
  margin: 0 0 0.5rem;
}

.hero__subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: #c5c8d5;
  margin: 1rem 0.5rem 2rem;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cta-login {
  background-color: #1f53d4;
}

.cta-signup {
  background-color: #28a745;
}

.features {
  position: relative;
  width: calc(100% + 80px);
  left: -40px;
  top: -40px;
  padding: 4rem 2rem 5rem;
  background: #e9eef5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.feature__item {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  color: #333;
}

.feature__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.feature__item h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0b0d1a;
}

.feature__item p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.about-section {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 0 40px 36px;
}

.about-panel {
  border-radius: 1.2rem;
  border: 1px solid #d3deef;
  background: linear-gradient(135deg, #ecf4ff 0%, #f7faff 50%, #eefcf3 100%);
  box-shadow: 0 10px 24px rgba(15, 35, 76, 0.08);
  padding: 2.2rem 2rem;
  color: #1f2a44;
}

.about-section h2 {
  margin: 0 0 1rem;
  font-size: 1.85rem;
  color: #0b0d1a;
}

.about-section p {
  margin: 0 0 0.95rem;
  line-height: 1.75;
  font-size: 1.05rem;
  max-width: 64ch;
}

.about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.55rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  background: #1f53d4;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.about-link:hover,
.about-link:focus-visible {
  color: #fff;
  box-shadow: 0 6px 14px rgba(31, 83, 212, 0.3);
}

.faq-section {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 0 40px 30px;
}

.faq-section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.faq-section details {
  border: 1px solid #d8dfeb;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.8rem 1rem;
  margin-bottom: 0.7rem;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-section p {
  margin: 0.55rem 0 0;
}

.auth-content {
  padding-bottom: 32px;
}

.auth-content .hero__title,
.auth-content .hero__subtitle {
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.auth-form {
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  gap: 0.6rem;
  text-align: left;
}

.phone-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0;
  align-items: center;
  border: 1px solid #8ea0cf;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.country-code {
  min-height: 46px;
  border: 0;
  border-right: 1px solid #c5cce0;
  border-radius: 0;
  background: transparent;
  color: #111;
  padding: 0.55rem 0.7rem;
  font-weight: 700;
  font: inherit;
  appearance: none;
}

.auth-form input {
  min-height: 46px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #111;
  padding: 0.55rem 0.7rem;
  font: inherit;
}

.auth-form input:focus-visible,
.country-code:focus-visible {
  outline: 2px solid rgba(84, 242, 242, 0.55);
  outline-offset: 1px;
}

.form-help {
  margin: 0;
  color: #c5c8d5;
  font-size: 0.9rem;
}

.phone-status {
  margin: 0;
  min-height: 1.3rem;
  font-size: 0.9rem;
  color: #c5c8d5;
}

.phone-status.valid {
  color: #6df7a2;
}

.phone-status.invalid {
  color: #ff9ea7;
}

.auth-next-btn {
  margin-top: 0.35rem;
  width: 100%;
  border-radius: 10px;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.auth-features {
  padding-top: 3.2rem;
}

.site-footer {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 14px 40px 22px;
  border-top: 1px solid #e1e7f0;
  color: #555;
  font-size: 0.95rem;
}

.footer-row p {
  margin: 0;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 30px;
  }

  .hero__content {
    left: -30px;
    top: -30px;
    width: calc(100% + 60px);
    padding: 34px 16px;
  }

  .features {
    left: -30px;
    top: -30px;
    width: calc(100% + 60px);
    padding: 3rem 1.2rem 3.4rem;
  }

  .about-section {
    padding: 0 30px 28px;
  }

  .about-panel {
    padding: 1.6rem 1.3rem;
  }

  .about-section h2 {
    font-size: 1.55rem;
  }

  .about-section p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .phone-row {
    grid-template-columns: 82px 1fr;
  }

  .faq-section {
    padding: 0 30px 24px;
  }

  .footer-row {
    padding: 12px 30px 20px;
  }
}
