  /* ───── SECTIONS ───── */
  section {
    padding: 100px 80px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-label {
    font-family: 'Goldman', 'IBM Plex Serif', serif;
    font-size: 11px;
    letter-spacing: 0.4em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 16px;
  }

  .section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 50px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.01em;
  }

  .section-title em {
    font-style: normal;
    color: var(--rust);
    font-weight: 600;
  }

  hr.rule {
    border: none;
    border-top: 1px solid var(--divider);
    margin: 0 80px;
  }

  /* ───── HOW IT WORKS (3-step flow) ───── */
  /* ───── HOW IT WORKS — STEPS ───── */
  .how-step {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: 32px;
    padding: 40px;
    background: linear-gradient(165deg, var(--slate-mid) 0%, var(--paper) 100%);
    border: 1px solid var(--divider);
    position: relative;
    overflow: visible;
    transition: border-color 0.4s, box-shadow 0.4s;
  }

  .how-step:hover {
    border-color: rgba(184,150,62,0.25);
    box-shadow: 0 4px 40px rgba(184,150,62,0.05);
  }

  .how-step-num {
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    font-weight: 200;
    color: rgba(184,150,62,0.12);
    line-height: 1;
  }

  .how-step-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid rgba(184,150,62,0.15);
    border-radius: 8px;
    background: rgba(184,150,62,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
  }

  .how-step-icon svg { width: 22px; height: 22px; }

  .how-step-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
  }

  .how-step-content p {
    font-family: 'IBM Plex Serif', serif;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .how-step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .how-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Goldman', sans-serif;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 4px 10px;
    border: 1px solid var(--divider);
    background: rgba(10,10,12,0.5);
    transition: border-color 0.3s, color 0.3s;
  }

  .how-tag:hover { border-color: var(--gold); color: var(--gold); }
  .how-tag img { width: 14px; height: 14px; }

  /* Flow connector between steps */
  .how-flow {
    display: flex;
    justify-content: center;
    padding: 8px 0;
  }

  .how-flow-line {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, var(--gold), transparent);
    opacity: 0.3;
  }

  /* ── Step visuals ── */
  .how-step-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Disk indicator rows */
  .how-visual-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .how-disk-row {
    font-family: 'Goldman', sans-serif;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding: 10px 14px;
    border: 1px solid var(--divider);
    background: rgba(10,10,12,0.6);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .how-disk-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4aff4a;
    box-shadow: 0 0 6px rgba(74,255,74,0.4);
    animation: led-pulse 2s ease-in-out infinite;
  }

  .how-disk-led.off {
    background: #555;
    box-shadow: none;
    animation: none;
  }

  .how-disk-row.dim { opacity: 0.4; }

  @keyframes led-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  /* Routing demo */
  .how-routing-demo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .how-route-in, .how-route-hub {
    font-family: 'Goldman', sans-serif;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 14px;
    border: 1px solid var(--divider);
    color: var(--muted);
  }

  .how-route-hub {
    border-color: var(--gold);
    color: var(--gold);
    position: relative;
  }

  .how-route-hub::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(184,150,62,0.15);
    pointer-events: none;
  }

  .how-route-arrow {
    font-family: 'Goldman', sans-serif;
    font-size: 16px;
    color: rgba(184,150,62,0.3);
  }

  .how-route-out {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .how-route-model {
    font-family: 'Goldman', sans-serif;
    font-size: 9px;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-left: 2px solid;
    border-color: attr(data-color);
    color: var(--muted);
  }

  .how-route-model[data-color="#d97706"] { border-color: #d97706; }
  .how-route-model[data-color="#10b981"] { border-color: #10b981; }
  .how-route-model[data-color="#6366f1"] { border-color: #6366f1; }

  /* Model showcase cards */
  .how-models-showcase {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: visible;
  }

  .how-model-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--divider);
    background: rgba(10,10,12,0.6);
    transition: border-color 0.3s, background 0.3s;
    cursor: default;
  }

  .how-model-card:hover {
    border-color: rgba(184,150,62,0.3);
    background: rgba(184,150,62,0.03);
  }

  .how-model-card img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .how-model-info {
    display: flex;
    flex-direction: column;
  }

  .how-model-info strong {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .how-model-info span {
    font-family: 'Goldman', sans-serif;
    font-size: 8px;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-top: 2px;
  }

  /* Nebius-hosted models get a green accent */
  .how-model-card.nebius-hosted {
    border-color: rgba(74,255,74,0.1);
  }

  .how-model-card.nebius-hosted:hover {
    border-color: rgba(74,255,74,0.3);
    background: rgba(74,255,74,0.02);
  }

  .how-model-card.nebius-hosted .how-model-info span {
    color: rgba(74,255,74,0.6);
  }

  /* ── Model Tooltip (hover card) ── */
  .model-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 300px;
    padding: 20px;
    background: #111318;
    border: 1px solid rgba(184,150,62,0.2);
    border-radius: 12px;
    box-shadow:
      0 12px 40px rgba(0,0,0,0.6),
      0 0 0 1px rgba(184,150,62,0.06),
      inset 0 1px 0 rgba(255,255,255,0.03);
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
  }

  /* Arrow */
  .model-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(184,150,62,0.2);
  }

  .how-model-card {
    position: relative;
    z-index: 1;
  }

  .how-model-card:hover {
    z-index: 200;
  }

  .how-model-card:hover .model-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }

  /* Tooltip header */
  .mt-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--divider);
  }

  .mt-header img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .mt-header strong {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: block;
  }

  .mt-header em {
    font-family: 'Goldman', sans-serif;
    font-size: 9px;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-top: 2px;
  }

  /* Stats grid */
  .mt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .mt-stat {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    background: rgba(10,10,12,0.6);
    border: 1px solid rgba(184,150,62,0.06);
    border-radius: 6px;
  }

  .mt-label {
    font-family: 'Goldman', sans-serif;
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #556;
    margin-bottom: 3px;
  }

  .mt-val {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: 0.01em;
  }

  /* Description */
  .mt-desc {
    font-family: 'IBM Plex Serif', serif;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
  }

  /* Nebius-hosted tooltip green accent */
  .how-model-card.nebius-hosted .model-tooltip {
    border-color: rgba(74,255,74,0.15);
  }

  .how-model-card.nebius-hosted .mt-header em {
    color: rgba(74,255,74,0.7);
  }

  .sandbox-note {
    margin-top: 32px;
    padding: 28px;
    background: var(--slate-mid);
    border: 1px solid var(--divider);
    position: relative;
  }

  .sandbox-note::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--gold);
  }

  .sandbox-note p {
    font-family: 'IBM Plex Serif', serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.75;
  }

  .sandbox-note strong {
    font-weight: 500;
    color: var(--ink);
  }

  /* ───── ARCHITECTURE ───── */
  .arch-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }

  .arch-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
  }

  .arch-stack::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: repeating-linear-gradient(
      180deg,
      var(--gold) 0px,
      var(--gold) 6px,
      transparent 6px,
      transparent 12px
    );
    z-index: 0;
  }

  .arch-node {
    border: 1px solid var(--divider);
    padding: 20px 24px 20px 68px;
    position: relative;
    background: var(--slate-mid);
    transition: border-color 0.3s, box-shadow 0.3s;
    z-index: 1;
  }

  .arch-node:hover {
    border-color: var(--gold);
    box-shadow: 0 2px 20px rgba(184,150,62,0.12);
  }

  .arch-node + .arch-node {
    margin-top: 16px;
  }

  .arch-node-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .arch-node-icon svg {
    width: 32px;
    height: 32px;
  }

  .arch-node-label {
    font-family: 'Goldman', 'IBM Plex Serif', serif;
    font-size: 10px;
    letter-spacing: 0.25em;
    color: #E8B30E;
    text-transform: uppercase;
    margin-bottom: 4px;
    text-shadow: 0 0 8px rgba(232,179,14,0.3);
  }

  .arch-node-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .arch-node-detail {
    font-family: 'Goldman', 'IBM Plex Serif', serif;
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
  }

  .arch-node.highlight {
    background: var(--slate);
    border-color: var(--slate);
  }

  .arch-node.highlight .arch-node-label { color: var(--gold); }
  .arch-node.highlight .arch-node-title { color: white; }
  .arch-node.highlight .arch-node-detail { color: #6a7a8a; }
  .arch-node.highlight .arch-node-icon svg { stroke: var(--gold-light); fill: none; }

  .arch-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 0;
  }

  .benefit-item {
    padding: 28px;
    padding-left: 31px;
    border-left: none;
    background: var(--slate-mid);
    position: relative;
    overflow: hidden;
  }

  .benefit-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--gold);
  }

  .benefit-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(184,150,62,0.03) 0%, transparent 50%);
    pointer-events: none;
  }

  .benefit-item .benefit-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
  }

  .benefit-item .benefit-icon svg {
    width: 28px;
    height: 28px;
  }

  .benefit-item h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .benefit-item p {
    font-family: 'IBM Plex Serif', serif;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.65;
  }

  /* Nebius diagram in left column */
  .arch-nebius-diagram {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin-top: 24px;
    border: 1px solid var(--divider);
    border-radius: 4px;
    padding: 16px;
    background: rgba(30,37,48,0.4);
  }

  /* Full-width benefit below the 2-column grid */
  .arch-full-benefit {
    margin-top: 24px;
  }

  /* ───── SECURITY LAYERS ───── */
  .security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--divider);
    border: 1px solid var(--divider);
  }

  .sec-cell {
    background: var(--slate-mid);
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
  }

  .sec-cell > *:not(canvas) {
    position: relative;
    z-index: 1;
  }

  /* Network security cell — text with shadow for visibility over terminal bg */
  #secCellNetwork > *:not(canvas) {
    text-shadow: 0 1px 8px rgba(0,0,0,0.95), 0 0 24px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.4);
  }

  #secCellNetwork h3 {
    font-size: 1.4rem;
    text-shadow: 0 2px 12px rgba(0,0,0,1), 0 0 36px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.5);
  }

  /* Green LED feature rows */
  .sec-net-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
  }

  .sec-net-row {
    font-family: 'Goldman', sans-serif;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.9), 0 0 16px rgba(0,0,0,0.6);
  }

  .sec-net-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4aff4a;
    box-shadow: 0 0 6px rgba(74,255,74,0.5);
    flex-shrink: 0;
    animation: led-pulse 2s ease-in-out infinite;
  }

  .sec-cell:hover {
    background: #faf8f4;
  }

  .sec-cell::before {
    content: attr(data-num);
    position: absolute;
    top: 12px; right: 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    font-weight: 200;
    color: rgba(255,255,255,0.15);
    line-height: 1;
  }

  .sec-cell .sec-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 14px;
  }

  .sec-cell .sec-icon svg {
    width: 32px;
    height: 32px;
  }

  .sec-cell h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .sec-cell p {
    font-family: 'IBM Plex Serif', serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.65;
  }

  .sec-cell.accent {
    background: var(--slate);
  }

  .sec-cell.accent:hover { background: var(--slate-mid); }
  .sec-cell.accent h3 { color: var(--gold-light); }
  .sec-cell.accent p { color: #6a7a8a; }
  .sec-cell.accent::before { color: rgba(255,255,255,0.12); }
  .sec-cell.accent .sec-icon svg { stroke: var(--gold-light); }

/* ───── DEPLOYMENT SECTION ───── */
.deploy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.deploy-card {
  padding: 36px 28px;
  border: 1px solid var(--divider);
  background: var(--slate-mid);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.deploy-card:hover {
  border-color: var(--gold);
}

.deploy-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.deploy-card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
}

.deploy-card-icon svg {
  width: 36px;
  height: 36px;
}

.deploy-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.deploy-card p {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.nebius-pricing {
  margin-bottom: 40px;
  padding: 28px;
  background: var(--slate);
  border: 1px solid var(--divider);
}

.nebius-pricing h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.nebius-table {
  width: 100%;
  border-collapse: collapse;
}

.nebius-table td {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-bottom: 1px solid var(--divider);
}

.nebius-table td:first-child {
  color: var(--ink);
  font-weight: 500;
}

.nebius-table td:last-child {
  color: var(--gold);
  text-align: right;
  font-family: 'Goldman', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.nebius-table tr:last-child td {
  border-bottom: none;
}

.deploy-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
}

.deploy-mode {
  background: var(--slate-mid);
  padding: 24px;
  text-align: center;
}

.deploy-mode h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.deploy-mode p {
  font-family: 'Goldman', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ───── NO LOCK-IN SECTION ───── */
.lockin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lockin-item {
  padding: 28px;
  border: 1px solid var(--divider);
  background: var(--slate-mid);
  position: relative;
  transition: border-color 0.3s;
}

.lockin-item:hover {
  border-color: var(--gold);
}

.lockin-item-wide {
  grid-column: span 2;
}

.lockin-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
}

.lockin-icon svg {
  width: 32px;
  height: 32px;
}

.lockin-item h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lockin-item p {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ───── SECURITY TRANSPARENCY ───── */
.sec-transparency {
  margin-top: 32px;
  padding: 24px 28px;
  padding-left: 31px;
  background: var(--slate);
  border: 1px solid var(--divider);
  border-left: none;
  position: relative;
}

.sec-transparency::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
}

.sec-transparency p {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ───── ARCH CONTROL LAYER HIGHLIGHT ───── */
.arch-node.highlight.active {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(184,150,62,0.15);
  background: linear-gradient(135deg, var(--slate) 0%, rgba(184,150,62,0.06) 100%);
}

/* ───── BORDER GLOW EFFECT ───── */
.border-glow {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: 50;
  position: relative;
  isolation: isolate;
  overflow: visible !important;
}

.border-glow .edge-light {
  position: absolute;
  inset: -20px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
  mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black 2.5%, transparent 10%, transparent 90%, black 97.5%
  );
  transition: opacity 0.25s ease-out;
}

.border-glow:not(:hover) .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

.border-glow .edge-light::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px hsl(270 80% 70% / 80%),
    inset 0 0 3px 0 hsl(270 80% 70% / 50%),
    inset 0 0 8px 0 hsl(330 80% 70% / 30%),
    inset 0 0 20px 0 hsl(200 80% 70% / 20%),
    0 0 3px 0 hsl(270 80% 70% / 50%),
    0 0 8px 0 hsl(330 80% 70% / 30%),
    0 0 20px 0 hsl(200 80% 70% / 15%);
}

.border-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  z-index: -1;
  background:
    linear-gradient(var(--slate-mid, #1a1f2e) 0 100%) padding-box,
    conic-gradient(from var(--cursor-angle), hsl(270 80% 70%), hsl(330 80% 70%), hsl(200 80% 70%), hsl(270 80% 70%)) border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black 25%, transparent 40%, transparent 60%, black 75%
  );
  transition: opacity 0.25s ease-out;
}

.border-glow:not(:hover)::before {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}
