/* =============================================
   HR × AI Portfolio — Glassmorphism Dashboard
   ============================================= */

/* ── Variables ── */
:root {
  /* User palette */
  --sky: #99CDD8;
  --sage: #AACBC2;
  --peach: #FDE6D3;
  --salmon: #F3C3B2;
  --sand: #DFD6C1;
  --forest: #657166;

  --bg: #F4F1EC;
  --bg-card: rgba(255, 255, 255, 0.6);
  --bg-card-solid: #ffffff;
  --bg-sidebar: rgba(255, 255, 255, 0.5);
  --text: #3D4A3F;
  --text-2: #657166;
  --text-3: #96A098;
  --accent: #657166;
  --accent-light: rgba(101, 113, 102, 0.08);
  --coral: #F3C3B2;
  --coral-light: rgba(243, 195, 178, 0.15);
  --green: #AACBC2;
  --green-light: rgba(170, 203, 194, 0.15);
  --purple: #99CDD8;
  --purple-light: rgba(153, 205, 216, 0.1);
  --cyan: #99CDD8;
  --orange: #DFD6C1;
  --blue: #99CDD8;
  --gradient-1: linear-gradient(135deg, #99CDD8, #AACBC2);
  --gradient-2: linear-gradient(135deg, #AACBC2, #657166);
  --gradient-3: linear-gradient(135deg, #F3C3B2, #FDE6D3);
  --gradient-4: linear-gradient(135deg, #DFD6C1, #AACBC2);
  --border: rgba(255, 255, 255, 0.65);
  --border-subtle: rgba(101, 113, 102, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 50px;
  --blur: blur(20px);
  --shadow: 0 4px 24px rgba(101, 113, 102, 0.06);
  --shadow-hover: 0 8px 32px rgba(101, 113, 102, 0.1);
  --shadow-glow: 0 0 30px rgba(153, 205, 216, 0.2);
  --font: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sidebar-w: 220px;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated colorful orbs background */
.main {
  position: relative;
}

.main::before,
.main::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 20s ease-in-out infinite;
}

.main::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(153, 205, 216, 0.35), rgba(170, 203, 194, 0.2), transparent 70%);
  top: 5%;
  right: -5%;
}

.main::after {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(243, 195, 178, 0.3), rgba(253, 230, 211, 0.2), transparent 70%);
  bottom: 10%;
  left: 5%;
  animation-delay: -10s;
  animation-duration: 25s;
}

@keyframes orbDrift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -40px) scale(1.1);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(15px, 30px) scale(1.05);
  }
}

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

ul {
  list-style: none;
}

/* =============================================
   PASSWORD GATE
   ============================================= */
.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 30% 40%, rgba(153, 205, 216, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(243, 195, 178, 0.1) 0%, transparent 60%);
}

.pw-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all .5s ease;
}

.pw-card {
  text-align: center;
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px 36px;
  max-width: 380px;
  width: 90%;
  box-shadow: var(--shadow), 0 0 60px rgba(153, 205, 216, 0.08);
}

.pw-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.pw-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.pw-sub {
  font-size: .9rem;
  color: var(--text-2);
  margin-bottom: 24px;
}

.pw-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.pw-row input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  font-size: .95rem;
  font-family: var(--font);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  outline: none;
  backdrop-filter: blur(10px);
  transition: all .2s;
}

.pw-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.pw-row input.error {
  border-color: var(--coral);
  animation: shake .35s ease;
}

.pw-row button {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--gradient-2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 12px rgba(101, 113, 102, 0.25);
}

.pw-row button:hover {
  transform: scale(1.05);
}

.pw-row button:active {
  transform: scale(0.95);
}

.pw-err {
  font-size: .8rem;
  color: var(--coral);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all .3s;
}

.pw-err.show {
  opacity: 1;
  height: auto;
  margin: 8px 0;
}

.pw-hint {
  font-size: .75rem;
  color: var(--text-3);
  margin-top: 16px;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0)
  }

  25% {
    transform: translateX(-6px)
  }

  50% {
    transform: translateX(6px)
  }

  75% {
    transform: translateX(-3px)
  }
}

/* =============================================
   APP LAYOUT
   ============================================= */
.app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Extra floating orb via JS-created element */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 18s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(223, 214, 193, 0.35), rgba(170, 203, 194, 0.2), transparent 70%);
  top: 40%;
  right: 20%;
  animation-delay: -5s;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(153, 205, 216, 0.3), rgba(243, 195, 178, 0.15), transparent 70%);
  top: 60%;
  left: 30%;
  animation-delay: -15s;
  animation-duration: 22s;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform .3s ease;
}

.sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 20px 18px;
}

.sidebar-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--gradient-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  box-shadow: 0 3px 10px rgba(101, 113, 102, .2);
}

.sidebar-brand {
  font-weight: 700;
  font-size: 1rem;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  gap: 3px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all .2s ease;
  cursor: pointer;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
}

.nav-item.active {
  background: var(--gradient-2);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(101, 113, 102, 0.25);
}

.nav-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 2px 8px rgba(101, 113, 102, .2);
}

.sidebar-name {
  font-size: .85rem;
  font-weight: 600;
}

.sidebar-role {
  font-size: .72rem;
  color: var(--text-3);
}

/* ── Main ── */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-y: auto;
}

/* ── Topbar ── */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
}

.topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.topbar-right {
  margin-left: auto;
}

.topbar-status {
  font-size: .76rem;
  font-weight: 500;
  color: var(--green);
  background: var(--green-light);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(45, 189, 120, 0.15);
}

/* ── Pages ── */
.page {
  display: none;
  padding: 24px 28px;
  animation: fadeIn .35s ease;
  position: relative;
  z-index: 1;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.page-header p {
  font-size: .88rem;
  color: var(--text-2);
}

/* ── Bottom Tab Bar (mobile) ── */
.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.bot-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  font-size: .62rem;
  color: var(--text-3);
  transition: color .15s;
}

.bot-item.active {
  color: var(--accent);
  font-weight: 600;
}

.bot-icon {
  font-size: 1.05rem;
}

/* =============================================
   GLASS CARDS
   ============================================= */
.card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sage), var(--salmon));
  opacity: 0;
  transition: opacity .25s;
}

.card:hover::before {
  opacity: 1;
}

.card-hover {
  cursor: pointer;
}

.card-hover:hover {
  box-shadow: 0 8px 40px rgba(153, 205, 216, 0.15), 0 0 60px rgba(153, 205, 216, 0.08);
  transform: translateY(-4px);
  border-color: rgba(153, 205, 216, 0.4);
}

.card-hover:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-top h3 {
  font-size: 1rem;
  font-weight: 700;
}

.card-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(101, 113, 102, .2);
  transition: all .25s;
}

.card-hover:hover .card-arrow {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(101, 113, 102, .25);
}

.card-desc {
  font-size: .87rem;
  color: var(--text-2);
  margin-bottom: 12px;
  line-height: 1.7;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span {
  font-size: .72rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(153, 205, 216, .15);
}

.card-quote {
  font-size: .87rem;
  color: var(--accent);
  font-weight: 500;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(153, 205, 216, .08), rgba(170, 203, 194, .06));
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  margin-top: 10px;
}

.card p {
  font-size: .9rem;
  color: var(--text-2);
  margin-bottom: 8px;
  line-height: 1.7;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p strong {
  color: var(--text);
}

/* ── Grid layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

/* ── Welcome Card ── */
.welcome-card {
  background: linear-gradient(135deg, rgba(153, 205, 216, 0.12), rgba(170, 203, 194, 0.08), rgba(253, 230, 211, 0.08));
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 30px rgba(153, 205, 216, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 205, 216, 0.2) 0%, rgba(170, 203, 194, 0.1) 50%, transparent 70%);
  pointer-events: none;
  animation: orbDrift 15s ease-in-out infinite;
}

.welcome-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 195, 178, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: orbDrift 18s ease-in-out infinite reverse;
}

.welcome-text {
  position: relative;
  z-index: 1;
}

.welcome-text h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.welcome-text h2 strong {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-text p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── Home Grid (paired stat + card) ── */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.home-group {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.home-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gc, #99CDD8), transparent);
  transition: height .3s;
}

.home-group:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 40px color-mix(in srgb, var(--gc, #99CDD8) 12%, transparent);
  border-color: color-mix(in srgb, var(--gc, #99CDD8) 40%, transparent);
}

.home-group:hover::before {
  height: 4px;
}

.stat-badge {
  text-align: center;
  padding: 20px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gc, #99CDD8) 8%, transparent), transparent);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gc, #99CDD8);
}

.stat-number span {
  font-size: .95rem;
  font-weight: 700;
}

.stat-label {
  font-size: .74rem;
  color: var(--text-2);
  margin-top: 6px;
}

.group-card {
  padding: 16px 20px 18px;
}

.group-card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.group-card h3 {
  font-size: .95rem;
  font-weight: 700;
}

.group-card .card-desc {
  font-size: .82rem;
  color: var(--text-2);
  margin-bottom: 8px;
  line-height: 1.6;
}

.group-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.group-card .card-tags span {
  font-size: .7rem;
  color: var(--text-2);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(153, 205, 216, .12);
}

/* ── Contact mini ── */
.contact-mini {
  text-align: center;
  font-size: .84rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  flex-wrap: wrap;
}

.contact-sep {
  color: var(--border-subtle);
}

/* ── Hero Value Card ── */
.hero-value-card {
  padding: 28px 24px;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid rgba(170, 203, 194, .3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  flex-shrink: 0;
}

.hero-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 1px;
  margin: 0;
}

.hero-role {
  font-size: .76rem;
  font-weight: 600;
  color: var(--forest);
  background: rgba(170, 203, 194, .12);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(170, 203, 194, .2);
}

.hero-mission {
  padding: 14px 18px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, .35);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--sage);
}

.hero-mission-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.hero-mission p {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.hero-mission strong {
  color: var(--forest);
  background: linear-gradient(180deg, transparent 60%, rgba(170, 203, 194, .2) 60%);
  padding: 0 2px;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-cred-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .86rem;
  line-height: 1.7;
  color: var(--text-2);
  padding: 8px 14px;
  background: rgba(255, 255, 255, .3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, .03);
}

.hero-cred-label {
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Story Arc ── */
.story-arc {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
  position: relative;
}

.story-step:last-child {
  border-bottom: none;
}

.story-marker {
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.story-step p {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--text-2);
  margin: 0;
}

.story-step strong {
  color: var(--text);
}

/* ── Compact Info Card ── */
.compact-info-card {
  text-align: center;
  padding: 14px 20px;
  background: rgba(255, 255, 255, .3) !important;
  font-size: .84rem;
  color: var(--text-2);
}

.compact-info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0;
}

/* ── Info list ── */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}

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

.info-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-3);
  min-width: 48px;
  flex-shrink: 0;
}

.info-value {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}

/* ── Sub heading ── */
.sub-heading {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 24px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.badge-green {
  color: var(--green);
  background: var(--green-light);
  border-color: rgba(45, 189, 120, .12);
}

.badge-purple {
  color: var(--purple);
  background: var(--purple-light);
  border-color: rgba(155, 109, 255, .12);
}

/* ── Text helpers ── */
.text-muted {
  color: var(--text-3);
  font-size: .85rem;
}

/* ── Demo Sections ── */
.demo-section {
  margin-top: 28px;
}

.demo-section:first-of-type {
  margin-top: 0;
}

.demo-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--dc) 10%, transparent), color-mix(in srgb, var(--dc) 4%, transparent));
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: none;
  position: relative;
}

.demo-section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--dc), transparent 80%);
}

.demo-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--dc);
  background: rgba(255, 255, 255, 0.7);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--dc) 25%, transparent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--dc) 12%, transparent);
}

.demo-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.demo-section-desc {
  font-size: .82rem;
  color: var(--text-2);
}

.demo-section-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.demo-section-tags span {
  font-size: .68rem;
  font-weight: 600;
  color: var(--dc);
  background: rgba(255, 255, 255, 0.6);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--dc) 20%, transparent);
}

.demo-section+.card.demo-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}

.demo-accent-1 {
  border-left: 3px solid #99CDD8;
}

.demo-accent-2 {
  border-left: 3px solid #AACBC2;
}

.demo-accent-3 {
  border-left: 3px solid #F3C3B2;
}

/* =============================================
   SKILL CARDS
   ============================================= */
.skill-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all .2s;
}

.skill-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.skill-emoji {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.skill-card h4 {
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.skill-bar {
  height: 5px;
  background: rgba(0, 0, 0, .04);
  border-radius: 5px;
  margin-bottom: 12px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--sage), var(--forest));
  border-radius: 5px;
  width: 0;
  transition: width 1s ease;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.skill-tags span {
  font-size: .67rem;
  color: var(--text-2);
  background: rgba(0, 0, 0, .03);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

/* ── Philosophy ── */
.philosophy-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phil-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.phil-num {
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-2);
  padding: 4px 9px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(101, 113, 102, .15);
}

.phil-item strong {
  font-size: .9rem;
}

/* =============================================
   DEMO SECTION
   ============================================= */
.demo-card {
  padding: 0;
  overflow: hidden;
}

.demo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 0;
  gap: 12px;
}

.demo-top h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.demo-body {
  padding: 18px 24px 24px;
}

.demo-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
}

.demo-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.demo-btn {
  padding: 10px 8px;
  font-size: .84rem;
  font-family: var(--font);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-2);
  backdrop-filter: blur(8px);
  transition: all .15s;
}

.demo-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

.demo-btn.active {
  background: var(--gradient-2);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(101, 113, 102, .2);
}

.demo-textarea {
  width: 100%;
  min-height: 60px;
  padding: 11px 14px;
  font-size: .88rem;
  font-family: var(--font);
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  resize: vertical;
  outline: none;
  margin-bottom: 16px;
  transition: all .2s;
  backdrop-filter: blur(8px);
}

.demo-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.demo-textarea::placeholder {
  color: var(--text-3);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font);
  background: var(--gradient-2);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(101, 113, 102, .2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(101, 113, 102, .25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* Demo Result */
.demo-result {
  border-top: 1px solid var(--border-subtle);
  padding: 24px;
  animation: fadeIn .4s ease;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.result-head h4 {
  font-size: 1rem;
  font-weight: 700;
}

.result-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.r-tab {
  padding: 8px 16px;
  font-size: .8rem;
  font-family: var(--font);
  font-weight: 500;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}

.r-tab:hover {
  color: var(--text-2);
  background: rgba(255, 255, 255, .5);
}

.r-tab.active {
  color: #fff;
  background: var(--gradient-2);
  box-shadow: 0 2px 8px rgba(101, 113, 102, .15);
}

.q-item {
  padding: 16px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  transition: all .2s;
}

.q-item:hover {
  background: rgba(255, 255, 255, 0.7);
}

.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-2);
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(101, 113, 102, .15);
}

.q-text {
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.6;
}

.q-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.q-tags span {
  font-size: .68rem;
  color: var(--text-3);
  background: rgba(0, 0, 0, .03);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.q-detail {
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.q-detail-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2px;
}

.q-detail-text {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.6;
}

.result-note {
  font-size: .78rem;
  color: var(--text-3);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* =============================================
   PROMPT SECTION
   ============================================= */
.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prompt-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .2s;
}

.prompt-card:hover {
  box-shadow: var(--shadow-hover);
}

/* ── Case Study Sections ── */
.case-section {
  margin-top: 24px;
}

.case-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 12%, transparent), color-mix(in srgb, var(--sc) 4%, transparent));
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: none;
  position: relative;
}

.case-section-head::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sc), transparent 80%);
}

.case-step-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--sc);
  background: rgba(255, 255, 255, 0.7);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--sc) 25%, transparent);
}

.case-step-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.case-step-desc {
  font-size: .82rem;
  color: var(--text-2);
}

.case-content {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
  border-left: 3px solid var(--sc, #99CDD8);
}

.case-content p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 8px;
}

.case-goal {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .4);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, .03);
}

.case-goal-label {
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  margin-top: 2px;
}

.case-goal p {
  margin: 0;
  font-size: .88rem;
}

.case-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(0, 0, 0, .08);
}

.case-insight {
  margin-top: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(153, 205, 216, .06), rgba(170, 203, 194, .04));
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--sage);
}

.case-insight-label {
  font-size: .8rem;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.case-insight p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.7;
}

/* ── Output Report ── */
.case-output-report {
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.case-output-report>h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.report-item {
  margin-bottom: 12px;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-2);
}

.report-item strong {
  color: var(--text);
  display: inline;
}

.report-item p {
  margin: 4px 0 0;
}

.report-item ul {
  padding-left: 18px;
  margin: 6px 0 0;
}

.report-item li {
  margin-bottom: 4px;
}

.report-score {
  display: inline-block;
  font-weight: 800;
  color: var(--forest);
  background: rgba(170, 203, 194, .15);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  font-size: .82rem;
}

/* ── Effect Items ── */
.effect-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .4);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, .03);
}

.effect-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.effect-item strong {
  font-size: .88rem;
}

/* ── Iteration List ── */
.iteration-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iter-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, .03);
}

.iter-badge {
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.iter-item p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.7;
  color: var(--text-2);
}

.prompt-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background .15s;
}

.prompt-head:hover {
  background: rgba(255, 255, 255, .3);
}

.prompt-num {
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-2);
  padding: 5px 10px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(101, 113, 102, .15);
}

.prompt-info {
  flex: 1;
  min-width: 0;
}

.prompt-info h4 {
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 1px;
}

.prompt-info p {
  font-size: .78rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.prompt-arrow {
  font-size: .65rem;
  color: var(--text-3);
  transition: transform .3s;
  flex-shrink: 0;
}

.prompt-card.open .prompt-arrow {
  transform: rotate(180deg);
}

.prompt-card.open {
  border-color: rgba(153, 205, 216, .25);
  box-shadow: var(--shadow-hover), 0 0 20px rgba(153, 205, 216, .08);
}

.prompt-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.prompt-card.open .prompt-body {
  max-height: 2000px;
}

.prompt-row {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
}

.prompt-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.prompt-row p {
  font-size: .87rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.7;
}

.prompt-row p strong {
  color: var(--green);
}

.prompt-code {
  background: rgba(0, 0, 0, .03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: .78rem;
  line-height: 1.8;
  color: var(--text-2);
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ── JD Output ── */
.jd-output {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.8;
}

.jd-output h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 6px;
}

.jd-output h4:first-child {
  margin-top: 0;
}

.jd-output ul {
  padding-left: 18px;
  margin: 6px 0;
}

.jd-output li {
  margin-bottom: 4px;
  list-style: disc;
}

.jd-output .jd-tag {
  display: inline-block;
  font-size: .72rem;
  color: var(--forest);
  background: rgba(153, 205, 216, .15);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin: 2px 3px 2px 0;
}

.jd-output .jd-highlight {
  background: rgba(170, 203, 194, .12);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--sage);
  margin: 10px 0;
  font-size: .88rem;
}

/* ── QA Bot ── */
.qa-msg {
  margin-bottom: 14px;
  animation: fadeIn .3s ease;
}

.qa-q {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.qa-q-bubble {
  background: var(--gradient-2);
  color: #fff;
  padding: 10px 16px;
  border-radius: 16px 16px 4px 16px;
  max-width: 80%;
  font-size: .88rem;
  line-height: 1.6;
}

.qa-a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.qa-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.qa-a-bubble {
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 4px 16px 16px 16px;
  flex: 1;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-2);
}

.qa-a-bubble strong {
  color: var(--text);
}

.qa-source {
  font-size: .75rem;
  color: var(--text-3);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.qa-source span {
  display: inline-block;
  background: rgba(153, 205, 216, .1);
  padding: 2px 8px;
  border-radius: 4px;
  margin: 2px;
}

/* ── Motivation List ── */
.motivation-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.motivation-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, .03);
}

.motivation-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.motivation-item p {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0 0 6px;
}

.motivation-item p:last-child {
  margin-bottom: 0;
}

.motivation-vision {
  color: var(--forest) !important;
  font-size: .84rem !important;
  padding: 6px 10px;
  background: rgba(170, 203, 194, .08);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--sage);
}

/* ── Plan Sections ── */
.plan-section {
  margin-top: 20px;
}

.plan-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 18px 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 12%, transparent), color-mix(in srgb, var(--pc) 4%, transparent));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .5);
  position: relative;
  transition: all .2s;
}

.plan-section-head:hover {
  box-shadow: 0 4px 16px color-mix(in srgb, var(--pc) 15%, transparent);
}

.plan-section.open .plan-section-head {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}

.plan-section-head::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pc), transparent 80%);
}

.plan-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--pc);
  background: rgba(255, 255, 255, .7);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--pc) 25%, transparent);
}

.plan-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.plan-subtitle {
  font-size: .82rem;
  color: var(--text-2);
}

.plan-arrow {
  margin-left: auto;
  font-size: .8rem;
  color: var(--text-3);
  transition: transform .3s;
  flex-shrink: 0;
}

.plan-section.open .plan-arrow {
  transform: rotate(180deg);
}

.plan-body {
  display: none;
  padding: 16px 18px;
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.plan-section.open .plan-body {
  display: block;
  animation: fadeIn .3s;
}

.plan-philosophy {
  padding: 12px 16px;
  font-size: .88rem;
  line-height: 1.8;
  color: var(--text-2);
  background: rgba(255, 255, 255, .3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--sage);
  margin-bottom: 16px;
}

/* Sub items */
.plan-sub {
  margin-bottom: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
}

.plan-sub:hover {
  box-shadow: var(--shadow);
}

.plan-sub-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .3);
  transition: background .15s;
}

.plan-sub-head:hover {
  background: rgba(255, 255, 255, .5);
}

.plan-sub-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.plan-sub-head strong {
  font-size: .88rem;
}

.plan-sub-arrow {
  margin-left: auto;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-3);
  transition: transform .3s;
  flex-shrink: 0;
}

.plan-sub.open .plan-sub-arrow {
  transform: rotate(90deg);
}

.plan-sub-body {
  display: none;
  padding: 0 16px 14px;
  background: rgba(255, 255, 255, .15);
}

.plan-sub.open .plan-sub-body {
  display: block;
  animation: fadeIn .25s;
}

.plan-pain,
.plan-solution,
.plan-value {
  margin-top: 10px;
  font-size: .86rem;
  line-height: 1.7;
  color: var(--text-2);
}

.plan-pain>span,
.plan-solution>span,
.plan-value>span {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.plan-pain>span {
  background: rgba(243, 195, 178, .15);
  color: #c47a5e;
}

.plan-solution>span {
  background: rgba(153, 205, 216, .12);
  color: #5a9aaa;
}

.plan-value>span {
  background: rgba(170, 203, 194, .12);
  color: #4a7a6a;
}

.plan-pain p,
.plan-solution p,
.plan-value p {
  margin: 0;
}

.plan-pain ul,
.plan-solution ul {
  padding-left: 18px;
  margin: 4px 0 0;
}

.plan-pain li,
.plan-solution li {
  margin-bottom: 6px;
}

.plan-solution em {
  color: var(--forest);
  font-style: normal;
  font-size: .82rem;
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline {
  position: relative;
  padding-left: 30px;
  margin-bottom: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(to bottom, #99CDD8, #AACBC2, #F3C3B2, #657166);
  border-radius: 3px;
}

.tl-item {
  position: relative;
  margin-bottom: 16px;
}

.tl-item:last-child {
  margin-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: -30px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #99CDD8;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(153, 205, 216, .15);
}

.tl-item:nth-child(2) .tl-dot {
  border-color: #AACBC2;
  box-shadow: 0 0 0 4px rgba(170, 203, 194, .15);
}

.tl-item:nth-child(3) .tl-dot {
  border-color: #F3C3B2;
  box-shadow: 0 0 0 4px rgba(243, 195, 178, .15);
}

.tl-item:nth-child(4) .tl-dot {
  border-color: #657166;
  box-shadow: 0 0 0 4px rgba(101, 113, 102, .1);
}

.tl-card {
  padding: 20px;
}

.tl-phase {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #99CDD8;
  margin-bottom: 4px;
}

.tl-item:nth-child(2) .tl-phase {
  color: #AACBC2;
}

.tl-item:nth-child(3) .tl-phase {
  color: #F3C3B2;
}

.tl-item:nth-child(4) .tl-phase {
  color: #657166;
}

.tl-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.tl-time {
  font-size: .78rem;
  color: var(--text-3);
  display: block;
  margin-bottom: 10px;
}

.tl-card li {
  font-size: .87rem;
  color: var(--text-2);
  padding: 3px 0 3px 16px;
  position: relative;
}

.tl-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-size: .8rem;
}

/* ── Impact ── */
.impact-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all .2s;
}

.impact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.impact-num {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.impact-num span {
  font-size: 1.2rem;
}

.impact-label {
  font-size: .74rem;
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.4;
}

/* ── Contact Card ── */
.contact-card {
  text-align: center;
  margin-top: 24px;
  border-left: 4px solid transparent;
  border-image: linear-gradient(to bottom, var(--accent), var(--purple)) 1;
}

.contact-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: .9rem;
  color: var(--text-2);
}

.contact-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: .88rem;
}

/* =============================================
   RESPONSIVE — Tablet
   ============================================= */
@media (max-width:900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   RESPONSIVE — Mobile
   ============================================= */
@media (max-width:768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
    z-index: 300;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(30px);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
  }

  .topbar-menu {
    display: block;
  }

  .topbar-status {
    display: none;
  }

  .page {
    padding: 20px 16px 100px;
  }

  .bottom-bar {
    display: flex;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .demo-btns {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .2);
    backdrop-filter: blur(4px);
    z-index: 299;
  }

  .sidebar-overlay.show {
    display: block;
  }
}

@media (max-width:400px) {
  .home-grid {
    gap: 10px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .welcome-text h2 {
    font-size: 1.1rem;
  }
}