/* ============================================================
   RedMoon — Premium WordPress Plugins
   Main stylesheet
   ============================================================ */

:root {
  --bg: #0d0b12;
  --bg-alt: #14111b;
  --surface: #1b1724;
  --surface-2: #231e30;
  --text: #ece9f2;
  --text-dim: #a79fb5;
  --red: #e03131;
  --red-dark: #b02525;
  --red-glow: rgba(224, 49, 49, 0.35);
  --gold: #f5c26b;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.accent { color: var(--red); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 8px 24px var(--red-glow);
}
.btn-primary:hover { box-shadow: 0 12px 30px var(--red-glow); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.btn-ghost:hover { border-color: var(--red); color: #fff; }

.btn-outline {
  border-color: var(--red);
  color: var(--text);
}
.btn-outline:hover { background: var(--red); color: #fff; }

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; text-align: center; }

.badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--red), #ff6b6b);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 11, 18, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(13, 11, 18, 0.95);
  border-color: var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.brand-name::first-letter { color: var(--red); }

.nav-list { display: flex; align-items: center; gap: 1.6rem; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.nav-cta { margin-left: 0.4rem; }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO / SLIDESHOW
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.slide.is-active { opacity: 1; visibility: visible; }

.slide-1 {
  background:
    radial-gradient(ellipse 70% 55% at 72% 38%, rgba(224, 49, 49, 0.4), transparent 65%),
    radial-gradient(ellipse 40% 40% at 85% 30%, rgba(245, 194, 107, 0.12), transparent 60%),
    var(--bg);
}
.slide-2 {
  background:
    radial-gradient(ellipse 60% 50% at 25% 55%, rgba(224, 49, 49, 0.32), transparent 65%),
    radial-gradient(circle at 80% 25%, rgba(90, 60, 160, 0.25), transparent 55%),
    var(--bg);
}
.slide-3 {
  background:
    radial-gradient(ellipse 65% 55% at 75% 65%, rgba(176, 37, 37, 0.4), transparent 65%),
    radial-gradient(circle at 20% 25%, rgba(245, 194, 107, 0.14), transparent 55%),
    var(--bg);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 4rem 0 7rem;
}
.slide-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
}
.slide-sub {
  margin-top: 1.1rem;
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 56ch;
}
.slide-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.slide-content > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide.is-active .slide-content > * { opacity: 1; transform: none; }
.slide.is-active .slide-content > *:nth-child(2) { transition-delay: 0.12s; }
.slide.is-active .slide-content > *:nth-child(3) { transition-delay: 0.22s; }
.slide.is-active .slide-content > *:nth-child(4) { transition-delay: 0.32s; }

.hero-controls {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.slide-dots { display: flex; gap: 0.6rem; }
.dot {
  width: 34px; height: 4px;
  border-radius: 4px;
  border: 0;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s ease;
}
.dot.is-active { background: var(--red); }

.slide-arrows { display: flex; gap: 0.5rem; }
.arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.arrow:hover { background: var(--red); border-color: var(--red); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1.8rem 0;
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}
.trust-item p { font-size: 0.82rem; color: var(--text-dim); font-weight: 500; font-family: var(--font-body); }
.trust-sep { width: 1px; height: 34px; background: var(--border); }
.trust-star { color: var(--gold); }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 640px; margin: 0 auto 3.2rem; text-align: center; }
.section-sub { color: var(--text-dim); margin-top: 0.8rem; }

/* ============================================================
   PLUGINS
   ============================================================ */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.plugin-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.plugin-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 49, 49, 0.5);
  box-shadow: var(--shadow);
}
.plugin-card .badge { position: absolute; top: -12px; right: 1.4rem; }

.plugin-art {
  width: 72px; height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.plugin-art img { width: 40px; height: 40px; }
.art-calendar { background: linear-gradient(135deg, rgba(224,49,49,0.3), rgba(224,49,49,0.1)); }
.art-forms { background: linear-gradient(135deg, rgba(90,60,160,0.35), rgba(90,60,160,0.12)); }
.art-seo { background: linear-gradient(135deg, rgba(245,194,107,0.3), rgba(245,194,107,0.1)); }
.art-members { background: linear-gradient(135deg, rgba(49,152,143,0.3), rgba(49,152,143,0.1)); }

.plugin-card p { color: var(--text-dim); font-size: 0.95rem; }

.plugin-list { margin: 1rem 0 1.4rem; display: grid; gap: 0.45rem; }
.plugin-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.plugin-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.plugin-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.price small { font-size: 0.95rem; }
.plugin-card-foot .price span, .plugin-card-foot .price { color: var(--text); }
.plugin-card-foot small { color: var(--text-dim); font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; margin-left: 0.25rem; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.features-text p:not(.eyebrow) { color: var(--text-dim); margin: 1rem 0 1.6rem; }
.feature-list { display: grid; gap: 0.85rem; margin-bottom: 2rem; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.98rem;
}
.feature-list img { width: 20px; height: 20px; flex-shrink: 0; }

.features-art {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.features-art img { width: 100%; height: auto; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.popular {
  border-color: rgba(224, 49, 49, 0.6);
  background: linear-gradient(180deg, rgba(224,49,49,0.10), var(--surface) 45%);
  box-shadow: var(--shadow);
}
.price-big {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  margin: 0.8rem 0 0.2rem;
}
.price-big sup { font-size: 1.2rem; vertical-align: super; color: var(--text-dim); }
.price-big sub { font-size: 1.4rem; color: var(--text-dim); }
.price-note { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1.4rem; }
.price-card ul { display: grid; gap: 0.6rem; margin-bottom: 1.8rem; }
.price-card ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.price-card ul li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--red);
  font-weight: 700;
}
.price-card .btn { margin-top: auto; }

/* ============================================================
   REVIEWS
   ============================================================ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.stars { color: var(--gold); letter-spacing: 0.15em; margin-bottom: 0.8rem; }
.review-card p { color: var(--text-dim); font-size: 0.95rem; }
.review-card footer { margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: var(--text); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info p:not(.eyebrow) { color: var(--text-dim); margin: 1rem 0 1.6rem; }
.contact-list { display: grid; gap: 0.9rem; }
.contact-list li { display: flex; align-items: center; gap: 0.7rem; }
.contact-list img { width: 20px; height: 20px; }
.contact-list a:hover { color: var(--red); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-field { display: grid; gap: 0.35rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 49, 49, 0.2);
}
.form-field input.is-invalid,
.form-field textarea.is-invalid { border-color: var(--red); }

.field-error { color: var(--red); font-size: 0.78rem; min-height: 1em; }

.form-status { font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form-status.is-success { color: #51cf66; }
.form-status.is-error { color: var(--red); }
.contact-form button[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a0810;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 1rem; max-width: 30ch; }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p, .footer-note { color: var(--text-dim); font-size: 0.82rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .plugin-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card.popular { order: -1; }
  .review-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .features-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .features-art { order: -1; max-width: 520px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(13, 11, 18, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 4% 1.6rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .main-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.4rem; }
  .nav-link { padding: 0.7rem 0.4rem; font-size: 1.05rem; display: block; }
  .nav-link::after { display: none; }
  .nav-cta { margin: 0.6rem 0 0; text-align: center; }

  .hero { min-height: 78vh; }
  .slide-content { padding: 3rem 0 8rem; }
  .slide-actions .btn { flex: 1; text-align: center; }

  .trust-row { justify-content: center; }
  .trust-sep { display: none; }
  .trust-item { font-size: 1.05rem; }

  .section { padding: 3.8rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
