/* TaskAI Genius — shared styles
   Dark, developer-focused theme. Mobile-first. */

:root {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --bg-3: #161a23;
  --border: #1f2530;
  --text: #e6e9ef;
  --text-dim: #9aa3b2;
  --accent: #5b8def;
  --accent-2: #7aa2ff;
  --accent-glow: rgba(91, 141, 239, 0.18);
  --code-bg: #0a0c11;
  --code-border: #1a1f2b;
  --success: #4ade80;
  --warn: #facc15;
  --danger: #f87171;
  --max-w: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 30px rgba(0, 0, 0, 0.35);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b0d12;
  font-weight: 800;
  font-size: 14px;
}
.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }

@media (max-width: 720px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(900px 500px at 75% -10%, var(--accent-glow), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(167, 139, 250, 0.12), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  max-width: 820px;
}
.hero .lede {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 0 28px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #0b0d12;
}
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--border); }
.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 10px;
}
h2 {
  font-size: 32px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
h3 { font-size: 19px; margin: 0 0 8px; }
p { color: var(--text-dim); margin: 0 0 14px; }
p strong { color: var(--text); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-glow);
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- Code blocks ---------- */
pre, code {
  font-family: var(--mono);
  font-size: 13.5px;
}
code {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 2px 6px;
  border-radius: 4px;
  color: #cbe2ff;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 18px;
  line-height: 1.55;
}
pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text);
}
pre .comment { color: #6b7588; }
pre .string { color: #a5e3a5; }
pre .kw { color: #f0a8ff; }
pre .flag { color: #ffd28a; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; padding: 0; list-style: none; }
.steps li {
  position: relative;
  padding: 16px 16px 16px 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  margin-bottom: 12px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0d12;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li h4 { margin: 0 0 6px; font-size: 16px; }
.steps li p { margin: 0; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-dim);
}
.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 6px;
  color: var(--accent);
}

/* ---------- Pricing-ish / tier cards ---------- */
.tier-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.tier-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow);
}
.tier-card .badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: #0b0d12;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tier-card .price {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 6px 0 4px;
}
.tier-card .price small {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

/* ---------- Form ---------- */
.form { max-width: 560px; }
.form .row { display: flex; flex-direction: column; margin-bottom: 14px; }
.form label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form input, .form textarea, .form select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form .help { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.form .form-note {
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--text-dim);
  font-size: 13px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }

/* ---------- Utility ---------- */
.text-dim { color: var(--text-dim); }
.mono { font-family: var(--mono); }
.muted { opacity: 0.7; }
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.callout {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 18px 0;
  color: var(--text-dim);
}
.callout strong { color: var(--text); }
