/* UI Checker — dark terminal-first aesthetic (openclaw.ai-inspired) */

:root {
  --bg: #0b1120;          /* deep navy */
  --bg-raised: #111a2e;
  --bg-terminal: #0a0f1c;
  --border: #1f2a44;
  --text: #e6e9f0;
  --text-dim: #9aa3b5;
  --accent: #2dd4bf;       /* teal/cyan */
  --accent-dim: #14b8a6;
  --warm: #fb923c;         /* warm orange accent */
  --high: #f87171;
  --med: #fbbf24;
  --low: #60a5fa;
  --radius: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

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

main { max-width: 960px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-bottom: 0.5rem; text-align: center; }
section { padding: 72px 0; }
.section-sub { text-align: center; color: var(--text-dim); margin-bottom: 2rem; }

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav nav {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-weight: 700; font-size: 1.1rem; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--accent); font-size: 1.3rem; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--text-dim); font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; transition: transform 0.1s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #04221e; }
.btn-primary:hover { background: var(--accent-dim); color: #04221e; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 64px; text-align: center; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.2rem; color: var(--text-dim);
  max-width: 640px; margin: 0 auto 2.5rem;
}
.hero-sub strong { color: var(--text); }
.hero-note { margin-top: 1.25rem; color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Terminal blocks ---------- */
.terminal {
  position: relative;
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 640px; margin: 0 auto;
  text-align: left;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.terminal.output { max-width: 760px; }
.terminal.small { max-width: 420px; }
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title {
  margin-left: 10px; color: var(--text-dim);
  font-family: var(--font-mono); font-size: 0.78rem;
}
.terminal pre {
  padding: 18px 20px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.7;
}
.terminal pre code { background: none; border: none; padding: 0; }
.prompt { color: var(--accent); user-select: none; }
.comment { color: var(--text-dim); }
.sev-high { color: var(--high); font-weight: 700; }
.sev-med { color: var(--med); font-weight: 700; }
.sev-low { color: var(--low); font-weight: 700; }

.copy-btn {
  position: absolute; top: 9px; right: 12px;
  background: var(--bg-raised); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 3px 10px; cursor: pointer;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Steps ---------- */
.steps {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; margin-top: 2.5rem;
}
.steps li {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #04221e;
  font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 2.5rem;
}
.feature-grid article {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.15s;
}
.feature-grid article:hover { border-color: var(--accent); }
.feature-grid h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-grid p { color: var(--text-dim); font-size: 0.93rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 680px; margin: 2.5rem auto 0;
}
.plan {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; text-align: center;
}
.plan-featured { border-color: var(--accent); box-shadow: 0 0 32px rgba(45, 212, 191, 0.12); }
.plan h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.price { font-size: 2.6rem; font-weight: 800; margin: 10px 0 18px; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-dim); }
.plan ul { list-style: none; margin-bottom: 24px; }
.plan li { padding: 6px 0; color: var(--text-dim); font-size: 0.95rem; }
.plan li::before { content: "✓ "; color: var(--accent); }
.plan-note { margin-top: 12px; font-size: 0.85rem; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-raised); margin-top: 12px; padding: 0 20px;
}
.faq details:first-of-type { margin-top: 2.5rem; }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 16px 0;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; color: var(--accent);
  font-size: 1.3rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: var(--text-dim); }

/* ---------- Services ---------- */
.service-card {
  max-width: 680px; margin: 2.5rem auto 0;
  background: var(--bg-raised); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 36px 32px;
  box-shadow: 0 0 32px rgba(45, 212, 191, 0.12);
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-card p { color: var(--text-dim); margin-bottom: 16px; }
.service-card p strong { color: var(--text); }
.service-card ul { list-style: none; margin-bottom: 24px; }
.service-card li { padding: 5px 0; color: var(--text-dim); font-size: 0.95rem; }
.service-card li::before { content: "✓ "; color: var(--accent); }

/* ---------- Contact / early access ---------- */
.contact { max-width: 560px; margin: 0 auto; }
.contact-form { margin-top: 2.5rem; display: grid; gap: 14px; text-align: left; }
.contact-form[hidden] { display: none; }
.contact-form label { font-size: 0.9rem; font-weight: 600; }
.contact-form label .req { color: var(--warm); }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 10px 14px;
  background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-sans); font-size: 0.95rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}
.contact-form button { cursor: pointer; border: none; font-family: var(--font-sans); }
.contact-form button:disabled { opacity: 0.5; cursor: default; }
.form-error { color: var(--high); font-size: 0.9rem; }
.form-success {
  margin-top: 2.5rem; padding: 32px 28px; text-align: center;
  background: var(--bg-raised); border: 1px solid var(--accent);
  border-radius: var(--radius); box-shadow: 0 0 32px rgba(45, 212, 191, 0.12);
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-dim); }

/* ---------- Sub-pages (docs, pricing, terms) ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 56px 0 72px; }
.page h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.page .page-sub { color: var(--text-dim); margin-bottom: 2.5rem; }
.page h2 { text-align: left; font-size: 1.4rem; margin: 2.5rem 0 0.75rem; }
.page h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.page p, .page li { color: var(--text-dim); }
.page ul, .page ol { padding-left: 1.4em; margin: 0.5rem 0 1rem; }
.page .terminal { margin: 1.25rem 0; max-width: none; }
.banner {
  display: inline-block; margin-bottom: 1.5rem;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(251, 146, 60, 0.12); border: 1px solid var(--warm);
  color: var(--warm); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 2rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 48px 24px 32px; }
.footer-cols {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.footer-cols h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--text-dim); padding: 4px 0; font-size: 0.93rem; }
.footer-cols a:hover { color: var(--accent); text-decoration: none; }
.footer-note { text-align: center; color: var(--text-dim); font-size: 0.85rem; margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 48px 0; }
}
