/* ============================================================
   Precision AEO — Instrument Theme — landing-page.css
   Shared styles for lead-gen landing pages: whitepaper, checklist, playbook
   ============================================================ */

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

body {
  font-family: var(--display);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: rgba(8, 15, 30, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--accent-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 32px;
}

.nav-cta {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 20px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: var(--display);
}

.nav-cta:hover {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

/* Main Content */
.main-content {
  padding: 4rem 0 2rem;
}

.landing-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--accent-border);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 3rem;
}

.hero-content {
  padding-right: 2rem;
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-content .subtitle {
  font-size: 1.125rem;
  color: var(--text-2);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  text-align: center;
}

.hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-border);
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 65%);
  border-radius: var(--radius-xl);
  z-index: -1;
}

/* Form Styling */
.form-container {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--accent-border);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #3B82F6 50%, transparent 100%);
  opacity: 0.5;
}

.form-container h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  text-align: center;
}

.form-subtitle {
  color: var(--text-3);
  text-align: center;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-group input {
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--display);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
  color: var(--text-3);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13);
  background: rgba(59, 130, 246, 0.04);
}

.cta-button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--display);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 0.25rem;
}

.cta-button:hover {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Benefits Section */
.benefits-section {
  padding: 3rem;
  border-top: 1px solid var(--border);
}

.benefits-headline {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 2.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  text-align: center;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--accent-border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--accent);
}

.benefit-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.benefit-card p {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border);
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.cta-secondary-button {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent-border-2);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--display);
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.cta-secondary-button:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: #04080F;
  border-top: 1px solid var(--accent-border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.footer-links a {
  color: var(--text-3);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-2);
}

/* Status Message */
.status-message {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  display: none;
}

.status-message.success {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.status-message.error {
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content .subtitle {
    font-size: 1rem;
  }

  .form-container {
    padding: 2rem;
  }

  .benefits-section {
    padding: 2rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Focus / accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.landing-card {
  animation: fadeInUp 0.7s ease-out;
}

.benefit-card {
  animation: fadeInUp 0.7s ease-out;
}

.benefit-card:nth-child(2) {
  animation-delay: 0.1s;
}

.benefit-card:nth-child(3) {
  animation-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Thank-you page ── */
.thankyou-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 8rem);
}
.thankyou-center {
  display: flex;
  justify-content: center;
}
.thankyou-card {
  max-width: 600px;
  padding: 3rem;
  text-align: center;
}
.thankyou-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.thankyou-icon span {
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}
.thankyou-card h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.thankyou-card > p {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.thankyou-card .cta-button,
.thankyou-card .cta-secondary-button {
  display: inline-block;
  text-decoration: none;
}
.thankyou-card .cta-button {
  margin-bottom: 1.5rem;
}
.thankyou-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}
.thankyou-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.thankyou-card h3 + p {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   Field validation states (shared with form-validation.js)
   ---------------------------------------------------------- */
.form-group input.field-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input.field-valid {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field-error-msg {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 4px;
  display: block;
}
