:root {
  --ink: #12262b;
  --teal-deep: #0f3d3e;
  --teal: #16545a;
  --teal-soft: #e4f0ef;
  --paper: #faf9f6;
  --gold: #c98a3e;
  --coral: #c9603e;
  --muted: #5c6f70;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(15, 61, 62, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.section-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #0c2f30 0%, #123b3d 60%, #16545a 100%);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: float 14s ease-in-out infinite;
}
.blob-a { width: 320px; height: 320px; background: #2fa4a0; top: -60px; left: -80px; }
.blob-b { width: 260px; height: 260px; background: #c98a3e; bottom: -60px; right: -40px; animation-delay: -4s; }
.blob-c { width: 200px; height: 200px; background: #5fd0c8; top: 40%; right: 20%; animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.logo {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  opacity: 0;
  animation: logo-in 1s ease-out 0.15s forwards;
}

@keyframes logo-in {
  from { opacity: 0; transform: translateY(18px); letter-spacing: 0.15em; }
  to   { opacity: 1; transform: translateY(0); letter-spacing: -0.02em; }
}

.hero-nav {
  margin-top: 18px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfe4e2;
  opacity: 0;
  animation: fade-up 0.8s ease-out 0.6s forwards;
}

.hero-nav a { position: relative; padding: 4px 2px; }
.hero-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.hero-nav a:hover::after { transform: scaleX(1); }
.hero-nav a:hover { color: #fff; }
.hero-nav .dot { margin: 0 10px; opacity: 0.5; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  margin: 46px auto 0;
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  position: relative;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { opacity: 1; transform: translateY(0); }
  70%  { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ============ SECTIONS shared ============ */
.section { padding: 96px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--teal-deep);
}
.section-title em { color: var(--coral); font-style: normal; }
.section-sub {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ WHAT WE DO ============ */
.what-we-do { background: var(--paper); }

.value-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.value-card {
  background: #fff;
  border: 1px solid #e6e2d8;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 61, 62, 0.18);
}
.value-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: inline-block;
  animation: bob 3.5s ease-in-out infinite;
}
.value-card:nth-child(2) .value-icon { animation-delay: -0.8s; }
.value-card:nth-child(3) .value-icon { animation-delay: -1.6s; }
.value-card:nth-child(4) .value-icon { animation-delay: -2.4s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-4deg); }
}

.value-card h3 {
  margin: 0 0 8px;
  color: var(--teal-deep);
  font-size: 1.1rem;
}
.value-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ============ LAB PRACTICE ============ */
.lab-practice { background: var(--teal-soft); }

.chat-stage {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 760px) {
  .chat-stage { grid-template-columns: 1fr; }
  .chat-column { display: flex; justify-content: center; }
}

.avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: sticky;
  top: 24px;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.25s ease;
}
.avatar.talking { animation: talk-pulse 0.6s ease; }
@keyframes talk-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.book-badge {
  position: absolute;
  bottom: -4px;
  right: -6px;
  background: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: scale(0.6) rotate(-10deg);
  transition: all 0.3s ease;
}
.book-badge.active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  animation: flip 1.1s ease-in-out infinite;
}
@keyframes flip {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

.avatar-name {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-deep);
}
.avatar-name span {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-log {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-placeholder {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin-top: 40px;
}

.bubble {
  max-width: 78%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.96rem;
  opacity: 0;
  transform: scale(0.85) translateY(10px);
  animation: pop-in 0.35s cubic-bezier(.34,1.56,.64,1) forwards;
  box-shadow: 0 6px 16px rgba(15,61,62,0.10);
}
@keyframes pop-in {
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.bubble.patient {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #dfe7e6;
  border-bottom-left-radius: 4px;
  color: var(--ink);
}

.bubble.coach {
  align-self: flex-end;
  background: var(--teal-deep);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble .theory-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.15);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
  color: #ffe4c2;
}

.bubble.searching {
  align-self: flex-end;
  background: #dce9e8;
  color: var(--muted);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot-flash { display: inline-flex; gap: 3px; }
.dot-flash span {
  width: 5px; height: 5px;
  background: var(--muted);
  border-radius: 50%;
  animation: dot-flash 1s infinite ease-in-out;
}
.dot-flash span:nth-child(2) { animation-delay: 0.15s; }
.dot-flash span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-flash {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

.prompt-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prompt-btn {
  border: 1px solid var(--teal);
  background: #fff;
  color: var(--teal-deep);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.prompt-btn:hover:not(:disabled) {
  background: var(--teal-deep);
  color: #fff;
  transform: translateY(-2px);
}
.prompt-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.prompt-reset {
  border-color: var(--coral);
  color: var(--coral);
  margin-left: auto;
}
.prompt-reset:hover { background: var(--coral); color: #fff; }

.disclaimer {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--muted);
  background: #fff3e6;
  border: 1px solid #f0d7ad;
  padding: 14px 18px;
  border-radius: 12px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--teal-deep);
  color: #cfe4e2;
  padding: 56px 0;
  text-align: center;
}
.logo-small {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.footer-links { margin-top: 16px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer .dot { margin: 0 10px; opacity: 0.5; }
