:root {
  --brand-blue: #3B82F6;
  --brand-blue-dark: #1E3A8A;
  --brand-violet: #8B5CF6;
  --brand-pink: #EC4899;
  --brand-yellow: #FACC15;
  --brand-yellow-dark: #ca8a04;
  --brand-green: #16a34a;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(255, 255, 255, 0.2);
  --surface: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(248, 251, 255, 0.98);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%) fixed !important;
  color: var(--ink) !important;
  line-height: 1.6;
}

.container {
  width: min(100% - 32px, 1160px) !important;
  padding: 0 !important;
  padding-bottom: 60px !important;
}

/* ── Header ─────────────────────────────────────── */

header {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
  padding: 30px 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-image {
  width: clamp(300px, 32vw, 420px);
  height: auto;
  margin: 0;
  object-fit: contain;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.72))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.5))
    drop-shadow(1px 0 0 rgba(255, 255, 255, 0.5))
    drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.5))
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.24));
}

.tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  line-height: 1.35;
}

.nav {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
}

.nav a {
  min-height: 36px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  padding: 7px 8px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.nav a.active {
  color: var(--brand-blue-dark);
  background: white;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

/* ── Cards & Sections ────────────────────────────── */

.hero,
.features,
.cta-section,
.contact-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hero-card,
.content-card,
.how-it-works,
.cta-card,
.feature-card,
.platform-card,
.info-section,
.faq-section,
.testing-guide,
.watchout-section,
.contact-card,
.data-section {
  border: none !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: blur(8px);
}

.data-section,
.info-section,
.faq-section,
.testing-guide,
.watchout-section,
.how-it-works {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hero-card {
  padding: clamp(32px, 5vw, 58px) clamp(22px, 4vw, 48px) !important;
  border-top: 4px solid var(--brand-yellow) !important;
}

/* ── Typography on cards ─────────────────────────── */

.hero-title,
.section-title,
.content-card h1,
.content-card h2,
.feature-title,
.step-title,
.platform-title,
.info-title,
.faq-question,
.card-title,
.cta-title {
  color: var(--brand-blue-dark) !important;
  letter-spacing: 0 !important;
}

.hero-title,
.content-card h1 {
  font-size: clamp(28px, 5vw, 52px) !important;
  line-height: 1.05 !important;
}

.hero-description,
.cta-description,
.feature-description,
.step-description,
.platform-description,
.info-description,
.faq-answer,
.content-card p,
.content-card li,
.card-meta,
.card-sub,
.section-subtitle {
  color: var(--muted) !important;
}

.section-title {
  margin-bottom: 24px !important;
}

.section-subtitle,
.data-section .empty-state,
.timestamp {
  color: var(--muted) !important;
}

/* ── Data / result cards ─────────────────────────── */

.data-card,
.result-card {
  border: 1px solid rgba(219, 231, 255, 0.8);
  border-radius: 16px !important;
  box-shadow: var(--shadow-soft) !important;
}

/* ── Pills & badges ──────────────────────────────── */

.pill {
  background: #eff6ff !important;
  color: var(--brand-blue-dark) !important;
}

.pill-live {
  background: #dc2626 !important;
  color: white !important;
}

.beta-badge,
.step-number,
.step-list .step-num {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark)) !important;
}

/* ── Buttons ─────────────────────────────────────── */

.platform-btn,
.download-btn:not(.store-badge),
.beta-form .submit-btn {
  border-radius: 14px !important;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.16);
}

.btn-android,
.btn-playstore,
.beta-form .submit-btn {
  background: linear-gradient(135deg, var(--brand-green), #0f9f6e) !important;
}

.btn-ios,
.btn-testflight {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark)) !important;
}

.store-badge {
  box-shadow: none !important;
}

.notice-banner,
.warning-box {
  border-radius: 16px !important;
}

/* ── Contact form layout ─────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
}

/* ── Site form ───────────────────────────────────── */

.site-form {
  display: grid;
  gap: 16px;
}

.site-form .form-row {
  display: grid;
  gap: 8px;
}

.site-form label {
  color: var(--brand-blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.site-form input,
.site-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-form textarea {
  min-height: 160px;
  resize: vertical;
}

.site-form input:focus,
.site-form textarea:focus {
  border-color: var(--brand-blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.site-form button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-yellow), #fde047);
  color: var(--brand-blue-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(250, 204, 21, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.site-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(250, 204, 21, 0.4);
}

.site-form button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.form-status {
  display: none;
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 14px;
  font-weight: 700;
}

.form-status.success {
  display: block;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.form-status.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ── Support sidebar ─────────────────────────────── */

.support-info {
  display: grid;
  gap: 16px;
}

.support-info-card {
  border: 1px solid rgba(219, 231, 255, 0.8);
  border-left: 4px solid var(--brand-yellow);
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.9);
  padding: 20px;
}

.support-info-card h2,
.support-info-card h3 {
  color: var(--brand-blue-dark);
  margin-bottom: 8px;
}

.support-info-card p,
.support-info-card li {
  color: var(--muted);
  font-size: 15px;
}

.support-info-card ol {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

/* ── Footer ──────────────────────────────────────── */

footer {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.75) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a,
.footer-credit a {
  color: rgba(255, 255, 255, 0.95) !important;
}

.footer-links .sep,
.footer-credit {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 840px) {
  header {
    gap: 12px;
    padding-top: 24px;
  }

  .logo-image {
    width: min(76vw, 320px) !important;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container,
  header,
  footer {
    width: min(100% - 22px, 1160px) !important;
  }

  header {
    padding: 20px 0 20px;
  }

  .logo-image {
    width: min(76vw, 300px) !important;
  }

  .tagline {
    font-size: 14px !important;
  }

  .nav {
    width: 100%;
    gap: 4px;
    padding: 5px;
    border-radius: 18px;
  }

  .nav a {
    min-height: 34px;
    padding: 6px 2px;
    border-radius: 13px;
    font-size: 11px;
  }

  .hero-card,
  .content-card,
  .how-it-works,
  .cta-card,
  .platform-card,
  .info-section,
  .faq-section,
  .testing-guide,
  .watchout-section,
  .contact-card,
  .data-section {
    padding: 24px 18px !important;
  }
}
