/*
Theme Name: Canva Templates Bundle
Theme URI: https://example.com/canva-templates
Author: Developer
Author URI: https://example.com
Description: A modern, high-converting single-page landing page theme for the 10000+ Canva Templates digital product bundle. Clean, responsive design with purple-blue gradient aesthetic.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: canva-templates
Tags: one-page, landing-page, custom-logo, custom-menu
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6c3aed;
  --primary-light: #8b5cf6;
  --secondary: #3b82f6;
  --accent: #7c3aed;
  --foreground: #1a1633;
  --foreground-light: #64748b;
  --background: #f5f3ff;
  --card: #ffffff;
  --border: #e2e0ee;
  --success: #16a34a;
  --radius: 0.75rem;
  --gradient-primary: linear-gradient(135deg, #6c3aed, #3b82f6);
  --gradient-hero: linear-gradient(135deg, #ede9fe, #dbeafe, #f0ebff);
  --gradient-cta: linear-gradient(135deg, #7c3aed, #9333ea, #3b82f6);
  --shadow-glow: 0 8px 40px rgba(108, 58, 237, 0.25);
  --shadow-card: 0 4px 24px rgba(26, 22, 51, 0.06);
  --shadow-card-hover: 0 8px 40px rgba(26, 22, 51, 0.12);
}

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

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 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== UTILITIES ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-primary {
  background: var(--gradient-primary);
}

.gradient-hero {
  background: var(--gradient-hero);
}

.gradient-cta {
  background: var(--gradient-cta);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-cta);
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 48px rgba(108, 58, 237, 0.35);
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

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

.site-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.site-logo img {
  max-height: 40px;
}

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

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground-light);
  transition: color 0.2s;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--foreground);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .site-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .site-nav.active ul {
    display: flex;
  }
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-section .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}

.hero-section .blob-1 {
  width: 18rem;
  height: 18rem;
  background: var(--primary);
  top: 5rem;
  left: 2rem;
}

.hero-section .blob-2 {
  width: 24rem;
  height: 24rem;
  background: var(--secondary);
  bottom: 5rem;
  right: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(108, 58, 237, 0.1);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.hero-badge .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--foreground-light);
  max-width: 36rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.trust-badges .badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground-light);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-badges .badge svg {
  color: var(--primary);
  width: 1.25rem;
  height: 1.25rem;
}

.hero-mockup img {
  max-width: 28rem;
  width: 100%;
  border-radius: 1rem;
  animation: float 6s ease-in-out infinite;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .trust-badges {
    justify-content: center;
  }
}

/* ===== WHAT YOU GET SECTION ===== */
.whatyouget-section {
  padding: 5rem 0;
  background: var(--card);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--foreground-light);
  font-size: 1.125rem;
  max-width: 40rem;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--background);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card span {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.benefits-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.6;
  z-index: 0;
}

.benefits-section .container {
  position: relative;
  z-index: 1;
}

.benefits-card {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

@media (max-width: 640px) {
  .benefits-card { padding: 1.5rem; }
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.benefit-check {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.benefit-check svg {
  width: 1rem;
  height: 1rem;
  color: #fff;
}

.benefits-list li span {
  font-size: 1.125rem;
  font-weight: 500;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
  padding: 5rem 0;
  background: var(--card);
}

.portfolio-image {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card-hover);
}

.portfolio-image img {
  width: 100%;
  height: auto;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.4;
  z-index: 0;
}

.testimonials-section .container {
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

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

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

.testimonial-header h4 {
  font-weight: 600;
  font-size: 0.9375rem;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--primary);
}

.stars svg {
  width: 1rem;
  height: 1rem;
  fill: var(--primary);
}

.testimonial-card p {
  color: var(--foreground-light);
  line-height: 1.6;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
  padding: 5rem 0;
  background: var(--card);
}

.pricing-card {
  max-width: 28rem;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(108, 58, 237, 0.3);
  box-shadow: var(--shadow-glow);
}

.pricing-ribbon {
  background: var(--gradient-cta);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.pricing-body {
  background: var(--card);
  padding: 2rem 2.5rem;
  text-align: center;
}

.pricing-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.price-old {
  font-size: 1.5rem;
  color: var(--foreground-light);
  text-decoration: line-through;
  margin-right: 0.75rem;
}

.price-new {
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-note {
  color: var(--foreground-light);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.pricing-body .btn-primary {
  width: 100%;
}

.pricing-secure {
  font-size: 0.75rem;
  color: var(--foreground-light);
  margin-top: 1rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.4;
  z-index: 0;
}

.faq-section .container {
  position: relative;
  z-index: 1;
}

.faq-list {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  text-align: left;
}

.faq-question .icon {
  transition: transform 0.3s;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1rem;
}

.faq-answer p {
  color: var(--foreground-light);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--foreground);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copyright {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(108, 58, 237, 0.3); }
  50% { box-shadow: 0 0 40px rgba(108, 58, 237, 0.5); }
}

.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
