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

:root {
  --bg: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-elevated: #F1F5F9;
  --text: #0F172A;
  --text-muted: #475569;
  --text-dim: #94A3B8;
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --primary-dark: #1D4ED8;
  --primary-bg: rgba(37, 99, 235, 0.06);
  --primary-border: rgba(37, 99, 235, 0.15);
  --accent: #0EA5E9;
  --accent-light: #38BDF8;
  --green: #059669;
  --green-bg: rgba(5, 150, 105, 0.08);
  --yellow: #D97706;
  --yellow-bg: rgba(217, 119, 6, 0.08);
  --blue: #2563EB;
  --blue-bg: rgba(37, 99, 235, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(37, 99, 235, 0.12);
  --glass-hover: rgba(37, 99, 235, 0.04);
  --border: #E2E8F0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 24px rgba(37, 99, 235, 0.08), 0 8px 32px rgba(0, 0, 0, 0.06);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h2 { font-size: 2.5rem; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* === Glass Card === */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

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

.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

a.btn-primary,
.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

a.btn-primary:hover,
.btn-primary:hover {
  background: var(--primary-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

a.btn-gold,
.btn-gold {
  background: var(--primary);
  color: #FFFFFF;
}

a.btn-gold:hover,
.btn-gold:hover {
  background: var(--primary-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

a.btn-nav-cta,
.btn-nav-cta {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.85rem;
  padding: 8px 20px;
}

a.btn-nav-cta:hover,
.btn-nav-cta:hover {
  background: var(--primary-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

a.btn-outline,
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

a.btn-outline:hover,
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

/* === Hero === */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -150px;
  right: -150px;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -100px;
  left: -150px;
  opacity: 0.1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 72px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.stat {
  text-align: center;
  padding: 24px 16px;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* === Product Sections === */
.product-section {
  padding: 120px 0;
  position: relative;
}

.product-section:nth-child(odd)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent, var(--bg-surface), transparent);
  pointer-events: none;
}

.product-header {
  text-align: center;
  margin-bottom: 64px;
}

.product-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}

.product-tagline {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 8px;
}

.product-desc {
  color: var(--text-muted);
  max-width: 620px;
  margin: 16px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.feature-card {
  padding: 28px 24px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.feature-card:hover {
  background: var(--glass-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 8px;
  color: var(--text);
}

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

/* === Screenshot Mockup === */
.screenshot-wrapper {
  margin-bottom: 64px;
}

.screenshot-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.mockup-browser {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

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

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #EF4444; }
.browser-dots span:nth-child(2) { background: #F59E0B; }
.browser-dots span:nth-child(3) { background: #10B981; }

.browser-url {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 16px;
  border-radius: 6px;
  flex: 1;
  max-width: 300px;
}

.mockup-content {
  padding: 32px;
  background: var(--bg);
}

/* Mock UI */
.mock-header { margin-bottom: 20px; }

.mock-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.mock-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.mock-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-top: 12px;
}

.mock-tab {
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.mock-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.mock-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 12px;
}

.mock-upload-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.mock-img-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mock-btn-primary {
  background: var(--primary);
  color: white;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 12px 0;
}

.mock-result {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-result-row {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-result-row.success {
  background: var(--green-bg);
  color: var(--green);
}

.mock-result-row.info {
  background: var(--blue-bg);
  color: var(--blue);
}

.mock-badge {
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mock-badge.green {
  background: var(--green);
  color: #fff;
}

.mock-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  margin-top: 12px;
}

.mock-field {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--bg-surface);
  font-size: 0.8rem;
}

.mock-field span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.mock-field span:last-child {
  font-weight: 600;
  color: var(--text);
}

/* DocAI Mockup */
.mock-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mock-table {
  margin: 16px 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  font-size: 0.8rem;
}

.mock-table-header,
.mock-table-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr 1.5fr 1fr;
  padding: 10px 16px;
  gap: 8px;
  align-items: center;
}

.mock-table-header {
  background: var(--bg-surface);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mock-table-row {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.mock-table-row .green { color: var(--green); font-weight: 600; }
.mock-table-row .yellow { color: var(--yellow); font-weight: 600; }

.mock-export-btns {
  display: flex;
  gap: 12px;
}

.mock-btn-sm {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
}

/* === Fraud Pipeline === */
.fraud-detail h3 {
  text-align: center;
  margin-bottom: 36px;
  font-size: 1.35rem;
  color: var(--text);
}

.pipeline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: center;
}

.pipeline-step {
  flex: 1;
  max-width: 240px;
  padding: 28px 20px;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}

.pipeline-step:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.pipeline-step h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.pipeline-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pipeline-arrow {
  color: var(--text-dim);
  padding-top: 40px;
  flex-shrink: 0;
}

.pipeline-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 28px;
  font-style: italic;
}

/* === API Section === */
.api-section {
  padding: 120px 0;
  background: #0F172A;
  color: #F8FAFC;
}

.api-section h2 {
  text-align: center;
}

.api-section h2 { color: #F8FAFC; }

.section-sub {
  text-align: center;
  color: #94A3B8;
  margin: 12px auto 56px;
  max-width: 520px;
}

.api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.api-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.api-endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.api-method {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.api-card code {
  font-size: 1.1rem;
  font-weight: 600;
  color: #F8FAFC;
}

.api-card > p {
  color: #94A3B8;
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.code-block {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  overflow-x: auto;
}

.code-block pre { margin: 0; }

.code-block code {
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.75rem;
  line-height: 1.7;
  color: #CBD5E1;
  font-weight: 400;
}

.code-comment { color: #64748B; }
.code-bool { color: #FBBF24; }
.code-num { color: #A78BFA; }
.code-str { color: #34D399; }

/* === CTA Section === */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
}

.cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  position: relative;
}

.cta-actions { position: relative; }

/* === Footer === */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.footer-brand svg { color: var(--primary); }

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero { padding: 120px 0 64px; }
  .hero h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .api-grid { grid-template-columns: 1fr; }
  .mock-cols { grid-template-columns: 1fr; }
  .mock-fields { grid-template-columns: 1fr; }
  .mock-table-header,
  .mock-table-row { grid-template-columns: 2fr 2fr 1fr; }
  .mock-table-header span:nth-child(3),
  .mock-table-row span:nth-child(3),
  .mock-table-header span:nth-child(4),
  .mock-table-row span:nth-child(4) { display: none; }
  .pipeline { flex-direction: column; align-items: center; }
  .pipeline-arrow { transform: rotate(90deg); padding: 8px 0; }
  .pipeline-step { max-width: 100%; width: 100%; }
  .product-section { padding: 80px 0; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .mock-export-btns { flex-direction: column; }
}
