/* LucidRows marketing site — High-Fidelity Claymorphism tokens */
:root {
  --clay-canvas: #f4f1fa;
  --clay-foreground: #332f3a;
  --clay-muted: #635f69;
  --clay-accent: #7c3aed;
  --clay-accent-alt: #db2777;
  --clay-sky: #0ea5e9;
  --clay-success: #10b981;
  --clay-warning: #f59e0b;
  --clay-card-bg: rgba(255, 255, 255, 0.72);
  --clay-input-bg: #efebf5;
  --clay-radius-btn: 20px;
  --clay-radius-card: 32px;
  --clay-radius-hero: 48px;
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --shadow-clay-deep:
    30px 30px 60px #cdc6d9,
    -30px -30px 60px #ffffff,
    inset 10px 10px 20px rgba(139, 92, 246, 0.05),
    inset -10px -10px 20px rgba(255, 255, 255, 0.8);

  --shadow-clay-card:
    16px 16px 32px rgba(160, 150, 180, 0.2),
    -10px -10px 24px rgba(255, 255, 255, 0.9),
    inset 6px 6px 12px rgba(139, 92, 246, 0.03),
    inset -6px -6px 12px rgba(255, 255, 255, 1);

  --shadow-clay-card-hover:
    20px 24px 40px rgba(160, 150, 180, 0.28),
    -12px -12px 28px rgba(255, 255, 255, 0.95),
    inset 6px 6px 12px rgba(139, 92, 246, 0.04),
    inset -6px -6px 12px rgba(255, 255, 255, 1);

  --shadow-clay-button:
    12px 12px 24px rgba(139, 92, 246, 0.3),
    -8px -8px 16px rgba(255, 255, 255, 0.4),
    inset 4px 4px 8px rgba(255, 255, 255, 0.4),
    inset -4px -4px 8px rgba(0, 0, 0, 0.1);

  --shadow-clay-button-hover:
    14px 16px 28px rgba(139, 92, 246, 0.38),
    -8px -8px 18px rgba(255, 255, 255, 0.5),
    inset 4px 4px 8px rgba(255, 255, 255, 0.45),
    inset -4px -4px 8px rgba(0, 0, 0, 0.12);

  --shadow-clay-pressed:
    inset 10px 10px 20px #d9d4e3,
    inset -10px -10px 20px #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.625;
  color: var(--clay-foreground);
  background: var(--clay-canvas);
  position: relative;
}

a {
  color: var(--clay-accent);
}

a:hover {
  color: #6d28d9;
}

/* Floating ambient blobs */
.clay-blobs {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.clay-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 1;
  animation: clay-float 8s ease-in-out infinite;
}

.clay-blob--violet {
  width: min(60vh, 520px);
  height: min(60vh, 520px);
  top: -10%;
  left: -10%;
  background: rgba(139, 92, 246, 0.14);
}

.clay-blob--pink {
  width: min(55vh, 480px);
  height: min(55vh, 480px);
  top: 18%;
  right: -12%;
  background: rgba(236, 72, 153, 0.12);
  animation-name: clay-float-delayed;
  animation-duration: 10s;
  animation-delay: 2s;
}

.clay-blob--sky {
  width: min(50vh, 440px);
  height: min(50vh, 440px);
  bottom: -8%;
  left: 20%;
  background: rgba(14, 165, 233, 0.12);
  animation-name: clay-float-slow;
  animation-duration: 12s;
  animation-delay: 4s;
}

.clay-blob--emerald {
  width: min(40vh, 360px);
  height: min(40vh, 360px);
  bottom: 20%;
  right: 15%;
  background: rgba(16, 185, 129, 0.1);
  animation-delay: 1s;
}

.wrap {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 1.5rem 0 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--clay-foreground);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  color: var(--clay-accent);
}

.hero {
  padding: 16vh 0 4rem;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(
    115deg,
    var(--clay-foreground) 20%,
    var(--clay-accent) 60%,
    var(--clay-accent-alt) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.7s ease-out both;
}

.hero p {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--clay-muted);
  animation: rise 0.7s ease-out 0.08s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
  animation: rise 0.7s ease-out 0.16s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--clay-radius-btn);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn:active {
  transform: scale(0.92);
  box-shadow: var(--shadow-clay-pressed);
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    var(--shadow-clay-button),
    0 0 0 4px rgba(124, 58, 237, 0.3);
}

.btn-primary {
  background: linear-gradient(145deg, #a78bfa 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: var(--shadow-clay-button);
}

.btn-primary:hover {
  color: #ffffff;
  box-shadow: var(--shadow-clay-button-hover);
}

.btn-primary:active {
  color: #ffffff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--clay-foreground);
  border-color: rgba(124, 58, 237, 0.15);
  box-shadow: var(--shadow-clay-card);
  backdrop-filter: blur(16px);
}

.btn-ghost:hover {
  border-color: var(--clay-accent);
  color: var(--clay-accent);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-clay-card-hover);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  font-size: 0.92rem;
  color: var(--clay-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--clay-muted);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--clay-accent);
  text-decoration: underline;
}

/* Privacy / legal */
.legal {
  padding: 2.5rem 0 4rem;
}

.legal .panel {
  background: var(--clay-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: var(--clay-radius-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-clay-card);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--clay-foreground);
}

.legal .meta {
  color: var(--clay-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.legal h2 {
  margin: 1.75rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--clay-foreground);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin: 0.4rem 0;
  color: var(--clay-muted);
}

.legal p {
  color: var(--clay-muted);
}

.legal strong {
  color: var(--clay-foreground);
}

.legal code {
  font-size: 0.9em;
  padding: 0.15em 0.45em;
  border-radius: 10px;
  background: var(--clay-input-bg);
  box-shadow: var(--shadow-clay-pressed);
}

.legal .summary {
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: 24px;
  background: rgba(124, 58, 237, 0.08);
  box-shadow: var(--shadow-clay-pressed);
  color: var(--clay-foreground);
  border: none;
}

.page-404 {
  padding: 22vh 0;
  text-align: left;
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 900;
  margin: 0 0 0.75rem;
  color: var(--clay-foreground);
}

.page-404 p {
  color: var(--clay-muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes clay-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes clay-float-delayed {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(-2deg);
  }
}

@keyframes clay-float-slow {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

@media (max-width: 640px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand,
  .hero p,
  .cta-row,
  .clay-blob {
    animation: none !important;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }

  .legal .panel {
    transition: none;
  }
}
