/* =========================================
   Showpath - Design System (Frost Theme)
   ========================================= */

:root {
  /* Colors - "Frost" Light Mode & Vivid Cobalt Accent */
  --bg-primary: #FCFCFD;    /* Pristine white/grey */
  --bg-secondary: #F4F5F7;  /* Soft silver */
  --bg-glass: rgba(255, 255, 255, 0.7);
  
  --text-main: #1A1F36;     /* Deep slate for readability */
  --text-muted: #5469D4;    /* Slate-blue for secondary text */
  --text-light: #8792A2;
  
  --accent-color: #2962FF;  /* Vivid Cobalt */
  --accent-hover: #0039CB;
  --accent-light: rgba(41, 98, 255, 0.1);
  --accent-pop: #FFD700;    /* Showpath Gold */
  
  --border-color: #E3E8EE;
  
  /* Organic Path Colors (Gold) */
  --path-color-1: rgba(255, 215, 0, 0.7);
  --path-color-2: rgba(255, 215, 0, 0.4);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --border-radius: 16px;
  --shadow-sm: 0 4px 12px rgba(26, 31, 54, 0.04);
  --shadow-lg: 0 20px 40px rgba(26, 31, 54, 0.08);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: var(--transition-smooth);
}

/* =========================================
   Typography Utilities
   ========================================= */
.text-accent {
  color: var(--accent-color);
}
.text-pop {
  color: var(--accent-pop);
}

.step-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  background: var(--accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

/* =========================================
   Layout & Components
   ========================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(41, 98, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 98, 255, 0.4);
  color: #fff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-main);
}

.btn-ghost:hover {
  color: var(--accent-color);
  background-color: var(--accent-light);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(252, 252, 253, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(227, 232, 238, 0.5);
}

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

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

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:not(.btn):hover {
  color: var(--text-main);
}

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

.hero-bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-lines svg {
  width: 100%;
  height: 100%;
}

.animated-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards infinite alternate;
}

.path-2 {
  animation-delay: 2s;
  animation-duration: 8s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-bottom: 4rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--accent-light);
  color: var(--accent-color);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* =========================================
   UI Mockup / Player Animation
   ========================================= */
.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.player-mockup {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(26, 31, 54, 0.12), 0 0 0 1px rgba(26, 31, 54, 0.1);
  border: 1px solid #CDD3E0;
  overflow: hidden;
  position: relative;
}

.player-header {
  height: 40px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
}

.dots {
  display: flex;
  gap: 6px;
}
.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E3E8EE;
}
.dots span:nth-child(1) { background: #FF5F56; }
.dots span:nth-child(2) { background: #FFBD2E; }
.dots span:nth-child(3) { background: #27C93F; }

.url-bar {
  background: #fff;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 2px 12px;
  flex: 1;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
}

.player-body {
  height: 400px;
  background: #F8F9FA;
  position: relative;
  padding: 2rem;
}

/* Abstract UI Elements */
.mockup-ui {
  display: flex;
  gap: 2rem;
  height: 100%;
}
.sidebar {
  width: 200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  flex: 1;
}
.card.short { flex: 0.3; }
.card.mid { flex: 0.5; }

/* The simulated cursor */
.cursor-mock {
  position: absolute;
  top: 60%;
  left: 30%;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  animation: moveCursor 8s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

.click-ripple {
  position: absolute;
  top: 3px; 
  left: 5px;
  width: 20px; height: 20px;
  border: 2px solid var(--accent-pop);
  border-radius: 50%;
  opacity: 0;
  animation: clickPulse 8s infinite;
  transform: translate(-50%, -50%);
}

@keyframes moveCursor {
  0%, 15% { transform: translate(0, 0); }
  33%, 48% { transform: translate(120px, -80px); }
  66%, 81% { transform: translate(-80px, -60px); }
  100% { transform: translate(0, 0); }
}

@keyframes clickPulse {
  /* Stop 1 (0-15%) */
  0%, 2% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  5% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  15% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }
  
  /* Stop 2 (33-48%) */
  33%, 35% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  38% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  48% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }
  
  /* Stop 3 (66-81%) */
  66%, 68% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  71% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  81% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }

  82%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

.player-caption {
  background: var(--text-main);
  color: #fff;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pulse-dot {
  width: 12px; height: 12px;
  background: #27C93F;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(39, 201, 63, 0.4);
  animation: pulseColor 2s infinite;
}

@keyframes pulseColor {
  0% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(39, 201, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
}

/* =========================================
   Sections Grid & Basic Components
   ========================================= */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-light {
  background-color: var(--bg-primary);
}

.section-gradient {
  background: linear-gradient(135deg, #F8F9FB 0%, #EFF2F7 100%);
  overflow: hidden;
}

.section-clean {
  background-color: #fff;
  border-top: 1px solid var(--border-color);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.section-grid.reverse {
  direction: rtl;
}
.section-grid.reverse > * {
  direction: ltr;
}

.section-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.section-body.centered {
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Lists */
.feature-list {
  list-style: none;
}
.feature-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.05rem;
  color: var(--text-main);
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Glass Cards */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  text-align: center;
}

/* Stat Compare component */
.stat-compare {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat .label { font-size: 0.875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;}
.stat .value { font-size: 2.5rem; font-weight: 800; font-family: var(--font-display); }
.stat .sub { font-size: 0.875rem; color: var(--text-light); }
.stat.bad .value { color: #8792A2; }

/* =========================================
   Modal & Opt-In Form
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 40px rgba(26, 31, 54, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #8792A2;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.2s;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover {
  background: #F4F5F7;
  color: var(--text-main);
}
.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}
.modal-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.modal-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Clever Floating Label Inputs */
.optin-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.input-group {
  position: relative;
}
.input-group input {
  width: 100%;
  padding: 1.25rem 1rem 0.5rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.input-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: #fff;
  padding: 0 0.25rem;
}
/* Float label up when input is focused or not empty */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
  top: 4px;
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: 600;
}
.input-group input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}
.stat.good .value { color: var(--accent-color); }
.vs { font-weight: bold; color: var(--text-light); font-size: 1.25rem;}

/* Node Tree Chart for the Brain section */
.node-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.node {
  padding: 1rem 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  border: 1px solid var(--border-color);
  position: relative;
}
.node.ai {
  background: var(--accent-light);
  color: var(--accent-color);
  border-color: var(--accent-color);
}
.line {
  width: 2px;
  height: 30px;
  background: var(--border-color);
}
.node.root.border-accent { border: 2px solid var(--accent-pop); }

/* Custom Visuals for Steps */
.gen-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}
.gen-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.gen-item .icon { font-size: 1.5rem; }
.final-output {
  margin-top: 1rem;
  text-align: center;
  padding: 1rem;
  background: var(--text-main);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(26, 31, 54, 0.2);
}

.bot-crawler-mockup {
  background: #1A1F36;
  border-radius: 8px;
  padding: 2rem;
  text-align: left;
  font-family: monospace;
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.html-bracket { color: #8792A2; margin-bottom: 1rem; font-size: 0.85rem;}
.crawling-line { 
  color: #27C93F; 
  padding-left: 1.5rem; 
  border-left: 2px solid var(--accent-pop); 
  margin-bottom: 1rem;
}

/* ROI Metrics */
.node, .gen-item, .final-output, .crawling-line, .html-bracket {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.node:hover, .gen-item:hover, .final-output:hover, .crawling-line:hover, .html-bracket:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(26, 31, 54, 0.08);
  z-index: 10;
}

.rocket-fx { position: relative; }
.rocket-fx .cloud {
  position: absolute;
  bottom: -6px;
  left: -8px;
  transform: rotate(125deg);
  font-size: 0.8em;
  opacity: 0.85;
}

.e-hover { display: none; }
.metric-card:hover .e-base { display: none; }
.metric-card:hover .e-hover { 
  display: inline-block; 
  animation: popEmoji 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}
@keyframes popEmoji {
  0% { transform: scale(0.5) translateY(10px) rotate(-10deg); opacity: 0; }
  100% { transform: scale(1) translateY(0) rotate(0deg); opacity: 1; }
}

.metric-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.metric-card {
  background: #F8F9FA;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  flex: 1;
  max-width: 350px;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
.metric-card.highlight {
  background: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px var(--accent-light);
  transform: scale(1.05);
}
.metric-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.metric-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.metric-arrow {
  font-size: 2rem;
  color: var(--text-light);
  font-family: var(--font-display);
}

/* CTA & Footer */
.cta-section {
  padding: 8rem 2rem;
  background: var(--text-main);
  color: #fff;
}
.cta-section h2 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.cta-section p {
  color: #A0B0C4;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  background: #FCFCFD;
  border-top: 1px solid var(--border-color);
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.copyright {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* =========================================
   Animations & Micro-interactions
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .section-grid.reverse {
    direction: ltr;
  }
  .metric-grid {
    flex-direction: column;
  }
  .metric-arrow {
    transform: rotate(90deg);
  }
  .metric-card.highlight {
    transform: none;
  }
}
