/* Color variables and styles */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg: #ffffff;
  --section-bg: #f9fafb;
  --text: #111827;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --border: rgba(17, 24, 39, 0.07);
  --border-strong: rgba(17, 24, 39, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Blur Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06b6d4, #3b82f6);
  top: 10%;
  left: -10%;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6, #ec4899);
  top: 40%;
  right: -10%;
  animation-delay: -5s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #6366f1, #06b6d4);
  bottom: 10%;
  left: 20%;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-40px, 80px) scale(0.9); }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-muted);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--section-bg);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-block {
  width: 100%;
  display: flex;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

/* Typography elements */
.mono-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 99px;
  background-color: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  margin-bottom: 16px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.mono-badge.secondary {
  background-color: rgba(6, 182, 212, 0.08);
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.15);
}

.gradient-text {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
.header {
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  z-index: 10;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

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

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}

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

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 680px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.platform-alternatives {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-sans);
}

.platform-alternatives span {
  font-weight: 500;
}

.platform-alternatives .alt-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 4px 10px;
  border-radius: 8px;
  background-color: rgba(79, 70, 229, 0.05);
  border: 1px solid rgba(79, 70, 229, 0.08);
}

.platform-alternatives .alt-link:hover {
  background-color: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.2);
  transform: translateY(-1px);
}

.platform-alternatives .alt-link.active-platform {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
  pointer-events: none;
}

.platform-alternatives .divider {
  color: var(--text-light);
  opacity: 0.5;
}

.cta-buttons-wrap {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-alts {
  margin-bottom: 0;
  margin-top: 20px;
}

/* High fidelity Mockup Container */
.mockup-frame {
  width: 100%;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  margin: 0 auto;
}

.mockup-header {
  height: 48px;
  background-color: rgba(243, 244, 246, 0.7);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.dots {
  display: flex;
  gap: 8px;
}

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

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.title-bar {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mockup-body {
  height: 480px;
  display: grid;
  grid-template-columns: 200px 1fr;
  background-color: #ffffff;
}

.mockup-sidebar {
  border-right: 1px solid var(--border);
  background-color: #f9fafb;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
}

.sidebar-item.active {
  background-color: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.mockup-content {
  padding: 40px;
  overflow-y: auto;
  text-align: left;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
}

.mockup-pdf-page {
  max-width: 580px;
  width: 100%;
}

.pdf-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--section-bg);
  padding-bottom: 12px;
}

.pdf-header-row h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.page-num {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: var(--font-mono);
}

.mockup-pdf-page p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 24px;
}

.highlight-yellow {
  background-color: rgba(253, 224, 71, 0.45);
  border-radius: 3px;
  padding: 2px 4px;
}

.annotation-card-mock {
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: var(--radius-md);
  background-color: rgba(79, 70, 229, 0.03);
  padding: 14px 18px;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.annotation-card-mock p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Social Proof Section */
.social-proof-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--section-bg);
}

.social-proof-lead {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Core Features Section */
.features-section {
  padding: 100px 0;
}

.section-header {
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.cyan-grad { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.violet-grad { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.indigo-grad { background: linear-gradient(135deg, #4f46e5, #8b5cf6); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* Interactive Preview Section */
.preview-section {
  padding: 100px 0;
  background-color: var(--section-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.preview-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.preview-text h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.preview-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.interactive-controls {
  display: flex;
  gap: 8px;
}

.btn-ctrl {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-ctrl:hover {
  background-color: var(--section-bg);
  color: var(--text);
}

.btn-ctrl.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Live Demo Interactive Card style */
.live-demo-card {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  height: 380px;
  display: flex;
  flex-direction: column;
}

.demo-toolbar {
  height: 48px;
  border-bottom: 1px solid var(--border);
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.demo-zoom-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.color-picker-row {
  display: flex;
  gap: 6px;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.15s;
}

.color-dot:hover {
  transform: scale(1.25);
}

.color-dot.active {
  border-color: var(--text);
  box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.color-dot.yellow { background-color: #fde047; }
.color-dot.green { background-color: #4caf50; }
.color-dot.blue { background-color: #2196f3; }
.color-dot.pink { background-color: #e91e63; }

.demo-pdf-viewport {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background-color: #e5e7eb;
  display: flex;
  justify-content: center;
}

.demo-pdf-page {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  font-size: 0.88rem;
  line-height: 1.65;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
  height: fit-content;
}

.demo-pdf-page.zoom-100 { transform: scale(1.0); }
.demo-pdf-page.zoom-125 { transform: scale(1.25); }
.demo-pdf-page.zoom-150 { transform: scale(1.5); }

.demo-highlight {
  border-radius: 3px;
  padding: 1px 3px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.demo-highlight.yellow { background-color: rgba(253, 224, 71, 0.24); }
.demo-highlight.green { background-color: rgba(76, 175, 80, 0.24); }
.demo-highlight.blue { background-color: rgba(33, 150, 243, 0.24); }
.demo-highlight.pink { background-color: rgba(233, 30, 99, 0.24); }

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.testimonial-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 24px;
  flex: 1;
}

.testimonial-author strong {
  display: block;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--section-bg) 100%);
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Footer */
.footer {
  padding: 48px 0;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.88rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a svg {
  fill: currentColor;
}

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

/* MODAL LAYOUT */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 580px;
  width: 100%;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--section-bg);
  border: 1px solid var(--border);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-close-btn:hover {
  background-color: var(--border);
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.steps-carousel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--section-bg);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--primary);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.step-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Scroll reveal helper class */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Media Queries */
@media (max-width: 992px) {
  .preview-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
  }
  .nav {
    display: none;
  }
  .mockup-body {
    grid-template-columns: 1fr;
    height: 380px;
  }
  .mockup-sidebar {
    display: none;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .platform-alternatives .divider {
    display: none;
  }
  .platform-alternatives {
    gap: 8px;
    justify-content: center;
  }
}
