/* ─────────────────────────────────────────────────────────────────────────
   HOMEPAGE STYLES
───────────────────────────────────────────────────────────────────────── */

/* ── HERO ── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(7rem, 14vw, 10rem) var(--px) clamp(5rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 20%, rgba(109,40,217,0.32) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 60%, rgba(29,78,216,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(124,58,237,0.12) 0%, transparent 50%);
  pointer-events: none;
  animation: blob-drift 18s ease-in-out infinite alternate;
}

#hero .wrap { position: relative; z-index: 3; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: up 0.6s ease forwards 0.15s;
}
.hero-kicker::before { content: ''; width: 1.8rem; height: 2px; background: var(--p-hi); border-radius: 2px; }
.hero-kicker span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--p-hi); }

.hero-h {
  font-size: clamp(3rem, 7.8vw, 7.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 13ch;
  opacity: 0;
  animation: up 0.9s ease forwards 0.28s;
}
.hero-h em { font-style: normal; color: var(--p-hi); }

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
  margin-top: 3rem;
  opacity: 0;
  animation: up 0.8s ease forwards 0.45s;
}
.hero-sub { max-width: 44ch; font-size: 1rem; font-weight: 300; color: var(--grey); line-height: 1.8; }
.hero-sub strong { color: var(--white); font-weight: 500; }
.hero-btns { display: flex; flex-direction: column; gap: 0.6rem; flex-shrink: 0; }

@media (max-width: 580px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: row; flex-wrap: wrap; }
}

/* ── STATEMENT ── */
#statement {
  min-height: 85vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

#statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(124,58,237,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 0% 30%, rgba(29,78,216,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.statement-inner {
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
}

.statement-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2.5rem;
}

.statement-text {
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--grey);
  max-width: 22ch;
}
.statement-text strong {
  color: var(--white);
  font-weight: 800;
}
.statement-text em {
  font-style: normal;
  color: var(--p-hi);
}

/* ── PAIN ── */
#pain {
  border-bottom: 1px solid var(--line);
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.pain-hd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.pain-hd-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.pain-hd-title em { font-style: normal; color: var(--p-hi); }
.pain-hd-sub { font-size: 0.92rem; color: var(--grey); font-weight: 300; line-height: 1.75; }

@media (max-width: 760px) { .pain-hd { grid-template-columns: 1fr; } }

.pain-row {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3rem 1fr 240px;
  gap: 2rem;
  padding: 2rem 0;
  transition: background 0.2s;
  cursor: default;
  align-items: start;
}
.pain-row:last-child { border-bottom: 1px solid var(--line); }
.pain-row:hover { background: rgba(124,58,237,0.04); margin: 0 calc(-1 * var(--px)); padding-left: var(--px); padding-right: var(--px); }

.pain-inline-card {
  background: rgba(15,15,38,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  padding: 0.9rem 1rem;
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  overflow: hidden;
}
.pain-inline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
}
.pain-inline-card.bad::before   { background: #EF4444; }
.pain-inline-card.warn::before  { background: #F59E0B; }
.pain-inline-card.muted::before { background: var(--dim); }

.pic-app {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.pic-app-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.pic-app-dot.red    { background: #EF4444; }
.pic-app-dot.yellow { background: #F59E0B; }
.pic-app-dot.grey   { background: var(--dim); }

.pic-msg {
  font-size: 0.76rem;
  color: var(--white);
  font-weight: 400;
  line-height: 1.4;
}
.pic-msg em { font-style: normal; color: var(--grey); font-weight: 300; font-size: 0.7rem; display: block; margin-top: 0.15rem; }

.pic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.pic-time { font-size: 0.6rem; color: var(--dim); }
.pic-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pic-badge.red    { background: rgba(239,68,68,0.15);  color: #EF4444; }
.pic-badge.yellow { background: rgba(245,158,11,0.15); color: #F59E0B; }
.pic-badge.grey   { background: rgba(255,255,255,0.06); color: var(--grey); }

@media (max-width: 760px) {
  .pain-row { grid-template-columns: 3rem 1fr; }
  .pain-inline-card { display: none; }
}

.pain-num { font-size: 0.6rem; font-weight: 700; color: var(--p-hi); letter-spacing: 0.1em; padding-top: 0.25rem; }
.pain-title { font-size: 1rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.pain-body { font-size: 0.85rem; color: var(--grey); font-weight: 300; line-height: 1.7; }

@media (max-width: 680px) {
  .pain-row { grid-template-columns: 2.5rem 1fr; }
  .pain-body { grid-column: 2; }
}

/* ─── BENTO PAIN GRID ──────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 300px 280px;
  gap: 1rem;
  margin-top: 0;
}

.bento-box {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s, background 0.25s;
}
.bento-box > *:not(.bento-label) { flex: 1; min-height: 0; }
.bento-box:hover { border-color: rgba(167,139,250,0.2); background: var(--bg3); }

/* Grid placement */
.bento-1 { grid-column: 1 / 3; grid-row: 1; }
.bento-2 { grid-column: 3;     grid-row: 1 / 3; }
.bento-3 { grid-column: 1;     grid-row: 2; }
.bento-4 { grid-column: 2;     grid-row: 2; }

/* Text layer */
.bento-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3.5rem 1.6rem 1.4rem;
  background: linear-gradient(to top, rgba(7,7,26,1) 0%, rgba(7,7,26,0.92) 45%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
.bento-n {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p-hi);
  margin-bottom: 0.35rem;
}
.bento-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.bento-sub {
  font-size: 0.75rem;
  color: var(--grey);
  font-weight: 300;
  margin-top: 0.2rem;
  line-height: 1.5;
}

/* Message bubble mockup */
.bento-visual { padding: 1.4rem 1.6rem 5rem; display: flex; flex-direction: column; overflow: hidden; }

.msg-thread {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.msg-bubble {
  max-width: 75%;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  position: relative;
}
.msg-bubble.in {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.msg-bubble.in.unread { border-color: rgba(239,68,68,0.3); }
.msg-bubble.out {
  background: rgba(124,58,237,0.25);
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  opacity: 0.5;
}
.msg-meta {
  font-size: 0.6rem;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.1rem;
  padding: 0 0.2rem;
}
.msg-unread-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #EF4444;
  flex-shrink: 0;
}
.msg-unread-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.68rem;
  color: #EF4444;
  font-weight: 600;
  width: fit-content;
  margin-top: 0.25rem;
}

/* File stack mockup */
.file-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 1.6rem 5rem;
  overflow: hidden;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--grey);
  transition: background 0.2s;
}
.file-item.warn { border-color: rgba(245,158,11,0.2); color: var(--white); }
.file-icon {
  width: 1.4rem; height: 1.4rem;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}
.file-icon.green  { background: rgba(52,211,153,0.15); }
.file-icon.yellow { background: rgba(245,158,11,0.15); }
.file-icon.grey   { background: rgba(255,255,255,0.06); }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-badge {
  font-size: 0.58rem; font-weight: 700;
  padding: 0.1rem 0.4rem; border-radius: 100px;
}
.file-badge.stale  { background: rgba(245,158,11,0.15); color: #F59E0B; }
.file-badge.old    { background: rgba(255,255,255,0.06); color: var(--grey); }

/* Branch cards mockup */
.branch-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 1.4rem 5rem;
  overflow: hidden;
}
.branch-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  color: var(--grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.branch-card-name { font-weight: 600; color: var(--white); font-size: 0.72rem; }
.branch-card-val  { font-size: 0.65rem; }
.branch-card.v1 .branch-card-val { color: #34D399; }
.branch-card.v2 .branch-card-val { color: #F59E0B; }
.branch-card.v3 .branch-card-val { color: #EF4444; }

/* Tool list mockup */
.tool-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.2rem 1.4rem 5rem;
  overflow: hidden;
}
.tool-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.tool-ico {
  width: 1.6rem; height: 1.6rem;
  border-radius: 6px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tool-ico svg { width: 0.8rem; height: 0.8rem; stroke: var(--grey); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.tool-name { font-size: 0.72rem; font-weight: 600; color: var(--white); flex: 1; }
.tool-last { font-size: 0.62rem; color: var(--dim); white-space: nowrap; }

@media (max-width: 860px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 260px 260px 260px;
  }
  .bento-1 { grid-column: 1 / 3; grid-row: 1; }
  .bento-2 { grid-column: 1; grid-row: 2; }
  .bento-3 { grid-column: 2; grid-row: 2; }
  .bento-4 { grid-column: 1 / 3; grid-row: 3; }
}
@media (max-width: 540px) {
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .bento-1, .bento-2, .bento-3, .bento-4 { grid-column: 1; grid-row: auto; min-height: 240px; }
}

/* ── CREDIBILITY ── */
#credibility {
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

#credibility::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(124,58,237,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.cred-inner {
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
}

.cred-top {
  max-width: 36ch;
  margin-bottom: 4rem;
}
.cred-h { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 1rem; }
.cred-h em { font-style: normal; color: var(--p-hi); }
.cred-sub { font-size: 0.97rem; color: var(--grey); font-weight: 300; line-height: 1.8; }

.cred-row {
  display: grid;
  grid-template-columns: 4rem 1fr 1fr;
  gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.cred-row:last-child { border-bottom: 1px solid var(--line); }
.cred-n {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--p-xs);
  letter-spacing: -0.04em;
  line-height: 1;
  -webkit-text-stroke: 1px var(--dim);
  color: transparent;
}
.cred-row-title { font-size: 1.05rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.cred-row-body { font-size: 0.88rem; color: var(--grey); font-weight: 300; line-height: 1.75; }

@media (max-width: 680px) {
  .cred-row { grid-template-columns: 2.5rem 1fr; }
  .cred-row-body { grid-column: 2; margin-top: 0.4rem; }
}

/* ── CREDIBILITY DASHBOARD ── */
.cred-split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

.cred-dashboard {
  background: rgba(15,15,38,0.9);
  border: 1px solid rgba(167,139,250,0.18);
  border-radius: 12px;
  overflow: hidden;
  align-self: start;
}

.cred-dash-header {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cred-dash-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p-hi);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cred-dash-title::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34D399;
  animation: pulse-dot 2s ease-in-out infinite;
}
.cred-dash-live {
  font-size: 0.6rem;
  color: #34D399;
  font-weight: 600;
  background: rgba(52,211,153,0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
}

.cred-dash-body { padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.7rem; }

.cred-dash-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.05);
}
.cred-dash-label { font-size: 0.72rem; color: var(--grey); font-weight: 300; }
.cred-dash-val   { font-size: 0.78rem; font-weight: 700; color: var(--white); }
.cred-dash-val.green  { color: #34D399; }
.cred-dash-val.purple { color: var(--p-hi); }

.cred-dash-bar-row { padding: 0.75rem 0.75rem 0.5rem; border-top: 1px solid rgba(255,255,255,0.05); }
.cred-dash-bar-label {
  font-size: 0.65rem;
  color: var(--grey);
  margin-bottom: 0.45rem;
  display: flex;
  justify-content: space-between;
}
.cred-dash-bar-label span { color: var(--p-hi); font-weight: 600; }
.cred-dash-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.cred-dash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--p), var(--p-hi));
  border-radius: 2px;
  animation: bar-grow 1.8s ease forwards;
  transform-origin: left;
}

@media (max-width: 860px) {
  .cred-split { grid-template-columns: 1fr; }
  .cred-dashboard { position: static; }
}

/* ── PROCESS ── */
#process {
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.process-hd {
  padding: clamp(4rem, 8vw, 6rem) 0 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.process-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.process-title em { font-style: normal; color: var(--p-hi); }
.process-note { max-width: 34ch; font-size: 0.88rem; color: var(--grey); font-weight: 300; line-height: 1.65; text-align: right; }
@media (max-width: 680px) { .process-hd { flex-direction: column; align-items: flex-start; } .process-note { text-align: left; } }

.phase-panels { display: flex; flex-direction: column; }

.phase-panel {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  align-items: start;
  transition: background 0.2s;
}
.phase-panel:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.phase-panel:hover { background: rgba(124,58,237,0.03); }

.phase-left-col {
  padding: 2.2rem 2.5rem 2.2rem 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: sticky;
  top: 80px;
}

.phase-n-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p-hi);
}

.phase-panel-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--white);
  margin-top: 0.15rem;
}

.phase-panel-tag {
  font-size: 0.8rem;
  color: var(--grey);
  font-weight: 300;
  line-height: 1.6;
  margin-top: 0.1rem;
}

.phase-right-col {
  padding: 2.2rem 0 2.2rem 2.5rem;
}

.phase-right-col .phase-icon-cards {
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
}

@media (max-width: 860px) {
  .phase-panel { grid-template-columns: 1fr; }
  .phase-left-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 1.8rem 0 1.2rem; position: static; }
  .phase-right-col { padding: 1.5rem 0 2rem; }
  .phase-right-col .phase-icon-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── PROCESS TABS ── */
.phase-tab-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  border: 1px solid var(--dim);
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}
.phase-pill:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }
.phase-pill.active { background: var(--p); border-color: var(--p); color: #fff; }
.phase-pill-n { font-size: 0.62rem; font-weight: 700; opacity: 0.7; }

.phase-tab-panel {
  display: none;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 0.25rem 0 1rem;
  animation: tab-in 0.25s ease;
}
.phase-tab-panel.active { display: grid; }

@keyframes tab-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.phase-tab-info { display: flex; flex-direction: column; gap: 0.6rem; }
.phase-tab-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
}
.phase-tab-desc {
  font-size: 0.83rem;
  color: var(--grey);
  font-weight: 300;
  line-height: 1.65;
}

.phase-tab-panel .phase-icon-cards {
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
}

@media (max-width: 700px) {
  .phase-tab-panel { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── INDUSTRIES ── */
#industries {
  border-bottom: 1px solid var(--line);
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

#industries::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 55% at 100% 100%, rgba(124,58,237,0.1) 0%, transparent 55%);
  pointer-events: none;
}

.ind-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}
.ind-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.ind-title em { font-style: normal; color: var(--p-hi); }
.ind-note { max-width: 34ch; font-size: 0.88rem; color: var(--grey); font-weight: 300; line-height: 1.65; text-align: right; }
@media (max-width: 680px) { .ind-hd { flex-direction: column; align-items: flex-start; } .ind-note { text-align: left; } }

.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.ind-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.8rem 1.6rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 0.2s;
  position: relative;
}
.ind-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--p);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.ind-card:hover { background: rgba(124,58,237,0.05); }
.ind-card:hover::after { transform: scaleX(1); }

.ind-name { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.ind-pain { font-size: 0.81rem; color: var(--grey); font-weight: 300; line-height: 1.6; flex: 1; }

.ind-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ind-tag {
  font-size: 0.65rem; font-weight: 600;
  color: var(--p-hi);
  background: var(--p-xs);
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
}

.ind-arrow { font-size: 0.73rem; font-weight: 600; color: var(--dim); transition: color 0.2s; }
.ind-card:hover .ind-arrow { color: var(--p-hi); }

@media (max-width: 800px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ind-grid { grid-template-columns: 1fr; } }

/* ── DIAGNOSTIC ── */
#diagnostic {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

#diagnostic::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 25%, rgba(109,40,217,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at  5% 65%, rgba(29,78,216,0.16) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 85% 75%, rgba(124,58,237,0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#diagnostic .wrap { position: relative; z-index: 3; display: flex; justify-content: flex-end; }
.diag-content { max-width: 55ch; }

.diag-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--p-hi); margin-bottom: 1.5rem; }

.diag-h {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  max-width: 22ch;
}
.diag-h em { font-style: normal; color: var(--p-hi); }

.diag-row { max-width: 56ch; }
.diag-body { font-size: 1rem; color: var(--grey); font-weight: 300; line-height: 1.8; margin-bottom: 1.5rem; }

.diag-right { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; margin-top: 2rem; }
.diag-cta-note { font-size: 0.76rem; color: var(--dim); line-height: 1.6; }
.diag-cta-note a { color: var(--p-hi); text-decoration: none; }
.diag-cta-note a:hover { text-decoration: underline; }
