/* Lucidify landing page — static, motion-friendly */

:root {
  --primary: #7f77dd;
  --primary-dark: #534ab7;
  --primary-light: #afa9ec;
  --cream: #eeedfe;
  --surface: #f5f4fc;
  --text: #2c2c2a;
  --muted: #888780;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(83, 74, 183, 0.1);
  --shadow-hover: 0 12px 40px rgba(83, 74, 183, 0.14);
  --max-width: 720px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Scroll reveal — visible by default (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Only hide for animation when JS is active */
html.motion-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

html.motion-ready .reveal {
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

html.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}
.reveal-delay-5 {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  html.motion-ready .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  html.motion-ready .reveal {
    transition: none;
  }

  .hero-wave {
    animation: none !important;
  }

  .wave {
    animation: none !important;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(238, 237, 254, 0.8);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner {
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.locale-toggle {
  display: inline-flex;
  flex-shrink: 0;
  padding: 2px;
  background: var(--cream);
  border-radius: 8px;
}

.locale-btn {
  min-width: 2rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.locale-btn:hover {
  color: var(--primary-dark);
}

.locale-btn.active {
  color: var(--white);
  background: var(--primary);
}

.locale-btn:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 1px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-install {
  color: var(--primary-dark) !important;
  font-weight: 600 !important;
}

@media (max-width: 480px) {
  .header-inner {
    gap: 0.75rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    gap: 0.65rem;
    font-size: 0.75rem;
  }
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.88;
  text-decoration: none;
}

.logo-link img {
  height: 40px;
  width: auto;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(127, 119, 221, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(175, 169, 236, 0.15), transparent),
    linear-gradient(180deg, var(--white) 0%, var(--surface) 100%);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(900px, 120%);
  transform: translateX(-50%);
  color: var(--primary-light);
  opacity: 0.45;
  pointer-events: none;
  animation: wave-float 8s ease-in-out infinite;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

.wave-1 {
  animation: wave-drift 6s ease-in-out infinite;
}
.wave-2 {
  animation: wave-drift 7s ease-in-out infinite reverse;
  opacity: 0.7;
}
.wave-3 {
  animation: wave-drift 5s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes wave-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

@keyframes wave-drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--cream);
  border: 1px solid rgba(127, 119, 221, 0.2);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 5.5vw, 2.625rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero .lead {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  color: var(--muted);
}

.hero-note {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hero-prelaunch {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Sections */
section {
  padding: 3rem 0;
}

.section-light {
  background: var(--white);
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.section-light .card {
  background: var(--white);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Features — Movie | Music preset groups */
.features-intro {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.preset-groups {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .preset-groups {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.preset-group {
  display: flex;
  flex-direction: column;
}

.preset-group-title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

.preset-group-sub {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.preset-list {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.preset-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cream);
}

.preset-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.preset-list li:first-child {
  padding-top: 0;
}

.preset-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.preset-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Steps */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  counter-increment: step;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.steps li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(127, 119, 221, 0.35);
}

.steps li strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: var(--text);
}

.steps li span {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

.disclaimer {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary-light);
}

/* Install — featured */
.install-featured {
  padding: 4rem 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(127, 119, 221, 0.18), transparent),
    linear-gradient(180deg, var(--surface) 0%, var(--cream) 100%);
}

.install-inner {
  text-align: center;
  padding: 2.5rem 1.75rem;
  background: var(--white);
  border: 1px solid rgba(127, 119, 221, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

.install-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.install-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.install-lead {
  margin: 0 auto 1.25rem;
  max-width: 26rem;
  font-size: 1rem;
  color: var(--muted);
}

.install-cta {
  margin: 0 auto 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(127, 119, 221, 0.35);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(83, 74, 183, 0.4);
  text-decoration: none;
  color: var(--white);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.0625rem;
}

.btn-ghost {
  color: var(--primary-dark);
  background: transparent;
  border: 1.5px solid var(--primary-light);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.install-note {
  font-size: 0.8125rem;
  color: var(--muted);
}

.install-note a {
  font-weight: 500;
}

/* Operator */
.operator {
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--cream);
}

.operator strong {
  color: var(--text);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  font-size: 0.875rem;
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a {
  color: var(--primary-light);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 560px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Privacy page */
.page-privacy {
  background: linear-gradient(180deg, var(--white) 0%, var(--surface) 120px);
}

.page-header {
  padding: 2.5rem 0 1rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.legal-content {
  padding: 1rem 0 3rem;
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

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

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.legal-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
