/* ============================================
   Orthowiz Landing Page — Styles (Light Theme)
   ============================================ */

:root {
  /* Light theme foundations */
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-2: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-light: #cbd5e1;
  --color-text: #1f2937;
  --color-text-muted: #4b5563;
  --color-text-dim: #94a3b8;
  /* Brand colors */
  --color-primary: #027fe1;
  --color-primary-dark: #0267b8;
  --color-primary-light: #2299f5;
  --color-accent-orange: #f5a623;
  --color-accent-red: #d0021b;
  --color-green: #008822;
  --color-green-light: #16a34a;
  --color-red: #d0021b;
  --color-yellow: #f5a623;
  --color-deep: #08497a;
  /* Mockup (stays dark to represent the app) */
  --mockup-bg: #111827;
  --mockup-surface: #1a2235;
  --mockup-border: #1e293b;
  --mockup-text: #e2e8f0;
  --mockup-text-dim: #64748b;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-cta {
  padding: 8px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
}

/* ---- HERO ---- */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}


.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(2, 127, 225, 0.08);
  border: 1px solid rgba(2, 127, 225, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  color: var(--color-primary);
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-top: 12px;
}

/* ---- WAITLIST FORM ---- */
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 127, 225, 0.1);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--color-text-dim);
}

.waitlist-form button {
  padding: 14px 28px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.waitlist-form button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.waitlist-form button:active {
  transform: translateY(0);
}

/* ---- HERO IMAGE ---- */
.hero-visual {
  margin-top: 60px;
}

.hero-image {
  display: block;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
}

/* ---- SECTIONS COMMON ---- */
section {
  padding: 100px 0;
}

section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ---- PROBLEM ---- */
.problem {
  background: var(--color-surface);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.problem-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.problem-card.before {
  border-color: rgba(208, 2, 27, 0.2);
}

.problem-card.after {
  border-color: rgba(0, 136, 34, 0.25);
}

.problem-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.problem-card.before .problem-label { color: var(--color-red); }
.problem-card.after .problem-label { color: var(--color-green); }

.problem-card ul {
  list-style: none;
}

.problem-card li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.problem-card.before li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--color-red);
  opacity: 0.6;
}

.problem-card.after li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-green);
}

/* ---- MODULES ---- */
.modules {
  position: relative;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.module-card {
  position: relative;
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.module-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 12px;
}

.badge-editors {
  color: #59257c;
  background: rgba(89, 37, 124, 0.08);
}
.badge-utilities {
  color: #c15f0a;
  background: rgba(193, 95, 10, 0.08);
}
.badge-segmentation {
  color: #7c6825;
  background: rgba(124, 104, 37, 0.08);
}
.badge-planning {
  color: var(--color-deep);
  background: rgba(8, 73, 122, 0.08);
}
.badge-coming-soon {
  color: var(--color-text-dim);
  background: rgba(148, 163, 184, 0.1);
}

.module-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.module-card-soon {
  border-style: dashed;
  opacity: 0.7;
}

.module-card-soon:hover {
  opacity: 1;
}

.module-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.module-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.module-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  background: var(--color-surface);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.step-arrow {
  color: var(--color-text-dim);
  font-size: 1.5rem;
  margin-top: 36px;
  flex-shrink: 0;
}

/* ---- AUDIENCE ---- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience-card {
  padding: 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  transition: box-shadow 0.2s;
}

.audience-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.audience-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.audience-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ---- PRICING ---- */
.pricing {
  background: var(--color-surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  padding: 36px 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), 0 8px 32px rgba(2, 127, 225, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.price-placeholder {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-dim);
  margin-bottom: 12px;
  padding: 8px 0;
}

.pricing-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.pricing-note strong {
  color: var(--color-green);
}

/* ---- FINAL CTA ---- */
.final-cta {
  text-align: center;
  position: relative;
}


.waitlist-form-large {
  max-width: 560px;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input[type="email"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 127, 225, 0.1);
}

.form-row input[type="email"]::placeholder {
  color: var(--color-text-dim);
}

.form-row button {
  padding: 14px 28px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.form-row button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.form-row-secondary {
  display: flex;
  gap: 10px;
}

.form-row-secondary input,
.form-row-secondary select {
  flex: 1;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row-secondary input:focus,
.form-row-secondary select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 127, 225, 0.1);
}

.form-row-secondary input::placeholder {
  color: var(--color-text-dim);
}

.form-row-secondary select {
  appearance: none;
  cursor: pointer;
}

.form-row-secondary select option {
  background: var(--color-bg);
}

.benefits-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.benefits-row span {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* ---- FOOTER ---- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

/* ---- MODAL ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.modal-content {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 420px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-icon {
  width: 56px;
  height: 56px;
  background: rgba(2, 127, 225, 0.08);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.modal-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.modal-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
}

.fade-in.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row-secondary {
    flex-direction: column;
  }

  .benefits-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  section {
    padding: 64px 0;
  }
}
