/* ============================================================
   ABOUT PAGE — RE-CAPS Design System
   Consistent with style.css: Inter font, indigo/violet palette,
   CSS variables, dark mode via [data-theme="dark"], glassmorphism
   ============================================================ */

/* ── Variables (mirrors style.css) ── */
:root {
  --primary-color: #08D488;
  --primary-dark: #069F66;
  --secondary-color: #64748b;
  --background: #F7F7F8;
  --surface: #ffffff;
  --text-primary: #2a2f35;
  --text-secondary: #475569;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(8,212,136,.05);
  --shadow-md: 0 4px 6px -1px rgba(8,212,136,.1), 0 2px 4px -1px rgba(8,212,136,.06);
  --shadow-lg: 0 10px 15px -3px rgba(8,212,136,.1), 0 4px 6px -2px rgba(8,212,136,.05);
  --radius-sm: .375rem;
  --radius-md: .5rem;
  --radius-lg: .75rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --ctu-blue: #08D488;
  --ctu-orange: #FCCC56;
}

[data-theme="dark"] {
  --primary-color: #1AD28F;
  --primary-dark: #4DDCA8;
  --secondary-color: #94a3b8;
  --background: #1a1e23;
  --surface: #2a2f35;
  --text-primary: #F7F7F8;
  --text-secondary: #94a3b8;
  --border: #334155;
  --shadow-sm: 0 1px 2px 0 rgba(8,212,136,.15);
  --shadow-md: 0 4px 6px -1px rgba(8,212,136,.2), 0 2px 4px -1px rgba(8,212,136,.15);
  --shadow-lg: 0 10px 15px -3px rgba(8,212,136,.25), 0 4px 6px -2px rgba(8,212,136,.2);
}

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

.about-page {
  font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color .3s ease, color .3s ease;
  min-height: 100vh;
}

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .3s ease;
}

[data-theme="dark"] .nav {
  background: rgba(15,23,42,.85);
}

.nav-brand { display: flex; align-items: center; gap: .85rem; }
.nav-logo-img { height: 36px; width: auto; }
.logo-light { display: block; }
.logo-dark  { display: none;  }
[data-theme="dark"] .logo-light { display: none;  }
[data-theme="dark"] .logo-dark  { display: block; }

.nav-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.01em;
}

.nav-subtitle {
  font-size: .72rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.nav-actions { display: flex; align-items: center; gap: .75rem; }

/* ── Button System ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.2rem;
  font-size: .92rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all .22s ease;
  text-decoration: none;
}

.btn-ghost {
  background: rgba(99,102,241,.07);
  color: var(--primary-color);
  border: 1px solid rgba(99,102,241,.25);
}

.btn-ghost:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-ghost {
  background: rgba(129,140,248,.1);
  border-color: rgba(129,140,248,.3);
}

.btn-orange {
  background: linear-gradient(135deg, #FCCC56, #FFD84D);
  color: #2a2f35;
  border: none;
  box-shadow: 0 4px 16px rgba(245,158,11,.35);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,.45);
}

/* ── HERO ── */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 2rem 6rem;
  text-align: center;
  background: linear-gradient(135deg, #046541 0%, #058254 20%, #069F66 40%, #08D488 60%, #B18639 80%, #FCCC56 100%);
}

[data-theme="dark"] .about-hero {
  background: linear-gradient(135deg, #1a1e23 0%, #2a2f35 20%, #046541 40%, #08D488 60%, #986D2E 80%, #FCCC56 100%);
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  animation: bubbleFloat 7s ease-in-out infinite;
}
.b1 { width:160px; height:160px; top:-40px;  left:5%;   animation-delay:0s;    animation-duration:7s;  }
.b2 { width:100px; height:100px; top:30%;    right:8%;  animation-delay:-2s;   animation-duration:9s;  }
.b3 { width:70px;  height:70px;  bottom:15%; left:15%;  animation-delay:-1s;   animation-duration:6s;  }
.b4 { width:200px; height:200px; bottom:-60px;right:5%; animation-delay:-3s;   animation-duration:10s; }
.b5 { width:50px;  height:50px;  top:20%;    left:45%;  animation-delay:-.5s;  animation-duration:8s;  }
.b6 { width:80px;  height:80px;  top:60%;    left:60%;  animation-delay:-4s;   animation-duration:7s;  }
.b7 { width:120px; height:120px; top:10%;    right:25%; animation-delay:-1.5s; animation-duration:9s;  }
.b8 { width:40px;  height:40px;  bottom:30%; right:30%; animation-delay:-2.5s; animation-duration:5s;  }

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-22px) scale(1.04); }
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 9999px;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.95);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 2;
}

.about-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #08D488;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  50%       { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.about-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.about-hero h1 span {
  background: linear-gradient(90deg, #FCCC56, #08D488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.about-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .85rem;
  position: relative;
  z-index: 2;
}

/* ── SECTION WRAPPERS ── */
.about-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.about-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-band-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.about-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(99,102,241,.09);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 9999px;
  padding: .25rem .85rem;
  margin-bottom: 1rem;
}

.about-title {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: .9rem;
}

.about-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.about-divider {
  height: 1px;
  background: var(--border);
  max-width: 980px;
  margin: 0 auto;
}

/* ── PROBLEM GRID ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: .5rem;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  border-color: var(--primary-color);
}

.problem-icon {
  width: 42px;
  height: 42px;
  border-radius: .75rem;
  background: rgba(99,102,241,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
  transition: background .22s ease, color .22s ease;
}

.problem-card:hover .problem-icon { background: var(--primary-color); color: #fff; }

.problem-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .45rem;
}

.problem-desc {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.6rem 1.4rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  transition: background .22s ease, color .22s ease;
}

.fi-blue   { background: rgba(8,212,136,.12);  color: #08D488; }
.fi-purple { background: rgba(252,204,86,.12);  color: #FCCC56; }
.fi-orange { background: rgba(252,204,86,.12);  color: #FCCC56; }
.fi-green  { background: rgba(8,212,136,.12);   color: #08D488; }

.feature-card:hover .fi-blue   { background: #08D488; color: #fff; }
.feature-card:hover .fi-purple { background: #FCCC56; color: #2a2f35; }
.feature-card:hover .fi-orange { background: #FCCC56; color: #2a2f35; }
.feature-card:hover .fi-green  { background: #08D488; color: #fff; }

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
}

.feature-desc {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── HOW IT WORKS ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem 1.75rem;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}

.how-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,.04) 0%, transparent 60%);
  pointer-events: none;
}

.how-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

.how-num {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-color), #FCCC56);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .85rem;
  letter-spacing: -.04em;
}

.how-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
}

.how-desc {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.how-arrow { display: none; }

/* ── TEAM GRID ── */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 2rem;
  justify-content: center;
}

.team-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem 1.4rem;
  text-align: center;
  width: 160px;
  flex-shrink: 0;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
  border-color: var(--primary-color);
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1rem;
  letter-spacing: -.01em;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.av-orange { background: linear-gradient(135deg, #FCCC56, #FFD84D); }
.av-blue   { background: linear-gradient(135deg, #08D488, #1AD28F); }
.av-teal   { background: linear-gradient(135deg, #069F66, #08D488); }
.av-purple { background: linear-gradient(135deg, #B18639, #FCCC56); }
.av-green  { background: linear-gradient(135deg, #08D488, #4DDCA8); }

.team-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .3rem;
  line-height: 1.3;
}

.team-role {
  font-size: .775rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── TECH STACK ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.tech-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.1rem 1.3rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
  border-color: var(--primary-color);
}

.tech-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tech-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .15rem;
}

.tech-desc {
  font-size: .78rem;
  color: var(--text-secondary);
}

/* ── INSTITUTION CARD ── */
.inst-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 2rem 1.75rem;
  margin-top: 1.5rem;
  transition: box-shadow .22s ease;
}

.inst-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }

.inst-logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: .75rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  letter-spacing: .04em;
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
}

.inst-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .55rem;
}

.inst-desc {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: .85rem;
}

.inst-tags { display: flex; flex-wrap: wrap; gap: .45rem; }

.inst-tag {
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary-color);
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 9999px;
  padding: .2rem .7rem;
}

/* ── CONTACT CARD ── */
.contact-card {
  background: var(--surface);
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  /* Animated gradient border via outline trick */
  box-shadow:
    0 0 0 1px rgba(8,212,136,.25),
    0 0 0 2px rgba(252,204,86,.12),
    0 24px 64px rgba(8,212,136,.10),
    0 8px 24px rgba(0,0,0,.12);
  transition: box-shadow .35s ease;
}

.contact-card:hover {
  box-shadow:
    0 0 0 1.5px rgba(8,212,136,.5),
    0 0 0 3px rgba(252,204,86,.2),
    0 32px 80px rgba(8,212,136,.18),
    0 12px 32px rgba(0,0,0,.18);
}

/* Glowing orb — top right */
.contact-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,212,136,.18) 0%, rgba(252,204,86,.07) 60%, transparent 80%);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

/* Glowing orb — bottom left */
.contact-card::after {
  content: '';
  position: absolute;
  bottom: -70px;
  left: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252,204,86,.15) 0%, rgba(8,212,136,.06) 60%, transparent 80%);
  pointer-events: none;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(12px, -12px) scale(1.06); }
}



.contact-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: .55rem;
  letter-spacing: -.02em;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.contact-title-accent {
  background: linear-gradient(90deg, #08D488, #FCCC56);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-sub {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.contact-form {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-input {
  flex: 1;
  min-width: 220px;
  padding: .7rem 1.1rem;
  font-size: .92rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-input::placeholder { color: var(--text-secondary); }

.contact-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(8,212,136,.15);
}

/* ── FEEDBACK FORM ── */
.feedback-form {
  text-align: left;
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

.feedback-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feedback-form-group {
  margin-bottom: 1.1rem;
  position: relative;
}

.feedback-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: .55rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.required {
  color: #f87171;
  font-weight: 700;
  margin-left: 1px;
}

.optional {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: .78rem;
  text-transform: none;
  letter-spacing: 0;
  opacity: .75;
}

/* Input wrapper with floating glow */
.feedback-input-wrap {
  position: relative;
}

.feedback-input-wrap .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  opacity: .5;
  pointer-events: none;
  transition: color .2s, opacity .2s;
}

.feedback-input-wrap:focus-within .input-icon {
  color: var(--primary-color);
  opacity: 1;
}

.feedback-input,
.feedback-textarea {
  width: 100%;
  padding: .8rem 1.05rem;
  font-size: .92rem;
  font-family: inherit;
  color: var(--text-primary);
  background: rgba(255,255,255,.045);
  border: 1.5px solid var(--border);
  border-radius: .75rem;
  outline: none;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .feedback-input,
[data-theme="dark"] .feedback-textarea {
  background: rgba(255,255,255,.04);
}

.feedback-input::placeholder,
.feedback-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.45;
}

.feedback-input:hover,
.feedback-textarea:hover {
  border-color: rgba(8,212,136,.4);
}

.feedback-input:focus,
.feedback-textarea:focus {
  border-color: #08D488;
  background: rgba(8,212,136,.04);
  box-shadow:
    0 0 0 3px rgba(8,212,136,.12),
    0 4px 16px rgba(8,212,136,.08);
  transform: translateY(-1px);
}

.feedback-input.valid,
.feedback-textarea.valid {
  border-color: #10b981;
  background: rgba(16,185,129,.04);
  box-shadow: 0 0 0 2px rgba(16,185,129,.1);
}

.feedback-input.invalid,
.feedback-textarea.invalid {
  border-color: #f87171;
  background: rgba(248,113,113,.04);
  box-shadow: 0 0 0 2px rgba(248,113,113,.1);
  animation: inputShake .3s ease;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}

.feedback-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
  border-radius: .85rem;
}

.field-feedback {
  display: none;
  font-size: .78rem;
  margin-top: .4rem;
  color: #f87171;
  font-weight: 600;
  padding-left: .1rem;
}

.char-counter {
  font-size: .75rem;
  color: var(--text-secondary);
  text-align: right;
  margin-top: .3rem;
  font-weight: 500;
  opacity: .7;
}

.btn-submit {
  display: block;
  width: auto;
  margin: .75rem auto 0;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: all .28s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
  background: linear-gradient(135deg, #08D488 0%, #1AD28F 40%, #FCCC56 100%);
  color: #1a2a1a;
  border: none;
  box-shadow: 0 4px 20px rgba(8,212,136,.35), 0 2px 8px rgba(252,204,86,.18);
}

/* Shimmer sweep on hover */
.btn-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transition: left .55s ease;
  pointer-events: none;
}

.btn-submit:hover:not(:disabled)::before { left: 100%; }

.btn-submit:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(8,212,136,.45), 0 4px 14px rgba(252,204,86,.28);
  background: linear-gradient(135deg, #1AD28F 0%, #08D488 40%, #FFD84D 100%);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(8,212,136,.3);
}

.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.btn-submit svg {
  animation: float 2.2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-3px) translateX(2px); }
}

.btn-submit:hover:not(:disabled) svg {
  animation: send 0.5s ease forwards;
}

@keyframes send {
  0% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(12px, -12px); opacity: 0; }
}

/* Spinner animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.feedback-form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.5rem auto 0;
  flex-wrap: wrap;
}

.feedback-form-actions .btn-submit {
  margin: 0;
}

.btn-clear-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--bg-card, rgba(255, 255, 255, 0.05));
  border: 1.5px solid var(--border, rgba(255, 255, 255, 0.15));
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-clear-feedback:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.18);
}

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

.btn-clear-feedback svg {
  transition: transform 0.2s ease;
}

.btn-clear-feedback:hover svg {
  transform: rotate(-10deg);
}

@media (max-width: 640px) {
  .feedback-form-actions {
    flex-direction: column-reverse;
    width: 100%;
  }

  .feedback-form-actions .btn-submit,
  .btn-clear-feedback {
    width: 100%;
    justify-content: center;
  }
}

.spinner {
  animation: spin 1s linear infinite;
}

.spinner circle {
  stroke: currentColor;
}

.spinner path {
  stroke: currentColor;
}


/* ── IMAGE UPLOAD ── */
.feedback-image-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.feedback-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.4rem;
  background: rgba(8,212,136,.04);
  border: 2px dashed rgba(8,212,136,.3);
  border-radius: .9rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  width: fit-content;
  position: relative;
  overflow: hidden;
  letter-spacing: .01em;
}

.feedback-upload-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,212,136,.07), rgba(252,204,86,.05));
  opacity: 0;
  transition: opacity .3s ease;
}

.feedback-upload-btn:hover::before { opacity: 1; }

.feedback-upload-btn:hover {
  border-color: #08D488;
  border-style: solid;
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(8,212,136,.15), 0 2px 6px rgba(0,0,0,.08);
}

.feedback-upload-btn svg {
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  color: var(--primary-color);
  flex-shrink: 0;
}

.feedback-upload-btn:hover svg {
  transform: translateY(-3px) scale(1.1);
}

.feedback-image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.feedback-image-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface);
  border: 2px solid var(--border);
  animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.feedback-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feedback-image-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.feedback-image-remove:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.feedback-image-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  text-align: center;
}

.spinner path {
  stroke: currentColor;
}

/* ── FEEDBACK SUCCESS MODAL ── */
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.feedback-modal.active {
  opacity: 1;
  pointer-events: all;
}

.feedback-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  animation: fadeIn .3s ease;
}

.feedback-modal-content {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: 3rem 2.5rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: slideUp .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid var(--primary-color);
}

.feedback-modal-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feedback-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--primary-color);
  stroke-miterlimit: 10;
  animation: checkmarkFill 0.4s ease-in-out 0.4s forwards, checkmarkScale 0.3s ease-in-out 0.9s both;
}

.feedback-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: var(--primary-color);
  fill: rgba(8,212,136,0.1);
  animation: checkmarkStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.feedback-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: var(--primary-color);
  stroke-width: 3;
  animation: checkmarkStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes checkmarkStroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes checkmarkScale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes checkmarkFill {
  100% {
    box-shadow: inset 0px 0px 0px 30px rgba(8,212,136,0.15);
  }
}

.feedback-modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -.02em;
}

.feedback-modal-greeting {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.feedback-user-name {
  color: var(--primary-color);
  font-weight: 700;
}

.feedback-modal-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feedback-email {
  color: var(--primary-color);
  font-weight: 600;
  word-break: break-all;
}

.feedback-modal-info {
  background: rgba(8,212,136,0.05);
  border: 1px solid rgba(8,212,136,0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

.feedback-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

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

.feedback-info-item svg {
  flex-shrink: 0;
  color: var(--primary-color);
}

.feedback-modal-close {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: translateY(40px) scale(0.9);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-15px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-7px); }
}

/* ── RESPONSIVE FEEDBACK FORM ── */
@media (max-width: 700px) {
  .feedback-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  
  .feedback-image-preview {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .feedback-modal-content {
    padding: 2rem 1.5rem;
  }
  
  .feedback-checkmark {
    width: 70px;
    height: 70px;
  }
  
  .feedback-modal-title {
    font-size: 1.5rem;
  }
  
  .feedback-modal-greeting {
    font-size: 0.9rem;
  }
  
  .feedback-info-item {
    font-size: 0.85rem;
  }
}

/* ── FOOTER ── */
.about-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-copy {
  font-size: .82rem;
  color: var(--text-secondary);
}

.footer-links { display: flex; gap: 1.1rem; }

.footer-link {
  font-size: .82rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity .2s ease;
}

.footer-link:hover { opacity: .7; }

/* ── ENTRY ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.about-hero h1          { animation: fadeUp .65s ease .05s both; }
.about-hero p           { animation: fadeUp .65s ease .15s both; }
.about-hero-actions     { animation: fadeUp .65s ease .25s both; }
.about-badge            { animation: fadeUp .5s ease 0s both; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav { padding: .85rem 1.1rem; }
  .nav-subtitle { display: none; }
  .about-hero { padding: 3.5rem 1.25rem 4.5rem; }
  .about-section, .about-band-inner { padding: 3rem 1.25rem; }
  .inst-card { flex-direction: column; align-items: center; text-align: center; }
  .inst-tags { justify-content: center; }
  .about-footer { flex-direction: column; align-items: flex-start; }
  .contact-card { padding: 2rem 1.25rem; }
  .team-grid { gap: .75rem; }
  .team-card { width: 145px; }
}

/* ============================================================
   INTERACTIVE FEATURES & SCROLL ENHANCEMENTS
   ============================================================ */

/* ── Scroll Progress Bar ── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #08D488 0%, #1AD28F 50%, #FCCC56 100%);
  z-index: 99999;
  transition: width .1s ease-out;
  box-shadow: 0 0 10px rgba(8,212,136,.5);
}

/* ── Hero Metrics Ribbon ── */
.hero-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 3.25rem auto 0;
  position: relative;
  z-index: 2;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.25rem;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.hero-stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
  border-color: rgba(255,255,255,.45);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.stat-label {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .4rem;
}

.stat-desc {
  font-size: .72rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: .2rem;
  line-height: 1.35;
}

/* ── Scroll-Reveal Animation Utilities ── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(0.16, 1, 0.3, 1), transform .65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ── Interactive RAG Pipeline Flow ── */
.rag-pipeline-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  position: relative;
}

.rag-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  padding: 1.75rem 1.4rem;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}

.rag-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(8,212,136,.12);
  border-color: var(--primary-color);
}

.rag-step-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--primary-color);
  background: rgba(8,212,136,.1);
  border: 1px solid rgba(8,212,136,.22);
  border-radius: 9999px;
  padding: .2rem .65rem;
  width: fit-content;
  margin-bottom: 1rem;
}

.rag-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .45rem;
}

.rag-step-desc {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}

.rag-step-tech {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  font-family: monospace;
  color: var(--text-secondary);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: .4rem;
  padding: .25rem .55rem;
  width: fit-content;
}

/* ── Live Interactive RAG Query Simulator ── */
.rag-simulator-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1.75rem;
  padding: 2.25rem;
  box-shadow: 0 20px 48px rgba(0,0,0,.06);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .rag-simulator-box {
  box-shadow: 0 20px 48px rgba(0,0,0,.35);
  border-color: rgba(8,212,136,.25);
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.sim-title-group {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sim-dot-live {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #08D488;
  box-shadow: 0 0 10px #08D488;
  animation: pulse-dot 1.8s infinite;
}

.sim-main-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sim-instruction {
  font-size: .82rem;
  color: var(--text-secondary);
}

.sim-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1.5rem;
}

.sim-preset-btn {
  background: var(--background);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: .5rem 1.1rem;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: inherit;
}

.sim-preset-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.sim-preset-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(8,212,136,.35);
}

[data-theme="dark"] .sim-preset-btn.active {
  color: #1a1e23;
}

.sim-display-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: opacity .25s ease, transform .25s ease;
}

.sim-display-card.sim-updating {
  opacity: .5;
  transform: scale(0.99);
}

.sim-query-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border);
}

.sim-query-label {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: .06em;
  flex-shrink: 0;
}

.sim-query-text {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
  font-style: italic;
}

.sim-metric-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sim-metric-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.sim-metric-track {
  flex-grow: 1;
  height: 8px;
  background: rgba(0,0,0,.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .sim-metric-track {
  background: rgba(255,255,255,.08);
}

.sim-metric-fill {
  height: 100%;
  width: 97.8%;
  background: #08D488;
  border-radius: 9999px;
  transition: width .5s cubic-bezier(0.4, 0, 0.2, 1), background-color .4s ease;
}

.sim-score-badge {
  font-size: .88rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: monospace;
}

.sim-result-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-top: .75rem;
}

.sim-result-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .6rem;
  line-height: 1.35;
}

.sim-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
}

.sim-pill {
  font-size: .75rem;
  font-weight: 600;
  background: rgba(8,212,136,.08);
  border: 1px solid rgba(8,212,136,.2);
  color: var(--primary-color);
  border-radius: 9999px;
  padding: .2rem .65rem;
}

.sim-synthesis-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.sim-synthesis-label {
  font-size: .78rem;
  font-weight: 800;
  color: #FCCC56;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.sim-synthesis-text {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Interactive Role Matrix ── */
.role-matrix-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-bottom: 1.75rem;
}

.role-tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem .85rem;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-family: inherit;
}

.role-tab-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(8,212,136,.15);
}

.role-tab-btn.active {
  background: linear-gradient(135deg, rgba(8,212,136,.12) 0%, rgba(252,204,86,.08) 100%);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(8,212,136,.3), 0 8px 24px rgba(8,212,136,.15);
}

.role-tab-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8,212,136,.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.role-tab-btn.active .role-tab-icon {
  background: var(--primary-color);
  color: #fff;
}

[data-theme="dark"] .role-tab-btn.active .role-tab-icon {
  color: #1a1e23;
}

.role-tab-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.role-card-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 2.25rem;
  position: relative;
  transition: opacity .25s ease;
}

.role-card-display.role-updating {
  opacity: .5;
}

.role-display-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.role-badge-pill {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(8,212,136,.1);
  border: 1px solid rgba(8,212,136,.25);
  border-radius: 9999px;
  padding: .2rem .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: inline-block;
  margin-bottom: .5rem;
}

.role-display-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.role-display-desc {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.role-feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.role-feature-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.role-feature-item .check-icon {
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ── Interactive Citation Playground ── */
.citation-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 2rem 2.25rem;
  margin-top: 2rem;
}

.cite-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.cite-tab-btn {
  background: var(--background);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: .4rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}

.cite-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary-color);
}

.cite-tab-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

[data-theme="dark"] .cite-tab-btn.active {
  color: #1a1e23;
}

.cite-preview-area {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  position: relative;
  min-height: 90px;
}

.cite-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cite-support-note {
  font-size: .8rem;
  color: var(--text-secondary);
}

.btn-cite-copy {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.25rem;
  font-size: .88rem;
  font-weight: 700;
  border-radius: 9999px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
}

[data-theme="dark"] .btn-cite-copy {
  color: #1a1e23;
}

.btn-cite-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(8,212,136,.35);
}

.btn-cite-copy.btn-copied {
  background: #10b981;
}

/* ── Modernized Tech Stack ── */
.tech-category-group {
  margin-bottom: 2rem;
}

.tech-category-label {
  font-size: .8rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .85rem;
}

.tech-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1rem;
}

.tech-badge-card {
  display: flex;
  align-items: center;
  gap: .95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.15rem 1.25rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tech-badge-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 24px rgba(8,212,136,.1);
}

.tech-badge-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor;
}

/* ── Enhanced Team Cards ── */
.team-grid-extended {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.team-card-modern {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card-modern:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  box-shadow: 0 16px 36px rgba(8,212,136,.15);
}

.team-avatar-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #08D488, #FCCC56);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(8,212,136,.25);
}

.team-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -.02em;
}

.team-modern-name {
  font-size: .98rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: .3rem;
  line-height: 1.25;
}

.team-modern-role {
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: .6rem;
  line-height: 1.35;
}

.team-modern-badge {
  font-size: .7rem;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: .2rem .6rem;
  margin-top: auto;
}

/* ── Responsive Refinements ── */
@media (max-width: 900px) {
  .hero-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  .rag-pipeline-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .role-matrix-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .role-feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-stats-ribbon {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .rag-pipeline-container {
    grid-template-columns: 1fr;
  }
  .role-matrix-tabs {
    grid-template-columns: 1fr;
  }
  .sim-metric-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }
  .sim-metric-track {
    width: 100%;
  }
  .rag-simulator-box {
    padding: 1.5rem 1.2rem;
  }
  .role-card-display {
    padding: 1.5rem 1.2rem;
  }
  .citation-box {
    padding: 1.5rem 1.2rem;
  }
}
