/* ===== CSS Variables & Premium Design System ===== */
:root {
  /* Core Colors - Deep Space Theme */
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  --surface: #27272a;
  --surface-highlight: #3f3f46;

  /* Accents - Neon & Vibrant */
  --primary: #3b82f6;
  --primary-glow: #60a5fa;
  --secondary: #8b5cf6;
  --secondary-glow: #a78bfa;
  --accent: #ec4899;
  --accent-glow: #f472b6;

  /* Text Colors */
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-glow: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Glassmorphism */
  --glass-bg: rgba(24, 24, 27, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glass-blur: blur(12px);

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

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

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

/* ===== Ambient Background Animation ===== */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-primary);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: float 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
  top: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  animation-delay: 0s;
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  animation-delay: -8s;
}

.blob-3 {
  top: 30%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.15;
  animation-delay: -15s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(5%, 8%) scale(1.05);
  }
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.gradient-text {
  background: var(--grad-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

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

.row {
  display: flex;
}

.row.between {
  justify-content: space-between;
}

.row.center {
  align-items: center;
}

.row.gap {
  gap: 48px;
}

/* ===== Components ===== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 8px;
}

.btn.primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

.btn.large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-glow);
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(4px);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav a {
  margin-left: 32px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

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

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  padding: 160px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.6;
}

.badges {
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
}

.cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.bullets-fancy li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.bullets-fancy svg {
  color: var(--primary);
}

/* Hero Demo Animation */
.conversion-demo {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  position: relative;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.conversion-demo:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.demo-panel {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--glass-border);
}

.demo-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.demo-label {
  font-weight: 600;
  color: var(--text);
}

.demo-file {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
}

.file-icon {
  font-size: 2rem;
}

.file-info {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 500;
  color: var(--text);
}

.file-size {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.demo-progress-container {
  margin-bottom: 24px;
}

.demo-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}

.demo-progress-fill {
  height: 100%;
  width: 60%;
  background: var(--grad-primary);
  border-radius: 3px;
  animation: progress 2s infinite ease-in-out;
}

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

@keyframes progress {
  0% {
    width: 0%;
    transform: translateX(-100%);
  }

  50% {
    width: 100%;
    transform: translateX(0);
  }

  100% {
    width: 100%;
    transform: translateX(100%);
  }
}

.demo-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: 1px solid var(--glass-border);
}

.setting-value {
  color: var(--primary-glow);
  font-weight: 600;
}

.demo-result {
  margin-top: 24px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #34d399;
  font-weight: 600;
}

/* ===== Stats Section ===== */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1.1rem;
}

/* ===== Legal / Docs Pages ===== */
.legal {
  padding: 140px 0 120px;
  min-height: 100vh;
}

.legal-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px 32px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.legal-card h1 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.legal-card h2 {
  font-size: 1.3rem;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-card h3 {
  font-size: 1.1rem;
  margin-top: 22px;
  margin-bottom: 8px;
}

.legal-card .box {
  margin-top: 16px;
}

.legal-card .prose p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.legal-card .prose ul {
  margin: 10px 0 14px 20px;
  list-style: disc;
  color: var(--text-secondary);
}

.legal-card .prose li {
  margin-bottom: 6px;
}

.legal-card a {
  color: var(--primary);
}

.legal-card a:hover {
  color: var(--primary-glow);
}

.legal .muted {
  color: var(--text-muted);
}

/* ===== Features Section ===== */
.features {
  padding: 120px 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-highlight);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.card-ico {
  width: 56px;
  height: 56px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary-glow);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

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

/* ===== How It Works ===== */
.how {
  padding: 120px 0;
}

.timeline {
  counter-reset: step;
  margin-top: 40px;
  margin-bottom: 40px;
}

.timeline li {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.timeline li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  width: 40px;
  height: 40px;
  background: var(--surface-highlight);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease;
  height: auto;
}

.gallery img:hover {
  transform: scale(1.02);
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
}

.faq-list details {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-list details[open] {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--primary);
}

.faq-list summary {
  padding: 24px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.faq-list summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CTA Final ===== */
.cta-final {
  padding: 120px 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(180deg, var(--surface-highlight) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 80px;
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.cta-box .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
}

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

.footer-col h4 {
  margin-bottom: 24px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.footer-col .links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .lead {
    margin: 0 auto 32px;
  }

  .badges {
    justify-content: center;
  }

  .cta {
    justify-content: center;
  }

  .bullets-fancy {
    display: inline-block;
    text-align: left;
  }

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

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

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

  .nav {
    display: none;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--surface-highlight);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 90;
}

.to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--primary);
  color: white;
}