/* ----------------------------- */
/* Header + Nav                  */
/* ----------------------------- */

.site-header {
    padding: 1.4rem 1.5rem 2.2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    background: radial-gradient(circle at top, #020617 0, #020617 55%, #000 100%);
    position: relative;
    z-index: 20;
  }
  
  /* Generic container for header/footer rows */
  .container {
    max-width: var(--container-width);
    margin: 0 auto;
  }
  
  /* Top row: brand + nav */
  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.6rem;
  }
  
  /* Brand */
  .brand {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .brand span {
    color: var(--accent);
  }
  
  /* Nav list */
  .nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
  }
  
  .nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.78rem;
    transition:
      color 0.18s ease,
      transform 0.14s ease;
  }
  
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9, #22c55e);
    transition: width 0.18s ease;
  }
  
  .nav a:hover,
  .nav a:focus-visible {
    color: var(--accent);
    transform: translateY(-1px);
  }
  
  .nav a:hover::after,
  .nav a:focus-visible::after {
    width: 100%;
  }
  
  /* Existing title/subtitle block under nav */
  .site-header__inner {
    max-width: var(--container-width);
    margin: 0 auto;
  }
  
  .site-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    letter-spacing: 0.04em;
  }
  
  .site-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  
  /* Responsive tweaks */
  @media (max-width: 780px) {
    .header__inner {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.8rem;
    }
  
    .nav {
      flex-wrap: wrap;
      row-gap: 0.4rem;
    }
  }
  

/* ----------------------------- */
/* Base reset & tokens           */
/* ----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050816;
  --bg-soft: #0b1020;
  --surface: #0f172a;
  --surface-elevated: #111827;
  --surface-border: rgba(148, 163, 184, 0.35);
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.18);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --radius-lg: 1.2rem;
  --radius-md: 0.9rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --container-width: 1120px;
  --demo-card-min-height: 260px;
  --code-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 50%, #000 100%);
  color: var(--text);
}

/* ----------------------------- */
/* Header                        */
/* ----------------------------- */
.site-header {
  padding: 2.5rem 1.5rem 1.75rem;
}

.site-header__inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.site-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
}

.site-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ----------------------------- */
/* Layout wrapper                */
/* ----------------------------- */
.designs {
  padding: 0 1.5rem 3rem;
}

.design-section {
  max-width: var(--container-width);
  margin: 0 auto 3rem;
  padding: 1.8rem 1.8rem 2.1rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #1f2937 0, #020617 55%);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--surface-border);
}

.design-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .design-section__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Left side: preview */
.design-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.design-title {
  margin: 0;
  font-size: 1.2rem;
}

.design-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.design-preview__box {
  margin-top: 0.6rem;
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(
    145deg,
    #020617 0,
    #020617 45%,
    #030712 100%
  );
  border: 1px solid var(--surface-border);
  min-height: var(--demo-card-min-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Right side: code & tabs */
.design-code {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-title {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}



.code-copy-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-muted);
    cursor: pointer;
    transition:
      background-color 0.14s ease,
      color 0.14s ease,
      border-color 0.14s ease,
      transform 0.1s ease,
      box-shadow 0.12s ease;
  }
  
  .code-copy-btn:hover,
  .code-copy-btn:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.75);
  }
  
  .code-copy-btn--success {
    border-color: var(--accent);
    color: var(--accent);
  }
  

/* ----------------------------- */
/* CSS-only tabs                 */
/* ----------------------------- */

.code-tabs__input {
  display: none;
}

.code-tabs {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  padding: 0.18rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.55);
  gap: 0.1rem;
}

.code-tab {
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
}

/* Panels container */
.code-panels {
  margin-top: 0.5rem;
  border-radius: var(--radius-md);
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.85rem 0.9rem;
  max-height: 260px;
  overflow: auto;
}

.code-panel {
  display: none;
  margin: 0;
  font-family: var(--code-font);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
  white-space: pre;
}

.code-panel code {
  font-family: inherit;
}

/* Scrollbar */
.code-panels::-webkit-scrollbar {
  width: 6px;
}
.code-panels::-webkit-scrollbar-track {
  background: #020617;
}
.code-panels::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}

/* Active tab / panel state */
#tabs-1-html:checked ~ .code-tabs label[for="tabs-1-html"],
#tabs-1-css:checked  ~ .code-tabs label[for="tabs-1-css"],
#tabs-1-js:checked   ~ .code-tabs label[for="tabs-1-js"],
#tabs-2-html:checked ~ .code-tabs label[for="tabs-2-html"],
#tabs-2-css:checked  ~ .code-tabs label[for="tabs-2-css"],
#tabs-2-js:checked   ~ .code-tabs label[for="tabs-2-js"],
#tabs-3-html:checked ~ .code-tabs label[for="tabs-3-html"],
#tabs-3-css:checked  ~ .code-tabs label[for="tabs-3-css"],
#tabs-3-js:checked   ~ .code-tabs label[for="tabs-3-js"],
#tabs-4-html:checked ~ .code-tabs label[for="tabs-4-html"],
#tabs-4-css:checked  ~ .code-tabs label[for="tabs-4-css"],
#tabs-4-js:checked   ~ .code-tabs label[for="tabs-4-js"] {
  background: radial-gradient(circle at top, var(--accent-soft) 0, transparent 70%);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Panels visibility */
#tabs-1-html:checked ~ .code-panels [data-panel="html"],
#tabs-2-html:checked ~ .code-panels [data-panel="html"],
#tabs-3-html:checked ~ .code-panels [data-panel="html"],
#tabs-4-html:checked ~ .code-panels [data-panel="html"],
#tabs-1-css:checked  ~ .code-panels [data-panel="css"],
#tabs-2-css:checked  ~ .code-panels [data-panel="css"],
#tabs-3-css:checked  ~ .code-panels [data-panel="css"],
#tabs-4-css:checked  ~ .code-panels [data-panel="css"],
#tabs-1-js:checked   ~ .code-panels [data-panel="js"],
#tabs-2-js:checked   ~ .code-panels [data-panel="js"],
#tabs-3-js:checked   ~ .code-panels [data-panel="js"],
#tabs-4-js:checked   ~ .code-panels [data-panel="js"] {
  display: block;
}


/* ----------------------------- */
/* Demo 1: Drifting particles    */
/* ----------------------------- */

.demo-particles {
    position: relative;              /* key: anchor for layers + dots */
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    border-radius: 1.2rem;
    overflow: hidden;                /* key: clip anything that overflows */
    border: 1px solid var(--surface-border);
    background: radial-gradient(circle at top, #020617 0, #000 70%);
  }
  
  /* MONO base dots */
  .demo-particles__dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(248, 250, 252, 0.9);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.85);
    pointer-events: none;
    opacity: 0;
    animation: demo-particles-float-dot 18s linear infinite;
  }
  
  @keyframes demo-particles-float-dot {
    0% {
      transform: translate3d(0, 0, 0);
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    85% {
      opacity: 1;
    }
    100% {
      transform: translate3d(var(--dot-dx, 0px), var(--dot-dy, -120px), 0);
      opacity: 0;
    }
  }
  
  /* Toggle UI */
.particles-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
}

.particles-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.particles-mode-btn.is-active {
  background: var(--accent);
  color: #020617;
}

/* CONFETTI MODE – overrides only when the container has the class */
.demo-particles--confetti .demo-particles__dot {
  width: 7px;
  height: 18px;
  border-radius: 999px;
  opacity: 0.95;
  filter: none;

  /* kill mono glow look */
  background-image: none;
  background-color: #0ea5e9;
  box-shadow:
    0 0 3px rgba(15, 23, 42, 0.28),
    0 0 10px rgba(15, 23, 42, 0.16);
}

/* Multicolor stripes */
.demo-particles--confetti .demo-particles__dot:nth-child(5n + 1) {
  background-color: #0ea5e9; /* cyan/blue */
}
.demo-particles--confetti .demo-particles__dot:nth-child(5n + 2) {
  background-color: #22c55e; /* green */
}
.demo-particles--confetti .demo-particles__dot:nth-child(5n + 3) {
  background-color: #f97316; /* orange */
}
.demo-particles--confetti .demo-particles__dot:nth-child(5n + 4) {
  background-color: #a855f7; /* purple */
}
.demo-particles--confetti .demo-particles__dot:nth-child(5n + 5) {
  background-color: #e11d48; /* pink/red */
}

/* Some dots instead of stripes */
.demo-particles--confetti .demo-particles__dot:nth-child(7n) {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

  /* Layers sit inside the container, slightly oversized for soft edges */
  .demo-particles__layer {
    position: absolute;
    inset: -10%;                     /* was -25%; tighter so it hugs the card */
    background-repeat: repeat;
    mix-blend-mode: screen;
    opacity: 0.7;
  }
  
  /* Fine grain */
  .demo-particles__layer--1 {
    background-image: radial-gradient(
      circle,
      rgba(148, 163, 184, 0.6) 1px,
      transparent 55%
    );
    background-size: 40px 40px;
    animation: demo-particles-drift-1 42s linear infinite;
  }
  
  /* Medium blobs */
  .demo-particles__layer--2 {
    background-image: radial-gradient(
      circle,
      rgba(56, 189, 248, 0.55) 2px,
      transparent 60%
    );
    background-size: 80px 80px;
    animation: demo-particles-drift-2 55s linear infinite;
  }
  
  /* Larger soft lights */
  .demo-particles__layer--3 {
    background-image: radial-gradient(
      circle,
      rgba(34, 197, 94, 0.35) 8px,
      transparent 70%
    );
    background-size: 180px 180px;
    animation: demo-particles-drift-3 75s linear infinite;
  }
  
  @keyframes demo-particles-drift-1 {
    0% {
      transform: translate3d(0, 0, 0);
    }
    100% {
      transform: translate3d(60px, -80px, 0);
    }
  }
  
  @keyframes demo-particles-drift-2 {
    0% {
      transform: translate3d(0, 0, 0);
    }
    100% {
      transform: translate3d(-90px, 60px, 0);
    }
  }
  
  @keyframes demo-particles-drift-3 {
    0% {
      transform: translate3d(0, 0, 0);
    }
    100% {
      transform: translate3d(40px, 90px, 0);
    }
  }
  


  /* ----------------------------- */
/* Demo 4: Stripe Houdini hero   */
/* ----------------------------- */

/* Custom property for blinking opacity */
@property --blink-opacity {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

@keyframes demo-stripes-blink {
  0%, 100% { opacity: var(--blink-opacity, 1); }
  50%      { opacity: 0; }
}

@keyframes demo-stripes-bg-pan {
  from { background-position: 50% 50%, 50% 50%; }
  to   { background-position: 350% 50%, 350% 50%; }
}

/* Root of the card demo */
.demo-stripes {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: 1rem;
  overflow: hidden;

  --stripe-color: #fff;
  --bg: var(--stripe-color);
}

/* Background rainbow + stripes */
.demo-stripes__hero {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  place-content: center;
  place-items: center;

  --stripes: repeating-linear-gradient(
    100deg,
    var(--stripe-color) 0%,
    var(--stripe-color) 7%,
    transparent 10%,
    transparent 12%,
    var(--stripe-color) 16%
  );

  --rainbow: repeating-linear-gradient(
    100deg,
    #60a5fa 10%,
    #e879f9 15%,
    #60a5fa 20%,
    #5eead4 25%,
    #60a5fa 30%
  );

  background-image: var(--stripes), var(--rainbow);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(10px) invert(100%);

  mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
}

.demo-stripes__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--stripes), var(--rainbow);
  background-size: 200%, 100%;
  animation: demo-stripes-bg-pan 60s linear infinite;
  mix-blend-mode: difference;
}

/* Toggle theme when checked (scoped with :has) */
.demo-stripes:has(.demo-stripes__switch:checked) {
  --stripe-color: #000;
}

.demo-stripes:has(.demo-stripes__switch:checked) .demo-stripes__hero,
.demo-stripes:has(.demo-stripes__switch:checked) .demo-stripes__hero::after {
  filter: blur(10px) opacity(0.5) saturate(2);
}

/* Foreground content */
.demo-stripes__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  mix-blend-mode: difference;
  -webkit-mix-blend-mode: difference;
  filter: invert(1);
  padding: 1.5rem;
}

/* Heading glass effect */
.demo-stripes__heading {
  position: relative;
  margin: 0;
  font-size: clamp(1.4rem, 1rem + 3vw, 2.4rem);
}

.demo-stripes__heading::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: white;
  text-shadow: 0 0 1px #ffffff;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-mask: linear-gradient(#000 0 0) luminance;
  mask: linear-gradient(#000 0 0) luminance, alpha;
  backdrop-filter: blur(19px) brightness(12.5);
  -webkit-text-stroke: 1px white;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Switch + label */
.demo-stripes__switch {
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
  position: absolute;
}

.demo-stripes__toggle {
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  transition: 0.3s ease;
}

.demo-stripes__toggle:hover,
.demo-stripes__toggle:active,
.demo-stripes__toggle:focus-within {
  animation: demo-stripes-switch 0.2s alternate;
}

@keyframes demo-stripes-switch {
  50% {
    transform: scale(1.2);
    font-weight: 900;
  }
}

/* Blinking icon */
.demo-stripes__icon {
  width: 1lh;
  height: 1lh;
  aspect-ratio: 1 / 1;
  padding: 0.25em 0.35rem;
  border-radius: 999px;
  border: 1px dashed currentColor;
  --blink-opacity: 1;
  animation: demo-stripes-blink 2s ease-in-out infinite running;
}

/* ----------------------------- */
/* Demo 2: Two-card spotlight    */
/* ----------------------------- */

.demo-spotlight {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.7rem;
    width: 100%;
  }
  
  .demo-spotlight__card {
    position: relative;
    width: min(260px, 100%);
    padding: 1.6rem 1.4rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top, #020617 0, #020617 45%, #000 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
    overflow: hidden;
    cursor: pointer;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease,
      border-color 0.25s ease,
      filter 0.25s ease;
  }
  
  .demo-spotlight__card--standard {
    --pricing-accent: #38bdf8;
  }
  .demo-spotlight__card--pro {
    --pricing-accent: #22c55e;
  }
  
  /* Spotlight glow base */
  .demo-spotlight__card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(
      circle at var(--spot-x, 50%) var(--spot-y, 0%),
      color-mix(in oklab, var(--pricing-accent) 75%, transparent 25%) 0,
      transparent 68%
    );
    opacity: 0;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
    z-index: 0;
  }
  
  .demo-spotlight__card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.92),
      rgba(15, 23, 42, 0.97)
    );
    z-index: 0;
  }
  
  .demo-spotlight__title,
  .demo-spotlight__price,
  .demo-spotlight__features {
    position: relative;
    z-index: 1;
  }
  
  .demo-spotlight__title {
    margin: 0 0 0.5rem;
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in oklab, var(--pricing-accent) 80%, #e5e7eb 20%);
  }
  
  .demo-spotlight__price {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 650;
  }
  
  .demo-spotlight__price-suffix {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-left: 0.15rem;
  }
  
  .demo-spotlight__features {
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #e5e7eb;
  }
  
  .demo-spotlight__features li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
  }
  
  .demo-spotlight__features li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--pricing-accent) 70%, #e5e7eb 30%);
  }
  
  /* Hover spotlight behaviour */
  
  /* Dim only the non-hovered cards when the row is hovered */
  .demo-spotlight:hover .demo-spotlight__card:not(:hover) {
    filter: brightness(0.35) saturate(0.9);
  }
  
  /* Hovered card: brighter and lifted */
  .demo-spotlight__card:hover,
  .demo-spotlight__card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
    border-color: color-mix(
      in oklab,
      var(--pricing-accent) 70%,
      #1e293b 30%
    );
    filter: brightness(1.15) saturate(1.1);
  }
  
  /* Stronger spotlight on hovered card */
  .demo-spotlight__card:hover::before,
  .demo-spotlight__card:focus-within::before {
    opacity: 1;
  }
  
/* ----------------------------- */
/* Demo 3: Rotating 3D CTA      */
/* ----------------------------- */

.demo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.demo-cta__button {
  position: relative;
  width: 170px;
  height: 54px;
  display: inline-block;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg);
  transition: transform 4s;
  text-decoration: none;
}

.demo-cta__button:hover {
  transform: perspective(1000px) rotateX(360deg);
}

.demo-cta__button span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  color: #020617;
  border-radius: 999px;
  border: 2px solid #000;
  box-sizing: border-box;
  box-shadow:
    inset 0 18px 40px rgba(255, 255, 255, 0.9),
    0 10px 30px rgba(0, 0, 0, 0.7);
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease;
}

.demo-cta__button:hover span {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #f9fafb;
  box-shadow:
    inset 0 0 0 rgba(0, 0, 0, 0),
    0 14px 40px rgba(8, 47, 73, 0.9);
}

/* Four faces of the "cube" */
.demo-cta__button span:nth-child(1) {
  transform: rotateX(0deg) translateZ(27px);
}
.demo-cta__button span:nth-child(2) {
  transform: rotateX(90deg) translateZ(27px);
}
.demo-cta__button span:nth-child(3) {
  transform: rotateX(180deg) translateZ(27px);
}
.demo-cta__button span:nth-child(4) {
  transform: rotateX(270deg) translateZ(27px);
}


/* ----------------------------- */
/* Footer                    */
/* ----------------------------- */
.site-footer {
    padding: 2.2rem 0;
    border-top: 1px solid var(--surface-border);
    background: var(--bg);
  }
  .footer__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  }
  .back-to-top {
    color: var(--text-muted);
    text-decoration: none;
    border: 1px dashed var(--surface-border);
    padding: .35rem .6rem; border-radius: .6rem;
  }
  .back-to-top:hover { color: var(--text); border-style: solid; }
  