:root {
  --brand-blue: #2563eb;
  --brand-blue-dark: #1e3a8a;
  --brand-violet: #7c3aed;
  --brand-pink: #db2777;
  --brand-green: #16a34a;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe7ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --shadow: 0 18px 48px rgba(30, 58, 138, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 6%, rgba(37, 99, 235, 0.16), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(219, 39, 119, 0.12), transparent 30%),
    linear-gradient(180deg, #eff6ff 0%, #f8fafc 44%, #ffffff 100%) !important;
  color: var(--ink) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 62%);
}

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

header {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
  padding: 20px 0 28px !important;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
  text-align: left !important;
}

.logo-image {
  height: 78px !important;
  width: auto !important;
  margin: 0 !important;
  filter: drop-shadow(0 10px 18px rgba(30, 58, 138, 0.12));
}

.tagline {
  margin: 0 !important;
  color: var(--brand-blue-dark) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  line-height: 1.35;
}

.nav {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  gap: 4px !important;
  padding: 6px !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155 !important;
  padding: 9px 14px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

.nav a:hover {
  color: var(--brand-blue) !important;
  background: #eff6ff !important;
  transform: translateY(-1px);
}

.nav a.active {
  color: white !important;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet)) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.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: 1px solid rgba(219, 231, 255, 0.9) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--shadow) !important;
}

.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;
}

.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(30px, 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-card,
.result-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px !important;
  box-shadow: var(--shadow-soft) !important;
}

.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-violet)) !important;
}

.platform-btn,
.download-btn:not(.store-badge),
.beta-form .submit-btn {
  border-radius: 14px !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 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-violet)) !important;
}

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

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

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

.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: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 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(37, 99, 235, 0.14);
}

.site-form button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet));
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
  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(37, 99, 235, 0.24);
}

.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-info {
  display: grid;
  gap: 16px;
}

.support-info-card {
  border: 1px solid #dbe7ff;
  border-radius: 18px;
  background: #f8fbff;
  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 {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
  color: var(--muted) !important;
  border-top: 1px solid var(--line);
}

.footer-links a,
.footer-credit a {
  color: var(--brand-blue) !important;
}

.footer-links .sep,
.footer-credit {
  color: #94a3b8 !important;
}

@media (max-width: 840px) {
  header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center !important;
    gap: 10px;
  }

  .logo-image {
    height: 94px !important;
  }

  .tagline {
    max-width: 280px;
    font-size: 15px !important;
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 18px !important;
  }

  .nav a {
    flex: 1 1 118px;
    padding: 9px 10px !important;
  }

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

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

  .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;
  }
}
