:root {
  --ndw-bg: #ffffff;
  --ndw-text: #0f172a;
  --ndw-sub: #475569;
  --ndw-accent: #6366f1;
  /* Indigo */
  --ndw-font-display: var(--ndw-font-display-orbit);
  --ndw-font-body: var(--ndw-font-body-clean);
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: var(--ndw-font-body);
  line-height: 1.6;
  color: var(--ndw-text);
  background-color: var(--ndw-bg);
  overflow-x: hidden;
}

body.landing-mode {
  background-image:
    radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0) 0, transparent 50%);
  background-attachment: fixed;
}

/* Base Utilities */
/* Base Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Hero Section */
.hero-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  padding-top: 32px;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.landing-mode .hero-wrap {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
}

.hero-wrap .container {
  pointer-events: auto;
  margin-top: 0;
}

.hero-wrap.is-hidden {
  opacity: 0;
  visibility: hidden;
}

body.ndw-eval-hide-chrome .hero-wrap,
body.ndw-eval-hide-chrome .scroll-cue,
body.ndw-eval-hide-chrome #scrollCue {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.hero-title {
  font-family: var(--ndw-font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 0;
  position: relative;
  /* Dark blue gradient text */
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Glow effect */
  filter: drop-shadow(0 0 30px rgba(30, 64, 175, 0.4));
}

.hero-title::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(35px);
  opacity: 0.6;
}

.hero-sub {
  font-family: var(--ndw-font-body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ndw-sub);
  margin-top: 1.5rem;
  max-width: 500px;
  font-weight: 400;
  opacity: 0.9;
}

.hero-hint {
  margin-top: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  animation: hintFade 10s ease forwards;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-hint.is-hidden {
  opacity: 0;
  transform: translateY(6px);
}

.landing-fallback {
  margin-top: 1.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.landing-fallback[hidden] {
  display: none;
}

.landing-fallback-copy {
  margin: 0;
  font: 500 0.78rem/1.35 var(--ndw-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.54);
}

.landing-fallback-btn {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(248, 250, 252, 0.7);
  color: #0f172a;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: 600 0.9rem/1 var(--ndw-font-body);
  letter-spacing: 0.01em;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.landing-fallback-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(15, 23, 42, 0.28);
}

.landing-fallback-btn:focus-visible {
  outline: 2px dashed rgba(15, 23, 42, 0.7);
  outline-offset: 3px;
}

.ndw-sites-panel {
  position: fixed;
  top: 4rem;
  right: 0.75rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.ndw-sites-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 168px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
  backdrop-filter: none;
  color: #f8fafc;
  font: 500 12px/1 var(--ndw-font-body);
  white-space: nowrap;
}

#floatingGenerateWrap {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.5rem;
  z-index: 55;
}

.ndw-test-preview-dock {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.75rem;
  max-width: 260px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
}

.ndw-test-preview-dock[hidden] {
  display: none;
}

.ndw-test-preview-dock button {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(248, 250, 252, 0.92);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  color: #0f172a;
  font: 600 0.78rem/1.2 var(--ndw-font-body);
  text-align: left;
  cursor: pointer;
}

.ndw-test-preview-dock button:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.scroll-cue span {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15, 23, 42, 0.55);
  border-bottom: 2px solid rgba(15, 23, 42, 0.55);
  transform: rotate(45deg);
  animation: cue-bob 2.2s ease-in-out infinite;
}

.scroll-cue.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}

@keyframes hintFade {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  15% {
    opacity: 0.75;
    transform: translateY(0);
  }
  70% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes cue-bob {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(6px) rotate(45deg);
  }
}

/* Noise Overlay for texture */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Shutter transition overlay */
.shutter {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.shutter-panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: #f6f3ee;
  transition: transform 0.6s ease;
  will-change: transform;
}

.shutter-top {
  top: 0;
  transform: translateY(-100%);
}

.shutter-bottom {
  bottom: 0;
  transform: translateY(100%);
}

.shutter-closed .shutter-top {
  transform: translateY(0);
}

.shutter-closed .shutter-bottom {
  transform: translateY(0);
}

.shutter-open .shutter-top {
  transform: translateY(-100%);
}

.shutter-open .shutter-bottom {
  transform: translateY(100%);
}

/* Cursor Glow Effect */
#cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  will-change: left, top;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body:hover #cursor-glow {
  opacity: 1;
}

/* Background Blobs for Animation */
.blob-cont {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  /* Ensure it is above body bg but below content (z-index 10) */
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.7;
}

.blob-1 {
  width: 700px;
  height: 700px;
  background: #818cf8;
  /* Indigo-400 */
  top: -250px;
  left: -150px;
  mix-blend-mode: multiply;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: #a78bfa;
  /* Violet-400 */
  top: -150px;
  right: -150px;
  mix-blend-mode: multiply;
}

.blob-3 {
  width: 550px;
  height: 550px;
  background: #f0abfc;
  /* Fuchsia-300 */
  bottom: -200px;
  left: 25%;
  mix-blend-mode: multiply;
}

/* Generate button styles (from Uiverse, adapted to plain CSS) */
.ndw-button.button {
  --stone-50: #fafaf9;
  --stone-800: #292524;
  --yellow-300: #fde047;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --black-25: rgba(0, 0, 0, 0.25);

  position: relative;
  display: block;
  width: 4rem;
  height: 4rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .ndw-sites-panel {
    top: 0.75rem;
    right: 0.75rem;
    left: auto;
  }

  #floatingGenerateWrap {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 0.75rem;
  }

  .ndw-mode-chip {
    min-width: 168px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .ndw-mode-popover {
    min-width: 200px;
  }
}

.ndw-button.button>button {
  cursor: pointer;
  display: inline-block;
  height: 100%;
  width: 100%;
  appearance: none;
  border: 2px solid var(--stone-800);
  border-radius: 0.25rem;
  background-color: var(--yellow-400);
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: background-color 0.2s;
}

.ndw-button.button>button:hover {
  background-color: var(--yellow-300);
}

.ndw-button.button>button:checked {
  background-color: var(--stone-800);
  border-color: var(--stone-800);
}

.ndw-button.button>button:checked:hover {
  background-color: #44403c;
}

.ndw-button.button>button:active {
  outline-color: var(--stone-800);
}

.ndw-button.button>button:focus-visible {
  outline-color: var(--stone-800);
  outline-style: dashed;
}

.ndw-button.button>span:nth-child(2) {
  position: absolute;
  inset: 3px;
  pointer-events: none;
  background-color: var(--yellow-400);
  border-bottom: 2px solid var(--black-25);
  transition: transform 75ms;
}

.ndw-button.button>span:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 80%) 20%, transparent 20%),
    radial-gradient(rgb(255 255 255 / 100%) 20%, transparent 20%);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px;
  mix-blend-mode: hard-light;
  opacity: 0.5;
  animation: dots 0.5s infinite linear;
}

.ndw-button.button>span:nth-child(3) {
  position: absolute;
  pointer-events: none;
  inset: 0;
}

.ndw-button.button>span:nth-child(3)::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  background-color: var(--stone-800);
  border-radius: 0.125rem;
  box-shadow: 3.125em 0 var(--stone-800), 0 3.125em var(--stone-800), 3.125em 3.125em var(--stone-800);
}

.ndw-button.button>span:nth-child(4) {
  position: absolute;
  pointer-events: none;
  inset: 0;
  filter: drop-shadow(0.25em 0.25em 0 rgba(0, 0, 0, 0.2));
  transition: all 75ms;
}

.ndw-button.button>span:nth-child(4)::after {
  content: "";
  width: 0.25rem;
  height: 0.25rem;
  position: absolute;
  top: 0.875rem;
  left: 1rem;
  border-radius: 0.0625px;
  background-color: var(--stone-800);
  box-shadow:
    0.75em 2em var(--stone-800), 1em 2em var(--stone-800), 0.75em 1.75em var(--stone-800), 1em 1.75em var(--stone-800),
    0.75em 1.25em var(--stone-800), 1em 1.25em var(--stone-800), 0.75em 1em var(--stone-800), 1em 1em var(--stone-800),
    1em 0.75em var(--stone-800), 1.5em 0.75em var(--stone-800), 1.25em 0.75em var(--stone-800), 1.25em -0.25em var(--stone-800),
    1.5em 0em var(--stone-800), 1.25em 0.5em var(--stone-800), 1.5em 0.5em var(--stone-800), 1.25em 0.25em var(--stone-800),
    1.5em 0.25em var(--stone-800), 1.25em 0 var(--stone-800), 1em -0.25em var(--stone-800), 0.75em -0.25em var(--stone-800),
    0.5em -0.25em var(--stone-800), 0.25em -0.25em var(--stone-800), 0.25em 0 var(--stone-800), 0 0.25em var(--stone-800),
    0 0.5em var(--stone-800), 0.25em 0.25em var(--stone-800), 0.25em 0.5em var(--stone-800);
}

.ndw-button.button>span:nth-child(5) {
  position: absolute;
  background-color: var(--yellow-400);
  border: 2px solid var(--stone-800);
  border-radius: 0.75rem;
  pointer-events: none;
  z-index: -1;
  inset: 0.5rem 1.5rem;
  box-shadow: 7px 0 0 0 var(--stone-800), inset 0 2px 0 0 var(--yellow-300), inset 0 -2px 0 0 var(--yellow-500);
  transition: all 0ms cubic-bezier(0, 0.5, 0.4, 1);
}

.ndw-button.button button:active~span:nth-child(5) {
  transform: translateY(-200%);
  transition-duration: 200ms;
  opacity: 0;
}

.ndw-button.button button:hover~span:nth-child(4) {
  filter: drop-shadow(0.125em 0.125em 0 rgba(0, 0, 0, 0.2));
}

@keyframes dots {
  0% {
    background-position: 0 0, 4px 4px;
  }

  100% {
    background-position: 8px 0, 12px 4px;
  }
}

@media (prefers-color-scheme: dark) {

  .ndw-button.button button:active,
  .ndw-button.button button:focus-visible {
    outline-color: var(--yellow-400);
  }
}
