/*
Theme Name: Waitlist Elementor
Theme URI: https://example.com/waitlist-elementor
Author: Your Name
Author URI: https://example.com
Description: An Elementor-compatible dark SaaS waitlist theme with a complete editable starter landing page.
Version: 2.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: waitlist-elementor
Tags: custom-logo, custom-menu, featured-images, full-width-template, one-column
*/

:root {
  --bg: rgb(22, 14, 37);
  --bg-deep: rgb(12, 8, 24);
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --text: #f8f7ff;
  --muted: #c3bdd4;
  --border: rgba(255, 255, 255, 0.14);
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --success: #34d399;
  --danger: #fb7185;
  --radius: 24px;
  --radius-small: 16px;
  --max-width: 1180px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.24), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(34, 211, 238, 0.18), transparent 25%),
    radial-gradient(circle at 50% 90%, rgba(244, 114, 182, 0.16), transparent 30%),
    linear-gradient(135deg, var(--bg-deep), var(--bg));
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(120deg, rgba(139, 92, 246, 0.08), rgba(34, 211, 238, 0.05), rgba(244, 114, 182, 0.08));
  background-size: 200% 200%;
  animation: gradientShift 14s ease-in-out infinite;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 14, 37, 0.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-title::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.9);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 6rem 0 5rem;
}

.hero__content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ded8ef;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.14);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.9);
}

.hero h1 {
  margin: 0 0 1.35rem;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff, #c4b5fd 35%, #67e8f9 70%, #f9a8d4);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

.hero__lead {
  max-width: 680px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.glass-panel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139,92,246,0.42), rgba(34,211,238,0.18), rgba(244,114,182,0.32));
  filter: blur(18px);
  opacity: 0.45;
}

.waitlist-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.waitlist-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-small);
  background: rgba(6, 4, 16, 0.45);
  color: var(--text);
  padding: 1rem 1.1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.waitlist-form input::placeholder {
  color: #8f88a3;
}

.waitlist-form input:focus {
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.waitlist-form button,
.button {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-small);
  background: linear-gradient(135deg, var(--accent), #6d5dfc 45%, var(--accent-2));
  color: white;
  padding: 1rem 1.4rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(109, 93, 252, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form button:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(34, 211, 238, 0.3);
}

.waitlist-form button::after,
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.28), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.waitlist-form button:hover::after,
.button:hover::after {
  transform: translateX(120%);
}

.form-status {
  min-height: 1.5rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: left;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.hero__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.25rem;
  color: #a9a2ba;
  font-size: 0.9rem;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__meta span::before {
  content: "✓";
  color: var(--success);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 5rem;
}

.feature-card {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  backdrop-filter: blur(18px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(34,211,238,0.2));
  box-shadow: inset 0 0 18px rgba(255,255,255,0.05);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.particle-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--x);
  top: var(--y);
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.7);
  animation: floatParticle var(--duration) ease-in-out infinite alternate;
  animation-delay: var(--delay);
  opacity: var(--opacity);
}

.content-section {
  position: relative;
  z-index: 3;
  padding: 3rem 0 5rem;
}

.content-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.site-footer {
  position: relative;
  z-index: 3;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 7, 18, 0.4);
  color: var(--muted);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

@keyframes floatParticle {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, -30px, 0) scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav ul {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }
}


/* Elementor compatibility and reusable editor classes */
.wl-container,
.site-container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.elementor-page .site-main,
.page-template-elementor-full-width .site-main,
.page-template-elementor-canvas .site-main {
  min-height: 0;
}

.wl-glass,
.elementor-element.wl-glass > .elementor-element-populated,
.elementor-element.wl-glass.e-con {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
}

.wl-neon-border {
  position: relative;
  isolation: isolate;
}

.wl-neon-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139,92,246,0.42), rgba(34,211,238,0.18), rgba(244,114,182,0.32));
  filter: blur(18px);
  opacity: 0.45;
}

.wl-gradient-text,
.wl-gradient-text .elementor-heading-title {
  background: linear-gradient(90deg, #ffffff, #c4b5fd 35%, #67e8f9 70%, #f9a8d4);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: shimmer 7s linear infinite;
}

.wl-neon-button .elementor-button {
  background: linear-gradient(135deg, var(--accent), #6d5dfc 45%, var(--accent-2));
  box-shadow: 0 12px 34px rgba(109, 93, 252, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wl-neon-button .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(34, 211, 238, 0.3);
}

.wl-feature-card,
.wl-feature-card.e-con {
  height: 100%;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(18px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.wl-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139,92,246,0.45);
  background: rgba(255,255,255,0.08);
}

.wl-particle-bg {
  position: relative;
  overflow: hidden;
}

.wl-particle-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.55) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(139,92,246,.55) 0 1px, transparent 1.6px);
  background-size: 90px 90px, 140px 140px;
  background-position: 0 0, 35px 70px;
  opacity: .28;
  animation: wlParticleDrift 18s linear infinite;
}

.wl-particle-bg > * {
  position: relative;
  z-index: 1;
}

@keyframes wlParticleDrift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(40px,-40px,0); }
}
