/* Typography helpers */
.text-gradient {
  background: linear-gradient(to bottom, #ffffff, #a3a3a3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--blue-bright);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
}

/* Glass */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
}

.glass-panel {
  background: rgba(5, 5, 5, 0.45);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1rem;
}

/* Shiny CTA */
@property --gradient-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-angle-offset { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-percent { syntax: "<percentage>"; initial-value: 20%; inherits: false; }
@property --gradient-shine { syntax: "<color>"; initial-value: #8484ff; inherits: false; }

.shiny-cta {
  --gradient-angle: 0deg;
  --gradient-angle-offset: 0deg;
  --gradient-percent: 20%;
  --gradient-shine: #8484ff;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: #ffffff;
  background:
    linear-gradient(#000000, #000000) padding-box,
    conic-gradient(
      from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent 0%,
      #1d4ed8 5%,
      var(--gradient-shine) 15%,
      #1d4ed8 30%,
      transparent 40%,
      transparent 100%
    ) border-box;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px #1a1818;
  outline: none;
  isolation: isolate;
  z-index: 0;
  animation: border-spin 2.5s linear infinite;
  transition: box-shadow 0.3s;
}

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

.shiny-cta:active { transform: translateY(1px); }

.shiny-cta::before {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  --size: calc(100% - 6px);
  --position: 2px;
  --space: 4px;
  width: var(--size);
  height: var(--size);
  background: radial-gradient(circle at var(--position) var(--position), white 0.5px, transparent 0) padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
  border-radius: inherit;
  opacity: 0.4;
}

.shiny-cta::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, #1d4ed8, transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
  animation: shimmer 4s linear infinite;
}

.shiny-cta span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.shiny-cta span::before {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  --size: calc(100% + 1rem);
  width: var(--size);
  height: var(--size);
  box-shadow: inset 0 -1ex 2rem 4px #1d4ed8;
  opacity: 0;
  border-radius: inherit;
  animation: breathe 4.5s linear infinite;
}

@keyframes shimmer { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .shiny-cta,
  .shiny-cta::after,
  .shiny-cta span::before { animation: none; }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: #d4d4d4;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #000;
  font-weight: 600;
}

.btn-solid:hover { opacity: 0.92; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  height: 100%;
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand svg { width: 1.1rem; height: 1.1rem; color: var(--blue-bright); }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { color: #fff; }

.header-cta {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.header-cta:hover { color: var(--blue-bright); }

.nav-toggle {
  color: var(--muted);
  padding: 0.25rem;
}

.nav-toggle svg { width: 1.25rem; height: 1.25rem; }

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #171717;
  border-bottom: 1px solid var(--border-strong);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-mobile.is-open { display: flex; }

.nav-mobile a { color: var(--muted); font-size: 0.9375rem; }
.nav-mobile a:hover { color: #fff; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #000;
  padding: 2.5rem 0 2rem;
  margin-top: 4rem;
}

.site-footer__inner {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer nav a:hover { color: #fff; }

.site-footer__meta {
  font-size: 0.75rem;
  color: var(--muted-2);
  line-height: 1.6;
}

.site-footer__meta a { text-decoration: underline; text-underline-offset: 2px; }

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #d4d4d4;
}

.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 0.625rem;
  padding: 0.75rem 0.9rem;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.field textarea { min-height: 7rem; resize: vertical; }

.form-error {
  color: #fca5a5;
  font-size: 0.8125rem;
}

.form-success {
  color: #86efac;
  font-size: 0.875rem;
}

/* Wizard */
.wizard-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.wizard-step-dot {
  height: 0.35rem;
  flex: 1;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
}

.wizard-step-dot.is-active,
.wizard-step-dot.is-done { background: var(--blue-bright); }

.wizard-panel[hidden] { display: none; }

/* Cards grid */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card-link {
  display: block;
  padding: 1.25rem;
  transition: border-color 0.2s, background 0.2s;
}

.card-link:hover {
  border-color: var(--blue-border);
  background: rgba(59, 130, 246, 0.05);
}

.card-link h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.card-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
