:root {
  --ink: #0b1220;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --bg-2: #eef2f7;
  --surface: #ffffff;
  --brand: #1d4ed8;
  --brand-2: #2563eb;
  --brand-3: #3b82f6;
  --brand-soft: #eff4ff;
  --accent: #0f766e;
  --accent-warm: #c2410c;
  --accent-soft: #fff7ed;
  --critical: #b91c1c;
  --high: #c2410c;
  --medium: #b45309;
  --low: #a16207;
  --info: #1d4ed8;
  --ok: #047857;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --focus: 0 0 0 3px rgba(37, 99, 235, 0.35);
  --touch: 44px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand-soft); color: var(--brand); }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-2); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .form-control:focus-visible {
  outline: none; box-shadow: var(--focus);
}
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.container-wide { width: min(1280px, calc(100% - 2rem)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .75rem 1rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(16px) saturate(1.15);
  background: rgba(246, 248, 251, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 650; font-size: 1.12rem; color: var(--ink);
  letter-spacing: -0.02em; min-height: var(--touch);
}
.brand img, .brand-mark { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.brand .accent { color: var(--brand); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.nav-links { display: flex; gap: 0.25rem; align-items: center; flex-wrap: wrap; }
.nav-links > a {
  color: var(--ink-soft); font-weight: 650; font-size: 0.92rem;
  padding: 0.65rem 0.85rem; border-radius: 999px; min-height: var(--touch);
  display: inline-flex; align-items: center;
}
.nav-links > a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-toggle { display: none; min-width: var(--touch); min-height: var(--touch); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border: 0; border-radius: 999px; min-height: var(--touch);
  padding: 0.8rem 1.35rem; font-weight: 750; font-family: inherit; font-size: 0.98rem;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 12px 28px rgba(29, 78, 216, 0.28);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-2), var(--brand-3)); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: #cbd5e1; background: #fafbfc; color: var(--ink); }
.btn-accent { background: var(--accent-warm); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.hero-shell {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(700px 380px at 95% 0%, rgba(14, 165, 233, 0.1), transparent 50%),
    linear-gradient(180deg, #eef3fb 0%, var(--bg) 72%);
}
.hero-shell::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.45;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 25%, transparent 95%);
  animation: gridDrift 28s linear infinite;
}
.hero-visual {
  position: absolute; right: -4%; top: 8%; width: min(46vw, 560px); z-index: -1;
  opacity: 0.55; border-radius: 24px; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 80%, transparent);
  animation: floatY 10s ease-in-out infinite;
}
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 2.75rem); align-items: center;
}
.launch-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.85rem; font-weight: 700;
  margin-bottom: 1rem; box-shadow: var(--shadow);
  animation: riseIn .7s var(--ease) both;
}
.launch-pill i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px rgba(37,99,235,.15); animation: pulseDot 1.8s ease-in-out infinite;
}
.hero-brand-lockup {
  display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
  animation: riseIn .7s var(--ease) .05s both;
}
.hero-brand-lockup img { width: 52px; height: 52px; border-radius: 14px; box-shadow: var(--shadow); }
.hero-brand-lockup .name {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
}
.hero-brand-lockup .domain { color: var(--muted); font-weight: 700; font-size: 0.85rem; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.5vw, 3.5rem);
  line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 1rem; max-width: 13ch;
  animation: riseIn .75s var(--ease) .1s both;
}
.hero .lead {
  color: var(--ink-soft); font-size: 1.08rem; margin: 0 0 1.4rem; max-width: 34rem;
  animation: riseIn .75s var(--ease) .16s both;
}
.hero-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem;
  animation: riseIn .75s var(--ease) .22s both;
}
.trust-list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem;
  animation: riseIn .75s var(--ease) .28s both;
}
.trust-list li {
  color: var(--ink-soft); font-weight: 650; font-size: 0.95rem;
  display: flex; align-items: center; gap: 0.55rem;
}
.trust-list .ico {
  width: 22px; height: 22px; border-radius: 7px; background: var(--brand-soft);
  display: grid; place-items: center; flex-shrink: 0; color: var(--brand);
}

.upload-panel {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(226,232,240,0.98);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg); padding: 1.2rem; backdrop-filter: blur(8px);
  animation: riseIn .8s var(--ease) .18s both;
}
.upload-drop {
  border: 2px dashed #b6c4d8; border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfcfe, #f3f6fb);
  padding: 1.75rem 1rem; text-align: center;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.upload-drop.dragover {
  border-color: var(--brand); background: var(--brand-soft); transform: scale(1.01);
}
.upload-drop h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.35rem; }
.upload-drop p { margin: 0 0 1rem; color: var(--muted); }
.progress { height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin-top: .75rem; }
.progress > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand), #38bdf8);
  transition: width .25s var(--ease);
}

.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.4));
  border-block: 1px solid var(--line);
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.025em; margin: 0 0 0.45rem;
}
.section .sub { color: var(--muted); margin: 0 0 1.75rem; max-width: 40rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.feature, .type-chip, .price-card, .faq-item, .dash-card, .stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.feature:hover, .type-chip:hover, .price-card:hover, .stat-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cbd5e1;
}
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 0.75rem;
}
.feature h3, .price-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.feature p, .price-card p { margin: 0; color: var(--muted); }
.type-chip {
  font-weight: 750; text-align: center; color: var(--ink-soft);
  min-height: var(--touch); display: grid; place-items: center;
}
.infographic {
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden; background: #fff;
}

.steps { counter-reset: step; display: grid; gap: 0.85rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 800;
}

.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.price-card.featured::after {
  content: "Most chosen"; position: absolute; top: -0.65rem; right: 1rem;
  background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px;
}
.price-card .amount { font-family: var(--font-display); font-size: 2rem; margin: 0.5rem 0; }
.price-card ul { margin: 0.75rem 0 1rem; padding-left: 1.1rem; color: var(--ink-soft); }

.auth-wrap { max-width: 440px; margin: 3rem auto; }
.auth-card, .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 750; margin-bottom: 0.35rem; font-size: 0.92rem; }
.form-control {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem; font: inherit; background: #fff; color: var(--ink); min-height: var(--touch);
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.alert { padding: 0.85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 650; }
.alert-error { background: #fef2f2; color: var(--critical); border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: var(--ok); border: 1px solid #a7f3d0; }
.alert-info { background: #eff6ff; color: var(--info); border: 1px solid #bfdbfe; }

.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.25rem; padding: 1.5rem 0 3rem; }
.dash-side {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.75rem; height: fit-content; position: sticky; top: calc(var(--header-h) + 0.75rem);
}
.dash-side a {
  display: flex; align-items: center; min-height: var(--touch);
  padding: 0.55rem 0.8rem; border-radius: 12px; color: var(--ink-soft); font-weight: 700; margin-bottom: 0.15rem;
}
.dash-side a.active, .dash-side a:hover { background: var(--brand-soft); color: var(--brand); }
.dash-card h3 { margin: 0; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; }
.dash-card .big { font-family: var(--font-display); font-size: 2rem; margin-top: 0.35rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-size: 0.85rem; }

.badge {
  display: inline-flex; align-items: center; padding: 0.25rem 0.6rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: .03em;
}
.sev-critical, .badge-critical { background: #fef2f2; color: var(--critical); }
.sev-high, .badge-high { background: #fff7ed; color: var(--high); }
.sev-medium, .badge-medium { background: #fffbeb; color: var(--medium); }
.sev-low, .badge-low { background: #fffbeb; color: var(--low); }
.sev-info, .badge-info { background: #eff6ff; color: var(--info); }
.badge-ok { background: #ecfdf5; color: var(--ok); }

.report-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; min-height: 75vh; }
.pdf-pane, .analysis-pane {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.pdf-pane iframe, .pdf-pane embed { width: 100%; height: 100%; min-height: 70vh; border: 0; }
.analysis-pane { overflow: auto; max-height: 80vh; padding: 1rem; }
.score-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 1rem 0; }
.score-card {
  background: linear-gradient(180deg, #fff, #f8fafc); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.9rem;
}
.score-card .label { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.score-card .value { font-family: var(--font-display); font-size: 1.6rem; margin-top: 0.2rem; }
.finding {
  border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; margin-bottom: 0.75rem;
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.finding:hover { border-color: #cbd5e1; box-shadow: var(--shadow); transform: translateX(2px); }
.finding.locked { filter: blur(3px); user-select: none; }
.paywall {
  background: var(--accent-soft); border: 1px solid #fed7aa; border-radius: 14px;
  padding: 1.1rem; margin: 1rem 0; text-align: center;
}
.report-section { margin: 1.5rem 0; }
.report-section h2 { font-size: 1.25rem; margin-bottom: 0.6rem; }

.site-footer {
  border-top: 1px solid var(--line); padding: 2.75rem 0; margin-top: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), #eef2f7); color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; }
.site-footer a { color: var(--ink-soft); display: inline-block; padding: 0.25rem 0; min-height: 36px; }
.disclaimer-box {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem;
  color: var(--muted); font-size: 0.92rem;
}
.lang-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lang-pills span {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 0.85rem; font-weight: 700; font-size: 0.9rem;
  min-height: 40px; display: inline-flex; align-items: center;
}
.ask-box { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.ask-box input { flex: 1; min-width: 200px; }

.final-cta {
  text-align: center; padding: clamp(3rem, 7vw, 5rem) 1rem;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(59,130,246,.18), transparent 60%),
    linear-gradient(180deg, #fff, #eef3fb);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.ai-scan-line {
  height: 2px; width: 100%; margin: 0.75rem 0 0;
  background: linear-gradient(90deg, transparent, var(--brand-3), transparent);
  animation: scanPulse 2.4s ease-in-out infinite;
}

@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 48px 48px, 48px 48px; } }
@keyframes scanPulse { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: .7; } }

@media (max-width: 960px) {
  .hero, .report-split, .dash-layout, .footer-grid, .grid-3, .grid-4, .score-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-visual { display: none; }
  .dash-side { position: static; display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .dash-side a { margin: 0; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(255,255,255,0.98); padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links > a { width: 100%; }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
  .brand-text small { display: none; }
}
