@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --glass-bg: rgba(25, 25, 25, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.landing-container {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Background Effects */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  animation: float 10s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
}

.orb-2 {
  bottom: 20%;
  right: -5%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, var(--accent-primary), transparent 70%);
  animation-delay: -5s;
}

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

/* Navigation */
.landing-nav {
  position: fixed;
  top: 20px;
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 100px;
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  z-index: 50;
  transition: all 0.3s ease;
}

.nav-scrolled {
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--accent-glow);
}

.logo-spark {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  filter: blur(2px);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.text-highlight {
  color: var(--accent-primary);
}

/* Common Layout */
.landing-main {
  width: 90%;
  max-width: 1200px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8rem;
  padding-top: 150px;
  padding-bottom: 50px;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn-primary, .btn-primary-small, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  box-shadow: 0 4px 15px var(--accent-glow);
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-primary-small {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
}

.btn-primary-small:hover {
  opacity: 0.9;
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-secondary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--glass-border);
}

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

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.8s ease backwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  animation: fade-in-up 0.8s ease 0.1s backwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 2.5rem;
  max-width: 500px;
  animation: fade-in-up 0.8s ease 0.2s backwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fade-in-up 0.8s ease 0.3s backwards;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fade-in-up 0.8s ease 0.4s backwards;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

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

.metric-divider {
  width: 1px;
  height: 30px;
  background: var(--glass-border);
}

/* Mockup Panel */
.mockup-panel {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  animation: slide-in-right 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.mockup-panel:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4b5563;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #eab308; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-pill {
  font-size: 0.8rem;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-secondary);
}

.mockup-status {
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 600;
  animation: pulse 2s infinite;
}

.mockup-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-line {
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.w-full { width: 100%; }
.w-3\/4 { width: 75%; }
.w-5\/6 { width: 83%; }

.data-extracts {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.data-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.data-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.data-value {
  font-weight: 600;
  font-family: var(--font-display);
}

.data-value.highlight { color: white; }
.data-value.techy { color: var(--accent-primary); font-family: monospace; font-size: 1.1rem; }
.data-value.success { color: #22c55e; }

.scanning-line {
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 15px 5px var(--accent-glow);
  animation: scan 3s linear infinite;
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: fade-in-up 0.8s ease backwards;
  animation-delay: var(--delay);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
}

.feature-icon-wrapper {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

.feature-title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: white;
  font-weight: 600;
}

.feature-copy {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Workflow Track */
.workflow-track {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.workflow-step {
  position: relative;
  flex: 1;
  padding: 2rem;
  background: transparent;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.workflow-step:hover .step-number {
  color: var(--accent-primary);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 20px var(--accent-glow);
  transition: all 0.3s ease;
}

.step-title {
  font-size: 1.25rem;
  color: white;
  margin: 0 0 1rem;
}

.step-copy {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-connector {
  position: absolute;
  top: 4rem;
  right: -1rem;
  width: 2rem;
  height: 2px;
  background: var(--glass-border);
}

/* CTA Section */
.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 1rem;
  color: white;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

/* Footer */
.landing-footer {
  width: 100%;
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(50px) perspective(1000px) rotateY(-5deg) rotateX(5deg); }
  to { opacity: 1; transform: translateX(0) perspective(1000px) rotateY(-5deg) rotateX(5deg); }
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-metrics {
    justify-content: center;
  }
  
  .workflow-track {
    flex-direction: column;
  }
  
  .step-connector {
    display: none;
  }
  
  .cta-section {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .hero-metrics {
    flex-direction: column;
    gap: 1rem;
  }
  
  .metric-divider {
    width: 100px;
    height: 1px;
  }
}
