@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --void:       oklch(8%   0.004 222);
  --surface:    oklch(13%  0.006 222);
  --border:     oklch(21%  0.007 222);
  --muted:      oklch(62%  0.005 222);
  --text:       oklch(94%  0.005 222);
  --accent:     oklch(91%  0.10  168);
  --accent-dim: oklch(58%  0.13  168);

  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Outfit', system-ui, sans-serif;
}

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

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

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100dvh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: oklch(8% 0.004 222 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-brand:hover { opacity: 0.72; text-decoration: none; }
.nav-brand img { display: block; height: 30px; width: 30px; border-radius: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── LAYOUT ── */
main { padding-top: 60px; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── LABEL ── */
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* ── HERO ── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.hero p {
  font-size: 1.15rem;
  color: oklch(70% 0.004 222);
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: oklch(8% 0.004 222);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: oklch(28% 0.005 222); }

/* ── SECTIONS ── */
.section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 3rem;
  max-width: 24ch;
}

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
}

.step {
  padding: 2rem 2.5rem 2rem 0;
  border-right: 1px solid var(--border);
}
.step:last-child { border-right: none; }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.step p {
  font-size: 0.9rem;
  color: oklch(66% 0.004 222);
  line-height: 1.6;
}

/* ── PRICING ── */
.pricing-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem 3rem;
  max-width: 540px;
}

.pricing-block .price {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-block .price-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.pricing-block p {
  font-size: 0.92rem;
  color: oklch(66% 0.004 222);
  line-height: 1.65;
}

.pricing-block p + p { margin-top: 0.75rem; }

/* ── CONNECTED / CONFIRMATION ── */
.confirmation {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.confirmation-inner {
  max-width: 480px;
}

.confirmation .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 0.5rem;
  animation: pulse 2.4s ease-in-out infinite;
}

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

.confirmation h1 {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 1.5rem 0 1rem;
  color: var(--text);
}

.confirmation p {
  font-size: 1rem;
  color: oklch(66% 0.004 222);
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* ── LEGAL PAGES ── */
.legal-hero {
  padding: 5rem 2rem 3rem;
}

.legal-hero h1 {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.legal-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-body {
  padding: 0 2rem 5rem;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.legal-section p,
.legal-section li {
  font-size: 0.92rem;
  color: oklch(66% 0.004 222);
  line-height: 1.7;
}

.legal-section p + p { margin-top: 0.75rem; }

.legal-section ul,
.legal-section ol {
  padding-left: 1.4rem;
  margin-top: 0.5rem;
}

.legal-section li { margin-bottom: 0.4rem; }

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FOOTER ── */
footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }

.footer-home { display: flex; align-items: center; }
.footer-home img { display: block; height: 18px; width: 18px; border-radius: 4px; }

/* ── APP PAGES ── */
.app-page {
  min-height: 100dvh;
  padding: 5rem 1.5rem 3rem;
}

.app-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
}

.app-card-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}

.danger-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.15s;
}

.danger-card:hover { border-color: oklch(40% 0.12 27); }
.danger-card .app-card-title { color: var(--accent); transition: color 0.15s; }
.danger-card:hover .app-card-title { color: oklch(70% 0.18 27); }

/* ── FIELDS ── */
.field { margin-bottom: 1.25rem; }
.field:last-child { margin-bottom: 0; }

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.input, .textarea {
  width: 100%;
  background: oklch(10% 0.004 222);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 5px;
  padding: 0.625rem 0.75rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color 0.15s;
  display: block;
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: oklch(60% 0.06 167);
}

.input::placeholder, .textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.input[readonly] { opacity: 0.7; cursor: default; }

.textarea { resize: vertical; min-height: 5rem; line-height: 1.55; }

/* ── SLIDER ── */
.slider-wrap { display: flex; align-items: center; gap: 1rem; }

.slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.15s;
}

.slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.slider-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  min-width: 4ch;
  text-align: right;
}

/* ── TAGS ── */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: oklch(15% 0.005 222);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
}

.tag-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}

.tag-remove:hover { color: oklch(65% 0.18 27); }

/* ── TABLE ── */
.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
}

.data-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid oklch(17% 0.005 222);
  vertical-align: middle;
  color: oklch(72% 0.004 222);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: oklch(15% 0.005 222); }

.td-mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ── BADGES ── */
.score-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
}

.score-high { background: oklch(18% 0.09 27);  color: oklch(74% 0.15 27); }
.score-mid  { background: oklch(17% 0.07 60);  color: oklch(70% 0.12 60); }
.score-low  { background: oklch(15% 0.004 222); color: var(--muted); }

.source-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: oklch(17% 0.08 230);
  color: oklch(72% 0.12 230);
  border: 1px solid oklch(24% 0.1 230);
  display: inline-block;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0;
  gap: 1rem;
}

.pagination-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.pagination-controls { display: flex; gap: 0.5rem; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  background: var(--surface);
  border: 1px solid oklch(28% 0.08 167);
  border-radius: 6px;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  box-shadow: 0 4px 24px oklch(0% 0 0 / 0.4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 100;
}

.toast.visible { opacity: 1; transform: translateY(0); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(5% 0.002 222 / 0.82);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s;
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.modal-sub {
  font-size: 0.85rem;
  color: oklch(65% 0.004 222);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* ── SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, oklch(17% 0.005 222) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── ROW ACTIONS ── */
.row-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.row-btn:hover { color: var(--text); border-color: oklch(34% 0.006 222); }

.row-btn-report {
  border-color: oklch(26% 0.09 230);
  color: oklch(65% 0.09 230);
}

.row-btn-report:hover { color: oklch(74% 0.12 230); border-color: oklch(36% 0.1 230); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
}

.empty-state p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── DISCLAIMER ── */
.disclaimer {
  background: oklch(14% 0.004 222);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: oklch(65% 0.004 222);
  line-height: 1.6;
}

/* ── UTILITY ── */
.btn-danger {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-danger:hover {
  background: oklch(22% 0.11 27);
  color: oklch(80% 0.16 27);
  border-color: oklch(34% 0.13 27);
  opacity: 1;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.76rem;
}

.muted { color: var(--muted); }
.mono  { font-family: var(--font-mono); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 1.25rem; }

  .hero { padding: 5rem 1.25rem 3rem; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }

  .container, .container-narrow { padding: 0 1.25rem; }

  .section { padding: 3.5rem 1.25rem; }

  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); padding: 1.75rem 0; }
  .step:last-child { border-bottom: none; }

  .pricing-block { padding: 1.75rem; }

  .legal-hero { padding: 4rem 1.25rem 2rem; }
  .legal-body { padding: 0 1.25rem 4rem; }

  footer { flex-direction: column; padding: 1.75rem 1.25rem; gap: 0.75rem; }
}
