/* ============================================================
   Scrutiny AI — scrutinyai.io
   Brand colours: #0B2545 #0F3D4E #2563EB #60A5FA #F3F6FA
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a2638;
  background: #F3F6FA;
}

/* --- Layout ------------------------------------------------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Navigation -------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0B2545;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  color: #F3F6FA;
  letter-spacing: 0.01em;
}

.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: #2563EB;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.nav-cta:hover,
.nav-cta:focus {
  background: #60A5FA;
  color: #0B2545;
  outline: 2px solid #60A5FA;
  outline-offset: 2px;
}

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

.hero {
  background: linear-gradient(135deg, #0B2545 0%, #0F3D4E 100%);
  color: #F3F6FA;
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #60A5FA;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

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

/* --- Buttons ----------------------------------------------- */

.btn-primary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: #2563EB;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #60A5FA;
  color: #0B2545;
  outline: 2px solid #60A5FA;
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: transparent;
  color: #60A5FA;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #60A5FA;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #60A5FA;
  color: #0B2545;
  outline: 2px solid #60A5FA;
  outline-offset: 2px;
}

/* --- Section: The Problem ---------------------------------- */

.section-problem {
  background: #F3F6FA;
  padding: 4rem 0;
  border-bottom: 1px solid #dde4ef;
}

.problem-statement {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: #0B2545;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-weight: 500;
  line-height: 1.65;
}

/* --- Section: Capabilities --------------------------------- */

.section-capabilities {
  background: #fff;
  padding: 5rem 0;
}

.section-capabilities h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #0B2545;
  margin-bottom: 2.5rem;
  text-align: center;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.capability-card {
  background: #F3F6FA;
  border: 1px solid #dde4ef;
  border-radius: 8px;
  padding: 2rem;
  border-top: 3px solid #2563EB;
}

.capability-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0B2545;
  margin-bottom: 0.75rem;
}

.capability-card p {
  color: #374151;
  font-size: 0.975rem;
  line-height: 1.65;
}

/* --- Section: Why Now -------------------------------------- */

.section-why {
  background: #0B2545;
  padding: 5rem 0;
  color: #F3F6FA;
}

.section-why h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 2.5rem;
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.why-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 8px;
  padding: 2rem;
}

.why-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: #60A5FA;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.why-event {
  font-size: 0.975rem;
  font-weight: 600;
  color: #F3F6FA;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.why-claim {
  font-size: 0.9rem;
  color: #94b4d8;
  line-height: 1.65;
}

/* --- Section: Contact -------------------------------------- */

.section-contact {
  background: #F3F6FA;
  padding: 5rem 0;
  border-top: 1px solid #dde4ef;
}

.section-contact h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #0B2545;
  margin-bottom: 0.75rem;
}

.contact-intro {
  color: #374151;
  margin-bottom: 2rem;
}

#contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0B2545;
  margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #b0bdd4;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  color: #1a2638;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
  resize: vertical;
}

/* Honeypot — visually hidden, not accessible to screen readers */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-check {
  margin-bottom: 1.25rem;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: #374151;
}

.check-label input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: #2563EB;
}

.check-label a {
  color: #2563EB;
  text-decoration: underline;
}

.check-label a:hover {
  color: #0F3D4E;
}

/* Turnstile widget */
.cf-turnstile {
  margin-bottom: 1.25rem;
}

.btn-submit {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-submit:hover,
.btn-submit:focus {
  background: #0F3D4E;
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

.btn-submit:disabled {
  background: #94b4d8;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.5rem;
}

.form-status.success {
  color: #166534;
}

.form-status.error {
  color: #991b1b;
}

/* --- Footer ------------------------------------------------ */

footer {
  background: #0B2545;
  color: #94b4d8;
  padding: 2.5rem 0;
  font-size: 0.875rem;
}

.footer-top,
.footer-mid,
.footer-links {
  margin-bottom: 0.5rem;
}

.footer-wordmark {
  font-weight: 700;
  color: #F3F6FA;
}

.footer-dot {
  margin: 0 0.4rem;
  opacity: 0.5;
}

footer a {
  color: #60A5FA;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* --- Sub-page shared styles -------------------------------- */

.page-header {
  background: linear-gradient(135deg, #0B2545 0%, #0F3D4E 100%);
  color: #F3F6FA;
  padding: 4rem 0 3rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-header .page-sub {
  color: #60A5FA;
  font-size: 1rem;
}

.page-body {
  background: #F3F6FA;
  padding: 4rem 0;
}

.page-body .prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0B2545;
  margin: 2rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: #374151;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.prose ul {
  color: #374151;
  margin: 0.75rem 0 1rem 1.5rem;
  line-height: 1.7;
}

.prose ul li {
  margin-bottom: 0.3rem;
}

.prose a {
  color: #2563EB;
  text-decoration: underline;
}

.prose a:hover {
  color: #0F3D4E;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: #2563EB;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* --- Responsive -------------------------------------------- */

@media (max-width: 640px) {
  .nav {
    padding: 0.875rem 1.25rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .section-problem,
  .section-capabilities,
  .section-why,
  .section-contact {
    padding: 3rem 0;
  }

  footer .footer-top,
  footer .footer-mid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
  }
}
