/*
Theme Name: N8N Ninja Kit
Theme URI: https://n8n-ninja-kit.lovable.app
Author: Creatix Digital Store
Author URI: https://n8n-ninja-kit.lovable.app
Description: A modern, dark-themed single-page WordPress theme for selling N8N workflow automation templates. Features glassmorphism cards, neon accents, countdown timer, and fully responsive design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: n8n-ninja-kit
Tags: one-page, dark, e-commerce, custom-logo, custom-menu
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ========================================
   CSS Variables & Base
   ======================================== */
:root {
  --bg: hsl(222, 47%, 6%);
  --bg-card: hsl(222, 47%, 9%);
  --fg: hsl(210, 40%, 96%);
  --primary: hsl(210, 100%, 56%);
  --primary-fg: hsl(222, 47%, 6%);
  --muted: hsl(215, 20%, 55%);
  --border: hsl(222, 30%, 18%);
  --success: hsl(142, 76%, 46%);
  --destructive: hsl(0, 84%, 60%);
  --secondary-bg: hsl(222, 30%, 14%);
  --radius: 0.75rem;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

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

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

/* ========================================
   Container
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   Glass Cards
   ======================================== */
.glass-card {
  background: hsla(222, 47%, 9%, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsla(222, 30%, 18%, 0.5);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.glass-card-hover {
  transition: all 0.3s ease;
}
.glass-card-hover:hover {
  border-color: hsla(210, 100%, 56%, 0.4);
  box-shadow: 0 8px 32px rgba(56,152,255,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

/* ========================================
   Gradient Text
   ======================================== */
.gradient-text {
  background: linear-gradient(135deg, hsl(210,100%,70%), hsl(210,100%,56%), hsl(190,100%,50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Neon Effects
   ======================================== */
.neon-text {
  color: var(--primary);
  text-shadow: 0 0 20px hsla(210,100%,56%,0.5), 0 0 40px hsla(210,100%,56%,0.2);
}

.neon-border {
  box-shadow: 0 0 15px hsla(210,100%,56%,0.3), inset 0 0 15px hsla(210,100%,56%,0.1);
}

/* ========================================
   CTA Button
   ======================================== */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary-fg);
  background: linear-gradient(135deg, hsl(210,100%,56%), hsl(200,100%,45%));
  box-shadow: 0 4px 20px hsla(210,100%,56%,0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}
.cta-button:hover {
  box-shadow: 0 6px 30px hsla(210,100%,56%,0.6);
  transform: translateY(-2px);
}

/* ========================================
   Section Gradient
   ======================================== */
.section-gradient {
  background: linear-gradient(180deg, hsl(222,47%,6%) 0%, hsl(222,47%,8%) 50%, hsl(222,47%,6%) 100%);
}

/* ========================================
   Price Tags
   ======================================== */
.price-tag {
  font-size: 3rem;
  font-weight: 900;
  color: var(--success);
  text-shadow: 0 0 20px hsla(142,76%,46%,0.3);
}

.strikethrough {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 1.5rem;
}

/* ========================================
   Animations
   ======================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-slide-up { animation: slideUp 0.6s ease-out forwards; }
.animate-count { animation: countPulse 1s ease-in-out infinite; }

/* ========================================
   Navigation
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: hsla(222,47%,6%,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid hsla(222,30%,18%,0.5);
}

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

.site-header .custom-logo-link img {
  height: 48px;
  width: auto;
}

.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-header nav a:hover {
  color: var(--fg);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsla(210,100%,56%,0.05), var(--bg), var(--bg));
}

.hero-glow-1 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: hsla(210,100%,56%,0.1);
  border-radius: 50%;
  filter: blur(120px);
}

.hero-glow-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 16rem;
  height: 16rem;
  background: hsla(210,100%,56%,0.05);
  border-radius: 50%;
  filter: blur(100px);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 5rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  text-align: center;
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

/* ========================================
   Countdown Timer
   ======================================== */
.countdown {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  padding: 0.5rem 1rem;
  min-width: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ========================================
   Problem Section
   ======================================== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 768px;
  margin: 0 auto;
}

.problem-card {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.problem-icon {
  padding: 0.75rem;
  border-radius: var(--radius);
  background: hsla(0,84%,60%,0.1);
  flex-shrink: 0;
}

.problem-icon svg {
  width: 24px;
  height: 24px;
  color: var(--destructive);
}

/* ========================================
   Solution Section
   ======================================== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.solution-card {
  padding: 1.5rem;
  text-align: center;
}

.solution-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: hsla(210,100%,56%,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.solution-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.solution-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.solution-card p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ========================================
   Features Section
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  padding: 1.5rem;
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: hsla(210,100%,56%,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 1.5rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  fill: var(--primary);
}

.testimonial-text {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ========================================
   Bonus Section
   ======================================== */
.bonus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.bonus-card {
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bonus-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: hsla(142,76%,46%,0.2);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.bonus-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  background: hsla(210,100%,56%,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.bonus-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.bonus-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bonus-card .bonus-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.bonus-card .bonus-value {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: hsla(210,100%,56%,0.2);
  padding: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
}

.pricing-title {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.pricing-price {
  margin-bottom: 1.5rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.pricing-feature svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
}

.pricing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.pricing-trust span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pricing-trust svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  padding: 1.5rem;
  cursor: pointer;
}

.faq-question {
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--muted);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  color: var(--muted);
  margin-top: 0.75rem;
  display: none;
  font-size: 0.875rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ========================================
   Final CTA
   ======================================== */
.final-cta {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  text-align: center;
}

.final-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: hsla(210,100%,56%,0.05);
  border-radius: 50%;
  filter: blur(150px);
}

/* ========================================
   Section Spacing
   ======================================== */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid hsla(222,30%,18%,0.5);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ========================================
   Sticky Buy Button (Mobile)
   ======================================== */
.sticky-buy {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem;
  background: hsla(222,47%,6%,0.8);
  backdrop-filter: blur(16px);
  border-top: 1px solid hsla(222,30%,18%,0.5);
  display: none;
}

.sticky-buy.visible {
  display: block;
}

.sticky-buy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-buy .cta-button {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 640px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .bonus-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-badges { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
  .hero-content { flex-direction: row; text-align: left; }
  .hero-content > div { flex: 1; }
  .sticky-buy { display: none !important; }
  .section-title h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; }
  .solution-grid { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(5, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .site-header nav { display: none; }
}
