:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --text: #14141f;
  --text-muted: #55576b;
  --border: #e3e4ea;
  --brand: #0ea5a5;
  --brand-2: #6d5bff;
  --card-bg: #ffffff;
  --code-bg: #f0f1f5;
  /* Dedicated dark stops for FILLED gradient surfaces (buttons, badges)
     that carry white text/icons — --brand/--brand-2 are tuned to read
     as an accent against the page background, not to pass 4.5:1 under
     white on top of themselves. Same value in both themes: the
     surface color doesn't change with the page theme. */
  --grad-1: #0d7a7a;
  --grad-2: #5b4bcf;
}

:root[data-theme='dark'] {
  --bg: #0b0b12;
  --bg-alt: #13131d;
  --text: #f3f4f8;
  --text-muted: #a2a4bd;
  --border: #23243333;
  --border: #262738;
  --brand: #2dd4d4;
  --brand-2: #8f7dff;
  --card-bg: #14141f;
  --code-bg: #1b1c29;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b0b12;
    --bg-alt: #13131d;
    --text: #f3f4f8;
    --text-muted: #a2a4bd;
    --border: #262738;
    --brand: #2dd4d4;
    --brand-2: #8f7dff;
    --card-bg: #14141f;
    --code-bg: #1b1c29;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scrollbar-color: var(--border) transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    'Plus Jakarta Sans',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Browser chrome carries the design too — themed rather than left default. */
::selection {
  background: var(--brand);
  color: #04201f;
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
  border: 3px solid var(--bg);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
  background-clip: padding-box;
}

h1,
h2,
h3 {
  line-height: 1.3;
}

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

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: block;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}

header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.brand .dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.brand .dot .icon {
  width: 60%;
  height: 60%;
  stroke-width: 2.5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.icon-btn:active {
  transform: scale(0.92);
}

/* Sun/moon swap via data-theme, not JS textContent — no flash, no emoji. */
.icon-btn .icon-sun {
  display: none;
}
:root[data-theme='dark'] .icon-btn .icon-moon {
  display: none;
}
:root[data-theme='dark'] .icon-btn .icon-sun {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-btn .icon-moon {
    display: none;
  }
  :root:not([data-theme='light']) .icon-btn .icon-sun {
    display: block;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #fff;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--brand) 25%, transparent);
}
.btn-primary:hover {
  opacity: 0.94;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--brand-2) 55%, transparent);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: var(--card-bg);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
}
.btn-sm .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .tagline {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero .cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* One authored entrance, on the hero only — not repeated per section. */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero .tagline,
.hero .cta {
  animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .tagline {
  animation-delay: 0.08s;
}
.hero .cta {
  animation-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero .tagline,
  .hero .cta {
    animation: none;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 64px 0;
}

section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

p.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ---------- Feature split (asymmetric: list + product mock) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.feature-copy h2,
.feature-copy p {
  text-align: left;
  margin-left: 0;
}

.feature-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  gap: 18px;
  padding: 22px 4px;
  border-top: 1px solid var(--border);
}
.feature-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.feature-list .icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.feature-list h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.feature-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
  max-width: 46ch;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.mock-chat {
  width: 100%;
  max-width: 340px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  /* Neutral elevation, not a brand-colored halo: offset + moderate
     blur reads as a lifted artifact; a colored glow on a dark
     background is the generic "AI-slop" tell instead. */
  box-shadow:
    0 18px 30px -14px rgba(0, 0, 0, 0.3),
    0 6px 12px -6px rgba(0, 0, 0, 0.25);
  transform: rotate(-2deg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mock-chat:hover {
  transform: rotate(0deg);
}

.mock-msg {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  max-width: 88%;
  line-height: 1.4;
}
.mock-msg.user {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.mock-msg.agent {
  background: color-mix(in srgb, var(--brand) 12%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  border-bottom-left-radius: 4px;
}
.mock-agent-name {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--brand);
  margin-bottom: 4px;
}

.mock-approval {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.mock-approval-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: var(--text);
}
.mock-approval-head .icon {
  width: 16px;
  height: 16px;
  color: var(--brand-2);
}
.mock-skill-desc {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.mock-approval-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 860px) {
  .feature-split {
    grid-template-columns: 1fr;
  }
  .feature-visual {
    order: -1;
  }
  .mock-chat {
    transform: none;
  }
}

/* ---------- Nod callout ---------- */
.nod-callout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.4);
}

.nod-callout .badge {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.nod-callout .badge .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

.nod-callout p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

/* ---------- Plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.plan {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  background: var(--card-bg);
  box-shadow: 0 10px 20px -14px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.plan:hover {
  transform: translateY(-3px);
}

.plan.featured {
  border-color: var(--brand);
  box-shadow:
    0 0 0 1px var(--brand),
    0 14px 26px -18px rgba(0, 0, 0, 0.35);
}

.plan .name {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.plan .price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.plan .price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.plan li {
  padding: 10px 4px;
  border-top: 1px solid var(--border);
}
.plan li:first-child {
  border-top: none;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer.site .foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

footer.site nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

footer.site nav a {
  color: var(--text-muted);
}
footer.site nav a:hover {
  color: var(--brand);
}

footer.site nav .foot-tec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
footer.site nav a.gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
}
footer.site nav a.gear .icon {
  width: 16px;
  height: 16px;
}

footer.site .legal {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  line-height: 1.7;
}

/* ---------- Legal pages ---------- */
main.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

main.legal h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

main.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

main.legal h2 {
  font-size: 1.2rem;
  margin-top: 36px;
}

main.legal p,
main.legal li {
  color: var(--text-muted);
  font-size: 0.97rem;
  max-width: 68ch;
}

main.legal a {
  color: var(--brand);
}

.notice-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 28px 0;
  font-size: 0.9rem;
}

/* ---------- 404 ---------- */
.not-found {
  text-align: center;
  padding: 120px 24px;
}
.not-found h1 {
  font-size: 4rem;
  margin: 0;
}
