/* style.css */
:root {
  --bg-color: #0A0A0F;
  --surface: #12121A;
  --border: #1E1E2E;
  --accent-primary: #6C63FF;
  --accent-secondary: #00D4FF;
  --text-primary: #F0F0FF;
  --text-muted: #8888AA;
  --success: #00E676;
  --error: #FF5252;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-shadow: 0 0 20px rgba(108, 99, 255, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none; /* Custom cursor */
}

html {
  scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 6rem 0; }
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-label {
  color: var(--accent-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
}
.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: var(--glow-shadow);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover {
  border-color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.05);
  transform: scale(1.03);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--accent-primary);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: var(--transition);
  padding: 1.5rem 0;
}
.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}
.logo-icon { color: var(--accent-secondary); font-size: 1.5rem; }
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-link {
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

/* Mobile Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.mobile-menu {
  position: fixed;
  top: 0; right: -100%; bottom: 0; width: 100%;
  background: var(--surface);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: right 0.4s ease;
}
.mobile-menu.open { right: 0; }
.mobile-close {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: none;
  color: var(--text-primary);
  font-size: 2rem;
}
.mobile-link { font-size: 1.5rem; font-family: var(--font-heading); font-weight: 600; }

@media (max-width: 768px) {
  .nav-links, .navbar .btn { display: none; }
  .hamburger { display: flex; }
}

/* Custom Cursor */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s;
}
.cursor-follower {
  position: fixed; top: 0; left: 0;
  width: 30px; height: 30px;
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.3s ease-out, width 0.3s, height 0.3s;
  transform: translate(-50%, -50%);
}
.cursor-follower.hover {
  width: 50px; height: 50px;
  background: rgba(108, 99, 255, 0.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}
.hero-bg-glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(18, 18, 26, 0.8);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}
.hero-h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}
.word-swap {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.stat-dot { color: var(--accent-primary); }

/* Animated Graphic */
.hero-graphic {
  position: relative;
  height: 500px;
  perspective: 1000px;
}
.hero-glow-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  background: var(--accent-primary);
  filter: blur(100px);
  opacity: 0.3;
}
.graphic-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.1s;
}
.doc-card {
  position: absolute;
  top: 10%; left: 30%;
  width: 140px; height: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.float-anim {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.doc-lines { width: 100%; margin-top: 1rem; }
.doc-line { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 8px; }
.w80 { width: 80%; } .w60 { width: 60%; } .w90 { width: 90%; } .w50 { width: 50%; }
.flow-arrow {
  position: absolute;
  top: 40%; left: 45%;
  height: 80px; width: 40px;
}
.flow-dot {
  position: absolute;
  left: 17px; top: 0;
  width: 6px; height: 6px;
  background: var(--text-primary);
  border-radius: 50%;
  animation: flowDown 1.5s infinite linear;
}
@keyframes flowDown {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(80px); opacity: 0; }
}

.table-preview {
  position: absolute;
  bottom: 10%; right: 10%;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.tp-header {
  display: flex;
  background: rgba(108, 99, 255, 0.1);
  border-bottom: 1px solid var(--border);
}
.tp-row {
  display: flex;
  border-bottom: 1px solid rgba(30,30,46,0.5);
  animation: fadeInRow 1s forwards;
  opacity: 0;
}
.stagger-1 { animation-delay: 0.5s; }
.stagger-2 { animation-delay: 0.8s; }
.stagger-3 { animation-delay: 1.1s; }
@keyframes fadeInRow {
  to { opacity: 1; }
}
.tp-cell {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}
.th { font-family: var(--font-heading); font-weight: 600; }
.badge-success { color: var(--success); }

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.scroll-mouse {
  width: 24px; height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas, .hero-stats { justify-content: center; }
  .hero-graphic { height: 400px; }
  .doc-card { left: 10%; } .table-preview { right: 0; }
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* How It Works */
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.step-card {
  flex: 1;
  text-align: center;
  position: relative;
  transition: transform var(--transition);
}
.step-card:hover { transform: translateY(-10px); }
.step-num {
  font-size: 3rem;
  font-weight: 800;
  -webkit-text-stroke: 1px var(--accent-primary);
  color: transparent;
  opacity: 0.3;
  position: absolute;
  top: -2rem; left: 50%; transform: translateX(-50%);
  z-index: -1;
}
.step-icon-wrap {
  width: 80px; height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 20px rgba(108, 99, 255, 0.1);
}
.step-icon { width: 32px; height: 32px; color: var(--accent-secondary); }
.step-card h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.step-card p { color: var(--text-muted); font-size: 0.875rem; }
.step-connector { flex: 0.5; margin-top: 40px; }
.connector-line {
  stroke-dashoffset: 13;
  animation: dashAnim 1s linear infinite;
}
@keyframes dashAnim { to { stroke-dashoffset: 0; } }
@media (max-width: 768px) {
  .steps-row { flex-direction: column; gap: 4rem; }
  .step-connector { display: none; }
}

/* Upload Section */
.upload-section {
  background: linear-gradient(180deg, var(--bg-color), var(--surface));
}
.dropzone-wrap {
  max-width: 800px; margin: 0 auto;
}
.dropzone {
  min-height: 280px;
  border: 2px dashed var(--border);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18, 18, 26, 0.5);
  transition: all 0.3s ease;
}
.dropzone.dragover {
  border-color: var(--accent-secondary);
  background: rgba(0, 212, 255, 0.05);
}
.dropzone.dragover .dz-icon {
  transform: scale(1.1); color: var(--accent-secondary);
}
.dropzone.error {
  border-color: var(--error);
  animation: shake 0.5s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}
.dz-content { text-align: center; padding: 2rem; }
.dz-icon-wrap { margin-bottom: 1.5rem; }
.dz-icon { width: 48px; height: 48px; color: var(--text-muted); transition: var(--transition); }
.dz-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.dz-sub { color: var(--text-muted); margin-bottom: 1.5rem; }
.dz-divider { margin: 1.5rem 0; position: relative; }
.dz-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--border); z-index: 1;
}
.dz-divider span {
  background: var(--surface); padding: 0 1rem; color: var(--text-muted);
  position: relative; z-index: 2; font-size: 0.875rem;
}

.file-preview-card {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.fp-files { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.file-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; background: var(--bg-color); border-radius: 8px; border: 1px solid var(--border);
}
.file-item-icon { color: var(--accent-primary); }
.file-item-info { flex: 1; }
.file-item-name { font-weight: 600; font-size: 0.875rem; }
.file-item-size { color: var(--text-muted); font-size: 0.75rem; }
.fp-remove {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--error); background: none; border: none; font-size: 0.875rem; margin-bottom: 1.5rem;
  cursor: pointer;
}

/* Progress */
.progress-wrap { margin-top: 1.5rem; }
.progress-bar-track {
  height: 6px; background: var(--bg-color); border-radius: 3px; overflow: hidden; margin-bottom: 0.5rem;
}
.progress-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s ease;
}
.progress-bar-fill.indeterminate {
  width: 50%;
  animation: indeterminate 1.5s infinite linear;
}
@keyframes indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
.loading-msg { text-align: center; color: var(--text-muted); font-size: 0.875rem; }

/* Results Section */
.results-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 2rem; background: var(--surface); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border);
}
.results-badge {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--success); background: rgba(0, 230, 118, 0.1); padding: 0.5rem 1rem; border-radius: 50px; font-weight: 600; font-size: 0.875rem;
}
.results-stats { color: var(--text-muted); font-size: 0.875rem; }
.results-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.table-tabs { margin-bottom: 1.5rem; position: relative; border-bottom: 1px solid var(--border); }
.tab-list { display: flex; gap: 2rem; overflow-x: auto; padding-bottom: 0.5rem; }
.tab-btn {
  background: none; border: none; color: var(--text-muted); font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  padding: 0.5rem 0; cursor: pointer; transition: color 0.3s;
}
.tab-btn.active { color: var(--accent-primary); }

.search-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.search-input-wrap {
  position: relative; width: 100%; max-width: 400px;
}
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 18px; height: 18px; }
.search-input {
  width: 100%; padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-primary); font-family: var(--font-body);
}
.search-input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 2px rgba(108,99,255,0.2); }
.row-count { color: var(--text-muted); font-size: 0.875rem; }

.table-container {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow-x: auto; max-height: 600px; overflow-y: auto;
}
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th {
  background: rgba(108, 99, 255, 0.1); padding: 1rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem;
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 1rem; font-family: var(--font-mono); font-size: 0.875rem;
  border-bottom: 1px solid rgba(30, 30, 46, 0.5);
  max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.data-table tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.data-table tbody tr { transition: all 0.2s; opacity: 0; animation: fadeUp 0.5s forwards; }
.data-table tbody tr:hover {
  background: rgba(108, 99, 255, 0.1);
  box-shadow: inset 3px 0 0 var(--accent-primary);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.highlight { background: rgba(0, 212, 255, 0.3); color: #fff; padding: 0 2px; border-radius: 2px; }

/* Empty / Error */
.empty-state { text-align: center; padding: 4rem 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.empty-icon { width: 64px; height: 64px; color: var(--text-muted); margin-bottom: 1.5rem; opacity: 0.5; }
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 2rem; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem;
  transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--accent-primary); box-shadow: var(--glow-shadow); }
.feat-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(108, 99, 255, 0.1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.feat-icon { color: var(--accent-primary); }
.feature-card h3 { margin-bottom: 1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.875rem; }

/* Footer */
.footer { background: var(--surface); padding-top: 4rem; position: relative; margin-top: 4rem; }
.footer-top-border { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 3rem; margin-bottom: 2rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.5rem; }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 0.875rem; transition: color 0.3s; }
.footer-nav a:hover { color: var(--accent-secondary); }
.github-link { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.875rem; transition: color 0.3s; }
.github-link:hover { color: var(--text-primary); }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.875rem; padding-bottom: 2rem; }

/* Toasts */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 1000; display: flex; flex-direction: column; gap: 1rem; }
.toast {
  background: var(--surface); border-left: 4px solid var(--accent-primary); border-radius: 8px; padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 1rem;
  animation: slideInRight 0.3s forwards;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--error); }
.toast-icon { width: 20px; height: 20px; }
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }
