/* ============================================================
   HARMONI — AI Medical Interpretation
   Design tokens derived from the Harmony.fig design system
   ============================================================ */
:root {
  /* Brand */
  --ink: #0F172B;
  --teal-900: #055963;
  --teal-800: #0d6b73;
  --teal-700: #396A70;
  --teal-600: #4F8A91;
  --teal-500: #548D93;
  --teal-300: #6FAEB5;
  --teal-200: #A3D7DD;
  --teal-tint: rgba(163, 215, 221, 0.44);

  --slate-900: #1D293D;
  --slate-800: #314158;
  --slate-700: #45556C;
  --slate-600: #62748E;
  --slate-400: #90A1B9;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --bg: #F2F5F9;

  --purple: #7C3AED;
  --purple-600: #7008E7;
  --purple-300: #A78BFA;
  --purple-50: #F2EBFF;
  --amber: #F59E0B;
  --amber-100: #FEF3C6;
  --green: #007A55;
  --mint: #D0FAE5;
  --red: #E5484D;

  --white: #ffffff;

  /* Type */
  --font-display: "Montserrat", -apple-system, system-ui, sans-serif;
  --font: "Inter", -apple-system, system-ui, sans-serif;

  /* Shape */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Shadow */
  --sh-sm: 0 1px 2px -1px rgba(0,0,0,.1), 0 1px 3px 0 rgba(0,0,0,.08);
  --sh-md: 0 10px 30px -12px rgba(15,42,52,.22);
  --sh-lg: 0 30px 80px -24px rgba(16,92,54,.30);
  --sh-glow: 0 20px 60px -18px rgba(5,89,99,.35);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

.wrap { width: min(1200px, 92vw); margin: 0 auto; }

/* page-wide soft background field */
.bg-field {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 18% -8%, var(--teal-tint), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(124,58,237,.06), transparent 55%),
    linear-gradient(180deg, #eef5f6 0%, var(--bg) 38%, var(--bg) 100%);
  transition: transform .4s var(--ease);
}
.bg-dots {
  position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background: url("assets/bg-texture.png") center / cover no-repeat;
  opacity: .5; mix-blend-mode: multiply;
}

/* ---------- soft glow cursor (desktop only) ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 28px; height: 28px;
  border-radius: 50%; pointer-events: none; z-index: 9999;
  background: radial-gradient(circle, rgba(84,141,147,.55), rgba(84,141,147,0) 70%);
  transform: translate(-50%, -50%); mix-blend-mode: multiply;
  transition: width .25s var(--ease), height .25s var(--ease), opacity .3s;
  will-change: transform; opacity: 0;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  transition: top .4s var(--ease);
}
.nav-pill {
  width: min(1180px, 94vw);
  display: flex; align-items: center; gap: 28px;
  padding: 12px 14px 12px 26px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  box-shadow: var(--sh-md);
  transition: padding .4s var(--ease), box-shadow .4s var(--ease), width .4s var(--ease);
}
.nav.scrolled .nav-pill { padding-top: 9px; padding-bottom: 9px; box-shadow: 0 14px 40px -16px rgba(15,42,52,.3); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: .14em; font-size: 18px; color: var(--ink); }
.brand-glyph {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--teal-500), var(--teal-900));
  box-shadow: 0 4px 12px -4px rgba(5,89,99,.5);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: var(--slate-700); transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--slate-100); color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; color: #fff;
  background: var(--ink); box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease-spring), box-shadow .25s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(15,23,43,.5); }
.nav-burger { display: none; }

/* =====================================================
   HERO (dark)
   ===================================================== */
.hero {
  position: relative; padding: 180px 0 0; overflow: hidden;
  background:
    radial-gradient(1000px 620px at 78% 18%, rgba(13,107,115,.55), transparent 62%),
    radial-gradient(800px 500px at 8% 6%, rgba(111,174,181,.18), transparent 60%),
    linear-gradient(165deg, #032f35 0%, #054852 46%, #06363d 100%);
}
.hero-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-glow {
  position: absolute; left: 60%; top: 30%; width: 620px; height: 620px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(163,215,221,.18), transparent 66%); filter: blur(10px); z-index: 0; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px; align-items: start;
}
.hero-copy { padding-top: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(163,215,221,.28);
  font-size: 13.5px; font-weight: 500; color: var(--teal-200);
  backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(46px, 6.6vw, 88px); line-height: .98; letter-spacing: -.045em;
  color: #fff; margin: 22px 0 0; text-wrap: balance;
}
.hero h1 .accent { color: var(--teal-200); }
.hero-sub {
  margin-top: 24px; max-width: 540px; font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55; color: rgba(226,242,244,.82); text-wrap: pretty;
}
.hero-form {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 7px 7px 22px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(163,215,221,.3);
  box-shadow: var(--sh-md); max-width: 480px; width: 100%; backdrop-filter: blur(10px);
}
.hero-form input {
  flex: 1; border: none; outline: none; background: none; min-width: 0;
  font-family: var(--font); font-size: 16px; color: #fff;
}
.hero-form input::placeholder { color: rgba(226,242,244,.6); }
.hero-form button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--teal-900);
  background: #fff; white-space: nowrap;
  transition: transform .25s var(--ease-spring), box-shadow .25s;
}
.hero-form button:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(0,0,0,.4); }
.trust { margin-top: 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.trust span { font-size: 13.5px; color: rgba(226,242,244,.78); display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 16px; height: 16px; border-radius: 5px;
  background: rgba(52,211,153,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }

/* hero bot — bigger + top aligned with heading */
.hero-bot { position: relative; height: 560px; perspective: 1200px; }
.bot-stage { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .2s var(--ease); }
.bot-halo {
  position: absolute; left: 52%; top: 42%; width: 520px; height: 520px;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(163,215,221,.42), rgba(163,215,221,0) 66%);
  filter: blur(8px);
}
.bot {
  position: absolute; left: 52%; top: 6px; width: 440px; max-width: 96%;
  transform: translateX(-50%);
  filter: drop-shadow(0 44px 60px rgba(0,0,0,.4));
  will-change: transform;
  transition: filter .4s var(--ease);
}
.bot-float { animation: botFloat 6s ease-in-out infinite; }
@keyframes botFloat {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-16px); }
}

/* ---- hero feature widgets (real popup UI) ---- */
.hw {
  position: absolute; z-index: 4; background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.7); border-radius: 18px;
  box-shadow: 0 26px 60px -22px rgba(0,0,0,.55); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease-spring);
}
.hw.show { opacity: 1; transform: translateY(0) scale(1); }
.hw-lang { left: -3%; top: 232px; width: 196px; padding: 13px; animation: floaty 7.5s ease-in-out infinite; }
.hw-lang .hw-title { font-size: 13px; }
.hw-lang .hw-count { font-size: 10.5px; padding: 2px 7px; }
.hw-lang .hw-search { margin-top: 10px; padding: 7px 9px; font-size: 11.5px; }
.hw-lang .hw-list { margin-top: 7px; }
.hw-lang .hw-list li { padding: 6px 8px; font-size: 12.5px; gap: 8px; }
.hw-lang .hw-list .fl { font-size: 15px; }
.hw-lang .hw-list .chk { width: 17px; height: 17px; border-radius: 6px; }
.hw-head { display: flex; align-items: center; justify-content: space-between; }
.hw-title { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--ink); }
.hw-title svg { color: var(--teal-600); }
.hw-count { font-size: 11.5px; font-weight: 600; color: var(--teal-700); background: var(--teal-tint); padding: 3px 8px; border-radius: 999px; }
.hw-search { margin-top: 12px; display: flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 10px; background: var(--slate-100); color: var(--slate-400); font-size: 12.5px; }
.hw-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hw-list li { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--slate-800); cursor: pointer; transition: background .15s; }
.hw-list li:hover { background: var(--slate-100); }
.hw-list .fl { font-size: 17px; }
.hw-list .chk { margin-left: auto; width: 20px; height: 20px; border-radius: 7px; border: 2px solid var(--slate-200); flex: none; transition: all .2s; }
.hw-list .chk.on { background: var(--teal-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--teal-600); }

.hw-live { right: -7%; bottom: 70px; width: 250px; padding: 16px; animation: floaty 8.5s ease-in-out infinite .6s; }
.hw-live-top { display: flex; align-items: center; justify-content: space-between; }
.hw-live .rec { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--red); }
.hw-live .rd { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.4s ease-in-out infinite; }
.hw-live-lang { font-size: 12px; font-weight: 700; color: var(--teal-700); background: var(--teal-tint); padding: 3px 9px; border-radius: 999px; }
.hw-live-src { margin-top: 12px; font-size: 14px; color: var(--slate-500); }
.hw-live-out { margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--ink); min-height: 22px; }
.hw-live-out .caret { background: var(--teal-600); }
.hw-wave { margin-top: 12px; display: flex; align-items: center; gap: 3px; height: 24px; }
.hw-wave i { flex: 1; border-radius: 2px; background: var(--teal-300); }

/* floating mini chip */
.bot-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
  padding: 10px 14px 10px 11px; background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.7); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5);
  font-size: 13px; font-weight: 600; color: var(--slate-800);
  backdrop-filter: blur(8px);
}
.bot-chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.bot-chip.c2 { left: 50%; bottom: -6px; animation: floaty 8s ease-in-out infinite 1.1s; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }

/* ---- stats band (merged into hero) ---- */
.stats {
  position: relative; z-index: 2; margin-top: 8px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 40px 0 52px;
}
.stat { text-align: center; padding: 0 18px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 46px; background: linear-gradient(180deg, transparent, rgba(163,215,221,.28), transparent);
}
.stat-num {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(32px, 4vw, 50px); color: #fff; line-height: 1;
  display: flex; align-items: baseline; justify-content: center;
}
.stat-num .stat-static { color: var(--teal-200); }
.stat-label {
  margin-top: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(163,215,221,.78);
}

/* light section-head variant on dark backgrounds */
.section-head.light .kicker { color: var(--teal-200); }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(226,242,244,.78); }

/* =====================================================
   SHOWCASE (Apple-style dashboard reveal)
   ===================================================== */
.showcase { position: relative; padding: 40px 0 90px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-600);
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(30px, 4vw, 50px); line-height: 1.04; color: var(--ink); margin-top: 14px; text-wrap: balance;
}
.section-head p { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--slate-600); text-wrap: pretty; }

.stage-3d { perspective: 1800px; }
.app-window {
  width: min(1080px, 94vw); margin: 0 auto;
  border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff 50%, #eef2f7 100%);
  box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: 88px 1fr;
  transform-style: preserve-3d;
  will-change: transform;
}

/* sidebar */
.app-side {
  margin: 12px; border-radius: 26px; background: var(--teal-900);
  display: flex; flex-direction: column; align-items: center; padding: 22px 0;
  gap: 18px;
}
.app-side .add {
  width: 40px; height: 40px; border-radius: 14px; background: #fff; color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--sh-sm);
}
.app-side .divider { width: 24px; height: 1px; background: rgba(255,255,255,.16); }
.app-side .sicon { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: rgba(255,255,255,.6); transition: background .2s, color .2s; }
.app-side .sicon:hover { background: rgba(255,255,255,.1); color: #fff; }
.app-side .spacer { flex: 1; }
.app-side .avatar { width: 40px; height: 40px; border-radius: 14px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.app-side .avatar .g { width: 26px; height: 26px; border-radius: 8px; background: var(--teal-500); display:grid; place-items:center; color:#fff; font-size: 11px; font-weight:700; }

/* main panel */
.app-main { padding: 26px 30px 30px; position: relative; }
.app-top { display: flex; align-items: center; gap: 16px; }
.model-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px;
  border: 1px solid var(--slate-200); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--slate-800);
  background: #fff;
}
.app-top .center { flex: 1; text-align: center; font-size: 16px; color: var(--slate-400); font-weight: 500; }
.upgrade {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px;
  background: var(--ink); color: #fff; border-radius: 999px; font-size: 15px; font-weight: 600;
}
.upgrade .me { width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--teal-900); display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.greet { margin-top: 30px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.25; color: var(--ink); letter-spacing: -.01em; }
.greet .muted { color: var(--ink); }

.cards { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fcard {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 20px; padding: 22px;
  box-shadow: 0 8px 24px -18px rgba(15,42,52,.4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.fcard .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.fcard .ic.amber { background: linear-gradient(140deg, #fbbf24, var(--amber)); }
.fcard .ic.purple { background: linear-gradient(140deg, var(--purple-300), var(--purple)); }
.fcard .ic.teal { background: linear-gradient(140deg, var(--teal-300), var(--teal-600)); }
.fcard p { margin-top: 18px; font-size: 16.5px; line-height: 1.45; color: var(--slate-800); min-height: 72px; }
.fcard .tag { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--slate-400); }

.mic-panel {
  margin-top: 18px; background: linear-gradient(180deg, #fff, #f8fafc); border: 1px solid var(--slate-200);
  border-radius: 22px; padding: 22px 26px 26px; position: relative;
}
.mic-panel .mtop { display: flex; justify-content: space-between; font-size: 15px; color: var(--slate-400); }
.mic-panel .mtop .pw { color: var(--teal-600); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.mic-wrap { display: grid; place-items: center; padding: 16px 0 8px; }
.mic-btn {
  width: 66px; height: 66px; border-radius: 50%; background: var(--teal-500); color: #fff;
  display: grid; place-items: center; position: relative; box-shadow: 0 12px 26px -10px rgba(84,141,147,.7);
}
.mic-btn::before, .mic-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal-300);
  animation: micPulse 2.4s ease-out infinite;
}
.mic-btn::after { animation-delay: 1.2s; }
@keyframes micPulse { 0%{ transform: scale(1); opacity: .7;} 100%{ transform: scale(1.9); opacity: 0;} }
.mic-cap { text-align: center; font-size: 15px; color: var(--slate-400); margin-top: 6px; }
.quick { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.quick button {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500;
  transition: transform .2s var(--ease-spring), opacity .2s;
}
.quick button:hover { transform: translateY(-2px); }

/* floating bot in app */
.app-bot {
  position: absolute; right: -8px; top: 64px; width: 120px; z-index: 5;
  filter: drop-shadow(0 16px 22px rgba(5,89,99,.25));
  animation: floaty 6s ease-in-out infinite;
}
.app-bot-bubble {
  position: absolute; right: 96px; top: 78px; z-index: 6;
  background: #fff; border: 1px solid rgba(226,232,240,.8); border-radius: 16px 16px 12px 16px;
  padding: 10px 15px; box-shadow: var(--sh-md); font-size: 14px; max-width: 180px;
}
.app-bot-bubble .s { color: var(--slate-500); font-weight: 500; }
.app-bot-bubble .m { color: var(--ink); font-weight: 600; }

/* =====================================================
   TRANSCRIPT DEMO
   ===================================================== */
.transcript-section { padding: 80px 0 96px; }
.transcript-dark {
  position: relative;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(13,107,115,.5), transparent 60%),
    linear-gradient(165deg, #05343b, #06262c);
}
.transcript-dark::before { content: ""; position: absolute; inset: 0; background: url("assets/bg-texture.png") center/cover; opacity: .12; pointer-events: none; }
.tr-window {
  width: min(980px, 94vw); margin: 0 auto;
  background: #fff; border: 1px solid var(--slate-200); border-radius: 26px; overflow: hidden;
  box-shadow: var(--sh-lg); display: grid; grid-template-columns: 78px 1fr;
}
.tr-side { background: var(--teal-900); display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 0; }
.tr-side .sicon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: rgba(255,255,255,.6); }
.tr-side .sicon.active { background: #fff; color: var(--teal-900); }
.tr-side .spacer { flex: 1; }
.tr-main { padding: 22px 26px 0; display: flex; flex-direction: column; min-height: 520px; }
.tr-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tr-head .back { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--slate-200); display: grid; place-items: center; color: var(--slate-600); }
.tr-head h3 { font-size: 21px; font-weight: 700; color: var(--ink); }
.rec-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px; background: #FEECEC; color: var(--red); font-size: 13.5px; font-weight: 600; }
.rec-badge .rdot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100%{ opacity:1;} 50%{ opacity:.25;} }
.ai-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: var(--purple-50); color: var(--purple); font-size: 13.5px; font-weight: 600; }
.tr-search { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border: 1px solid var(--slate-200); border-radius: 999px; color: var(--slate-400); font-size: 14.5px; }
.add-notes { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; }

.tr-label { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 6px; }
.tr-label .t { font-size: 17px; color: var(--slate-500); font-weight: 500; }
.tr-label .lang { font-size: 15px; font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.tr-list { flex: 1; display: flex; flex-direction: column; }
.bubble {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: start;
  padding: 16px 4px; border-bottom: 1px solid var(--slate-100);
  opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.bubble.show { opacity: 1; transform: translateY(0); }
.bubble .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.bubble .av.dr { background: var(--mint); color: var(--green); }
.bubble .av.ma { background: var(--amber-100); color: #B45309; }
.bubble .av.ai { background: var(--purple-50); color: var(--purple); }
.bubble .txt { font-size: 18px; line-height: 1.5; color: var(--slate-900); }
.bubble .txt.tl { color: var(--slate-500); }
.bubble .txt b { color: var(--ink); font-weight: 700; }
.bubble .txt.tl b { color: var(--purple); }
.bubble .time { font-size: 15px; color: var(--slate-400); white-space: nowrap; padding-top: 2px; }
.analyze { margin-top: 9px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--purple-50); color: var(--purple); font-size: 14px; font-weight: 600; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--teal-600); margin-left: 1px; vertical-align: -2px; animation: blink 1s step-end infinite; }

/* waveform timeline */
.tr-timeline { margin: 14px -26px 0; padding: 16px 26px; background: var(--teal-900); display: flex; align-items: center; gap: 16px; border-radius: 18px 18px 0 0; }
.tl-time { color: rgba(255,255,255,.7); font-size: 14px; font-variant-numeric: tabular-nums; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 34px; }
.wave i { flex: 1; background: rgba(255,255,255,.32); border-radius: 2px; height: 30%; transform-origin: center; }
.wave i.on { background: var(--teal-200); }
.tl-now { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; background: #fff; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); }
.tl-now .g { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* =====================================================
   FEATURES
   ===================================================== */
.features { padding: 80px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.feat {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--r-lg); padding: 30px;
  box-shadow: 0 10px 30px -22px rgba(15,42,52,.5);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.feat .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 22px; }
.feat h3 { font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.feat p { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--slate-600); }
.feat .meta { margin-top: 20px; display: flex; gap: 18px; }
.feat .meta b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--teal-700); letter-spacing: -.02em; }
.feat .meta span { font-size: 13px; color: var(--slate-400); }

/* =====================================================
   DEMOS (voice + SOAP)
   ===================================================== */
.demos { padding: 30px 0 90px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.demo-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--r-xl); padding: 32px;
  box-shadow: var(--sh-md); position: relative; overflow: hidden;
}
.demo-card .dlabel { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); }
.demo-card h3 { font-size: 24px; font-weight: 700; color: var(--ink); margin-top: 12px; letter-spacing: -.01em; }
.demo-card .dsub { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--slate-600); }

/* voice demo */
.voice-stage { margin-top: 28px; display: grid; place-items: center; gap: 18px; padding: 14px 0; }
.voice-orb {
  width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--teal-300), var(--teal-600));
  position: relative; box-shadow: 0 18px 40px -14px rgba(84,141,147,.7);
}
.voice-orb .ring { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--teal-300); animation: micPulse 2.6s ease-out infinite; }
.voice-orb .ring.d2 { animation-delay: 1.3s; }
.eq { display: flex; align-items: center; gap: 5px; height: 46px; }
.eq i { width: 6px; border-radius: 4px; background: var(--teal-500); height: 18%; }
.voice-line { text-align: center; }
.voice-line .src { font-size: 17px; color: var(--slate-500); }
.voice-line .out { margin-top: 8px; font-size: 19px; font-weight: 600; color: var(--ink); min-height: 26px; }
.voice-line .out b { color: var(--teal-700); }
.processing { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--purple); font-weight: 600; }
.processing .ld { display: inline-flex; gap: 4px; }
.processing .ld i { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); animation: ld 1s ease-in-out infinite; }
.processing .ld i:nth-child(2){ animation-delay:.15s; } .processing .ld i:nth-child(3){ animation-delay:.3s; }
@keyframes ld { 0%,100%{ transform: translateY(0); opacity:.4;} 50%{ transform: translateY(-5px); opacity:1;} }

/* soap demo */
.soap { margin-top: 26px; background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: 18px; padding: 22px; font-size: 15.5px; min-height: 280px; }
.soap .row { display: flex; gap: 12px; margin-bottom: 18px; opacity: 0; transform: translateY(8px); transition: all .5s var(--ease); }
.soap .row.show { opacity: 1; transform: translateY(0); }
.soap .k { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--teal-900); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.soap .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); }
.soap .body { margin-top: 4px; color: var(--slate-800); line-height: 1.5; }
.soap .body mark { background: var(--amber-100); color: #92400E; padding: 1px 4px; border-radius: 4px; font-weight: 600; }

/* =====================================================
   PRICING
   ===================================================== */
/* =====================================================
   TEAMS (dark)
   ===================================================== */
.teams { padding: 88px 0 96px; }
.teams-dark {
  position: relative;
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(13,107,115,.5), transparent 60%),
    linear-gradient(165deg, #06363d, #053036);
}
.teams-dark::before { content: ""; position: absolute; inset: 0; background: url("assets/bg-texture.png") center/cover; opacity: .1; pointer-events: none; }
.teams-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(163,215,221,.2); border-radius: var(--r-lg);
  padding: 26px; backdrop-filter: blur(8px);
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.team-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); border-color: rgba(163,215,221,.4); }
.team-card .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 20px; }
.team-card h3 { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.team-card p { margin-top: 11px; font-size: 15px; line-height: 1.55; color: rgba(226,242,244,.74); }

/* =====================================================
   HOW IT WORKS (light)
   ===================================================== */
.how { padding: 88px 0 96px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.how-step { display: flex; flex-direction: column; }
.how-rail { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.how-num {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em;
  width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(140deg, var(--teal-500), var(--teal-900)); box-shadow: var(--sh-glow);
}
.how-line { flex: 1; height: 2px; background: linear-gradient(90deg, var(--teal-300), transparent); border-radius: 2px; }
.how-body h3 { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.how-body p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--slate-600); }

/* =====================================================
   CTA + FOOTER
   ===================================================== */
.cta-section { padding: 20px 0 90px; }
.cta {
  width: min(1100px, 94vw); margin: 0 auto; border-radius: 36px; padding: 56px 56px;
  background: radial-gradient(900px 420px at 18% -10%, #0d6b73, var(--teal-900));
  color: #fff; box-shadow: var(--sh-glow); position: relative; overflow: hidden;
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background: url("assets/bg-texture.png") center/cover; opacity: .14; pointer-events: none; }
.cta-bot { position: relative; display: grid; place-items: center; min-height: 280px; }
.cta-bot-halo { position: absolute; left: 50%; top: 50%; width: 320px; height: 320px; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(163,215,221,.4), transparent 66%); filter: blur(8px); }
.cta-bot img { position: relative; width: 300px; max-width: 100%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.cta-float { animation: ctaFloat 6s ease-in-out infinite; }
@keyframes ctaFloat { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
.cta-copy { position: relative; }
.cta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
.cta p { margin: 18px 0 0; max-width: 540px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.82); }
.cta .cta-form { margin: 30px 0 0; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.cta .cta-form input { color: #fff; }
.cta .cta-form input::placeholder { color: rgba(255,255,255,.6); }
.cta .cta-form button { background: #fff; color: var(--teal-900); }


footer { padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand .brand { color: var(--ink); }
.foot-brand p { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--slate-500); max-width: 280px; }
.foot-col h4 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); }
.foot-col ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { font-size: 15px; color: var(--slate-600); transition: color .2s; }
.foot-col a:hover { color: var(--teal-700); }
.foot-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--slate-200); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--slate-400); }

@keyframes waveBar { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes eqBar { 0%,100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* reveal animation utility */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .hero-bot { height: 440px; }
  .bot { width: 320px; }
  .hw-lang { left: 0; top: 150px; }
  .hw-live { right: 0; bottom: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .stat::before { display: none; }
  .cards, .feat-grid, .teams-grid, .how-grid { grid-template-columns: 1fr; }
  .teams-grid { grid-template-columns: 1fr 1fr; }
  .how-line { display: none; }
  .demo-grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta-bot { min-height: 220px; }
  .cta p { margin-left: auto; margin-right: auto; }
  .cta .cta-form { margin-left: auto; margin-right: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .app-window { grid-template-columns: 64px 1fr; }
  .app-side { margin: 8px; }
  .app-bot, .app-bot-bubble { display: none; }
  .tr-search { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: 132px; }
  .hero-bot { height: 380px; }
  .bot { width: 250px; }
  .hw { transform: scale(.86); }
  .hw-lang { left: -8px; top: 130px; }
  .hw-live { right: -8px; bottom: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat:nth-child(odd)::before { display: none; }
  .teams-grid { grid-template-columns: 1fr; }
  .app-main { padding: 18px; }
  .cards { gap: 12px; }
  .fcard p { min-height: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-pill { padding-left: 18px; }
  .tr-side, .app-side { display: none; }
  .tr-window, .app-window { grid-template-columns: 1fr; }
  .quick button span { display: none; }
  .cta { padding: 40px 26px; }
}
