/* AutoDesk — Dental AI Front Desk Design System
   Vibe: dark editorial with amber accent. Think: Bloomberg Terminal meets dental practice.
   Not generic SaaS. Not another blue gradient landing page.
*/

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Satoshi:wght@400;500;700;900&display=swap');

/* ─── Variables ─────────────────────────────────────── */
:root {
  --bg:        #07070b;
  --surface:   #0f0f18;
  --surface2:  #141420;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.14);
  --text:      #e8e5df;
  --text-dim:  #7a7880;
  --text-muted:#4a4854;
  --accent:    #e8a020;
  --accent-lo: rgba(232,160,32,0.12);
  --accent-hi: #f5b838;
  --green:     #22c55e;
  --green-lo:  rgba(34,197,94,0.12);
  --red:       #ef4444;
  --radius:    10px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ─── Typography ────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Instrument Serif', Georgia, serif; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem);   font-weight: 400; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 400; }

p { color: var(--text-dim); }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hi); }

/* ─── Layout ────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 28px; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-label {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--accent); }

/* ─── Nav ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,11,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-dim); font-size: 0.875rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #07070b;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.nav-cta:hover { background: var(--accent-hi); color: #07070b; transform: translateY(-1px); }

/* ─── Buttons ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #07070b;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 0 0 var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hi);
  color: #07070b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,160,32,0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--border-hi);
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Cards ──────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(232,160,32,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(120,80,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-lo);
  border: 1px solid rgba(232,160,32,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 { max-width: 720px; margin-bottom: 24px; }
.hero p { font-size: 1.15rem; max-width: 560px; margin-bottom: 40px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-footnote { margin-top: 20px; font-size: 0.8rem; color: var(--text-muted); }

/* ─── Stats strip ─────────────────────────────────────── */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.04em;
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Feature grid ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--border-hi); }
.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-lo);
  border: 1px solid rgba(232,160,32,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 1.2rem;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text); }
.feature-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }

/* ─── Comparison table ───────────────────────────────── */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comp-table thead th {
  background: var(--surface);
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.comp-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.comp-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.comp-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: middle;
}
.comp-table tbody tr:last-child td { border-bottom: none; }
.comp-table tbody td:first-child { color: var(--text); font-weight: 600; }
.comp-table .winner { color: var(--accent) !important; font-weight: 700; }
.comp-table .check { color: var(--green); }
.comp-table .cross { color: var(--text-muted); }
.comp-table .highlight-row { background: var(--accent-lo); }
.comp-table .highlight-row td { color: var(--text) !important; }
.comp-table .highlight-row td:first-child { color: var(--accent) !important; }

/* ─── Testimonials ───────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial-quote {
  font-family: 'Instrument Serif', serif;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 36px; height: 36px;
  background: var(--accent-lo);
  border: 1px solid rgba(232,160,32,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
}
.testimonial-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.testimonial-title { font-size: 0.75rem; color: var(--text-dim); }

/* ─── Pricing ─────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 24px 64px rgba(232,160,32,0.1);
  transform: scale(1.03);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #07070b;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pricing-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.pricing-desc { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 24px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.pricing-price .amount { font-family: 'Instrument Serif', serif; font-size: 2.5rem; color: var(--text); letter-spacing: -0.04em; }
.pricing-price .period { font-size: 0.85rem; color: var(--text-dim); }
.pricing-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 28px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-cta { width: 100%; text-align: center; }

/* ─── Process / Steps ───────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { text-align: center; }
.step-num {
  width: 40px; height: 40px;
  background: var(--accent-lo);
  border: 1px solid rgba(232,160,32,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  margin: 0 auto 16px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.step p { font-size: 0.85rem; color: var(--text-dim); }

/* ─── Lead form ───────────────────────────────────────── */
.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  margin: 0 auto;
}
.lead-form h2 { margin-bottom: 8px; }
.lead-form .lead-sub { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Satoshi', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.15s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-lo); }
.form-group select { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--green);
}
.form-success h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form-success p { color: var(--text-dim); }

/* ─── CTA Section ────────────────────────────────────── */
.cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 0;
  text-align: center;
}
.cta-section h2 { max-width: 600px; margin: 0 auto 16px; }
.cta-section p { max-width: 500px; margin: 0 auto 40px; }

/* ─── FAQ Accordion ─────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: 'Satoshi', sans-serif;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--accent); }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--accent); font-weight: 300; flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 24px; }
.faq-a-inner { font-size: 0.95rem; color: var(--text-dim); line-height: 1.7; }

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; max-width: 240px; line-height: 1.6; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; font-family: 'Satoshi', sans-serif; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--text-dim); font-size: 0.875rem; }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Page header ────────────────────────────────────── */
.page-header {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-header h1 { margin-bottom: 16px; }
.page-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ─── Onboarding timeline ────────────────────────────── */
.timeline { position: relative; max-width: 700px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item { display: flex; gap: 32px; padding-bottom: 48px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  z-index: 1;
}
.timeline-item.done .timeline-marker {
  background: var(--accent-lo);
  border-color: var(--accent);
  color: var(--accent);
}
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 8px; }
.timeline-content p { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 12px; }
.timeline-tag {
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.timeline-tag.done { background: var(--green-lo); color: var(--green); }
.timeline-tag.active { background: var(--accent-lo); color: var(--accent); }
.timeline-tag.upcoming { background: var(--surface2); color: var(--text-dim); }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid,
  .testimonials-grid,
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pricing-card.featured { transform: none; }
}
@media (max-width: 600px) {
  .features-grid,
  .testimonials-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .container, .container-sm { padding: 0 20px; }
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .lead-form { padding: 28px 20px; }
}