/* DocuMiner landing — Pro/Enterprise dark theme */

:root {
  --bg: #0A1614;
  --bg-deep: #060F0D;
  --bg-elev: #102621;
  --bg-elev-2: #14332B;
  --border: #1F4A3F;
  --border-soft: #163930;
  --text: #E6F0EC;
  --text-muted: #93A8A1;
  --text-faint: #6B847C;
  --accent: #2D9D7C;
  --accent-hi: #4FBE9C;
  --accent-soft: rgba(45, 157, 124, 0.14);
  --accent-glow: rgba(45, 157, 124, 0.18);
  --success: #5FE3B5;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 80px rgba(45, 157, 124, 0.3);
  --grid-line:
    linear-gradient(rgba(45, 157, 124, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 157, 124, 0.07) 1px, transparent 1px);
  --container: 1120px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.reduce-motion, html.reduce-motion * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-hi); text-decoration: none; transition: color 200ms var(--ease); }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

button { font-family: inherit; cursor: pointer; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(45, 157, 124, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-hi);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  line-height: 1.1;
}
.section-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 56px;
  line-height: 1.55;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px rgba(45, 157, 124, 0.4);
}
.btn-primary:hover { background: var(--accent-hi); color: #fff; box-shadow: 0 10px 36px rgba(45, 157, 124, 0.55); transform: translateY(-1px); }

.btn-arrow::after {
  content: "→";
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
  transition: transform 220ms var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hi); background: var(--accent-soft); }
.btn-lg { padding: 16px 28px; font-size: 16px; min-height: 52px; }

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 20, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 17px;
}
.brand-logo { width: 26px !important; height: 26px !important; flex-shrink: 0; object-fit: contain; display: block; }
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.topbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background 200ms, color 200ms;
}
.icon-link:hover { color: var(--text); background: var(--bg-elev); }
.nav-toggle {
  display: inline-flex;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  align-items: center;
  justify-content: center;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  padding: 24px;
  display: none;
  z-index: 49;
}
.nav-drawer.open { display: block; }
.nav-drawer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.nav-drawer a {
  display: block;
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px;
  border-radius: var(--radius-sm);
}
.nav-drawer a:hover { background: var(--bg-elev); }

/* ===== Hero ===== */
.hero { padding: 80px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(45,157,124,0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -160px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle at center, rgba(79, 190, 156, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-eyebrow { margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 820px;
}
.hero h1 .accent { color: var(--accent-hi); }
.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 36px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-micro {
  font-size: 14px;
  color: var(--text-faint);
}
.hero-micro a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.hero-micro a:hover { color: var(--text); text-decoration-color: var(--accent); }

.hero-visual {
  margin-top: 64px;
  position: relative;
}

/* Floating UI chips above the hero window-frame */
.hero-chip {
  display: none;
  position: absolute;
  z-index: 2;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(16, 38, 33, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}
.hero-chip .chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}
.hero-chip .chip-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}
.hero-chip-1 { top: -22px; left: -22px; }
.hero-chip-2 { bottom: -22px; right: -22px; }
@media (min-width: 1024px) { .hero-chip { display: inline-flex; } }
.window-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}
.window-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
}
.window-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border); }
.window-title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.window-body { aspect-ratio: 16 / 9; background: var(--bg-deep); position: relative; }
.window-body img { width: 100%; height: 100%; object-fit: cover; }
.window-body .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  background-image: var(--grid-line);
  background-size: 32px 32px;
}

/* ===== Features ===== */
.features { background: var(--bg-elev); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card {
  position: relative;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 55%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 220ms var(--ease);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), var(--shadow-glow);
}
.feature-card:hover::before { opacity: 1; }

/* ===== Bento variant ===== */
@media (min-width: 1024px) {
  .features-grid.bento {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .features-grid.bento .feature-card.feature-hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-elev-2) 0%, var(--bg) 70%);
  }
  .features-grid.bento .feature-card.feature-hero h3 { font-size: 24px; }
  .features-grid.bento .feature-card.feature-hero > div:first-child > p { font-size: 16px; max-width: 420px; }
}
.feature-hero-visual {
  display: none;
  height: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background:
    var(--grid-line),
    radial-gradient(circle at 30% 40%, var(--accent-glow), transparent 60%);
  background-size: 24px 24px, auto;
  position: relative;
  overflow: hidden;
}
.feature-hero-visual::before,
.feature-hero-visual::after {
  content: "";
  position: absolute;
  border: 1.5px dashed var(--accent);
  border-radius: 4px;
  background: rgba(45, 157, 124, 0.08);
}
.feature-hero-visual::before { top: 32px; left: 32px; width: 38%; height: 20px; }
.feature-hero-visual::after  { bottom: 40px; right: 32px; width: 28%; height: 20px; border-color: var(--accent-hi); }
@media (min-width: 1024px) { .feature-hero-visual { display: block; } }
.feature-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--accent-hi);
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* Case-card variant — used in #casi-uso for visual contrast */
.case-card {
  position: relative;
  padding: 32px 24px 28px;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}
.case-card:hover {
  transform: translateY(-2px);
  background: var(--bg-elev);
  border-top-color: var(--accent-hi);
}
.case-card .feature-icon { background: transparent; border: 1px solid var(--border); }
.case-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.case-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  position: relative;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}
.step:hover { transform: translateY(-2px); border-color: var(--accent); }
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent-hi);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.step p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ===== Showcase split ===== */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .showcase-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.showcase-grid h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 16px; letter-spacing: -0.02em; line-height: 1.2; }
.showcase-grid p { color: var(--text-muted); margin: 0 0 16px; font-size: 16.5px; }
.showcase-visual { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg-elev); }
.showcase-visual .placeholder { aspect-ratio: 4 / 3; }

/* ===== Deep-dive blocks (Graph + AI) ===== */
.deep-dive { padding-top: 96px; padding-bottom: 96px; }
.deep-dive .section-head { text-align: center; margin-bottom: 72px; }
.deep-dive .section-head .section-lead { margin-left: auto; margin-right: auto; }

.dd-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 96px;
}
.dd-block:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .dd-block { grid-template-columns: 1fr 1.05fr; gap: 72px; }
  .dd-block.reverse > .dd-text { order: 2; }
  .dd-block.reverse > .dd-visual { order: 1; }
}

.dd-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-hi);
  background: var(--accent-soft);
  border: 1px solid rgba(45, 157, 124, 0.3);
  border-radius: 999px;
  margin-bottom: 20px;
}
.dd-block h3 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.dd-block > .dd-text > p {
  color: var(--text-muted);
  font-size: 16.5px;
  margin: 0 0 16px;
  line-height: 1.65;
}
.dd-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.dd-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}
.dd-list li svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  color: var(--accent-hi);
}
.dd-list li strong { font-weight: 600; }
.dd-list li span { color: var(--text-muted); }

.providers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.provider-chip svg { width: 16px; height: 16px; color: var(--accent-hi); }

/* ===== Download ===== */
.download { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%); }
.download-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 40px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.download-card h2 { font-size: clamp(28px, 4vw, 36px); margin: 16px 0 12px; letter-spacing: -0.02em; }
.download-card p { color: var(--text-muted); margin: 0 0 32px; }
.download-meta {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.download-meta a { color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  transition: color 200ms var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
  flex-shrink: 0;
  margin-right: 6px;
}
.faq-item[open] summary { color: var(--accent-hi); }
.faq-item[open] summary::after { transform: rotate(-135deg); border-color: var(--accent-hi); }
.faq-item summary:hover { color: var(--accent-hi); }
.faq-answer {
  padding: 0 0 22px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 640px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 32px;
  background: var(--bg);
}
.footer-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-eyebrow .brand { font-size: 20px; }
.footer-eyebrow .brand img { width: 32px !important; height: 32px !important; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } }
.footer-brand p { color: var(--text-muted); font-size: 14.5px; margin: 12px 0 0; max-width: 320px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 14.5px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
