/* ============================================================
   Friends × AI — design system
   Dark, glassy, gradient-accented. Full RTL/LTR via logical props.
   ============================================================ */

:root {
  --bg: #070b16;
  --bg-soft: #0b1120;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #e9edf7;
  --muted: #9aa5bd;
  --faint: #6b7795;
  --ac: #7c5cff;
  --ac2: #4f46e5;
  --ok: #34d399;
  --radius: 18px;
  --radius-sm: 12px;
  --font-body: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --shadow-card: 0 10px 34px rgba(2, 6, 18, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

html[lang="ar"] body { line-height: 1.85; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

p { margin: 0 0 0.9em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: rgba(124, 92, 255, 0.4); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- animated background ---------- */

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(79, 70, 229, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(20, 184, 166, 0.10), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(217, 70, 239, 0.08), transparent 60%),
    var(--bg);
}

.blob {
  position: absolute;
  width: 44vw;
  height: 44vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.b1 { background: radial-gradient(circle, rgba(99, 102, 241, 0.20), transparent 65%); top: -14%; inset-inline-end: -8%; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { background: radial-gradient(circle, rgba(45, 212, 191, 0.13), transparent 65%); bottom: -18%; inset-inline-start: -10%; animation: drift2 32s ease-in-out infinite alternate; }
.b3 { background: radial-gradient(circle, rgba(232, 121, 249, 0.10), transparent 65%); top: 38%; inset-inline-start: 30%; animation: drift3 38s ease-in-out infinite alternate; }

@keyframes drift1 { to { transform: translate(-6vw, 8vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(7vw, -6vh) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-5vw, -7vh) scale(0.94); } }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(7, 11, 22, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, #7c5cff, #2dd4bf);
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.35);
}

.lang-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
  color: var(--muted);
}

.lt-opt {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.25s, color 0.25s;
}

.lt-opt.active {
  background: linear-gradient(135deg, var(--ac), var(--ac2));
  color: #fff;
}

/* ---------- layout ---------- */

#app { display: block; outline: none; }

.view {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px) clamp(18px, 4vw, 44px) 60px;
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(28px, 6vh, 64px) clamp(20px, 4vh, 40px); text-align: center; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  background: linear-gradient(100deg, #f3f5fb 20%, #b9a8ff 55%, #5eead4 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.stat-chip {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.88rem;
  color: var(--text);
}

.stat-chip strong { color: #c4b5fd; font-weight: 600; }

.note-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: start;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.10), rgba(45, 212, 191, 0.05)), var(--panel);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
}

.note-card .note-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: 8px;
  color: #cdc4ff;
}

.note-card p { margin: 0; color: var(--text); }

/* ---------- section headers ---------- */

.section { margin-top: clamp(40px, 7vh, 70px); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.section-head::before {
  content: "";
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ac), #2dd4bf);
  align-self: center;
  flex: none;
}

.section-head h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.section-head .sub { color: var(--faint); font-size: 0.9rem; }

/* ---------- filter chips ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.fchip {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s;
}

.fchip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }

.fchip.active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(45, 212, 191, 0.18));
  border-color: rgba(124, 92, 255, 0.5);
  color: #fff;
}

/* ---------- people grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.person-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.28s, box-shadow 0.28s;
}

.person-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--ac) 55%, transparent);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--ac) 16%, transparent), var(--shadow-card);
}

.pc-top { display: flex; align-items: center; gap: 14px; }

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--ac), var(--ac2));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--ac) 35%, transparent);
}

.avatar.xl { width: 92px; height: 92px; font-size: 1.7rem; border-radius: 28px; }

.pc-name h3 { font-size: 1.12rem; font-weight: 600; }

.pc-role { color: var(--muted); font-size: 0.86rem; margin: 2px 0 0; }

.pc-tagline {
  color: color-mix(in srgb, var(--ac) 78%, #fff);
  font-size: 0.93rem;
  font-weight: 500;
  margin: 0;
}

.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

.tag {
  font-size: 0.74rem;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 10px;
  border-radius: 999px;
}

.pc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--ac) 80%, #fff);
}

.pc-cta .arrow { transition: transform 0.25s; }
.person-card:hover .pc-cta .arrow,
.idea:hover .idea-cta .arrow { transform: translateX(var(--arrow-shift, 5px)); }
html[dir="rtl"] .person-card,
html[dir="rtl"] .idea { --arrow-shift: -5px; }

/* ---------- info cards (why now / demos) ---------- */

.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }

.info-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.25s, border-color 0.25s;
}

.info-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.18); }

.info-card .emoji { font-size: 1.7rem; display: block; margin-bottom: 10px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- person page ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 26px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--text); }

.p-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(600px 200px at 12% 0%, color-mix(in srgb, var(--ac) 14%, transparent), transparent 70%),
    var(--panel);
  box-shadow: var(--shadow-card);
}

.p-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 700; margin-bottom: 4px; }

.p-headline { color: color-mix(in srgb, var(--ac) 75%, #fff); font-weight: 500; margin-bottom: 4px; }

.p-roleline { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }

.p-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.win-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #d6f5e6;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s;
}

.btn:hover { border-color: color-mix(in srgb, var(--ac) 60%, transparent); background: color-mix(in srgb, var(--ac) 14%, transparent); }

.btn.primary {
  background: linear-gradient(135deg, var(--ac), var(--ac2));
  border: none;
  color: #fff;
  box-shadow: 0 6px 22px color-mix(in srgb, var(--ac) 30%, transparent);
}

.btn.primary:hover { filter: brightness(1.1); }

/* field overview prose */
.prose { max-width: 800px; color: var(--text); }
.prose p { color: #cdd5e6; }

/* ---------- idea cards ---------- */

.ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }

.idea {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.idea:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ac) 45%, transparent);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--ac) 12%, transparent);
}

.idea-top { display: flex; flex-direction: column; gap: 8px; }
.idea h4 { font-size: 1.02rem; font-weight: 600; }
.idea > p { color: var(--muted); font-size: 0.9rem; margin: 0; }

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

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.badge.eff-starter { color: #bbf7d0; background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52, 211, 153, 0.35); }
.badge.eff-intermediate { color: #fde68a; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.32); }
.badge.eff-advanced { color: #ddd6fe; background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.38); }
.badge.imp-high { color: #c7d2fe; background: rgba(99, 102, 241, 0.14); border: 1px solid rgba(99, 102, 241, 0.38); }
.badge.imp-medium { color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }

.idea-meta {
  display: flex;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  border-top: 1px dashed var(--line-soft);
  padding-top: 10px;
}

.idea-meta .mlabel { flex: none; font-weight: 600; color: #aab6d3; }

/* ---------- week-1 challenge ---------- */

.week1 {
  position: relative;
  border-radius: 22px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    linear-gradient(120deg, color-mix(in srgb, var(--ac) 75%, transparent), rgba(45, 212, 191, 0.55)) border-box;
  box-shadow: 0 16px 50px color-mix(in srgb, var(--ac) 12%, transparent);
}

.week1 h3 { font-size: 1.25rem; margin-bottom: 10px; }
.week1 > p { color: #cdd5e6; max-width: 760px; }

.promptbox {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(3, 6, 14, 0.6);
  overflow: hidden;
}

.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.8rem;
  color: var(--faint);
}

.copy-btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover { border-color: color-mix(in srgb, var(--ac) 60%, transparent); }
.copy-btn.done { color: #bbf7d0; border-color: rgba(52, 211, 153, 0.45); }

.promptbox pre {
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.8;
  color: #dbe3f3;
}

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-inline-start: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding-inline-start: 26px;
  padding-bottom: 22px;
}

.timeline li:last-child { padding-bottom: 4px; }

.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -7px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--faint);
}

.timeline li.now::before {
  border-color: var(--ac);
  background: var(--ac);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ac) 22%, transparent);
}

.t-period { display: block; font-size: 0.78rem; color: var(--faint); margin-bottom: 2px; }
.timeline strong { display: block; font-weight: 600; font-size: 0.98rem; }
.t-org { display: block; color: var(--muted); font-size: 0.88rem; }

/* ---------- education / certs ---------- */

.edu-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }

.edu-list li {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.93rem;
}

.cert-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.cert {
  font-size: 0.8rem;
  font-weight: 500;
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.32);
  background: rgba(99, 102, 241, 0.09);
  padding: 5px 13px;
  border-radius: 999px;
}

/* ---------- prev / next ---------- */

.pn {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(36px, 6vh, 56px);
}

.pn a {
  flex: 1;
  max-width: 48%;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: border-color 0.22s, background 0.22s;
}

.pn a:hover { border-color: color-mix(in srgb, var(--ac) 50%, transparent); background: var(--panel-2); }

.pn .pn-label { display: block; font-size: 0.76rem; color: var(--faint); margin-bottom: 2px; }
.pn .pn-name { font-weight: 600; font-size: 0.95rem; }
.pn a.next { text-align: end; margin-inline-start: auto; }

/* ---------- two-column section layout ---------- */

.cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(20px, 4vw, 40px); }

/* ---------- footer ---------- */

.footer {
  text-align: center;
  color: var(--faint);
  font-size: 0.86rem;
  padding: 30px 20px 44px;
  border-top: 1px solid var(--line-soft);
  margin-top: 20px;
}

.footer .heart { color: #f472b6; }

/* ---------- error panel ---------- */

.boot-error {
  max-width: 560px;
  margin: 12vh auto;
  text-align: center;
  border: 1px solid rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.07);
  border-radius: var(--radius);
  padding: 30px;
}

/* ---------- idea detail page ---------- */

.idea.flagship {
  border-color: rgba(251, 191, 36, 0.45);
  background:
    radial-gradient(400px 160px at 80% 0%, rgba(251, 191, 36, 0.08), transparent 70%),
    var(--panel);
}

.idea.flagship:hover {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 14px 36px rgba(251, 191, 36, 0.12);
}

.badge.flag {
  color: #fde68a;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(217, 119, 6, 0.16));
  border: 1px solid rgba(251, 191, 36, 0.55);
}

.badge.count {
  color: var(--faint);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}

.idea-cta { margin-top: auto; }

.idea-head {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(600px 200px at 12% 0%, color-mix(in srgb, var(--ac) 14%, transparent), transparent 70%),
    var(--panel);
  box-shadow: var(--shadow-card);
}

.idea-head.flagship { border-color: rgba(251, 191, 36, 0.4); }

.idea-head .badges { margin-bottom: 14px; }
.idea-head h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; margin-bottom: 10px; }
.idea-head .idea-desc { color: #cdd5e6; max-width: 800px; margin: 0; }

.flag-why {
  margin-top: 18px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.flag-why .fw-head {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fde68a;
  margin-bottom: 6px;
}

.flag-why p { margin: 0; color: #f1e8cf; }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.ba-panel {
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid var(--line);
}

.ba-panel h3 { font-size: 1.02rem; margin-bottom: 10px; }
.ba-panel p { color: #cdd5e6; font-size: 0.95rem; }
.ba-panel p:last-child { margin-bottom: 0; }

.ba-before {
  background: linear-gradient(160deg, rgba(244, 63, 94, 0.07), transparent 60%), var(--panel);
  border-color: rgba(244, 63, 94, 0.22);
}
.ba-before h3 { color: #fda4af; }

.ba-after {
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.08), transparent 60%), var(--panel);
  border-color: rgba(52, 211, 153, 0.25);
}
.ba-after h3 { color: #6ee7b7; }

.mind-box {
  border-radius: 22px;
  padding: clamp(20px, 3.5vw, 28px);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    linear-gradient(120deg, color-mix(in srgb, var(--ac) 70%, transparent), rgba(56, 189, 248, 0.5)) border-box;
}

.mind-box h3 { font-size: 1.05rem; margin-bottom: 10px; }
.mind-box p { color: #cdd5e6; }
.mind-box p:last-child { margin-bottom: 0; }

.idea-extras {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.idea-extras .idea-meta { border-top: none; padding-top: 0; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .p-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cols { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .pn a { max-width: 100%; }
  .hero { text-align: start; }
  .hero-stats, .hero-kicker { justify-content: flex-start; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
