:root {
  --bg: #05060a;
  --bg-elevated: #0c0e15;
  --bg-card: #0f1220;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e7e9f0;
  --muted: #9aa0b0;
  --accent-1: #7c5cff;
  --accent-2: #22d3ee;
  --ok: #28c840;
  --radius: 14px;
  --max: 1120px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

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

::selection { background: rgba(124, 92, 255, 0.35); }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ambient glow */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(124, 92, 255, 0.14), transparent 65%),
    radial-gradient(700px 500px at 85% 20%, rgba(34, 211, 238, 0.10), transparent 65%),
    radial-gradient(800px 600px at 50% 110%, rgba(124, 92, 255, 0.08), transparent 65%);
  pointer-events: none;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 10, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-flex;
  filter: drop-shadow(0 0 12px rgba(124, 92, 255, 0.5));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}
.main-nav a { color: var(--muted); }
.main-nav a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  color: var(--text) !important;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(124, 92, 255, 0.5); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* hero */
.hero { padding: 96px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.4);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(124, 92, 255, 0.55); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.btn-ghost:hover { border-color: rgba(124, 92, 255, 0.5); }

.btn-lg { padding: 16px 34px; font-size: 16px; }

.copy-email-btn.copied {
  color: var(--ok);
  border-color: rgba(40, 200, 64, 0.45);
}
.copy-email-btn.copied:hover { border-color: rgba(40, 200, 64, 0.65); }

.hero-note { font-size: 13.5px; color: var(--muted); }

/* demo card */
.hero-demo { position: relative; }

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.demo-dot { width: 11px; height: 11px; border-radius: 50%; }

.demo-url {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.demo-body { padding: 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 18px; }

.mock-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mock-widget:hover { border-color: rgba(124, 92, 255, 0.5); }
.mock-widget.solving { border-color: var(--accent-1); }
.mock-widget.done { border-color: var(--ok); background: rgba(40, 200, 64, 0.06); }

.mock-icon { display: inline-flex; color: var(--text); }

#mock-spinner { transform-origin: center; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.mock-label { font-size: 15px; font-weight: 500; }
.mock-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mock-widget.done .mock-time { opacity: 1; }

.demo-hint { font-size: 13px; color: var(--muted); }

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
}
.demo-badge strong { color: var(--text); }
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

/* stats */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 24px;
}

.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-suffix { font-size: 22px; }
.stat-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub { color: var(--muted); font-size: 16.5px; }

/* features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.05);
}

.feature-icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.15));
  color: var(--accent-2);
  margin-bottom: 18px;
}
.feature-icon svg { color: var(--accent-1); filter: drop-shadow(0 0 8px rgba(124, 92, 255, 0.4)); }

.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }
.feature em { color: var(--text); font-style: normal; }

/* captcha types */
.types-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.types-table {
  width: 100%;
  border-collapse: collapse;
}

.types-table th,
.types-table td {
  text-align: left;
  padding: 18px 24px;
  font-size: 14.5px;
}

.types-table thead th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.types-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.types-table tbody tr:last-child { border-bottom: 0; }
.types-table tbody tr:hover { background: rgba(124, 92, 255, 0.05); }

.types-table .provider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.provider-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 5px;
  flex-shrink: 0;
}

.provider-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ok);
  border: 1px solid rgba(40, 200, 64, 0.35);
  background: rgba(40, 200, 64, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
}

.cell-note {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.types-table .align-right { text-align: right; }
.types-table .mono { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); }
.types-table .accent { color: var(--accent-2); }

.types-note {
  padding: 14px 24px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.types-unavailable {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.step-num {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-2);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 18px;
}

.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* code card */
.code-card {
  background: #0a0c14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.code-title { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.code-card pre {
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #cdd3e0;
}
.c-dim { color: #6b7385; }
.c-str { color: #7dd3a8; }
.c-ok { color: var(--ok); }

/* faq */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  transition: color 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 500;
  color: var(--accent-2);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-2); }

.faq p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* cta */
.cta { padding: 64px 0 96px; }

.cta-card {
  background:
    radial-gradient(500px 240px at 80% 0%, rgba(124, 92, 255, 0.22), transparent 65%),
    linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 20px;
  text-align: center;
  padding: 72px 32px;
}

.cta-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-sub { color: var(--muted); font-size: 16.5px; margin-bottom: 30px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }

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

.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }

.footer-nav { display: flex; gap: 22px; font-size: 14px; }
.footer-nav a { color: var(--muted); }

.footer-copy { font-size: 13px; color: var(--muted); }

/* legal pages (privacy / terms) */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 0 96px;
}
.legal h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.legal-updated { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--muted); }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal a { color: var(--accent-2); }

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

@media (max-width: 640px) {
  .main-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 6, 10, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .main-nav .nav-cta { border-bottom: 0; text-align: center; margin-top: 10px; }
  .nav-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 64px 0; }
  .types-note { padding: 14px 20px; font-size: 12.5px; }
}

/* captcha types: below 760px the table becomes stacked cards */
@media (max-width: 760px) {
  .types-card { max-width: 100%; }
  .types-table thead { display: none; }
  .types-table,
  .types-table tbody,
  .types-table tr,
  .types-table td {
    display: block;
    width: 100%;
  }
  .types-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    padding: 18px 20px;
  }
  .types-table td { padding: 0; text-align: left; }
  .types-table td:first-child { grid-column: 1 / -1; margin-bottom: 4px; }
  .types-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .types-table .align-right.mono[data-label],
  .types-table .align-right[data-label] {
    text-align: left;
  }
  .types-table td .cell-note { display: inline; }
}
