/* ============================================================
   Owl Task Scheduler MCP — landing page
   Aesthetic: warm beige "paper" tool, editorial + utilitarian.
   Type: Fraunces (display) · IBM Plex Sans (body) · IBM Plex Mono (code).
   ============================================================ */

:root {
  --paper:      #F3EADA;
  --paper-2:    #ECE0CB;
  --card:       #FBF6EC;
  --ink:        #2C2017;
  --ink-2:      #5A4636;
  --ink-3:      #8C7659;
  --line:       #E0CEAF;
  --line-2:     #EADBC0;
  --accent:     #B16A22;
  --accent-2:   #8A4E16;
  --accent-soft:#F1DCB8;
  --night:      #344063;
  --code-bg:    #2B2016;
  --code-fg:    #F0E2C8;
  --code-muted: #B59A78;
  --code-accent:#E6A95C;
  --shadow:     0 1px 2px rgba(58,40,20,.06), 0 10px 30px rgba(58,40,20,.07);
  --shadow-sm:  0 1px 2px rgba(58,40,20,.08);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1060px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #1E1710;
    --paper-2:    #251C13;
    --card:       #2A2017;
    --ink:        #F1E7D6;
    --ink-2:      #CDBA9E;
    --ink-3:      #9C876C;
    --line:       #3B2C1D;
    --line-2:     #45341f;
    --accent:     #E0A45C;
    --accent-2:   #F0BE7E;
    --accent-soft:#3A2B1A;
    --night:      #93A2CB;
    --code-bg:    #150E08;
    --code-fg:    #EFE0C6;
    --code-muted: #9A8260;
    --code-accent:#E8AB60;
    --shadow:     0 1px 2px rgba(0,0,0,.3), 0 12px 34px rgba(0,0,0,.4);
    --shadow-sm:  0 1px 2px rgba(0,0,0,.35);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--accent-soft) 60%, transparent), transparent 55%),
    radial-gradient(var(--line-2) 1px, transparent 1.2px);
  background-size: 100% 100%, 22px 22px;
  background-position: 0 0, 0 0;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* thin accent rail at the very top */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 45%, var(--night) 100%);
  z-index: 100;
}

::selection { background: var(--accent-soft); color: var(--ink); }

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

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

/* ---------- header ---------- */
.site-header {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 24px 10px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; filter: drop-shadow(0 2px 4px rgba(58,40,20,.18)); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-mcp {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-size: 0.92rem;
}
.site-nav a {
  color: var(--ink-2);
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent-2); text-decoration: none; }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--line); }
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .lang-btn.is-active { color: #1E1710; } }

/* ---------- hero ---------- */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 64px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.5rem, 6.2vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero-title .accent { color: var(--accent); font-style: italic; }
.hero-tagline {
  margin-top: 20px;
  max-width: 34em;
  font-size: clamp(1.02rem, 2.2vw, 1.16rem);
  color: var(--ink-2);
}

.stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 30px 0 6px;
}
.stats li { display: flex; flex-direction: column; }
.stats b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
}
.stats span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #1E1710; } }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-small { padding: 8px 15px; font-size: 0.88rem; }

/* hero art — owl on a moon disc */
.hero-art { display: flex; justify-content: center; }
.moon-disc {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent-soft) 85%, #fff 10%), var(--paper-2) 72%);
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 30px rgba(58,40,20,.06), var(--shadow);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.moon-disc::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent);
  opacity: .5;
}
.hero-owl {
  position: relative;
  width: 82%;
  height: auto;
  margin-bottom: 4%;
  filter: drop-shadow(0 8px 14px rgba(58,40,20,.22));
}

/* ---------- bands / sections ---------- */
.band { padding: 64px 0; border-top: 1px solid var(--line); }
.band-alt { background: color-mix(in srgb, var(--paper-2) 70%, transparent); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.band h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18em;
}
.lead {
  margin-top: 16px;
  max-width: 40em;
  font-size: 1.05rem;
  color: var(--ink-2);
}

/* clients */
.client-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.client-label, .feature-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.fineprint {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-3);
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

/* ---------- steps ---------- */
.steps { list-style: none; margin-top: 36px; display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.step-no {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  color: var(--accent-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}
.step-body h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.06rem;
  margin-bottom: 6px;
}
.step-body p { color: var(--ink-2); font-size: 0.98rem; }
.step-body .btn { margin-top: 14px; }

/* code */
.code {
  margin-top: 14px;
  background: var(--code-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.code-tab {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--code-muted);
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.code code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--code-fg);
  padding: 16px;
  overflow-x: auto;
  white-space: pre;
}
.code .s { color: var(--code-accent); }

/* ---------- surface ---------- */
.surface-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: start;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.panel-sub { color: var(--ink-3); font-size: 0.9rem; margin: 4px 0 18px; }
.tool-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.tool-list code {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 12px;
}
.panel-foot { margin-top: 18px; font-size: 0.86rem; color: var(--ink-3); }

.action-list { list-style: none; display: flex; flex-direction: column; }
.action-list li {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--line-2);
}
.action-list li:first-child { border-top: 0; padding-top: 0; }
.action-list code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--accent-2);
}
.action-list span { color: var(--ink-2); font-size: 0.92rem; }

.feature-strip {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ---------- architecture pipeline ---------- */
.pipeline {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.pipeline .chip { font-family: var(--font-mono); font-size: 0.82rem; }
.pipe-arrow {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  opacity: .75;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-2) 80%, transparent);
  padding: 34px 0 40px;
  margin-top: 8px;
}
.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.92rem; }
.footer-links a { color: var(--ink-2); font-weight: 500; }
.footer-links a:hover { color: var(--accent-2); text-decoration: none; }
.footer-note {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 4px;
}

/* ---------- motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > .kicker     { animation-delay: .02s; }
.hero-copy > .hero-title { animation-delay: .08s; }
.hero-copy > .hero-tagline { animation-delay: .16s; }
.hero-copy > .stats      { animation-delay: .24s; }
.hero-copy > .cta-row    { animation-delay: .32s; }
.hero-art { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-art { animation: none; }
  .btn:hover, .step:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 24px 48px;
    gap: 28px;
  }
  .hero-art { order: -1; }
  .moon-disc { width: min(280px, 70vw); }
  .surface-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; gap: 14px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 18px; flex-wrap: wrap; }
  .lang { margin-left: auto; }
}

@media (max-width: 560px) {
  .action-list li { grid-template-columns: 1fr; gap: 3px; }
  .action-list code { font-size: 0.82rem; }
  .stats { gap: 20px; }
  .step { grid-template-columns: 1fr; }
  .step-no { width: 40px; height: 40px; }
  .band { padding: 48px 0; }
}
