/* Registering the angle makes it interpolatable, so it can be animated. */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --stops: #ff4d2e, #ffb02e, #ff2e88, #7a5cff, #ff4d2e;
  --thickness: 2px;
}

body {
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: radial-gradient(circle at 50% 30%, #1d1520, #08080a 70%);
  color: #f2f1ee;
}

.stage { display: grid; gap: 48px; justify-items: center; }
.row { display: flex; gap: 32px; align-items: center; }

/* Shared technique: gradient on the border-box, solid fill on the padding-box. */
.glow-card,
.glow-button,
.glow-avatar {
  position: relative;
  border: var(--thickness) solid transparent;
  background:
    linear-gradient(#121216, #121216) padding-box,
    conic-gradient(from var(--angle), var(--stops)) border-box;
  animation: spin 4s linear infinite;
}

/* Soft glow: same gradient, blurred, behind the element. */
.glow-card::before,
.glow-button::before,
.glow-avatar::before {
  content: '';
  position: absolute;
  inset: calc(var(--thickness) * -1);
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), var(--stops));
  filter: blur(18px);
  opacity: 0.55;
  animation: inherit;
}

.glow-card:hover,
.glow-button:hover,
.glow-avatar:hover { animation-duration: 1.2s; }

@keyframes spin { to { --angle: 360deg; } }

.glow-card {
  width: min(420px, 100%);
  padding: 32px;
  border-radius: 20px;
}
.glow-card h1 { margin: 8px 0 12px; font-size: 32px; line-height: 1.1; }
.glow-card p { margin: 0; color: #a5a3ad; }
.glow-card code { color: #ffb02e; }
.eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #ff4d2e; }

.glow-button {
  padding: 14px 28px;
  border-radius: 999px;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.glow-avatar {
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  --thickness: 3px;
  font-weight: 700;
}
