/* =============================================================================
   VidaKey.ai — Main Stylesheet
   ============================================================================= */

/* ===== 1. CSS Variables ===== */
:root {
  --brand:       #c07a68;
  --brand-light: #D4A090;
  --brand-pale:  #F5E8E3;
  --brand-deep:  #4a0710;
  --brand-dark:  #7a1f23;
  --dark:        #1C1C28;
  --dark-warm:   #41201a;
  --teal:        #2A8F8F;
  --teal-light:  #E2F2F0;
  --off-white:   #fdf8f4;
  --cream:       #f7e1c7;
  --gray-100:    #f0d1b2;
  --gray-300:    #C4BFB9;
  --gray-500:    #6b3b3a;
  --gray-700:    #41201a;
  --green:       #3A9E6E;
  --amber:       #F4D39F;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'Nunito Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== 2. Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--gray-700);
  background: #fff;
  overflow-x: hidden;
}

/* ===== 3. Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up    { animation: fadeUp .8s ease-out both; }
.fade-up-d1 { animation-delay: .15s; }
.fade-up-d2 { animation-delay: .3s; }
.fade-up-d3 { animation-delay: .45s; }

/* ===== 4. Navigation ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-hamburger { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--brand-deep);
}

.lang-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: 6px;
  overflow: hidden;
  margin-right: 12px;
}

.lang-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--gray-500);
  font-family: var(--sans);
  transition: all .2s;
}

.lang-btn.active {
  background: var(--brand);
  color: #fff;
  border-radius: 5px;
}

/* ===== 5. Buttons ===== */
.btn-primary {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(122, 31, 35, .3);
}

.btn-secondary {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--sans);
  transition: all .2s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Nav CTA — extends .btn-primary with compact sizing */
.nav-links .nav-cta {
  color: #fff;
  padding: 10px 24px;
  font-size: 14px;
}

.nav-links .nav-cta:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* ===== 6. Mission Hero (Front Page) ===== */
.mission-hero {
  padding: 160px 2rem 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--off-white);
}

.mission-hero-content {
  max-width: 900px;
  margin: 0 auto;
  animation: fadeUp .8s ease-out both;
}

.mission-hero-label {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--brand-dark);
  padding-bottom: 16px;
  border-bottom: 3px solid var(--brand);
  display: inline-block;
  margin-bottom: 32px;
}

.mission-hero-headline {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.1;
  color: var(--brand-deep);
  margin-bottom: 32px;
  font-weight: 400;
}

.mission-hero-headline em {
  font-style: normal;
  color: var(--brand);
}

.mission-hero-sub {
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray-500);
  max-width: 680px;
  margin: 0 auto 16px;
}

.mission-hero-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-500);
  max-width: 680px;
  margin: 0 auto 40px;
  opacity: 0.85;
}

/* ===== 6b. Product Showcase ===== */
.products-section {
  padding-bottom: 80px;
}

.product-showcase {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 2rem 80px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.product-showcase-text {
  animation: fadeUp .8s ease-out both;
}

.product-showcase-headline {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.15;
  color: var(--brand-deep);
  margin-bottom: 24px;
  font-weight: 400;
}

.product-showcase-headline em {
  font-style: normal;
  color: var(--brand);
}

.product-showcase-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 480px;
}

/* ===== 7. Hero Section (legacy) ===== */
.hero {
  padding: 140px 2rem 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}

.hero-text {
  animation: fadeUp .8s ease-out both;
}

.hero-descriptor {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.12;
  color: var(--brand-dark);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 7. Hero Mockup ===== */
.hero-visual {
  animation: fadeUp .8s ease-out .2s both;
}

.mockup-container {
  background: var(--dark);
  border-radius: 16px;
  padding: 2px;
  box-shadow: 0 40px 80px rgba(28, 28, 40, .2), 0 16px 32px rgba(28, 28, 40, .1);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}

.mockup-container:hover {
  transform: perspective(1200px) rotateY(0) rotateX(0);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--brand-deep);
  border-radius: 14px 14px 0 0;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.r { background: #E85D50; }
.mockup-dot.y { background: #E8A838; }
.mockup-dot.g { background: #3A9E6E; }

.mockup-body {
  background: var(--off-white);
  border-radius: 0 0 14px 14px;
  padding: 20px;
  min-height: 380px;
  display: grid;
  grid-template-columns: 160px 1fr 180px;
  gap: 16px;
}

/* ===== 8. Simulator UI ===== */
.sim-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-sidebar-header {
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sim-sidebar-header.brand { color: var(--brand); }
.sim-sidebar-header.muted { color: var(--gray-300); }

.sim-divider {
  border-top: 1px solid var(--gray-100);
  margin: 8px 0;
}

.sim-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}

.sim-sidebar-item.active {
  background: var(--brand-pale);
  color: var(--brand-deep);
}

.sim-sidebar-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--gray-300);
  flex-shrink: 0;
}

.sim-sidebar-item.active .sim-sidebar-icon {
  background: var(--brand);
}

.sim-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-section-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sim-summary-block {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--gray-100);
}

.sim-text-line {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  margin-bottom: 6px;
}

.sim-text-line:last-child { margin-bottom: 0; }
.sim-text-line.short      { width: 65%; }
.sim-text-line.med        { width: 85%; }

.sim-citation {
  display: inline-block;
  font-size: 8px;
  background: var(--teal-light);
  color: var(--teal);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  margin: 2px 4px 2px 0;
}

.sim-timeline {
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  position: relative;
  overflow: hidden;
}

.sim-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--gray-100);
  z-index: 0;
}

.sim-tl-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.sim-tl-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  flex-shrink: 0;
}

.sim-tl-dot.active { border-color: var(--brand); background: var(--brand-pale); }
.sim-tl-dot.teal   { border-color: var(--teal);  background: var(--teal-light); }

.sim-tl-date {
  font-size: 7px;
  color: var(--gray-300);
  white-space: nowrap;
}

.sim-tl-card {
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  padding: 6px;
  width: 100%;
}

.sim-tl-card-title {
  font-size: 7px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 2px;
}

.sim-tl-card .sim-text-line {
  height: 4px;
  margin-bottom: 3px;
}

.sim-guideline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-guideline-card {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--gray-100);
  font-size: 9px;
}

.sim-guideline-title {
  font-size: 9px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 4px;
}

.sim-badge {
  display: inline-block;
  font-size: 7px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  background: var(--teal-light);
  color: var(--teal);
}

/* ===== 9. Trust Bar ===== */
.trust-bar {
  padding: 40px 2rem;
  margin: 0;
  background: var(--cream);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg  { width: 20px; height: 20px; }
.trust-icon.brand { background: var(--brand-pale); color: var(--brand); }
.trust-icon.teal  { background: var(--teal-light); color: var(--teal); }

.trust-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

/* ===== 10. Sections (general) ===== */
section {
  padding: 100px 2rem;
}

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

/* Page-level titles (nav destinations) */
.page-title {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.15;
  color: var(--brand-dark);
  margin-bottom: 12px;
  font-weight: 400;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--brand);
  display: inline-block;
}

/* Sub-section labels */
.section-label {
  font-size: 34px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.2;
  color: var(--brand-dark);
  margin-bottom: 20px;
  font-weight: 400;
}

.section-sub {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ===== 11. How It Works Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 16%; right: 16%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-pale), var(--brand-light), var(--brand-pale));
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  color: #fff;
}

.step-num.s1 { background: var(--brand); }
.step-num.s2 { background: var(--teal); }
.step-num.s3 { background: var(--gray-700); }

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== 12. Features Section ===== */
.feature-section {
  background: var(--off-white);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse     { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.feature-tag.live     { background: #E8F5EC; color: var(--green); }
.feature-tag.building { background: #FFF3DC; color: var(--amber); }

.feature-title {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--brand-deep);
  margin-bottom: 14px;
  font-weight: 400;
}

.feature-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
}

.feature-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== 13. Feature Mockups ===== */
.feat-mock {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--gray-100);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .05);
}

.feat-mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.feat-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
}

.feat-mock-label {
  margin-left: auto;
  font-size: 10px;
  color: var(--gray-300);
}

/* Calendar mockup */
.cal-mock-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gray-500);
  background: var(--off-white);
}

.cal-day.header {
  background: transparent;
  font-weight: 600;
  color: var(--gray-300);
  font-size: 9px;
}

.cal-day.has-event {
  background: var(--brand-pale);
  color: var(--brand-deep);
  font-weight: 600;
  position: relative;
}

.cal-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.cal-day.today {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.cal-day.today::after {
  background: #fff;
}

.cal-event-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-event {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--brand-pale);
  border-radius: 6px;
  border-left: 3px solid var(--brand);
  font-size: 10px;
  color: var(--brand-deep);
  font-weight: 500;
}

.cal-event-time {
  margin-left: auto;
  font-size: 9px;
  color: var(--gray-500);
  font-weight: 400;
}

/* Guideline mockup */
.guide-mock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-mock-item {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--gray-100);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: default;
  transition: all .2s;
}

.guide-mock-item:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.guide-mock-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.guide-mock-text { flex: 1; }

.guide-mock-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 3px;
}

.guide-mock-page {
  font-size: 10px;
  color: var(--gray-500);
}

.guide-mock-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--teal-light);
  color: var(--teal);
  white-space: nowrap;
}

/* ===== 14. Security Section ===== */
.security-section {
  background: linear-gradient(160deg, #E2F2F0 0%, #f0ebe6 100%);
  color: var(--dark);
}

.security-section .page-title { color: var(--dark); border-bottom-color: var(--teal); }
.security-section .section-title { color: var(--dark); }
.security-section .section-sub   { color: var(--gray-500); }

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.security-card {
  background: #fff;
  border: 1px solid rgba(42, 143, 143, .12);
  border-radius: 14px;
  padding: 28px;
}

.security-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.security-card-icon.brand { background: rgba(192, 122, 104, .2); }
.security-card-icon.teal  { background: rgba(42, 143, 143, .2); }
.security-card-icon.amber { background: rgba(232, 168, 56, .2); }

.security-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.security-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Architecture diagram */
.arch-diagram {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.arch-box {
  border-radius: 14px;
  padding: 24px;
  border: 2px dashed;
}

.arch-box.hospital {
  border-color: var(--teal);
  background: rgba(42, 143, 143, .08);
}

.arch-box.ai {
  border-color: var(--brand);
  background: rgba(192, 122, 104, .08);
}

.arch-box-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.arch-box.hospital .arch-box-title { color: var(--teal); }
.arch-box.ai .arch-box-title        { color: var(--brand-light); }

.arch-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-item {
  font-size: 12px;
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: 6px;
}

.arch-item::before {
  content: '•';
  color: var(--gray-500);
}

.arch-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 600;
}

.arch-arrow-line {
  font-size: 24px;
  color: var(--gray-300);
}

/* ===== 15. Mission Section ===== */
.mission-section .section-title {
  font-size: 36px;
  line-height: 1.3;
}

.mission-section .section-title em {
  font-style: normal;
  color: var(--brand);
}

.mission-section .section-sub {
  max-width: 680px;
  font-size: 17px;
}

.mission-divider {
  width: 60px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin: 0 auto 48px;
}

.beliefs-section {
  background: #fff;
}

.beliefs-title {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--brand-deep);
  text-align: center;
  margin-bottom: 48px;
  font-weight: 400;
}

.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.belief-card {
  background: var(--off-white);
  border-radius: 14px;
  padding: 32px;
  border: 1px solid var(--gray-100);
  transition: all .3s;
}

.belief-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
}

.belief-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.belief-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 10px;
}

.belief-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== 16. Vision Section ===== */
.vision-section {
  background: var(--dark);
  padding: 100px 2rem;
  color: #fff;
}

.vision-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.vision-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-light);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}

.vision-title {
  font-family: var(--serif);
  font-size: 36px;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 400;
}

.vision-sub {
  font-size: 17px;
  color: var(--gray-300);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.vision-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}

.vision-timeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: rgba(255, 255, 255, .1);
}

.vt-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  position: relative;
}

.vt-dot-wrap {
  flex-shrink: 0;
  width: 64px;
  display: flex;
  justify-content: center;
}

.vt-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid;
  position: relative;
  z-index: 1;
  background: var(--dark);
}

.vt-dot.now    { border-color: var(--brand); background: var(--brand); }
.vt-dot.next   { border-color: var(--brand-light); }
.vt-dot.future { border-color: var(--gray-500); }

.vt-content {
  flex: 1;
  padding-bottom: 8px;
}

.vt-phase {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.vt-phase.now    { color: var(--brand-light); }
.vt-phase.next   { color: var(--brand-light); }
.vt-phase.future { color: var(--gray-500); }

.vt-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.vt-desc {
  font-size: 14px;
  color: var(--gray-300);
  line-height: 1.7;
  max-width: 560px;
}

.vt-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 5px;
  margin-top: 10px;
}

.vt-tag.live    { background: rgba(58, 158, 110, .2); color: #6CD4A0; }
.vt-tag.building { background: rgba(232, 168, 56, .2); color: #F0C060; }
.vt-tag.planned  { background: rgba(255, 255, 255, .08); color: var(--gray-300); }

/* ===== 17. Values Section ===== */
.values-section {
  padding: 100px 2rem;
  background: var(--cream);
}

.values-section .section-inner {
  max-width: 900px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 8px;
  flex-shrink: 0;
}

.value-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 6px;
}

.value-item p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ===== 18. Team Section ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 32px;
  justify-content: center;
}

.team-card {
  background: var(--off-white);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all .3s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 24px;
  color: #fff;
}

.team-avatar.ceo    { background: var(--brand); }
.team-avatar.cto    { background: var(--teal); }
.team-avatar.hiring {
  background: var(--gray-300);
  border: 2px dashed var(--gray-500);
  color: var(--gray-500);
  font-size: 28px;
}

.team-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
}

.team-bio strong {
  color: var(--gray-700);
  font-weight: 600;
}

.team-contact-note {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.team-contact-note p {
  font-size: 15px;
  color: var(--gray-500);
  margin: 0;
}

/* ===== 19. CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, #2A2535 100%);
  text-align: center;
}

.cta-section h2 {
  font-family: var(--serif);
  font-size: 40px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 400;
}

.cta-section p {
  font-size: 17px;
  color: var(--gray-300);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-section .btn-primary {
  padding: 16px 40px;
  font-size: 17px;
}

.cta-email-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--gray-500);
}

.cta-email-note a {
  color: var(--brand-light);
}

/* ===== 20. Footer ===== */
footer {
  padding: 40px 2rem;
  background: var(--brand-deep);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

footer span {
  font-size: 13px;
  color: var(--off-white);
}

/* ===== 21. Responsive ===== */
@media (max-width: 900px) {
  .mission-hero {
    padding: 120px 2rem 60px;
    min-height: auto;
  }

  .mission-hero-headline {
    font-size: 34px;
  }

  .product-showcase {
    grid-template-columns: 1fr;
    padding: 40px 2rem 60px;
  }

  .product-showcase-headline {
    font-size: 32px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    min-height: auto;
  }

  .hero h1 { font-size: 36px; }

  .mockup-body { grid-template-columns: 1fr; }
  .sim-sidebar,
  .sim-guideline { display: none; }

  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .security-grid { grid-template-columns: 1fr; }
  .beliefs-grid  { grid-template-columns: 1fr; }
  .values-grid   { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: 1fr; }
  .arch-diagram  { grid-template-columns: 1fr; }

  .trust-inner { gap: 24px; }

  .page-title { font-size: 36px; }

  /* ===== Mobile nav with hamburger ===== */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
  }
  nav.mobile-open .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  nav.mobile-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
  }
  nav.mobile-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  nav { padding: 0 1rem; flex-wrap: wrap; }
  nav.mobile-open {
    background: #fff;
    height: auto;
    backdrop-filter: none;
    overflow: visible;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
    padding: 8px 0 16px;
    overflow: visible;
  }
  nav.mobile-open .nav-links { display: flex; }

  .nav-links a:not(.nav-cta) {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    color: var(--gray-700);
    text-align: center;
    width: 100%;
  }

  .nav-dropdown { display: block; width: 100%; }
  .nav-dropdown-trigger {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 12px 0;
    font-size: 15px;
    color: var(--gray-700);
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    opacity: 1;
    pointer-events: all;
    transform: none;
    padding: 0 0 0 12px;
    min-width: 0;
    width: auto;
    max-width: 100%;
    display: none;
    background: transparent;
    transition: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-menu a {
    padding: 10px 0;
    border-radius: 0;
  }
  .nav-dropdown-menu a + a {
    margin-top: 0;
  }
  .dd-product-name {
    font-size: 14px;
  }
  .dd-product-sub {
    font-size: 12px;
    word-break: break-word;
  }

  .lang-toggle { margin: 12px 0 8px; align-self: center; }
  .nav-links .nav-cta {
    padding: 12px 24px;
    font-size: 14px;
    text-align: center;
    align-self: stretch;
    justify-content: center;
  }

  .products-overview { grid-template-columns: 1fr; }
  .product-page-hero h1 { font-size: 32px; }
  .phr-pillars { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; align-items: center; }
  .waitlist-form input { width: 100%; max-width: 340px; }
}

/* ===== Nav Dropdown ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  transition: color .2s;
  background: none;
  border: none;
  font-family: var(--sans);
  padding: 0;
}

.nav-dropdown-trigger:hover {
  color: var(--brand-deep);
}

.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--brand-deep);
}

.nav-dropdown-chevron {
  width: 10px;
  height: 10px;
  transition: transform .2s;
}

.nav-dropdown.open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: -16px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 8px;
  min-width: 290px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 8px;
  transition: background .15s;
  text-decoration: none;
  gap: 2px;
  color: inherit;
}

.nav-dropdown-menu a + a {
  margin-top: 2px;
}

.nav-dropdown-menu a:hover {
  background: var(--brand-pale);
}

.dd-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 4px;
}

.dd-badge-live { background: #dcfce7; color: #166534; }
.dd-badge-dev  { background: var(--brand-pale); color: var(--brand-dark); }

.dd-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.dd-product-sub {
  font-size: 11px;
  color: var(--gray-300);
}

/* ===== Two-Product Overview Cards ===== */
.products-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0 64px;
}

@media (max-width: 900px) {
  .products-overview { grid-template-columns: 1fr; }
}

.product-card-overview {
  border: 1.5px solid var(--gray-100);
  border-radius: 16px;
  padding: 36px;
  background: #fff;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}

.product-card-overview:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  transform: translateY(-3px);
}

.product-card-overview.b2b { border-top: 4px solid var(--teal); background: var(--off-white); }
.product-card-overview.b2c { border-top: 4px solid var(--brand); }

.pco-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 10px;
}

.pco-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

.pco-badge-live { background: #dcfce7; color: #166534; }
.pco-badge-dev  { background: var(--brand-pale); color: var(--brand-dark); }

.pco-title {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.2;
  font-weight: 400;
}

.pco-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 28px;
}

.pco-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-teal:hover {
  background: #1f7272;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,143,143,.3);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
}

.section-divider-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-300);
  text-align: center;
  padding: 20px 0 8px;
  border-top: 1px solid var(--gray-100);
  margin-bottom: 0;
}

/* ===== Product Page (standalone pages) ===== */
.product-page-hero {
  padding: 130px 2rem 80px;
  background: var(--off-white);
  text-align: center;
}

.product-page-hero .breadcrumb {
  font-size: 13px;
  color: var(--gray-300);
  margin-bottom: 24px;
}

.product-page-hero .breadcrumb a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color .2s;
}

.product-page-hero .breadcrumb a:hover { color: var(--brand); }

.product-page-hero .product-type-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 12px;
}

.product-page-hero .product-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.badge-live { background: #dcfce7; color: #166534; }
.badge-dev  { background: var(--brand-pale); color: var(--brand-dark); }

.product-page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  color: var(--brand-deep);
  max-width: 800px;
  margin: 0 auto 22px;
  line-height: 1.1;
  font-weight: 400;
}

.product-page-hero h1 em {
  color: var(--brand);
  font-style: normal;
}

.product-page-hero .hero-sub {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--gray-500);
  line-height: 1.7;
}

.product-page-hero .hero-actions {
  justify-content: center;
}

/* ===== Patient Health Record — Coming Soon Page ===== */
.phr-coming-section {
  padding: 80px 2rem;
  background: #fff;
}

.phr-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 48px 0 64px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.phr-pillar {
  background: var(--off-white);
  border-radius: 14px;
  padding: 28px 28px 24px;
  border: 1px solid var(--gray-100);
  transition: box-shadow .2s;
}

.phr-pillar:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.07);
}

.phr-pillar-icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.phr-pillar h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.phr-pillar p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.65;
}

.waitlist-box {
  background: var(--off-white);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--gray-100);
}

.waitlist-box h3 {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 400;
}

.waitlist-box p {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.6;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.waitlist-form input[type="email"] {
  padding: 12px 18px;
  border: 1.5px solid var(--gray-100);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--sans);
  width: 260px;
  color: var(--dark);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--teal);
}

.waitlist-note {
  font-size: 12px;
  color: var(--gray-300);
  margin-top: 12px;
}

/* ===== Patient Health Record — Feature Sections ===== */
.phr-flow-section {
  padding: 80px 2rem 60px;
  background: #fff;
}

.phr-infographic {
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.phr-features-section {
  padding: 80px 2rem;
  background: var(--off-white);
}

.phr-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.phr-feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 24px 28px;
  border: 1px solid var(--gray-100);
  text-align: center;
  transition: box-shadow .2s;
}

.phr-feature-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.07);
}

.phr-feature-icon {
  margin-bottom: 16px;
}

.phr-feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.phr-feature-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.65;
}

.phr-upcoming-section {
  padding: 80px 2rem;
  background: #fff;
}

.phr-chat-preview {
  margin-top: 8px;
}

.phr-model-section {
  padding: 80px 2rem;
  background: var(--off-white);
}

.phr-b2b2c-flow {
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .phr-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .phr-features-grid {
    grid-template-columns: 1fr;
  }
}
