/* ============================================
   Payora — Design System & Landing Page
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary Colors */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-900: #312e81;

  /* Accent */
  --accent: #f59e0b;
  --accent-light: #fbbf24;

  /* Success / Warning / Error */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Neutrals (Light Mode) */
  --bg: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);

  /* Glassmorphism */
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.3);
  --glass-blur: blur(20px);

  /* Typography */
  --font-primary: var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --container-max: 1200px;
  --container-wide: 1400px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;
  --surface: #1e293b;
  --surface-hover: #334155;
  --border: #334155;
  --border-light: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;

  --glass-bg: rgba(15, 23, 42, 0.8);
  --glass-border: rgba(51, 65, 85, 0.5);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 10px 10px -5px rgba(0,0,0,0.3);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease, color 0.4s ease;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

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

button {
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  outline: none;
}

input, select, textarea {
  font-family: var(--font-primary);
  outline: none;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

[data-theme="dark"] .section-label {
  background: rgba(99, 102, 241, 0.15);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
  color: white;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 20px;
}

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

[data-theme="dark"] .btn-ghost:hover {
  background: rgba(99, 102, 241, 0.1);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.navbar-brand:hover {
  color: var(--text);
}

.navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--primary);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--primary-50);
  color: var(--primary);
  border-color: var(--primary-200);
  transform: rotate(15deg);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(99, 102, 241, 0.15);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg .gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 15s ease-in-out infinite;
}

.hero-bg .gradient-orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.hero-bg .gradient-orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

.hero-bg .gradient-orb:nth-child(3) {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  top: 50%;
  left: 50%;
  animation-delay: -10s;
}

.hero-bg .grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

[data-theme="dark"] .hero-bg .grid-pattern {
  background-image: 
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

.hero-content {
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge .badge-tag {
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-feature-item i {
  flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: slideInRight 1s ease-out 0.2s both;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  position: relative;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #f59e0b; }
.mockup-dot:nth-child(3) { background: #22c55e; }

.mockup-body {
  padding: 24px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mockup-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
}

.mockup-status {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-status.paid {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.mockup-line {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.mockup-line.w-60 { width: 60%; }
.mockup-line.w-40 { width: 40%; }
.mockup-line.w-80 { width: 80%; }
.mockup-line.w-30 { width: 30%; }

.mockup-table {
  margin-top: 8px;
}

.mockup-table-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.mockup-table-row .left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 2px solid var(--primary);
  margin-top: 8px;
  font-weight: 700;
  color: var(--primary);
}

/* Floating elements */
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatBounce 4s ease-in-out infinite;
  z-index: 2;
}

.float-card.card-1 {
  top: 20px;
  left: -40px;
  animation-delay: 0s;
}

.float-card.card-2 {
  bottom: 40px;
  right: -30px;
  animation-delay: -2s;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.float-card-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.float-card-icon.blue {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.float-card-text {
  font-size: 0.8rem;
}

.float-card-text strong {
  display: block;
  font-size: 0.85rem;
}

.float-card-text span {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

/* ---------- Features Section ---------- */
.features {
  background: var(--bg);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #a855f7);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: var(--primary-50);
  color: var(--primary);
}

[data-theme="dark"] .feature-icon {
  background: rgba(99, 102, 241, 0.12);
}

.feature-card:nth-child(2) .feature-icon {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.feature-card:nth-child(3) .feature-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.feature-card:nth-child(4) .feature-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.feature-card:nth-child(5) .feature-icon {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.feature-card:nth-child(6) .feature-icon {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- Templates Showcase ---------- */
.templates-section {
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .templates-section {
  background: var(--bg-secondary);
}

/* Templates Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.template-feature {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.template-feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.template-feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  color: white;
}

.template-feature h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.template-feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.templates-showcase {
  display: flex;
  gap: 24px;
  margin-top: 60px;
  overflow-x: auto;
  padding: 20px 0 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.templates-showcase::-webkit-scrollbar {
  height: 6px;
}

.templates-showcase::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

.templates-showcase::-webkit-scrollbar-thumb {
  background: var(--primary-200);
  border-radius: 3px;
}

.template-preview-card {
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.template-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.template-preview {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.template-preview-card .template-info {
  padding: 16px;
}

.template-preview-card .template-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.template-preview-card .template-category {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.template-preview-card .template-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition-fast);
  text-decoration: none;
  margin-top: 8px;
}

.template-preview-card .template-action:hover {
  background: var(--primary-dark);
  transform: translateX(4px);
  color: white;
}

/* Template preview colors */
.template-preview {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(0,0,0,0.3);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

/* Classic White Template */
.tp-classic {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}
.tp-classic::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(200,200,200,0.2) 3%, transparent 6%),
    linear-gradient(90deg, transparent 15%, rgba(0,0,0,0.05) 20%, transparent 25%),
    linear-gradient(90deg, transparent 30%, rgba(0,0,0,0.03) 32%, transparent 34%),
    linear-gradient(90deg, transparent 45%, rgba(100,100,100,0.1) 50%, transparent 55%),
    linear-gradient(90deg, transparent 60%, rgba(0,0,0,0.02) 62%, transparent 64%),
    linear-gradient(90deg, transparent 70%, rgba(0,0,0,0.02) 72%, transparent 74%),
    linear-gradient(90deg, transparent 80%, rgba(200,200,200,0.15) 85%, transparent 90%);
  background-size: 100% 25px;
  background-position: 0 5px;
  background-repeat: repeat-y;
}

/* Modern Dark Template */
.tp-modern {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.tp-modern::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 5%, transparent 10%),
    linear-gradient(90deg, transparent 20%, rgba(255,255,255,0.08) 25%, transparent 30%),
    linear-gradient(90deg, transparent 40%, rgba(255,255,255,0.08) 45%, transparent 50%),
    linear-gradient(90deg, transparent 60%, rgba(255,255,255,0.08) 65%, transparent 70%),
    linear-gradient(90deg, transparent 80%, rgba(255,255,255,0.12) 85%, transparent 90%);
  background-size: 100% 20px;
  background-position: 0 8px;
  background-repeat: repeat-y;
}

/* Minimal Line Template */
.tp-minimal {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}
.tp-minimal::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 0%, #e5e7eb 2%, transparent 4%),
    linear-gradient(90deg, transparent 15%, #e5e7eb 17%, transparent 19%),
    linear-gradient(90deg, transparent 30%, #e5e7eb 32%, transparent 34%),
    linear-gradient(90deg, transparent 45%, #d1d5db 47%, transparent 49%),
    linear-gradient(90deg, transparent 60%, #d1d5db 62%, transparent 64%),
    linear-gradient(90deg, transparent 75%, #e5e7eb 77%, transparent 79%),
    linear-gradient(90deg, transparent 85%, #e5e7eb 87%, transparent 89%);
  background-size: 100% 20px;
  background-position: 0 10px;
  background-repeat: repeat-y;
}

/* Bold Header Template */
.tp-bold {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}
.tp-bold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(135deg, rgba(99,102,241,0.9) 0%, rgba(79,70,229,0.9) 100%);
}
.tp-bold::after {
  content: '';
  position: absolute;
  top: 35%;
  left: 0;
  width: 100%;
  height: 65%;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  background: 
    linear-gradient(90deg, transparent 0%, rgba(200,200,200,0.15) 3%, transparent 6%),
    linear-gradient(90deg, transparent 15%, rgba(0,0,0,0.08) 20%, transparent 25%),
    linear-gradient(90deg, transparent 30%, rgba(0,0,0,0.05) 32%, transparent 34%),
    linear-gradient(90deg, transparent 45%, rgba(100,100,100,0.1) 50%, transparent 55%),
    linear-gradient(90deg, transparent 65%, rgba(0,0,0,0.04) 67%, transparent 69%),
    linear-gradient(90deg, transparent 80%, rgba(200,200,200,0.1) 85%, transparent 90%);
  background-size: 100% 15px;
  background-position: 0 2px;
  background-repeat: repeat-y;
}

/* Corporate Blue Template */
.tp-corporate {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}
.tp-corporate::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 3%, transparent 6%),
    linear-gradient(90deg, transparent 20%, rgba(255,255,255,0.1) 25%, transparent 30%),
    linear-gradient(90deg, transparent 40%, rgba(255,255,255,0.1) 45%, transparent 50%),
    linear-gradient(90deg, transparent 60%, rgba(255,255,255,0.1) 65%, transparent 70%),
    linear-gradient(90deg, transparent 80%, rgba(255,255,255,0.15) 85%, transparent 90%);
  background-size: 100% 18px;
  background-position: 0 8px;
  background-repeat: repeat-y;
}

/* Elegant Template */
.tp-elegant {
  background: linear-gradient(135deg, #78716c 0%, #a8a29e 100%);
}
.tp-elegant::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 5%, transparent 10%),
    linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.08) 30%, transparent 35%),
    linear-gradient(90deg, transparent 50%, rgba(255,255,255,0.08) 55%, transparent 60%),
    linear-gradient(90deg, transparent 75%, rgba(255,255,255,0.12) 80%, transparent 85%);
  background-size: 100% 22px;
  background-position: 0 8px;
  background-repeat: repeat-y;
}

/* Tech Template */
.tp-tech {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #06b6d4 100%);
}
.tp-tech::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(6,182,212,0.2) 5%, transparent 10%),
    linear-gradient(90deg, transparent 20%, rgba(6,182,212,0.15) 25%, transparent 30%),
    linear-gradient(90deg, transparent 40%, rgba(6,182,212,0.15) 45%, transparent 50%),
    linear-gradient(90deg, transparent 60%, rgba(6,182,212,0.15) 65%, transparent 70%),
    linear-gradient(90deg, transparent 80%, rgba(6,182,212,0.2) 85%, transparent 90%);
  background-size: 100% 18px;
  background-position: 0 8px;
  background-repeat: repeat-y;
}

/* Creative Template */
.tp-creative {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
}
.tp-creative::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 5%, transparent 10%),
    linear-gradient(90deg, transparent 20%, rgba(255,255,255,0.1) 25%, transparent 30%),
    linear-gradient(90deg, transparent 40%, rgba(255,255,255,0.1) 45%, transparent 50%),
    linear-gradient(90deg, transparent 60%, rgba(255,255,255,0.1) 65%, transparent 70%),
    linear-gradient(90deg, transparent 80%, rgba(255,255,255,0.15) 85%, transparent 90%);
  background-size: 100% 18px;
  background-position: 0 8px;
  background-repeat: repeat-y;
}

/* ---------- How It Works ---------- */
.how-it-works {
  background: var(--bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #a855f7, #ec4899, #06b6d4);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-200);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0; }
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Pricing Section ---------- */
.pricing-section {
  background: var(--bg-tertiary);
  position: relative;
}

[data-theme="dark"] .pricing-section {
  background: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: var(--transition);
  position: relative;
}

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

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-plan-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

.pricing-features li.disabled {
  opacity: 0.4;
}

.pricing-features li.disabled svg {
  color: var(--text-tertiary);
}

.pricing-card .btn {
  width: 100%;
}

/* ---------- Testimonials ---------- */
.testimonials-section {
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: var(--transition);
}

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

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: #f59e0b;
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

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

.testimonial-info .role {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ---------- FAQ Section ---------- */
.faq-section {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .faq-section {
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 740px;
  margin: 60px auto 0;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  user-select: none;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.faq-item.active .faq-toggle {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 50%, #a855f7 100%);
  border-radius: var(--radius-2xl);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-title {
  font-size: 2.75rem;
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
  position: relative;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  position: relative;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.btn-white {
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  color: var(--primary-dark);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-2px);
  color: white;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-brand .brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.95rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-tertiary);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ---------- Login Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 420px;
  padding: 0;
  box-shadow: var(--shadow-2xl);
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  overflow: hidden;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 28px 32px 0;
  text-align: center;
}

.modal-header .modal-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  color: white;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-body {
  padding: 28px 32px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition-fast);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group input::placeholder {
  color: var(--text-tertiary);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.form-link {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.form-link:hover {
  color: var(--primary-dark);
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-login {
  display: flex;
  gap: 12px;
}

.social-login-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition-fast);
  cursor: pointer;
}

.social-login-btn:hover {
  border-color: var(--primary-200);
  background: var(--surface-hover);
}

.modal-footer {
  padding: 0 32px 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-footer a {
  font-weight: 600;
  color: var(--primary);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  font-size: 1rem;
}

.modal-close:hover {
  background: var(--error);
  color: white;
}

/* ---------- Scroll-to-top ---------- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* ---------- Animations (Scroll Reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .steps-grid::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: 8px 16px;
    padding: 16px;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-lg);
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a {
    padding: 10px 16px;
    border-radius: var(--radius);
    width: 100%;
  }

  .navbar-links a:hover {
    background: var(--bg-tertiary);
  }

  .navbar-links a::after {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    gap: 24px;
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 48px 24px;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .float-card {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .modal {
    margin: 16px;
  }
}

/* ---------- Owl Carousel Custom Styling ---------- */
.owl-carousel {
  position: relative;
}

.owl-carousel .owl-stage {
  padding: 20px 0;
}

.owl-carousel .owl-stage-outer {
  overflow: visible;
}

/* Navigation buttons */
.owl-nav {
  margin-top: 30px;
  text-align: center;
}

.owl-nav button {
  background: var(--primary) !important;
  color: white !important;
  width: 44px;
  height: 44px;
  border-radius: var(--radius) !important;
  border: none !important;
  margin: 0 8px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast) !important;
  font-size: 0;
  padding: 0 !important;
}

.owl-nav button:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35) !important;
}

.owl-nav button svg {
  width: 20px !important;
  height: 20px !important;
  stroke: white !important;
  stroke-width: 2 !important;
}

.owl-nav button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dots/pagination */
.owl-dots {
  text-align: center;
  margin-top: 20px;
}

.owl-dot {
  background: var(--border) !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  margin: 0 6px !important;
  border: none !important;
  transition: var(--transition-fast) !important;
  cursor: pointer !important;
}

.owl-dot.active {
  background: var(--primary) !important;
  transform: scale(1.3);
}

.owl-dot:hover {
  background: var(--primary-light) !important;
}

/* Item styling */
.owl-carousel .owl-item {
  padding: 0 10px;
}

.owl-carousel .owl-item .template-preview-card {
  min-width: 100%;
  height: 100%;
}

/* Responsive owl carousel */
@media (max-width: 1200px) {
  .owl-carousel {
    margin-bottom: 40px;
  }

  .owl-nav {
    margin-top: 20px;
  }

  .owl-nav button {
    width: 40px;
    height: 40px;
    margin: 0 6px !important;
  }
}

@media (max-width: 768px) {
  .owl-nav button {
    width: 38px;
    height: 38px;
    margin: 0 4px !important;
  }

  .owl-dot {
    width: 8px !important;
    height: 8px !important;
    margin: 0 4px !important;
  }
}

/* ========== ADDITIONAL MOBILE RESPONSIVE STYLES ========== */

/* Navigation responsive */
@media (max-width: 1024px) {
  .navbar {
    padding: 12px 20px;
  }
  
  .nav-container {
    gap: 12px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
  }
  
  .nav-logo {
    font-size: 1.1rem;
  }
  
  .nav-links {
    gap: 12px;
  }
  
  .nav-links a {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
  
  .nav-cta {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 12px;
  }
  
  .nav-logo {
    font-size: 1rem;
  }
  
  .nav-links {
    gap: 8px;
  }
  
  .nav-links a {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .nav-cta {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Buttons responsive */
@media (max-width: 768px) {
  .btn {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .btn-sm {
    min-height: 40px;
    padding: 8px 16px;
  }
  
  .btn-lg {
    min-height: 48px;
    padding: 12px 24px;
  }
  
  .btn-icon {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .btn {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .btn-sm {
    min-height: 36px;
    padding: 6px 12px;
  }
  
  .btn-lg {
    min-height: 44px;
    padding: 10px 20px;
  }
  
  .btn-icon {
    min-width: 40px;
    min-height: 40px;
  }
}

/* Container and spacing responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .section-padding-lg {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .section-padding {
    padding: 30px 0;
  }
  
  .section-padding-lg {
    padding: 40px 0;
  }
}

/* Card and box responsive */
@media (max-width: 768px) {
  .card {
    padding: 20px;
  }
  
  .card-lg {
    padding: 24px;
  }
  
  .box {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 16px;
  }
  
  .card-lg {
    padding: 18px;
  }
  
  .box {
    padding: 12px;
  }
}

/* Grid responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .grid-cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Flexbox responsive */
@media (max-width: 768px) {
  .flex-between {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .flex-center {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .flex-between,
  .flex-center {
    flex-direction: column;
    gap: 10px;
  }
}

/* Text responsive */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.35;
  }
  
  h3 {
    font-size: 1.2rem;
    line-height: 1.4;
  }
  
  .text-lg {
    font-size: 0.95rem;
  }
  
  .text-sm {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.3rem;
    line-height: 1.35;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  h4 {
    font-size: 1rem;
  }
  
  .text-lg {
    font-size: 0.9rem;
  }
  
  .text-sm {
    font-size: 0.75rem;
  }
}

/* Modal responsive */
@media (max-width: 768px) {
  .modal {
    margin: 20px;
  }
  
  .modal-content {
    max-width: calc(100% - 40px);
  }
  
  .modal-header {
    padding: 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .modal {
    margin: 16px;
    border-radius: var(--radius-lg);
  }
  
  .modal-content {
    max-width: calc(100% - 32px);
  }
  
  .modal-header {
    padding: 16px;
  }
  
  .modal-header h2 {
    font-size: 1.1rem;
  }
  
  .modal-body {
    padding: 16px;
  }
  
  .modal-footer {
    padding: 0 16px 20px;
  }
  
  .modal-close {
    width: 28px;
    height: 28px;
    top: 12px;
    right: 12px;
  }
}

/* Scroll-to-top responsive */
@media (max-width: 480px) {
  .scroll-top {
    width: 40px;
    height: 40px;
    bottom: 16px;
    right: 16px;
    font-size: 1rem;
  }
}

/* Templates Grid Responsive */
@media (max-width: 768px) {
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .template-feature {
    padding: 24px 16px;
  }

  .template-feature-icon {
    width: 48px;
    height: 48px;
  }

  .template-feature h3 {
    font-size: 1rem;
  }

  .template-feature p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .templates-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .template-feature {
    padding: 20px 12px;
  }

  .template-feature-icon {
    width: 44px;
    height: 44px;
  }

  .template-feature h3 {
    font-size: 0.95rem;
  }
}

.doc-list-icon.accent-bg.accent-color svg {
    stroke: #fff;
}
