/* Devpilot landing — dark, quiet, precise. */
:root {
  --bg: #08090a;
  --bg-2: #0f1011;
  --panel: #101113;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f7f8f8;
  --text-2: #d0d6e0;
  --muted: #8a8f98;
  --faint: #62666d;
  --accent: #5e6ad2;
  --blue: #4c8dff;
  --amber: #f5a524;
  --green: #22c55e;
  --red: #ef4444;
  --violet: #a78bfa;
  --mono: "Berkeley Mono", "JetBrains Mono", "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.25, .46, .45, .94);
}
@supports (font-variation-settings: normal) { :root { font-family: InterVariable, Inter, system-ui, sans-serif; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: InterVariable, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv01", "ss03";
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: .88em; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 4px; padding: .05em .35em; }
b { font-weight: 560; color: var(--text); }
.mut { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- type ---------- */
.h2 {
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 560;
  color: var(--text);
}
.dim { color: var(--muted); }
.grad {
  background: linear-gradient(92deg, #c9b8ff 0%, #8ea6ff 55%, #6aa3ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 560px; margin-top: 20px; letter-spacing: -0.006em; }
.lead b { color: var(--text-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  margin-bottom: 22px; letter-spacing: -0.005em;
}
.eb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px currentColor; color: var(--blue); }
.eb-dot.amber { background: var(--amber); color: var(--amber); }
.eb-dot.violet { background: var(--violet); color: var(--violet); }
.eb-dot.green { background: var(--green); color: var(--green); }
.eb-dot.blue { background: var(--blue); color: var(--blue); }

.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  min-width: 20px; height: 20px; padding: 0 5px;
  border: 1px solid var(--line-2); border-radius: 4px; background: rgba(255,255,255,.03);
}
.kbd.sm { height: 17px; font-size: 10px; margin-left: auto; }
.kbd.lg { height: 46px; min-width: 46px; padding: 0 14px; font-size: 14px; border-radius: 8px; color: var(--text-2);
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.06), 0 1px 0 rgba(0,0,0,.6); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 8px;
  font-size: 15px; font-weight: 510; letter-spacing: -0.01em;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.btn-primary { background: #e6e6e6; color: #08090a; }
.btn-primary:hover { background: #fff; }
.btn-ghost { color: var(--text-2); border: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
.btn svg { width: 14px; height: 14px; }
.btn-ghost .kbd { height: 18px; min-width: 18px; border: 0; background: none; color: var(--muted); padding: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 120px 0 0; text-align: left; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(94,106,210,.22), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 10%, rgba(76,141,255,.08), transparent 70%);
}
.hero .wrap { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 12px 4px 4px; border-radius: 999px; font-size: 13px; color: var(--text-2);
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  transition: border-color .2s, background .2s;
}
.pill:hover { border-color: var(--line-2); background: rgba(255,255,255,.05); }
.pill svg { color: var(--muted); }
.pill-tag { font-size: 11px; font-weight: 600; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.hero-title {
  margin-top: 28px;
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 1.02; letter-spacing: -0.042em; font-weight: 580;
  background: linear-gradient(to right bottom, #fff 32%, rgba(255,255,255,.42));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  max-width: 940px; padding-bottom: 6px;
}
.hero-sub { margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 680px; letter-spacing: -0.01em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }


/* ---------- strip ---------- */
.strip { padding: 40px 0 120px; }
.strip-lead { text-align: center; font-size: 14px; color: var(--faint); }
.strip-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 52px; margin-top: 22px; }
.strip-list li { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 560; letter-spacing: -0.02em; color: var(--muted); }
.strip-list .ico { font-family: var(--mono); font-size: 15px; color: var(--faint); }

/* ---------- problem ---------- */
.problem { padding: 40px 0 140px; border-top: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding-top: 100px; }
.problem-art { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 55%, transparent 100%); border: 0; }

/* ---------- feature ---------- */
.feature { position: relative; padding: 140px 0 120px; border-top: 1px solid var(--line); }
.feature::before {
  content: ""; position: absolute; left: 50%; top: -1px; width: min(520px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.feature-head { max-width: 720px; margin-bottom: 64px; }
.feature-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.feature-head.center .lead { margin-left: auto; margin-right: auto; }
.feature-head.left { margin-bottom: 0; }

.shot {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
}
.shot.wide { max-width: 1136px; }
.shot.mesh { background: #070812; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: stretch; }
.split.rev { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.col { padding: 28px 28px 0 0; }
.col + .col { padding-left: 28px; border-left: 1px solid var(--line); }
.col h3 { font-size: 15px; font-weight: 560; letter-spacing: -0.012em; color: var(--text); }
.col p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.ticks { list-style: none; margin-top: 32px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 4px;
  background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.35);
}
.ticks li::after { content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 4px; border-left: 1.5px solid var(--violet); border-bottom: 1.5px solid var(--violet); transform: rotate(-45deg); }
.ticks b { color: var(--text-2); font-weight: 540; }

/* ---------- panels (HTML illustrations) ---------- */
.panel {
  border-radius: 14px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--panel);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}

.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.dot.sm { width: 7px; height: 7px; }
.dot.working, .dot.running { background: var(--blue); box-shadow: 0 0 0 0 rgba(76,141,255,.6); animation: pulse 1.6s infinite; }
.dot.asking { background: var(--amber); box-shadow: 0 0 10px rgba(245,165,36,.6); }
.dot.done { background: var(--green); }
.dot.exited { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(76,141,255,.55); } 70% { box-shadow: 0 0 0 7px rgba(76,141,255,0); } 100% { box-shadow: 0 0 0 0 rgba(76,141,255,0); } }

.status-demo { display: grid; grid-template-columns: 360px 1fr; }
.sd-side { padding: 16px 12px; border-right: 1px solid var(--line); background: rgba(0,0,0,.25); font-size: 14px; }
.sd-filter { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); color: var(--faint); font-size: 13px; margin-bottom: 14px; }
.sd-cat { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); padding: 12px 8px 6px; }
.badge { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; }
.sd-n { margin-left: auto; font-family: var(--mono); color: var(--faint); font-size: 10px; }
.sd-row { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 7px 10px; border-radius: 6px; }
.sd-row .dot { margin-top: 7px; }
.sd-row > div { min-width: 0; flex: 1; }
.sd-row b { display: block; font-weight: 500; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.sd-row small { display: block; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); }
.sd-row.active { background: rgba(255,255,255,.05); border-radius: 0; }
.sd-row.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--green); }
.spin { font-family: var(--mono); color: var(--green); font-size: 13px; margin-top: 2px; }
.att { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); margin-top: 7px; }

.sd-legend { padding: 36px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; align-content: center; }
.lg { display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; row-gap: 4px; align-items: center; }
.lg b { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text); }
.lg span:last-child { grid-column: 2; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* code block */
.code { border-radius: 14px; border: 1px solid var(--line-2); background: #0b0c0e; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05); }
.code-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.code-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.1); }
.code-bar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.code pre { padding: 22px 22px 26px; overflow-x: auto; flex: 1; display: flex; align-items: center; }
.code pre code { background: none; border: 0; padding: 0; font-size: 12.5px; line-height: 1.75; color: var(--text-2); white-space: pre; }
.c-dim { color: var(--faint); }
.c-cmd { color: #8ea6ff; }
.c-flag { color: var(--violet); }
.c-str { color: #9fd8a8; }

/* status bar */
.sbar { display: flex; align-items: center; gap: 24px; height: 44px; padding: 0 18px; font-family: var(--mono); font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--line); background: rgba(0,0,0,.35); white-space: nowrap; overflow-x: auto; }
.sbar b { font-weight: 600; }
.sb-left { display: flex; align-items: center; gap: 8px; }
.sb-mid { flex: 1; text-align: center; }
.sb-right { display: flex; align-items: center; gap: 8px; }
.bar { display: inline-block; width: 80px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--amber); border-radius: 3px; }
.g-y { color: #eab308; } .g-g { color: var(--green); } .g-r { color: var(--red); }
.pace { display: grid; grid-template-columns: repeat(3, 1fr); }
.pc { padding: 32px 30px; display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; row-gap: 6px; }
.pc + .pc { border-left: 1px solid var(--line); }
.pc > span:first-child { font-family: var(--mono); font-size: 16px; }
.pc b { font-size: 15px; }
.pc span:last-child { grid-column: 2; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- details grid ---------- */
.details { padding: 140px 0 120px; border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-d {
  border-radius: 14px; border: 1px solid var(--line); padding: 22px 22px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.card-d:hover { border-color: var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.card-d h3 { font-size: 15px; font-weight: 560; letter-spacing: -0.012em; margin-top: 22px; }
.card-d p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.card-art { height: 168px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.35); overflow: hidden; position: relative; }

.palette { padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pal-in { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; color: var(--text); }
.caret { width: 1.5px; height: 15px; background: var(--text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pal-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px; color: var(--text-2); }
.pal-item .mut { font-size: 12px; }
.pal-item.on { background: rgba(255,255,255,.06); }
.pal-item.on .mut { margin-left: auto; font-family: var(--mono); font-size: 11px; }

.keys { display: flex; align-items: center; justify-content: center; gap: 8px; }
.keys .kbd:nth-child(2) { margin-right: 16px; }

.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.themes span { border-radius: 7px; background: var(--a); border: 1px solid var(--line); position: relative; }
.themes span::after { content: ""; position: absolute; left: 10px; right: 30%; bottom: 10px; height: 4px; border-radius: 2px; background: var(--b); box-shadow: 0 -9px 0 -0.5px rgba(255,255,255,.18); }

.drop { display: flex; align-items: center; justify-content: center; padding: 18px; }
.dz { width: 100%; height: 100%; border: 1.5px dashed rgba(94,106,210,.7); border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  font-size: 12px; color: var(--muted); background: rgba(94,106,210,.07); font-family: var(--mono); line-height: 1.6; }
.dz b { color: var(--text-2); font-weight: 500; }

.profiles { padding: 16px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.pf { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; color: var(--text-2); background: rgba(255,255,255,.02); }
.pf .ag { color: var(--muted); width: 14px; text-align: center; }
.pf .mut { margin-left: auto; font-family: var(--mono); font-size: 11px; }

.api { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 0 24px; }
.api code { font-size: 12px; }

/* ---------- film ---------- */
.film { padding: 140px 0 120px; border-top: 1px solid var(--line); }
.film-frame { position: relative; max-width: 1100px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 0 120px -20px rgba(94,106,210,.35), 0 40px 100px -30px rgba(0,0,0,.9); background: #000; aspect-ratio: 16 / 9; }
.film-frame video { width: 100%; height: 100%; display: block; }

/* ---------- cta ---------- */
.cta { position: relative; padding: 120px 0 140px; text-align: center; border-top: 1px solid var(--line); overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 40px; width: 700px; height: 500px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(76,141,255,.18), transparent 65%); pointer-events: none; }
.cta .wrap { position: relative; }
.cta-head { width: 260px; margin: 0 auto 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 70%); }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .hero-cta { justify-content: center; }

.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 13px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }
.foot .mut { color: var(--faint); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); filter: blur(4px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.hero .reveal:nth-child(2) { transition-delay: .06s; }
.hero .reveal:nth-child(3) { transition-delay: .12s; }
.hero .reveal:nth-child(4) { transition-delay: .18s; }
.cols3 .col:nth-child(2), .grid .card-d:nth-child(3n+2) { transition-delay: .08s; }
.cols3 .col:nth-child(3), .grid .card-d:nth-child(3n) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .dot.working, .dot.running, .caret { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .problem-grid, .split, .split.rev { grid-template-columns: 1fr; gap: 40px; }
  .status-demo { grid-template-columns: 1fr; }
  .sd-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr 1fr; }
  .feature, .details, .film { padding: 100px 0 90px; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: 80px; }
  .hero-sub { font-size: 17px; }
  .cols3 { grid-template-columns: 1fr; }
  .col, .col + .col { padding: 22px 0 0; border-left: 0; }
  .col + .col { border-top: 1px solid var(--line); margin-top: 22px; }
  .sd-legend { grid-template-columns: 1fr; padding: 28px 22px; }
  .pace { grid-template-columns: 1fr; }
  .pc + .pc { border-left: 0; border-top: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; }
  .strip-list { gap: 12px 28px; }
  .strip-list li { font-size: 16px; }
}

/* grid children may shrink below their content (code blocks scroll instead) */
.split > *, .problem-grid > *, .status-demo > *, .grid > * { min-width: 0; }

/* ---------- hero stage (flat window on a soft floor of light) ---------- */
.hero-stage { position: relative; margin: 80px auto 0; max-width: 1360px; padding: 0 40px 90px; }
.hero-stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 18%; bottom: 0; pointer-events: none; border-radius: 0 0 28px 28px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255,255,255,.16), transparent 70%),
    linear-gradient(to bottom, transparent, rgba(255,255,255,.035));
}
.hero-stage::after { content: ""; position: absolute; left: 10%; right: 10%; top: -60px; height: 280px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(94,106,210,.22), transparent 65%); filter: blur(30px); }

.h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.022em; font-weight: 560; }
.lead.sm { font-size: 15.5px; }
.duo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; margin-top: 96px; }
.duo .code.mini { margin-top: 24px; }
.code.mini pre { padding: 16px 18px; white-space: pre-wrap; word-break: break-word; }
.code.mini pre code { font-size: 12px; }
@media (max-width: 980px) { .duo { grid-template-columns: 1fr; gap: 32px; margin-top: 64px; } .hero-stage { padding: 0 16px 60px; margin-top: 56px; } }
.duo > * { min-width: 0; }
