/* Preview: radial / swirl background inspired by favicon S (purple, cyan, mint, soft lilac).
   Open swirl-preview.html or swap this file for styles.css in index.html. */

:root {
  --color-brand-gray: #898989;
  --color-brand-gray-dark: #707070;
  --color-brand-surface: #d9d9d9;
  --color-brand-coral: #ff4d4d;
  --color-brand-mint: #4dffbc;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --favicon-purple: #863bff;
  --favicon-violet: #7e14ff;
  --favicon-sky: #47bfff;
  --favicon-lilac: #ede6ff;
  --favicon-mint: #4dffbc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  background-color: #f0f0f2;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--color-text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: -35%;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 50%, rgb(134 59 255 / 0.72) 0%, transparent 36%),
    radial-gradient(circle at 46% 48%, rgb(126 20 255 / 0.68) 0%, transparent 32%),
    radial-gradient(circle at 54% 52%, rgb(71 191 255 / 0.62) 0%, transparent 34%),
    radial-gradient(circle at 50% 50%, rgb(77 255 188 / 0.45) 0%, transparent 28%),
    radial-gradient(circle at 20% 30%, rgb(126 20 255 / 0.4) 0%, transparent 48%),
    radial-gradient(circle at 80% 25%, rgb(71 191 255 / 0.36) 0%, transparent 46%),
    radial-gradient(circle at 65% 75%, rgb(134 59 255 / 0.34) 0%, transparent 50%),
    radial-gradient(circle at 25% 70%, rgb(77 255 188 / 0.3) 0%, transparent 48%),
    radial-gradient(circle at 50% 10%, rgb(255 77 77 / 0.22) 0%, transparent 42%),
    conic-gradient(
      from 0deg at 50% 50%,
      var(--favicon-violet) 0deg,
      var(--favicon-sky) 90deg,
      var(--favicon-mint) 180deg,
      var(--favicon-purple) 270deg,
      var(--favicon-violet) 360deg
    );
  animation: favicon-swirl 14s linear infinite;
  filter: blur(30px);
  transform-origin: 50% 50%;
  will-change: transform;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 95% 85% at 50% 50%, transparent 0%, transparent 38%, rgb(255 255 255 / 0.38) 72%, rgb(240 240 242 / 0.52) 100%),
    radial-gradient(ellipse 55% 45% at 8% 12%, rgb(255 255 255 / 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 92% 88%, rgb(255 255 255 / 0.4) 0%, transparent 68%),
    linear-gradient(
      180deg,
      rgb(255 255 255 / 0.32) 0%,
      transparent 28%,
      transparent 72%,
      rgb(240 240 242 / 0.35) 100%
    );
  pointer-events: none;
}

@keyframes favicon-swirl {
  from {
    transform: rotate(0deg) scale(1.05);
  }
  to {
    transform: rotate(360deg) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
    filter: blur(32px);
  }
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  width: 100%;
  max-width: 32rem;
  padding: 0 1.5rem 2rem;
  text-align: center;
  background: rgb(255 255 255 / 0.92);
  border: 1px solid rgb(137 137 137 / 0.35);
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgb(126 20 255 / 0.12);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.logo-heading {
  margin: 0 -1.5rem 0;
  padding: 1.25rem 1.5rem;
  line-height: 0;
  background: #fff;
}

.brand-logo {
  display: block;
  width: min(100%, 20rem);
  height: auto;
  margin: 0 auto;
}

.heading {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.tagline {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.actions {
  margin-top: 1.5rem;
}

.btn-demo {
  display: inline-block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background-color: #634dff;
  border-radius: 0.375rem;
  transition: background-color 200ms ease-out;
}

.btn-demo:hover {
  background-color: #4f3ecc;
}

.btn-demo:focus-visible {
  outline: 2px solid var(--color-brand-mint);
  outline-offset: 2px;
}
