/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:     #0F1F3D;
  --navy-mid: #1a3356;
  --teal:     #0EA5A0;
  --teal-lt:  #14c2bf;
  --amber:    #F59E0B;
  --amber-lt: #fbbf24;
  --cream:    #F7F5F0;
  --off-white:#FAFAF8;
  --charcoal: #1C1C2E;
  --muted:    #6B7280;
  --border:   rgba(15,31,61,0.1);

  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--teal);
  border-radius: 6px;
  position: relative;
}

.brand-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--amber);
  border-radius: 2px;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,160,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,160,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* geometric accent shapes */
.hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: 10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: -120px;
  bottom: 5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,160,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(14,165,160,0.08);
  border: 1px solid rgba(14,165,160,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #3D4F6A;
  max-width: 640px;
  margin-bottom: 48px;
  font-weight: 300;
}

/* AI pulse indicator */
.hero-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  position: relative;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  animation: pulse-expand 2.5s ease-out infinite;
  opacity: 0.6;
}

@keyframes pulse-expand {
  0%   { transform: translateY(-50%) scale(1);   opacity: 0.6; }
  100% { transform: translateY(-50%) scale(8);   opacity: 0;   }
}

/* === PILLARS === */
.pillars {
  padding: 100px 40px;
  background: var(--cream);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.pillar-card {
  background: white;
  border-radius: 20px;
  padding: 40px 36px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(15,31,61,0.1);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.pillar-card--ai::before    { background: var(--teal); }
.pillar-card--nav::before  { background: var(--amber); }
.pillar-card--ehr::before  { background: var(--navy); }

.pillar-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
}

.pillar-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.pillar-desc {
  font-size: 0.925rem;
  line-height: 1.65;
  color: #4A5568;
  margin-bottom: 20px;
}

.pillar-tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-tags li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy-mid);
  padding-left: 16px;
  position: relative;
}

.pillar-card--ai .pillar-tags li::before    { content: '→'; position: absolute; left: 0; color: var(--teal); }
.pillar-card--nav .pillar-tags li::before  { content: '→'; position: absolute; left: 0; color: var(--amber); }
.pillar-card--ehr .pillar-tags li::before  { content: '→'; position: absolute; left: 0; color: var(--navy); }

/* === OUTCOMES === */
.outcomes {
  padding: 100px 40px;
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}

.outcomes::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,160,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.outcomes-header {
  max-width: 700px;
  margin: 0 auto 64px;
  text-align: center;
}

.outcomes-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.outcomes-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  font-weight: 300;
}

.outcomes-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.stat {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
}

.stat-value {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--teal-lt);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-bottom: 6px;
}

.stat-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}

/* === PHILOSOPHY === */
.philosophy {
  padding: 80px 40px;
  background: var(--cream);
  display: flex;
  justify-content: center;
}

.philosophy-inner {
  max-width: 720px;
  text-align: center;
}

.philosophy-quote-mark {
  font-family: var(--font-head);
  font-size: 6rem;
  line-height: 1;
  color: var(--teal);
  opacity: 0.2;
  margin-bottom: -20px;
}

.philosophy-text {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-style: normal;
  margin-bottom: 32px;
}

.philosophy-attr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.attr-line {
  width: 40px;
  height: 1px;
  background: var(--muted);
  opacity: 0.4;
}

.philosophy-attr span {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === CLOSING === */
.closing {
  padding: 100px 40px;
  background: white;
}

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

.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.closing-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4A5568;
  font-weight: 300;
}

/* === FOOTER === */
.footer {
  padding: 48px 40px 40px;
  background: var(--navy);
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer .brand-mark {
  background: rgba(255,255,255,0.15);
}

.footer .brand-mark::after {
  background: var(--teal);
}

.footer .brand-name {
  color: white;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}

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

.footer-domain {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
  font-family: monospace;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .outcomes-stats { grid-template-columns: 1fr; }
  .navbar { padding: 16px 20px; }
  .hero { padding: 100px 20px 60px; }
  .pillars { padding: 60px 20px; }
  .outcomes { padding: 60px 20px; }
  .philosophy { padding: 60px 20px; }
  .closing { padding: 60px 20px; }
  .nav-tagline { display: none; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 2.2rem; }
  .stat-value { font-size: 2.4rem; }
  .pillar-card { padding: 28px 24px; }
}