/* ═══════════════════════════════════════════════════════════════
   PROMPTENHANCE — Premium Dark Theme with Scroll Animations
   A sophisticated, cinematic design that feels like the future
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   CSS Variables
   ───────────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg-base: #09090b;
  --bg-elevated: #18181b;
  --bg-surface: #27272a;
  --bg-hover: #3f3f46;

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;

  --accent-purple: #a78bfa;
  --accent-pink: #f472b6;
  --accent-orange: #fb923c;
  --accent-cyan: #22d3ee;

  --gradient-primary: linear-gradient(135deg, var(--accent-purple), var(--accent-pink), var(--accent-orange));
  --gradient-glow: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(244, 114, 182, 0.4));

  --glass-bg: rgba(24, 24, 27, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Spacing */
  --section-padding: clamp(80px, 12vw, 160px);
  --container-max: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(167, 139, 250, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-purple);
  color: white;
}

/* ─────────────────────────────────────────────────────────────────
   Scroll Animation Classes
   ───────────────────────────────────────────────────────────────── */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.scroll-animate-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.scroll-animate-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.scroll-animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for grid items */
.scroll-animate:nth-child(1) { transition-delay: 0s; }
.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.scroll-animate:nth-child(4) { transition-delay: 0.3s; }
.scroll-animate:nth-child(5) { transition-delay: 0.4s; }
.scroll-animate:nth-child(6) { transition-delay: 0.5s; }

/* ─────────────────────────────────────────────────────────────────
   Background Effects
   ───────────────────────────────────────────────────────────────── */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(244, 114, 182, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(251, 146, 60, 0.08) 0%, transparent 50%);
  animation: auroraShift 20s ease-in-out infinite;
  filter: blur(60px);
}

.aurora-2 {
  background:
    radial-gradient(ellipse at 60% 60%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
  animation: auroraShift 25s ease-in-out infinite reverse;
  animation-delay: -5s;
}

@keyframes auroraShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(5%, -5%) rotate(5deg) scale(1.05); }
  50% { transform: translate(-3%, 3%) rotate(-3deg) scale(0.98); }
  75% { transform: translate(2%, 5%) rotate(2deg) scale(1.02); }
}

.grain {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  animation: grainShift 8s steps(10) infinite;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(5%, 5%); }
  30% { transform: translate(-5%, 5%); }
  40% { transform: translate(5%, -5%); }
  50% { transform: translate(-5%, 0); }
  60% { transform: translate(5%, 0); }
  70% { transform: translate(0, 5%); }
  80% { transform: translate(0, -5%); }
  90% { transform: translate(5%, 5%); }
}

#stars-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────
   Scroll Progress
   ───────────────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ─────────────────────────────────────────────────────────────────
   Navigation
   ───────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: transparent;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  padding: 6px;
  overflow: hidden;
}

.logo-mark img {
  width: 150%;
  height: 150%;
  object-fit: contain;
}

.logo:hover .logo-mark {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-primary);
  transition: width 0.3s var(--ease-out);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-creator {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.creator-name {
  color: var(--accent-pink);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
  background: var(--bg-surface);
  border-color: var(--accent-purple);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

/* ─────────────────────────────────────────────────────────────────
   Hero Section
   ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 60px;
  position: relative;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s var(--ease-out);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-purple);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(167, 139, 250, 0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.title-line:nth-child(2) {
  animation-delay: 0.1s;
}

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

.title-accent {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(167, 139, 250, 0.4);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover .btn-shine {
  left: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-purple);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.05rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* Hero Demo */
.hero-demo {
  width: 100%;
  max-width: 700px;
  margin: 3rem auto 0;
  animation: fadeInUp 1s var(--ease-out) 0.5s both;
}

.demo-browser {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--glass-border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-hover);
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #eab308; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.browser-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.browser-content {
  padding: 1.5rem;
}

.demo-input-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-base);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.demo-input {
  flex: 1;
  display: flex;
  align-items: center;
}

.demo-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.demo-cursor {
  width: 2px;
  height: 1.2em;
  background: var(--accent-purple);
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.demo-enhance-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.demo-enhance-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.4);
}

.demo-result {
  margin-top: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(244, 114, 182, 0.05));
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 12px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
}

.demo-result.visible {
  opacity: 1;
  max-height: 300px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.result-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-purple);
}

.result-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.result-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  animation: fadeInUp 0.8s var(--ease-out) 1s both;
}

.scroll-arrow {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ─────────────────────────────────────────────────────────────────
   Section Styles
   ───────────────────────────────────────────────────────────────── */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-padding) 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────
   Platforms Section (Marquee)
   ───────────────────────────────────────────────────────────────── */
.platforms {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.platforms .section-container {
  padding: 3rem 2rem;
}

.platforms-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.platforms-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  display: flex;
  justify-content: center;
}

.platforms-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  width: max-content;
}

.platform {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.platform:hover {
  color: var(--text-primary);
}

/* ─────────────────────────────────────────────────────────────────
   Problem Section
   ───────────────────────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-card {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.4s var(--ease-out);
}

.problem-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.15);
}

.problem-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: 12px;
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
}

.problem-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────
   Solution Section (Steps)
   ───────────────────────────────────────────────────────────────── */
.solution {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-elevated) 100%);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 6rem;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.step:nth-child(even) {
  direction: rtl;
}

.step:nth-child(even) > * {
  direction: ltr;
}

.step-visual {
  display: flex;
  justify-content: center;
}

.step-mockup {
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  position: relative;
  transition: all 0.4s var(--ease-out);
}

.step-mockup:hover {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.15);
}

.mockup-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-base);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}

.mockup-input:not(.with-button) {
  justify-content: flex-start;
}

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

.mockup-cursor {
  width: 2px;
  height: 1em;
  background: var(--accent-purple);
  animation: blink 1s steps(1) infinite;
  margin-left: 2px;
  flex-shrink: 0;
}

.mockup-enhance {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.click-ripple {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.3);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 2s ease-out infinite;
  animation-delay: 1s;
  pointer-events: none;
}

@keyframes ripple {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.result-mockup .mockup-result {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(244, 114, 182, 0.05));
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 10px;
}

.mockup-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
}

.mockup-result p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-content {
  padding: 1rem 0;
}

.step-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.step-content h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Comparison Block */
.comparison-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.comparison-card {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.4s var(--ease-out);
}

.comparison-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.comparison-card.new-way {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(244, 114, 182, 0.05));
  border-color: rgba(167, 139, 250, 0.3);
  position: relative;
}

.comparison-card.new-way:hover {
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.15);
}

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

.comparison-icon {
  font-size: 1.5rem;
}

.comparison-header h4 {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
}

.comparison-time {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.new-way .comparison-time {
  color: var(--accent-purple);
  font-weight: 600;
}

.comparison-steps {
  list-style: none;
  counter-reset: step;
}

.comparison-steps li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  counter-increment: step;
}

.comparison-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--bg-surface);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}

.new-way .comparison-steps li.done {
  color: var(--accent-purple);
  font-weight: 600;
}

.new-way .comparison-steps li.done::before {
  background: var(--gradient-primary);
  color: white;
}

.comparison-vs {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-tertiary);
}

.comparison-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 0.375rem 1rem;
  background: var(--gradient-primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

/* ─────────────────────────────────────────────────────────────────
   Features Section
   ───────────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.4s var(--ease-out);
}

.feature-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.15);
}

.feature-card.feature-large {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(244, 114, 182, 0.05));
  border-color: rgba(167, 139, 250, 0.2);
}

.feature-card.feature-large .feature-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: 12px;
  color: var(--accent-purple);
  margin-bottom: 1.25rem;
}

.feature-large .feature-icon {
  margin-bottom: 0;
}

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

.feature-large h3 {
  margin-bottom: 0.25rem;
}

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

.feature-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.tag:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.tag.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.tag.active:hover {
  opacity: 0.9;
}

/* ─────────────────────────────────────────────────────────────────
   Examples Section
   ───────────────────────────────────────────────────────────────── */
.examples {
  background: var(--bg-elevated);
}

.examples-showcase {
  background: var(--bg-base);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
}

.example-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.example-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.example-tab:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.example-tab.active {
  background: var(--bg-elevated);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.example-content {
  display: none;
  grid-template-columns: 1fr auto 1.5fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
}

.example-content.active {
  display: grid;
}

.example-before,
.example-after {
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.4s var(--ease-out);
}

.example-before {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
}

.example-before:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.example-after {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(244, 114, 182, 0.05));
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.example-after:hover {
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.15);
}

.example-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.example-before .example-text {
  color: var(--text-tertiary);
  font-style: italic;
}

.example-after .example-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.example-arrow {
  color: var(--accent-purple);
}

.example-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 2rem;
}

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

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ─────────────────────────────────────────────────────────────────
   CTA Section
   ───────────────────────────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
}

.cta-content {
  text-align: center;
  padding: 4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  position: relative;
  z-index: 1;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 60%);
  filter: blur(60px);
  z-index: -1;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cta-feature svg {
  color: #22c55e;
}

/* ─────────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--glass-border);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

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

.logo-mark.small {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  padding: 5px;
}

.logo-mark.small img {
  width: 150%;
  height: 150%;
  object-fit: contain;
}

.footer-logo span {
  font-size: 1rem;
  font-weight: 600;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 350px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.heart {
  color: var(--accent-pink);
  animation: heartbeat 1.5s ease-in-out infinite;
}

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

.creator {
  color: var(--accent-pink);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────
   Advanced Settings Section
   ───────────────────────────────────────────────────────────────── */
.advanced {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
}

.advanced-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.settings-panel {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.settings-panel:hover {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.15);
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.settings-header h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.reset-btn {
  padding: 0.375rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.settings-group {
  margin-bottom: 2rem;
}

.settings-group:last-child {
  margin-bottom: 0;
  margin-top: auto;
}

.settings-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  cursor: help;
  transition: transform 0.3s ease;
}

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

.info-icon.small {
  margin-left: auto;
}

/* Custom Select */
.select-wrapper {
  position: relative;
}

.custom-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
}

.custom-select:hover,
.custom-select:focus {
  border-color: var(--accent-purple);
  outline: none;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.custom-select:focus + .select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkbox-item:hover {
  border-color: var(--accent-purple);
}

.checkbox-item input {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-item input:checked + .checkbox-custom {
  background: var(--gradient-primary);
  border-color: transparent;
}

.checkbox-item input:checked + .checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.checkbox-label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Slider */
.slider-item {
  margin-bottom: 1.5rem;
}

.slider-item:last-child {
  margin-bottom: 0;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.slider-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.slider-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-purple);
}

.slider-wrapper {
  position: relative;
}

.custom-slider {
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  appearance: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.custom-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.6);
}

.custom-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
}

.slider-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
/*  background: var(--bg-surface);
  border-radius: 3px;*/
  z-index: 0;
}

.slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 0px;
  background: var(--gradient-primary);
  border-radius: 3px;
  z-index: 1;
  pointer-events: none;
  transition: width 0.1s ease;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.slider-labels span {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

/* Advanced Features List */
.advanced-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.adv-feature {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.4s var(--ease-out);
}

.adv-feature:hover,
.adv-feature.highlighted {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.15);
}

.adv-feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: 12px;
  color: var(--accent-purple);
  flex-shrink: 0;
  transition: all 0.4s var(--ease-out);
}

.adv-feature:hover .adv-feature-icon,
.adv-feature.highlighted .adv-feature-icon {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(244, 114, 182, 0.1));
}

.adv-feature-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.framework-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.fw-tag {
  padding: 0.25rem 0.625rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-purple);
}

/* ─────────────────────────────────────────────────────────────────
   Scroll to Top
   ───────────────────────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-out);
  z-index: 999;
}

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

.scroll-top:hover {
  background: var(--bg-surface);
  border-color: var(--accent-purple);
}

/* ─────────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .step:nth-child(even) {
    direction: ltr;
  }

  .step-content {
    order: 2;
  }

  .step-visual {
    order: 1;
  }

  .comparison-block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.feature-large {
    grid-column: span 1;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-tags {
    justify-content: center;
  }

  .example-content {
    grid-template-columns: 1fr;
  }

  .example-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .example-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .advanced-showcase {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 768px) {
  .nav-creator {
    display: none;
  }

  .hero {
    padding: 100px 1.5rem 40px;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }

  .platforms-list {
    gap: 0.75rem 1.5rem;
  }

  .example-tabs {
    flex-wrap: wrap;
  }

  .cta-content {
    padding: 2.5rem 1.5rem;
  }

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

  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-credit {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section-container {
    padding: 60px 1.25rem;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────────
   Reduced Motion
   ───────────────────────────────────────────────────────────────── */
/*
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}*/
