/* Custom Stylesheet for Markdown Clipper Landing Page */

/* Design Tokens & Theme Variables */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Outfit', var(--font-sans);
  --bg-dark: #090d16;
  --bg-slate-900: #0f172a;
  --bg-slate-800: #1e293b;
  --bg-glass: rgba(15, 23, 42, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-white: #f8fafc;
  --text-slate-300: #cbd5e1;
  --text-slate-400: #94a3b8;
  --text-slate-500: #64748b;
  --primary-glow: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --hover-glow: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-glow: rgba(139, 92, 246, 0.2);
  --transition-speed: 0.3s;
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-slate-800);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo);
}

/* Glowing Background Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}
.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
  top: -100px;
  right: -50px;
  animation: float-slow 15s infinite ease-in-out alternate;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
  top: 600px;
  left: -150px;
  animation: float-slow 20s infinite ease-in-out alternate-reverse;
}

@keyframes float-slow {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(40px) scale(1.1); }
  100% { transform: translateY(-20px) scale(0.95); }
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: padding var(--transition-speed);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo {
  width: 32px;
  height: 32px;
}
.nav-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-white);
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-slate-400);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-speed);
}
.nav-links a:hover {
  color: var(--text-white);
}

.btn-github {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-slate-800);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 30px;
  color: var(--text-white) !important;
  font-weight: 500;
  transition: background var(--transition-speed) !important;
}
.btn-github:hover {
  background: var(--bg-slate-900);
}
.git-icon {
  width: 14px;
  height: 14px;
}

/* Hero Section */
.hero-section {
  padding: 160px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.badge {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.hero-content h1 {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-white);
  letter-spacing: -1px;
}
.hero-content h1 span {
  background: linear-gradient(120deg, #a78bfa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text {
  font-size: 16px;
  color: var(--text-slate-400);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--primary-glow);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.btn-primary:hover {
  background: var(--hover-glow);
  box-shadow: 0 4px 25px rgba(99, 102, 241, 0.5);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-secondary {
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-slate-300);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-speed), color var(--transition-speed);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.store-icon {
  width: 18px;
  height: 18px;
}

/* Floating Showcase Image */
.hero-showcase {
  position: relative;
  width: 100%;
}
.showcase-border {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid var(--border-glass);
  padding: 12px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 
              0 0 80px rgba(99, 102, 241, 0.05);
}
.showcase-img {
  width: 100%;
  border-radius: var(--border-radius-md);
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Scroll Animation Utilities */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Sections Common Header */
.section-header {
  max-width: 650px;
  margin: 0 auto 50px;
  text-align: center;
}
.section-header h2 {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 15px;
  color: var(--text-slate-400);
}

/* Features Tab Section */
.features-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.interactive-tab-container {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.interactive-tab-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.interactive-control-btn {
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background var(--transition-speed), border-color var(--transition-speed);
}
.interactive-control-btn:hover {
  background: rgba(255, 255, 255, 0.02);
}
.interactive-control-btn.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glass);
}
.control-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-indigo);
  letter-spacing: 0.5px;
}
.control-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-slate-400);
  transition: color var(--transition-speed);
}
.interactive-control-btn.active .control-title {
  color: var(--text-white);
}

.interactive-tab-display {
  position: relative;
  min-height: 400px;
}
.showcase-panel {
  display: none;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  animation: panelFadeIn 0.3s ease-out forwards;
}
.showcase-panel.active {
  display: grid;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.panel-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.panel-info h3 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-white);
}
.panel-info p {
  font-size: 14px;
  color: var(--text-slate-400);
  line-height: 1.5;
}
.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.feature-checklist li {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-checklist li::before {
  content: "✓";
  color: var(--accent-purple);
  font-weight: 700;
}

.panel-preview {
  display: flex;
  align-items: center;
  background: #090d16;
  border-radius: var(--border-radius-md);
  padding: 8px;
  border: 1px solid var(--border-glass);
}
.panel-img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

/* Timeline/How it works */
.timeline-section {
  padding: 80px 24px;
  position: relative;
}
.timeline-bg-glow {
  position: absolute;
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0) 70%);
  bottom: 0;
  right: 10%;
  z-index: -1;
  pointer-events: none;
}
.timeline-steps {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-glass);
  padding: 32px 24px;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-speed), border-color var(--transition-speed);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.2);
}
.step-num {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-indigo);
  opacity: 0.7;
}
.step-card h4 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
}
.step-card p {
  font-size: 13px;
  color: var(--text-slate-400);
  line-height: 1.5;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: border-color var(--transition-speed);
}
.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-arrow {
  font-size: 9px;
  color: var(--text-slate-400);
  transition: transform var(--transition-speed);
}
.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--text-white);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease-out;
  background: rgba(0, 0, 0, 0.1);
}
.faq-item.active .faq-panel {
  max-height: 200px; /* Fits content */
}
.faq-panel p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-slate-400);
  line-height: 1.5;
}

/* Footer */
.footer {
  background: #06090f;
  border-top: 1px solid var(--border-glass);
  padding: 60px 24px 40px;
  margin-top: 60px;
}
.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  width: 26px;
  height: 26px;
}
.footer-logo-row h3 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-white);
}
.footer-desc {
  font-size: 14px;
  color: var(--text-slate-500);
  max-width: 450px;
}
.footer-meta {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-slate-500);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-slate-400);
  transition: color var(--transition-speed);
}
.footer-links a:hover {
  color: var(--text-white);
}

/* Responsive Styles */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-showcase {
    max-width: 500px;
    margin: 0 auto;
  }
  .interactive-tab-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .interactive-tab-controls {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .interactive-control-btn {
    flex-shrink: 0;
  }
  .showcase-panel {
    grid-template-columns: 1fr;
  }
  .timeline-steps {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 36px;
  }
  .nav-links a:not(.btn-github) {
    display: none;
  }
  .footer-meta {
    flex-direction: column;
    text-align: center;
  }
}
