:root {
  /* Colors */
  --bg-deep: #0a0a0a;
  --bg-surface: #121212;
  --bg-card: #181818;
  --primary: #1ed760;
  --primary-glow: rgba(30, 215, 96, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-gradient: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
  --border-color: rgba(255, 255, 255, 0.1);
  --glass: rgba(18, 18, 18, 0.8);
  
  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --line-height: 1.7;
  
  /* Spacing */
  --section-padding: 6rem 1.5rem;
  --container-max: 1100px;
  --article-max: 800px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: var(--line-height);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

strong {
  color: var(--text-primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  filter: brightness(1.2);
}

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

.article-container {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glassmorphism Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background 0.3s ease;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
}

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

nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav-cta {
  background: var(--accent-gradient);
  color: #000;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

header.scrolled .nav-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(30, 215, 96, 0.15) 0%, transparent 50%);
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--primary-glow);
}

.btn-subtext {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* CSS Mockup */
.mockup-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.mockup-header {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.mockup-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  height: 400px;
}

.mockup-sidebar {
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 1rem;
}

.mockup-main {
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
}

.skeleton {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.feature-card {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Comparison Table */
.table-wrapper {
  overflow-x: auto;
  margin: 3rem 0;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

th, td {
  padding: 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

.check { color: var(--primary); font-weight: bold; }
.cross { color: #ff4d4d; font-weight: bold; }

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--border-color);
}

.step {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  z-index: 1;
}

.step-content {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

/* Callouts */
blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(30, 215, 96, 0.05);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-primary);
}

/* FAQ */
.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

/* Section Dividers */
hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 6rem 0;
}

/* Footer */
footer {
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

footer p {
  font-size: 0.9rem;
}

/* Summary Box */
.summary-box {
  background: rgba(30, 215, 96, 0.03);
  border: 1px solid rgba(30, 215, 96, 0.2);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.summary-box h4 {
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.summary-box ul {
  list-style: none;
}

.summary-box li {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-box li::before {
  content: '→';
  color: var(--primary);
}

/* Status Bar / Social Proof */
.status-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin: 2rem 0;
}

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

.status-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.status-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* CSS Flow Diagram */
.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.flow-node {
  background: var(--bg-surface);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: monospace;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.flow-node.highlight {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.flow-arrow {
  height: 30px;
  width: 2px;
  background: var(--border-color);
  position: relative;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: -4px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--border-color);
}

/* Mid-Page CTA */
.mid-cta {
  background: linear-gradient(rgba(30, 215, 96, 0.1), rgba(10, 10, 10, 1));
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  margin: 4rem 0;
}

.mid-cta h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary);
  z-index: 2000;
  transition: width 0.1s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 1rem;
  }
  
  nav { display: none; }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .mockup-content {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .mockup-sidebar {
    display: none;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .step {
    padding-left: 45px;
  }
  
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .status-bar {
    flex-direction: column;
    gap: 1.5rem;
  }
}
