/* =============================================
   AppointAI Landing Page
   Primary: #0D4F6B (deep teal)
   Accent:  #F59E0B (amber)
   ============================================= */

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

:root {
  --teal:    #0D4F6B;
  --teal-lt: #127898;
  --amber:   #F59E0B;
  --amber-lt:#FCD34D;
  --white:   #ffffff;
  --off:     #f8fafb;
  --gray-50: #f9fafb;
  --gray-100:#f1f5f9;
  --gray-200:#e2e8f0;
  --gray-400:#94a3b8;
  --gray-600:#475569;
  --gray-800:#1e293b;
  --gray-900:#0f172a;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
section:nth-child(even) { background: var(--off); }

/* ---- Typography ---- */
h1, h2, h3 { color: var(--gray-900); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--gray-600); font-size: 1.0625rem; }
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 8px;
}
.section-title {
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--amber);
  color: var(--gray-900);
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245,158,11,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,79,107,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--amber); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 9px 22px;
  background: var(--amber);
  color: var(--gray-900) !important;
  border-radius: 6px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--amber-lt); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--teal) 0%, #063a54 60%, #042030 100%);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--amber-lt);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.1875rem;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin-top: 16px;
}
.hero-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
}
.hero-image img {
  width: 100%;
  display: block;
  border-radius: 16px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { color: rgba(255,255,255,0.6); font-size: 0.875rem; }

/* ---- Problem ---- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.problem-visual {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--gray-200);
}
.lost-counter {
  text-align: center;
  padding: 32px;
}
.lost-counter .big-num {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}
.lost-counter p { font-size: 1.125rem; font-weight: 600; color: var(--gray-600); }
.problem-list { list-style: none; margin-top: 32px; }
.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 1rem;
}
.problem-list li::before {
  content: '✗';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ---- How It Works ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 0;
}
.step-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-lt));
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { font-size: 0.9375rem; }

/* ---- Who It's For ---- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.industry-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.industry-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(13,79,107,0.08);
}
.industry-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.industry-card h3 { font-size: 1rem; margin-bottom: 4px; }
.industry-card p { font-size: 0.8125rem; color: var(--gray-400); }

/* ---- Social Proof ---- */
.proof-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.proof-number {
  font-size: 5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 16px;
}
.proof-number span { color: var(--amber); }
.proof-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}
.proof-card .quote {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-800);
  font-style: italic;
  margin-bottom: 24px;
  border-left: 4px solid var(--amber);
  padding-left: 20px;
}
.proof-card .stars { color: var(--amber); font-size: 1.25rem; margin-bottom: 16px; }
.proof-card .attr { font-size: 0.875rem; color: var(--gray-400); }
.proof-badges {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}
.badge-item::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  font-size: 0.7rem;
}

/* ---- FAQ ---- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-800);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-q:hover { color: var(--teal); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gray-400);
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--teal);
  color: var(--white);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 0 24px; }

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, #063a54 100%);
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 36px; font-size: 1.125rem; }
.cta-section .btn-primary { font-size: 1.125rem; padding: 16px 40px; }
.cta-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.cta-trust span {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cta-trust span::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  font-size: 0.65rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  padding: 48px 0 32px;
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { font-weight: 700; color: rgba(255,255,255,0.7); }
.footer-brand span { color: var(--amber); }

/* ---- Contact Form Modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gray-100);
  border: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,79,107,0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success h3 { color: var(--teal); margin-bottom: 12px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { display: none; }
  .hero { padding: 120px 0 80px; }
  .steps-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .proof-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  section { padding: 60px 0; }
  .industries-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cta-trust { gap: 16px; }
  .footer .container { flex-direction: column; text-align: center; }
}