/* decypher - the guided demo.
   Same tokens as the site: a demo that looks like a different product is a demo of a different
   product. Authorship and ownership: @Tori, @Decypher_oficial */

:root{
  --ink:#08090f; --ink-2:#0c0e18; --surface:#101322; --raised:#171b2d;
  --hair:#252a42; --hair-soft:#191d30;
  --gold:#f5a524; --gold-deep:#d18700; --gold-soft:#ffc86b; --acc:#f5a524;
  --text:#f7f5f2; --text-2:#bcc2d4; --muted:#8b93aa; --thread:#8b8fff;
  --ok:#4ade80; --stop:#f87171;
  --sans:"Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,"Yu Gothic UI","Hiragino Sans","Noto Sans JP","Microsoft YaHei","PingFang SC","Noto Sans SC","Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR","Segoe UI Historic","Noto Naskh Arabic","Geeza Pro","Tahoma","Nirmala UI","Noto Sans Devanagari","Kohinoor Devanagari",sans-serif;
  --mono:"Cascadia Code",ui-monospace,Consolas,"SF Mono",Menlo,monospace;
  --fast:140ms; --base:280ms; --slow:600ms;
  --eo:cubic-bezier(.22,1,.36,1);
  --edge:clamp(1.1rem,4vw,4rem);
  color-scheme:dark;
}
:root[data-theme="light"]{
  --ink:#f6f6f9; --ink-2:#edeef4; --surface:#ffffff; --raised:#fafbfd;
  --hair:#dcdfe9; --hair-soft:#e9ebf2;
  --gold:#c97f00; --gold-deep:#9a5f00; --gold-soft:#e09a1f; --acc:#8a5400;
  --text:#111220; --text-2:#454a5e; --muted:#656b81; --thread:#4a4fd4;
  --ok:#15803d; --stop:#b91c1c;
  color-scheme:light;
}

*{margin:0;padding:0;box-sizing:border-box}
body{font-family:var(--sans); background:var(--ink); color:var(--text); -webkit-font-smoothing:antialiased}
a{color:var(--acc)}
a:focus-visible,button:focus-visible{outline:2px solid var(--gold); outline-offset:3px; border-radius:6px}

.top{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:1rem var(--edge); border-bottom:1px solid var(--hair-soft);
  position:sticky; top:0; background:color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter:blur(8px); z-index:10;
}
.brand{display:flex; align-items:center; gap:.5rem; font-weight:700; text-decoration:none; color:var(--text)}
.brand .mono{font-family:var(--mono); color:var(--acc)}
.tabs{display:flex; gap:.5rem}
.seg{display:flex; border:1px solid var(--hair); border-radius:999px; overflow:hidden}
.segbtn{font:inherit; font-size:.7rem; letter-spacing:.08em; text-transform:uppercase;
  background:transparent; color:var(--muted); border:0; padding:.35rem .7rem; cursor:pointer}
.segbtn.is-on{background:var(--gold); color:#0b0b12; font-weight:700}

.wrap{max-width:78rem; margin:0 auto; padding:0 var(--edge)}
.intro{padding:clamp(2.4rem,6vw,4rem) 0 1.4rem; text-align:center}
.eyebrow{font-family:var(--mono); font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--acc)}
h1{font-size:clamp(1.9rem,5vw,3rem); line-height:1.08; letter-spacing:-.025em; margin-top:.6rem; text-wrap:balance}
.lede{color:var(--text-2); max-width:52ch; margin:.9rem auto 0; font-size:1.02rem}

/* The step rail. Numbered because this is genuinely a sequence: each step only makes sense after
   the one before it. */
.rail{display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin:1.8rem 0 1.2rem}
.step{
  font:inherit; font-size:.82rem; cursor:pointer; color:var(--text-2);
  background:var(--surface); border:1px solid var(--hair); border-radius:999px;
  padding:.5rem .95rem; display:flex; align-items:center; gap:.5rem;
  transition:border-color var(--fast) var(--eo), color var(--fast) var(--eo);
}
.step .n{font-family:var(--mono); font-size:.72rem; color:var(--muted)}
.step:hover{border-color:var(--hair-soft); color:var(--text)}
.step.is-on{border-color:var(--gold); color:var(--text); background:var(--raised)}
.step.is-on .n{color:var(--acc)}
.step.done .n::after{content:" ok"; color:var(--ok)}

.stage{display:grid; grid-template-columns:1.05fr .95fr; gap:1.6rem; align-items:start; padding-bottom:1.6rem}
@media (max-width:900px){ .stage{grid-template-columns:1fr} }

/* ---- browser mockup: this is the panel, the part a person operates ---- */
.browser{background:var(--surface); border:1px solid var(--hair); border-radius:14px; overflow:hidden}
.chrome{display:flex; align-items:center; gap:.6rem; padding:.6rem .8rem; border-bottom:1px solid var(--hair-soft); background:var(--raised)}
.dots{display:flex; gap:.35rem}
.dots i{width:9px; height:9px; border-radius:50%; background:var(--hair); display:block}
.bar{
  flex:1; font-family:var(--mono); font-size:.7rem; color:var(--muted);
  background:var(--ink-2); border:1px solid var(--hair); border-radius:999px; padding:.25rem .7rem;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.screen{padding:1.1rem; min-height:20rem; display:flex; flex-direction:column; gap:.8rem}
.panel-head{display:flex; align-items:baseline; justify-content:space-between; gap:.8rem}
.panel-head h3{font-size:1rem}
.plan-pill{font-family:var(--mono); font-size:.68rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--acc); border:1px solid var(--gold); border-radius:999px; padding:.15rem .55rem}

.agent{
  display:grid; grid-template-columns:auto 1fr auto; gap:.7rem; align-items:center;
  background:var(--ink-2); border:1px solid var(--hair); border-radius:10px; padding:.7rem .85rem;
  transition:border-color var(--base) var(--eo), opacity var(--base) var(--eo);
}
.agent .who{font-weight:650; font-size:.9rem}
.agent .what{font-size:.78rem; color:var(--muted); font-family:var(--mono)}
.dot{width:9px; height:9px; border-radius:50%; background:var(--muted); box-shadow:0 0 0 0 currentColor}
.agent[data-state="running"] .dot{background:var(--ok); animation:latido 1.8s infinite}
.agent[data-state="held"] .dot{background:var(--gold)}
.agent[data-state="cut"] .dot{background:var(--stop)}
.agent[data-state="cut"]{opacity:.55; border-color:var(--stop)}
.agent[data-state="held"]{border-color:var(--gold)}
@keyframes latido{0%,100%{opacity:1}50%{opacity:.35}}
.tag{font-family:var(--mono); font-size:.68rem; color:var(--muted); white-space:nowrap}

.ledger{background:var(--ink-2); border:1px solid var(--hair); border-radius:10px; padding:.7rem .85rem; margin-top:auto}
.ledger h4{font-family:var(--mono); font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-bottom:.5rem}
.ledger ol{list-style:none; display:flex; flex-direction:column; gap:.35rem; font-family:var(--mono); font-size:.72rem}
.ledger li{display:flex; gap:.6rem; color:var(--text-2)}
.ledger li .seq{color:var(--acc)}
.ledger li.nuevo{animation:entra var(--slow) var(--eo)}
@keyframes entra{from{opacity:0; transform:translateY(6px)}to{opacity:1; transform:none}}

/* ---- laptop mockup: this is the client's own machine, where agents actually run ---- */
.laptop{display:flex; flex-direction:column; align-items:center}
.lid{
  width:100%; background:#0a0c14; border:1px solid var(--hair); border-radius:12px 12px 4px 4px;
  padding:.7rem; box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);
}
.term{
  background:#06070c; border-radius:8px; padding:.9rem; font-family:var(--mono); font-size:.74rem;
  min-height:17rem; display:flex; flex-direction:column; gap:.28rem; overflow:hidden;
}
.term .l{color:#9aa3bd; white-space:pre-wrap; word-break:break-word}
.term .l.a{color:var(--gold-soft)}
.term .l.b{color:var(--thread)}
.term .l.sys{color:#5d6480}
.term .l.stop{color:var(--stop)}
.term .l.ok{color:var(--ok)}
.term .caret::after{content:"_"; animation:parpadeo 1s steps(1) infinite}
@keyframes parpadeo{50%{opacity:0}}
.base{width:112%; height:.7rem; background:linear-gradient(180deg,#1a1e2e,#0d1018);
  border:1px solid var(--hair); border-top:0; border-radius:0 0 12px 12px}
.machine-note{font-family:var(--mono); font-size:.68rem; color:var(--muted); margin-top:.7rem; text-align:center}

/* ---- the story beside the stage ---- */
.telling{display:flex; flex-direction:column; gap:1rem}
.telling h2{font-size:clamp(1.3rem,2.6vw,1.75rem); letter-spacing:-.02em; text-wrap:balance}
.telling p{color:var(--text-2); font-size:.97rem}
.telling .why{
  border-left:2px solid var(--gold); background:var(--raised); padding:.85rem 1rem;
  border-radius:0 10px 10px 0; font-size:.9rem; color:var(--text-2);
}
.telling .why strong{color:var(--text)}
.controls{display:flex; gap:.6rem; flex-wrap:wrap; margin-top:.4rem}
.btn{font:inherit; font-weight:700; cursor:pointer; text-decoration:none; text-align:center;
  border-radius:999px; padding:.7rem 1.15rem; border:1px solid var(--hair); color:var(--text); background:transparent}
.btn.solid{background:var(--gold); color:#0b0b12; border-color:var(--gold)}
.btn[disabled]{opacity:.4; cursor:not-allowed}

.cierre{border-top:1px solid var(--hair-soft); margin-top:1.4rem; padding:2.4rem 0 3rem; text-align:center}
.cierre h2{font-size:clamp(1.4rem,3vw,2rem); letter-spacing:-.02em; text-wrap:balance}
.cierre p{color:var(--text-2); max-width:46ch; margin:.7rem auto 1.3rem}
.cierre .controls{justify-content:center}

footer{padding:1.2rem var(--edge); border-top:1px solid var(--hair-soft); font-size:.78rem; color:var(--muted)}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none !important; transition:none !important}
}

/* Narrow screen: the header goes to two rows rather than to smaller pieces. This sheet redefines
   .top, so the rule lives here -- each surface declares its own. */
@media (max-width: 30rem){
  .top{flex-wrap:wrap; row-gap:.55rem}
  .top .tabs{flex-wrap:wrap; gap:.5rem; justify-content:flex-end; width:100%}
}
