/* === BASE === */
:root {
  --bg: #f8f9fc;
  --bg-alt: #f0f2f8;
  --fg: #1a2b4a;
  --fg-muted: #5a6890;
  --accent: #00d4aa;
  --accent-dark: #00a884;
  --card-bg: #ffffff;
  --border: #e2e6f0;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fg);
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--fg);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* === HERO === */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.headline-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.proof-item strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
}

.proof-item span {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === DASHBOARD CARD === */
.hero-visual {
  display: flex;
  justify-content: center;
}

.dashboard-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 24px rgba(26, 43, 74, 0.06), 0 1px 4px rgba(26, 43, 74, 0.04);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.dash-clinic {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.clinic-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--fg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.clinic-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.clinic-loc {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 212, 170, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}

.stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-val.accent {
  color: var(--accent);
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 0.1rem;
}

.stat-sub {
  font-size: 0.65rem;
  color: var(--fg-muted);
  opacity: 0.7;
}

.queue-preview {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.q-header {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.6rem;
}

.q-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.q-item:last-child { border-bottom: none; }

.q-item.done .q-name, .q-item.done .q-n { opacity: 0.4; text-decoration: line-through; }

.q-item.active .q-name { font-weight: 600; }

.q-item.muted .q-name, .q-item.muted .q-n { opacity: 0.5; }

.q-n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  width: 16px;
}

.q-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--fg);
}

.q-status {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--border);
}

.q-status.done { background: rgba(0,212,170,0.1); color: var(--accent-dark); }
.q-status.in { background: rgba(26,43,74,0.08); color: var(--fg); }

.dash-ai {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.ai-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === STATS SECTION === */
.stats-section {
  background: var(--fg);
  padding: 3rem 2rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-block {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}

.stat-big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* === HOW SECTION === */
.how-section {
  padding: 6rem 2rem;
  background: var(--bg);
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 3rem;
}

.how-step {
  flex: 1;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.how-step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.how-step p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.how-arrow {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  padding-top: 5rem;
}

/* === FEATURES === */
.features-section {
  padding: 6rem 2rem;
  background: var(--bg-alt);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.feature-icon {
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === INSIGHT === */
.insight-section {
  padding: 6rem 2rem;
  background: var(--bg);
}

.insight-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.insight-quote {
  position: relative;
  padding: 2.5rem;
  background: var(--fg);
  border-radius: 16px;
}

.quote-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  line-height: 0.5;
  margin-bottom: 1.5rem;
}

blockquote {
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.insight-quote cite {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.insight-quote cite em {
  font-style: normal;
  color: var(--accent);
}

.insight-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.insight-body p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.insight-body em {
  color: var(--fg);
  font-style: italic;
}

/* === CLOSING === */
.closing-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #1a2b4a 0%, #0d1a30 100%);
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.closing-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.closing-vision {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.vision-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* === FORMS (shared) === */
.form-error {
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

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

input.error, select.error, textarea.error {
  border-color: #e53e3e !important;
}

.btn-primary {
  background: var(--accent);
  color: var(--fg);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* === DEMO FORM === */
.demo-section {
  padding: 4rem 0;
}

.demo-inner {
  max-width: 800px;
  margin: 0 auto;
}

.demo-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}

.demo-header {
  margin-bottom: 2rem;
}

.demo-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.demo-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
}

.demo-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.demo-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.demo-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
}

.demo-form .optional {
  font-weight: 400;
  font-style: italic;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  border-color: var(--accent);
}

.demo-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.demo-form select option { background: #1a2b4a; color: #fff; }

.demo-form textarea { resize: vertical; min-height: 80px; }

.demo-form .full { width: 100%; }

.demo-form .btn-primary { width: 100%; justify-content: center; margin-top: 0.5rem; }

.demo-success {
  text-align: center;
  padding: 2rem 1rem;
}

.demo-success svg { margin: 0 auto 1.25rem; display: block; }

.demo-success h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.demo-success p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

/* === NEWSLETTER FORM === */
.newsletter-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-input:focus { border-color: var(--accent); }

.newsletter-btn {
  background: var(--accent);
  color: var(--fg);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.newsletter-btn:hover { background: var(--accent-dark); }
.newsletter-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.newsletter-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
}

/* === FOOTER === */
.footer {
  background: var(--fg);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-visual { order: -1; }
  .dashboard-card { max-width: 100%; }
  .stat-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .how-steps { flex-direction: column; }
  .how-arrow { padding: 1rem 0; transform: rotate(90deg); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .insight-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .closing-vision { flex-direction: column; }
  .hero-proof { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .proof-divider { display: none; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}