/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--appsoft-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--appsoft-text);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--appsoft-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--appsoft-text);
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(300px, 85vw);
    background: var(--appsoft-white);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 1.25rem;
  }

  .nav .btn {
    width: 100%;
    margin-top: 1rem;
  }
}

/* ── Announcement bar ── */
.announcement {
  background: var(--appsoft-secondary);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 0.625rem var(--gutter);
  font-size: 0.875rem;
}

.announcement a,
.announcement__link {
  color: var(--appsoft-accent);
  text-decoration: underline;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.announcement__link:hover {
  color: var(--appsoft-white);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--appsoft-white);
  color: var(--appsoft-primary);
}

.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--appsoft-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--secondary {
  background: var(--appsoft-primary);
  color: var(--appsoft-white);
}

.btn--secondary:hover {
  background: var(--appsoft-primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  background: transparent;
  color: var(--appsoft-primary);
  border-color: var(--appsoft-primary);
}

.btn--outline:hover {
  background: var(--appsoft-surface);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  background: var(--appsoft-gradient);
  background-size: 200% 200%;
  animation: gradientDrift 18s ease infinite;
  color: var(--appsoft-white);
  overflow: hidden;
}

.hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1rem 0;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 640px;
  opacity: 0.92;
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ── Sections ── */
.section {
  padding: var(--section-padding) 0;
}

.section--surface {
  background: var(--appsoft-surface);
}

.section--dark {
  background: var(--appsoft-secondary);
  color: var(--appsoft-white);
}

.section__header {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section__desc {
  color: var(--appsoft-muted);
  margin: 0;
  font-size: 1.0625rem;
}

.section--dark .section__desc {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Grid & Cards ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--appsoft-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--appsoft-surface);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.card__text {
  color: var(--appsoft-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

/* ── Platform band ── */
.platform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.platform__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--appsoft-secondary), #1a3a6b);
  position: relative;
  overflow: hidden;
}

.platform__visual::after {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .platform {
    grid-template-columns: 1fr;
  }
}

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat__value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--appsoft-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  color: var(--appsoft-muted);
  font-size: 0.9375rem;
}

/* ── CTA band ── */
.cta-band {
  text-align: center;
  padding: var(--section-padding) var(--gutter);
  background: var(--appsoft-gradient);
  background-size: 200% 200%;
  animation: gradientDrift 18s ease infinite;
  color: var(--appsoft-white);
}

.cta-band__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

.cta-band__desc {
  max-width: 560px;
  margin: 0 auto 2rem;
  opacity: 0.92;
}

/* ── Trust badges ── */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.badge {
  background: var(--appsoft-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.badge__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--appsoft-muted);
  margin-bottom: 0.5rem;
}

.badge__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

/* ── Modal ── */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 9000;
}

.dialog-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.dialog {
  background: var(--appsoft-white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}

.dialog-overlay.is-open .dialog {
  transform: translateY(0);
}

.dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dialog__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0;
}

.dialog__close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  color: var(--appsoft-muted);
  flex-shrink: 0;
}

.dialog__close:hover {
  color: var(--appsoft-text);
}

.dialog__body {
  color: var(--appsoft-muted);
  line-height: 1.7;
}

.dialog__body p {
  margin: 0 0 1rem;
}

.dialog__body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.dialog__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ── Footer ── */
.footer {
  background: var(--appsoft-secondary);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem var(--gutter);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer__brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--appsoft-white);
}

.footer a {
  color: var(--appsoft-white);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__contact {
  margin: 0;
}

/* ── Legal pages ── */
.legal-page {
  padding: var(--section-padding) 0;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.legal-page .last-updated {
  color: var(--appsoft-muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--appsoft-muted);
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page a {
  color: var(--appsoft-primary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--appsoft-primary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2rem;
}

.back-link:hover {
  text-decoration: underline;
}
