/* Plexward landing: operations-room editorial.
   Instrument Serif display · Instrument Sans body · IBM Plex Mono telemetry. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #07090f;
  --panel: #0c101b;
  --line: #1a2132;
  --txt: #dfe5f1;
  --dim: #8b94a8;
  --faint: #5a6478;
  --acc: #a5b4fc;
  --acc2: #7c7bf2;
  --ok: #34d399;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--txt);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--acc2); color: #fff; }

/* atmosphere */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow { position: fixed; border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none; }
.glow-a { width: 900px; height: 600px; top: -260px; left: 50%; transform: translateX(-42%); background: rgba(124,123,242,.13); }
.glow-b { width: 700px; height: 500px; top: 60vh; right: -280px; background: rgba(52,211,153,.05); }

/* header */
.top {
  position: relative; z-index: 5; display: flex; align-items: center;
  justify-content: space-between; max-width: 1180px; margin: 0 auto;
  padding: 26px 28px;
}
.wordmark { font-family: var(--mono); font-size: 17px; letter-spacing: .06em; color: var(--txt); }
.wordmark .glyph {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; background: linear-gradient(145deg, #262c55, #131627);
  border: 1px solid #2d3560; color: var(--acc); margin-right: 8px; vertical-align: -8px;
}
.wordmark.small { font-size: 14px; }
.top nav { display: flex; gap: 26px; align-items: center; }
.top nav a { color: var(--dim); text-decoration: none; font-size: 14.5px; transition: color .18s; }
.top nav a:hover { color: var(--txt); }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 11px 22px; border-radius: 10px; transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-solid {
  background: linear-gradient(140deg, #8b8bf5, #6d6ce8); color: #fff;
  box-shadow: 0 6px 24px rgba(124,123,242,.28);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(124,123,242,.4); }
.btn-solid.big { font-family: var(--mono); font-size: 17px; padding: 15px 30px; }
.btn-ghost { border: 1px solid var(--line); color: var(--txt) !important; background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: #333e5e; background: rgba(255,255,255,.05); }

main { position: relative; z-index: 2; }

/* hero */
.hero { max-width: 940px; margin: 0 auto; padding: 84px 28px 40px; text-align: center; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .22em;
  color: var(--acc); margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04; letter-spacing: -.01em; margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--acc); }
.lede { max-width: 640px; margin: 0 auto 34px; color: var(--dim); font-size: 18.5px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.bootlog {
  margin-top: 46px; font-family: var(--mono); font-size: 13px; color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px; display: inline-block;
  padding: 9px 22px; background: rgba(12,16,27,.7);
}
.bootlog .ok { color: var(--ok); }
.bootlog .dim { color: var(--faint); }

/* screenshot frames */
.shot-hero { max-width: 1180px; margin: 30px auto 0; padding: 0 28px; }
.frame {
  border: 1px solid #222b44; border-radius: 14px; overflow: hidden;
  background: #0a0d16;
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(124,123,242,.06), 0 -1px 40px rgba(124,123,242,.07) inset;
}
.frame img, .frame video { display: block; width: 100%; height: auto; }

/* tour + floor */
.tour, .floor { max-width: 1180px; margin: 130px auto 0; padding: 0 28px; }
.tour-sub { color: var(--dim); max-width: 560px; margin: -22px 0 34px; }

/* approval gate */
.gate { max-width: 1180px; margin: 130px auto 0; padding: 0 28px; }
.gate-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 46px; align-items: start; }
@media (max-width: 920px) { .gate-grid { grid-template-columns: 1fr; } }
.gate-copy p { color: var(--dim); margin-bottom: 16px; }
.gate-copy strong { color: var(--txt); }
.phone {
  margin-top: 26px; width: min(360px, 100%); border: 1px solid #232c46;
  border-radius: 22px; background: #0a0e18; overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.5);
}
.phone-top {
  font-family: var(--mono); font-size: 12.5px; color: var(--dim);
  padding: 12px 16px; border-bottom: 1px solid #1a2138; background: #0d1220;
}
.pt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); margin-right: 6px; }
.chat { padding: 16px 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45;
  background: #131a2c; color: var(--txt); max-width: 92%;
  opacity: 0; transform: translateY(10px);
}
.msg-head { font-family: var(--mono); font-size: 10.5px; color: var(--acc);
  letter-spacing: .06em; margin-bottom: 7px; }
.msg p { color: var(--dim); margin: 0 0 10px; }
.msg-btns { display: flex; gap: 8px; }
.msg-btns span {
  font-size: 12.5px; padding: 5px 12px; border-radius: 8px;
  border: 1px solid #2b3556; color: var(--acc);
}
.msg.me { align-self: flex-end; background: linear-gradient(140deg, #5d5cd6, #4b4ac2);
  color: #fff; padding: 9px 16px; }
.msg.sys { align-self: center; background: none; border: 1px dashed #24314f;
  color: var(--ok); font-family: var(--mono); font-size: 12px; }
/* staged 12s conversation loop, all keyframe-synchronized */
@keyframes m1cyc { 0%, 6% { opacity: 0; transform: translateY(10px); }
  11%, 100% { opacity: 1; transform: none; } }
@keyframes m2cyc { 0%, 38% { opacity: 0; transform: translateY(10px); }
  43%, 100% { opacity: 1; transform: none; } }
@keyframes m3cyc { 0%, 48% { opacity: 0; transform: translateY(10px); }
  53%, 100% { opacity: 1; transform: none; } }
@keyframes chatcycle { 0%, 96% { opacity: 1; } 100% { opacity: 0; } }
.chat { animation: chatcycle 12s linear infinite; }
.phone .m1 { animation: m1cyc 12s linear infinite; }
.phone .m2 { animation: m2cyc 12s linear infinite; }
.phone .m3 { animation: m3cyc 12s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .chat, .phone .m1, .phone .m2, .phone .m3 { animation: none; opacity: 1; transform: none; }
}
.framebar {
  display: flex; align-items: center; gap: 7px; padding: 11px 16px;
  background: #0e1220; border-bottom: 1px solid #1b2338;
}
.framebar span { width: 10px; height: 10px; border-radius: 50%; background: #232c46; }
.framebar em {
  font-family: var(--mono); font-style: normal; font-size: 12px;
  color: var(--faint); margin-left: 10px; letter-spacing: .05em;
}
.cap { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 16px; }

/* stations */
.stations { max-width: 1180px; margin: 130px auto 0; padding: 0 28px; }
h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.6vw, 48px);
  letter-spacing: -.01em; margin-bottom: 46px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 24px;
  background: linear-gradient(170deg, rgba(20,25,42,.6), rgba(10,13,22,.6));
  transition: transform .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px); border-color: #2c3554; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.card .k { font-family: var(--mono); font-size: 12px; color: var(--acc); margin-right: 9px; }
.card p { color: var(--dim); font-size: 15.5px; }

/* duo */
.duo { max-width: 1180px; margin: 120px auto 0; padding: 0 28px; display: flex; flex-direction: column; gap: 90px; }
.duo-item { display: grid; grid-template-columns: 7fr 5fr; gap: 46px; align-items: center; }
.duo-item.flip { grid-template-columns: 5fr 7fr; }
.duo-item.flip figure { order: 2; }
.duo-copy h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-bottom: 14px; }
.duo-copy p { color: var(--dim); }
@media (max-width: 880px) {
  .duo-item, .duo-item.flip { grid-template-columns: 1fr; }
  .duo-item.flip figure { order: 0; }
}

/* how */
.how { max-width: 1180px; margin: 130px auto 0; padding: 0 28px; }
.how-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
@media (max-width: 880px) { .how-cols { grid-template-columns: 1fr; } }
.term { border: 1px solid #222b44; border-radius: 14px; overflow: hidden; background: #05070c; }
.term pre { padding: 22px 24px; overflow-x: auto; }
.term code { font-family: var(--mono); font-size: 14.5px; line-height: 2.05; color: #c8d0e2; }
.term .p { color: var(--acc); }
.term .c { color: var(--ok); }
.facts { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.facts li { color: var(--dim); font-size: 15.5px; padding-left: 22px; position: relative; }
.facts li::before { content: "▸"; position: absolute; left: 0; color: var(--acc); }
.facts strong { color: var(--txt); font-weight: 600; }

/* rails */
.rails { max-width: 1180px; margin: 130px auto 0; padding: 0 28px; }
.rails-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.rail { border-top: 1px solid var(--line); padding-top: 18px; }
.rail .k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--ok); }
.rail p { color: var(--dim); font-size: 15px; margin-top: 10px; }

/* closing */
.closing { max-width: 760px; margin: 150px auto 0; padding: 0 28px 20px; text-align: center; }
.closing p { color: var(--dim); margin-bottom: 34px; }
.closing a { color: var(--acc); }

footer {
  max-width: 1180px; margin: 110px auto 0; padding: 30px 28px 44px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
footer p { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
footer a { color: var(--dim); }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; }
.d3 { animation-delay: .28s; } .d4 { animation-delay: .42s; }
.reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-on-scroll.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-on-scroll { animation: none; opacity: 1; transform: none; transition: none; }
}
