/* Blue Comet Marketing Site — Design System */

:root {
  --primary-blue: #004977;
  --primary-blue-light: #0066CC;
  --primary-blue-dark: #003366;
  --accent-blue: #0073E6;
  --accent-blue-light: #E6F2FF;

  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-600: #868E96;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;

  --success: #28A745;
  --success-light: #D4EDDA;

  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --nav-height: 4rem;
  --section-padding: 5rem 0;
  --container-max: 72rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */

h1, h2, h3, h4 {
  color: var(--primary-blue-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 40rem;
  margin-bottom: 3rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--white);
  border-color: var(--accent-blue);
}

.btn-primary:hover {
  background: var(--primary-blue-light);
  border-color: var(--primary-blue-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--accent-blue-light);
  color: var(--primary-blue-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-blue);
  border-color: transparent;
  padding: 0.75rem 1rem;
}

.btn-ghost:hover {
  background: var(--accent-blue-light);
  color: var(--primary-blue-dark);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Navigation */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--primary-blue-dark);
}

.logo-img {
  height: 2.25rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-700);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--primary-blue);
  background: var(--accent-blue-light);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary-blue);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  padding: calc(var(--nav-height) + 4rem) 0 5rem;
}

.hero-content {
  max-width: 42rem;
}

.hero-subhead {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Trust bar */

.trust-bar {
  padding: 1.25rem 0;
  background: var(--primary-blue);
  color: var(--white);
  text-align: center;
}

.trust-bar p {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Sections */

section {
  padding: var(--section-padding);
}

section:nth-child(even):not(.waitlist-section) {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* Feature cards */

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

section:nth-child(even) .feature-card {
  background: var(--white);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-blue-light);
  color: var(--primary-blue);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* How it works */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: var(--primary-blue);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
}

.step p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* Pricing */

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  max-width: 52rem;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1;
  margin: 1rem 0 0.25rem;
}

.pricing-amount span {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray-600);
}

.pricing-desc {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.pricing-active-callout {
  background: var(--accent-blue-light);
  border: 1px solid rgba(0, 115, 230, 0.2);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  text-align: left;
}

.pricing-active-callout h3 {
  color: var(--primary-blue);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.pricing-active-callout p {
  color: var(--gray-700);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.pricing-active-callout p:last-child {
  margin-bottom: 0;
}

.pricing-active-callout a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.pricing-active-callout a:hover {
  text-decoration: underline;
}

/* Waitlist form */

.waitlist-section {
  position: relative;
  color: var(--white);
}

.waitlist-section h2,
.waitlist-section .section-label {
  color: var(--white);
}

.waitlist-section .section-label {
  color: var(--accent-blue-light);
}

.waitlist-section .section-intro {
  color: rgba(255, 255, 255, 0.85);
}

.waitlist-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.waitlist-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.375rem;
}

.label-optional {
  font-weight: 400;
  color: var(--gray-600);
}

.form-group-checkbox {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

.form-hint {
  margin-top: 0.5rem;
  margin-left: 1.75rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.45;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.15);
}

.form-group input.error,
.form-group select.error {
  border-color: #DC3545;
}

.form-error {
  display: none;
  font-size: 0.8125rem;
  color: #DC3545;
  margin-top: 0.375rem;
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  padding: 1rem;
  background: var(--success-light);
  color: #155724;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

.waitlist-form-card .btn-primary {
  width: 100%;
}

.waitlist-form-card .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* FAQ */

.faq-list {
  max-width: 40rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-blue-dark);
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--accent-blue);
}

.faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-blue);
  transition: transform 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 12rem;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--gray-900);
  color: var(--gray-300);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--gray-300);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-services {
  font-size: 0.8125rem;
  color: var(--gray-600);
  text-align: center;
  line-height: 1.5;
  margin-top: 0.35rem;
}

.footer-services a {
  color: var(--gray-500);
  text-decoration: none;
}

.footer-services a:hover {
  color: var(--gray-300);
  text-decoration: underline;
}

.footer-legal {
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-800);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.45;
}

/* Mobile */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open a {
    display: block;
    padding: 0.75rem 0;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .nav-links.open ~ .nav-actions,
  .site-header:has(.nav-links.open) .nav-actions {
    /* keep toggle visible */
  }

  .hero {
    padding: calc(var(--nav-height) + 1rem) 0 3rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-subhead {
    font-size: 1rem;
    line-height: 1.4;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .waitlist-layout {
    grid-template-columns: 1fr;
  }

  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (min-width: 769px) {
  .site-header .nav-wrapper {
    position: relative;
  }
}
