:root {
  --brand-ink: #0b0f17;
  --brand-cobalt: #2452a0;
  --brand-nav-height: 64px;
  --brand-nav-top: 6px;
  --brand-frame: min(1320px, 91%);
}
@media (max-width: 700px) {
  :root { --brand-nav-height: 48px; --brand-nav-top: 5px; --brand-frame: calc(100% - 26px) }
}
@media (max-height: 475px) and (min-width: 560px) {
  :root { --brand-nav-height: 42px; --brand-nav-top: 0px }
}

flowing-tech-background {
  display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(156deg, #cbe2fa, #eef5fd 86%);
}
flowing-tech-background[variant="hero"]::before {
  content: ''; position: absolute; inset: 0;
  background: center / cover url('./assets/hero-bg.webp'); opacity: .24;
}
flowing-tech-background svg { position: relative; width: 100%; height: 100%; display: block; fill: none }
flowing-tech-background .flow-wave { animation: brand-wave var(--breath) ease-in-out var(--phase) infinite }
flowing-tech-background .flow-track { stroke-width: 1.65; opacity: .48 }
flowing-tech-background .flow-pulse {
  stroke-width: 2.8; stroke-linecap: round; stroke-dasharray: 220 1400;
  filter: drop-shadow(0 0 8px rgb(56 189 248 / 70%));
  animation: brand-flow var(--travel) linear var(--phase) infinite;
}
flowing-tech-background[variant="auth"] {
  position: fixed;
  background: radial-gradient(ellipse at 20% 28%, #c9e7ff9c, transparent 48%),
    radial-gradient(ellipse at 78% 37%, #ffffffba, transparent 44%),
    radial-gradient(ellipse at 16% 0%, #cbe2fa, #e4f0fd 55%, #f4f8fd);
}
flowing-tech-background[variant="auth"]::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0b0f1708 1px, transparent 1px),
    linear-gradient(#0b0f1708 1px, transparent 1px);
  background-size: 28px 28px;
}
flowing-tech-background[variant="auth"] svg { opacity: .65 }
.dark flowing-tech-background[variant="auth"]::before {
  background-color: #152336;
  background-image: linear-gradient(90deg, #d4e8ff08 1px, transparent 1px),
    linear-gradient(#d4e8ff08 1px, transparent 1px), radial-gradient(ellipse at 50% 35%, #27415b, transparent 65%);
  background-size: 28px 28px, 28px 28px, cover;
}
flowing-tech-background[data-paused] * { animation-play-state: paused !important }
flowing-tech-background[variant="console"] { background: #f8fafc }
flowing-tech-background[variant="console"]::before {
  content: ''; display: block; height: 250px; opacity: .15;
  background: radial-gradient(circle, #819ebf 1px, transparent 1.1px) 0 0 / 16px 16px,
    radial-gradient(ellipse at 60% 0, #aacdf6, transparent 75%);
  mask-image: linear-gradient(#000, transparent);
}
.dark flowing-tech-background:not([variant="hero"]) { background: #111c2b }
@keyframes brand-flow { from { stroke-dashoffset: 1620 } to { stroke-dashoffset: 0 } }
@keyframes brand-wave { 50% { transform: translateY(-10px) } }

.brand-action, .btn.brand-action {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center;
  justify-content: center; gap: .4rem; min-height: 46px; border: 1px solid transparent;
  border-radius: var(--brand-action-radius, 99px); padding: 10px 24px;
  background: var(--brand-ink); color: #fff; font-size: .92rem; font-weight: 600; line-height: 1.4;
  transition: transform .22s, box-shadow .22s, background-color .22s;
}
.brand-action::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, transparent 35%, #fff4 50%, transparent 65%);
  transform: translateX(-125%);
}
.brand-action:not(:disabled):hover {
  background: var(--brand-cobalt); color: white; transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px #457cc182;
}
.brand-action:not(:disabled):hover::after { animation: brand-sweep .6s cubic-bezier(.22,1,.36,1) }
.brand-action:focus-visible { outline: 2px solid #3b82f6; outline-offset: 3px }
.brand-action:disabled { opacity: .48; cursor: not-allowed }
@keyframes brand-sweep { to { transform: translateX(125%) } }
@media (prefers-reduced-motion: reduce) {
  flowing-tech-background .flow-wave, flowing-tech-background .flow-pulse { animation: none }
  flowing-tech-background .flow-pulse { display: none }
  .brand-action:not(:disabled):hover { transform: none }
  .brand-action:not(:disabled):hover::after { animation: none }
}
