/* Nimbus Cleaner — home page sections. */

/* ---------- Device frame ----------
   The cropped screenshots are the phone UI only; the chrome is drawn here so
   the images stay small and consistent. The bottom edge is a cut, faded out
   rather than closed off. */

.device {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border-radius: 30px 30px 0 0;
  padding: 8px 8px 0;
  background: linear-gradient(160deg, #2c3d4f, #101d2a 55%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.28), 0 26px 60px rgba(4, 14, 24, 0.5);
}

.device::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 150px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(to bottom, rgba(10, 29, 47, 0), var(--ink-900));
  pointer-events: none;
}

.section--paper .device::after {
  background: linear-gradient(to bottom, rgba(244, 247, 251, 0), var(--paper));
}

.section--paper .device {
  box-shadow: 0 2px 4px rgba(14, 31, 46, 0.14), 0 20px 46px rgba(14, 31, 46, 0.18);
}

.device img {
  width: 100%;
  height: auto;
  border-radius: 23px 23px 0 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 78% 0%, #17456f 0%, transparent 58%),
    linear-gradient(168deg, #0e2740 0%, #0a1d2f 62%);
  color: var(--text-on-navy);
  padding-block: clamp(52px, 7vw, 88px) 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand-bright);
}

.hero__lead {
  max-width: 46ch;
  margin-bottom: 30px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-on-navy-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero__note svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--brand-bright);
}

.hero__device {
  position: relative;
  padding-top: 20px;
}

.hero__device::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  width: 340px;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(74, 168, 238, 0.34), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__device .device {
  position: relative;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__actions,
  .hero__note {
    justify-content: center;
  }

  .hero__device {
    max-width: 280px;
    margin-inline: auto;
  }
}

/* ---------- Trust strip ---------- */

.trust {
  background: var(--ink-950);
  color: var(--text-on-navy);
  padding-block: 30px;
  border-top: 1px solid var(--line-navy);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 34px;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 13px;
}

.trust__item svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--brand-bright);
}

.trust__item strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
}

.trust__item span {
  font-size: 0.85rem;
  color: var(--text-on-navy-muted);
}

@media (max-width: 780px) {
  .trust__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 26px 24px 24px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #c9dcee;
  box-shadow: var(--shadow-lift);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: 7px;
}

.feature-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.58;
}

/* ---------- Alternating feature detail ---------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 84px);
}

.detail + .detail {
  margin-top: clamp(64px, 8vw, 104px);
}

.detail--flip .detail__media {
  order: -1;
}

.detail__body h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.detail__body > p {
  max-width: 44ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section--navy .detail__body > p {
  color: var(--text-on-navy-muted);
}

.detail__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.detail__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  font-size: 0.99rem;
  color: var(--text-muted);
}

.section--navy .detail__list li {
  color: var(--text-on-navy-muted);
}

.detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7bc4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.section--navy .detail__list li::before {
  background-color: rgba(74, 168, 238, 0.2);
}

@media (max-width: 860px) {
  .detail {
    grid-template-columns: 1fr;
  }

  .detail--flip .detail__media {
    order: 0;
  }

  .detail__media {
    max-width: 270px;
    margin-inline: auto;
  }

  .detail__body > p {
    max-width: none;
  }
}

/* ---------- Privacy block ---------- */

.privacy {
  background: linear-gradient(158deg, #0e2740 0%, #0a1d2f 70%);
  color: var(--text-on-navy);
}

.privacy__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.privacy__shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: rgba(74, 168, 238, 0.16);
  color: var(--brand-bright);
}

.privacy__shield svg {
  width: 30px;
  height: 30px;
}

.privacy__body > p {
  max-width: 46ch;
  color: var(--text-on-navy-muted);
  font-size: 1.06rem;
}

.privacy__points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy__points li {
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-navy);
  border-radius: var(--radius);
}

.privacy__points strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.02rem;
}

.privacy__points span {
  font-size: 0.94rem;
  color: var(--text-on-navy-muted);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .privacy__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 800px;
  margin-inline: auto;
}

.faq__item {
  border-bottom: 1px solid var(--line-light);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 2px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
}

.faq__q:hover {
  color: var(--brand);
}

.faq__q svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--brand);
  transition: transform 0.22s ease;
}

.faq__q[aria-expanded="true"] svg {
  transform: rotate(45deg);
}

.faq__a {
  display: none;
  padding: 0 2px 24px;
  max-width: 68ch;
  color: var(--text-muted);
}

.faq__a p:last-child {
  margin-bottom: 0;
}

.faq__item[data-open="true"] .faq__a {
  display: block;
}

/* ---------- Closing CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background: radial-gradient(100% 120% at 50% 0%, #17456f 0%, transparent 62%),
    var(--ink-900);
  color: var(--text-on-navy);
  text-align: center;
}

.cta h2 {
  max-width: 17ch;
  margin-inline: auto;
}

.cta p {
  max-width: 52ch;
  margin: 0 auto 30px;
  color: var(--text-on-navy-muted);
  font-size: 1.08rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.privacy__link {
  display: inline-block;
  margin-top: 4px;
  color: var(--brand-bright);
  font-weight: 700;
}

.privacy__link:hover {
  color: var(--white);
  text-decoration: none;
}
