/* manticloud.ai marketing page. Dark is the v2 mockup's palette; light follows the sign-in mockup. */
/* Light on bare :root. The top bar and footer carry the dark set in both themes: the marks are cream. */
:root {
  --night: #FBF7EE;      /* page ground */
  --chrome: #071A2C;     /* brand navy */
  --deck: #FFFDF8;       /* app panels */
  --deck-2: #F3ECDC;     /* raised rows */
  --edge: #E3D8C1;       /* borders */
  --cream: #0B1F3B;      /* primary text */
  --sand: #33465F;       /* secondary text */
  --dust: #5F6E82;       /* tertiary */
  --sky: #1E4D7A;        /* links, brand */
  --mint: #2C7A50;       /* good */
  --note: #FCEFD0;       /* notes ground */
  --side: #F7F2E7;       /* demo sidebars */
  --frame: #EFE6D3;      /* demo window bars */
  --glow: #F3E3BF;
  --accent: #C4441A;     /* filled buttons */
  --accent-hover: #A93A15;
  --amber-ink: #8A5300;  /* amber as text */
  --focus: #1E4D7A;
  --shade: rgba(11, 31, 59, .14);
  --bar-alpha: 100%;     /* the top bar is solid navy on a light page */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --night: #06121F; --chrome: #071A2C; --deck: #0C2239; --deck-2: #10294A; --edge: #1D3A5E;
    --cream: #F6EBD0; --sand: #C9BFA8; --dust: #8FA3BD; --sky: #8DB8DC; --mint: #7FD1A4; --note: #3A2F12;
    --side: #0A1D33; --frame: #071A2C; --glow: #143457;
    --accent: #F05A28; --accent-hover: #D94C1D; --amber-ink: #F6A623; --focus: #F6A623;
    --shade: rgba(0, 0, 0, .45); --bar-alpha: 88%;
    color-scheme: dark;
  }
}
:root[data-theme="dark"], .bar, footer {
  --night: #06121F; --chrome: #071A2C; --deck: #0C2239; --deck-2: #10294A; --edge: #1D3A5E;
  --cream: #F6EBD0; --sand: #C9BFA8; --dust: #8FA3BD; --sky: #8DB8DC; --mint: #7FD1A4; --note: #3A2F12;
  --side: #0A1D33; --frame: #071A2C; --glow: #143457;
  --accent: #F05A28; --accent-hover: #D94C1D; --amber-ink: #F6A623; --focus: #F6A623;
  --shade: rgba(0, 0, 0, .45);
}
:root[data-theme="dark"] { color-scheme: dark; --bar-alpha: 88%; }
/* Same in both themes: brand hues, avatar and file-type tones, the paper card, the image placeholders. */
:root {
  --amber: #F6A623;
  --ember: #F05A28;
  --rust: #C83B22;
  --white: #FFFFFF;
  --tone-sky: #8DB8DC; --tone-mint: #7FD1A4; --tone-gold: #F2C46B; --tone-rose: #F2A39D;
  --on-tone: #06121F;
  --ink: #0B1F3B;
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fira Mono", ui-monospace, Menlo, monospace;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--font); font-size: 16px; line-height: 1.55; }
a { color: var(--sky); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.in { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .in { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--night) var(--bar-alpha), transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--edge); }
.bar .in { display: flex; align-items: center; gap: 20px; padding-block: 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--cream); }
.logo img { height: 22px; width: auto; display: block; align-self: center; }
.logo b { font-family: var(--mono); font-weight: 500; color: var(--amber-ink); font-size: 17px; margin-left: 4px; }
.bar nav { display: flex; gap: 20px; font-size: 14.5px; margin-left: 8px; flex-wrap: wrap; }
.bar nav a { color: var(--sand); text-decoration: none; }
.bar nav a:hover { color: var(--cream); }
.bar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 14.5px; text-decoration: none; border: 1px solid transparent; line-height: 1.2; }
.btn-hot { background: var(--accent); color: var(--white); }
.btn-hot:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--edge); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--dust); }
@media (max-width: 860px) { .bar nav { display: none; } }
@media (max-width: 440px) { .bar .right .btn { padding: 8px 11px; font-size: 13.5px; } .bar .in { gap: 10px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 80px 96px; }
.sun { position: absolute; right: -120px; top: 40px; width: 560px; height: 560px; border-radius: 50%; pointer-events: none; opacity: .22;
  background: repeating-linear-gradient(180deg, var(--amber) 0 26px, transparent 26px 34px), linear-gradient(180deg, var(--amber), var(--ember) 55%, var(--rust));
  -webkit-mask: linear-gradient(var(--ink) 60%, transparent); mask: linear-gradient(var(--ink) 60%, transparent); }
.sun::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(180deg, transparent 0 30px, var(--night) 30px 36px); }
/* Stacked: the headline gets the page's width to itself, and the example sits below it. */
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.hero-grid > :first-child { max-width: 820px; }
.hero-grid > .app { max-width: 1080px; width: 100%; justify-self: center; }
@media (max-width: 700px) { .hero-grid { gap: 36px; } }
h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; font-weight: 700; margin: 0; letter-spacing: -.005em; text-wrap: balance; max-width: 18ch; }
h1 span { color: var(--ember); }
.lede { font-size: 19px; line-height: 1.55; color: var(--sand); margin: 24px 0 0; max-width: 58ch; }
.lede code { font-family: var(--mono); font-size: 16px; color: var(--cream); }
.cta-row { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }

/* The app window */
/* The hero's screenshots of the real app, one per theme, following the same switch as the tokens. */
.app-shot { display: block; width: 100%; height: auto; }
.for-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .for-light { display: none; } :root:not([data-theme="light"]) .for-dark { display: block; } }
:root[data-theme="dark"] .for-light { display: none; }
:root[data-theme="dark"] .for-dark { display: block; }
.app { background: var(--deck); border: 1px solid var(--edge); border-radius: 14px; box-shadow: 0 30px 80px var(--shade); overflow: hidden; display: flex; flex-direction: column; min-width: 0; margin: 0; }
.app-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--frame); border-bottom: 1px solid var(--edge); font-size: 13px; color: var(--dust); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--edge); display: block; }
.url { font-family: var(--mono); background: var(--night); border-radius: 6px; padding: 3px 10px; color: var(--sand); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url b { color: var(--cream); font-weight: 500; }
.demo-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.ic { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pane { display: flex; flex-direction: column; min-width: 0; }
.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; font-size: 13px; color: var(--dust); border-bottom: 1px solid var(--edge); flex-wrap: wrap; }
.thread-head b { color: var(--cream); font-weight: 600; font-size: 14.5px; }
.log { padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.av { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--on-tone); background: var(--tone-sky); }
.av.ai { background: linear-gradient(180deg, var(--amber), var(--ember) 60%, var(--rust)); color: var(--white); }
.av.dw { background: var(--tone-mint); } .av.lo { background: var(--tone-gold); } .av.pn { background: var(--tone-rose); } .av.jr { background: var(--tone-sky); }
.who { font-size: 13px; color: var(--dust); margin-bottom: 3px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.who b { color: var(--cream); font-weight: 600; font-size: 14px; }
.text { font-size: 15px; line-height: 1.6; color: var(--cream); overflow-wrap: anywhere; }
.text p { margin: 0 0 8px; }
.text p:last-child { margin: 0; }

/* Sections */
section { padding-block: 96px; border-top: 1px solid var(--edge); }
@media (max-width: 700px) { section { padding-block: 64px; } }
/* Heading left, paragraph right, in the same two columns as .mem, so right-hand text shares one edge. */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) min(52ch, 45%); gap: 16px 24px; align-items: start; margin-bottom: 36px; font-size: 17px; }
@media (max-width: 900px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }
h2 { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.12; margin: 0; font-weight: 700; max-width: 24ch; text-wrap: balance; }
h2 span { color: var(--amber-ink); }
.sec-head p { margin: 0; color: var(--sand); max-width: 52ch; font-size: 17px; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); border-radius: 999px; padding: 1px 8px; vertical-align: middle; white-space: nowrap; }
.small { font-size: 13.5px; color: var(--dust); margin: 18px 0 0; }

/* Documents demo */
.loops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .loops { grid-template-columns: minmax(0, 1fr); } }
.loop { background: var(--deck); border: 1px solid var(--edge); border-radius: 14px; overflow: hidden; min-width: 0; margin: 0; }
.stage { position: relative; height: 290px; background: radial-gradient(120% 90% at 80% 0%, var(--glow) 0%, var(--side) 60%); overflow: hidden; }
.loop figcaption { padding: 16px 18px 18px; border-top: 1px solid var(--edge); }
.loop figcaption b { display: block; font-size: 17px; margin-bottom: 4px; }
.loop figcaption span { color: var(--sand); font-size: 14.5px; }
.loopnum { position: absolute; top: 10px; left: 12px; font-family: var(--mono); font-size: 11px; color: var(--dust); letter-spacing: .1em; }
/* The Sources rows and citation chip, drawn as the app draws them. */
.sources { position: absolute; left: 50%; top: 34px; transform: translateX(-50%); width: min(88%, 420px); display: grid; gap: 10px; }
.srow { background: var(--deck); border: 1px solid var(--edge); border-radius: 10px; padding: 10px 13px; display: grid; gap: 4px; min-width: 0; }
.srow-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.s-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.s-line b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-count { font-size: 12px; color: var(--dust); flex: none; }
.s-path { font-family: var(--mono); font-size: 11.5px; color: var(--dust); }
.s-status, .status span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--sand); }
.s-acts { display: flex; gap: 6px; margin-top: 6px; }
.mini { font-size: 11.5px; border: 1px solid var(--edge); border-radius: 6px; padding: 2px 8px; color: var(--sand); background: var(--deck-2); }
.badge { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 1px 7px; border: 1px solid color-mix(in srgb, var(--sky) 35%, transparent); color: var(--sky); background: color-mix(in srgb, var(--sky) 10%, transparent); white-space: nowrap; }
.badge.team { color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex: none; }
.dot.busy { background: var(--amber); }
.status { display: grid; margin-top: 2px; }
.status span { grid-area: 1 / 1; }
.st-read { visibility: hidden; }
.track { height: 4px; background: color-mix(in srgb, var(--sky) 12%, transparent); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--amber), var(--ember)); }
.qa { position: absolute; inset: 38px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { font-size: 13.5px; line-height: 1.5; border-radius: 10px; padding: 8px 11px; max-width: 88%; }
.bubble.q { align-self: flex-end; background: var(--deck-2); border: 1px solid var(--edge); }
.bubble.a { align-self: flex-start; background: color-mix(in srgb, var(--amber) 8%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 28%, transparent); }
.chip-open { align-self: flex-start; max-width: 88%; background: var(--deck); border: 1px solid var(--edge); border-radius: 8px; padding: 7px 11px 9px; display: grid; gap: 4px; }
.chip { display: inline-flex; gap: 6px; font-size: 12.5px; color: var(--cream); }
.chip .n { font-family: var(--mono); color: var(--sky); }
.quote { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--sand); border-left: 2px solid var(--amber); padding-left: 8px; }
.quote-where { margin: 0; font-size: 11.5px; color: var(--dust); }

/* A gentle loop. The resting frame (no animation) is the finished state. */
@media (prefers-reduced-motion: no-preference) {
  .fill { animation: grow 14s infinite; }
  .st-read { animation: early 14s infinite; } .st-ready { animation: late 14s infinite; }
  .q1 { animation: in40 14s infinite; } .a1 { animation: in52 14s infinite; } .p1 { animation: in62 14s infinite; }
  /* Start near the end of the loop, so the first frame shows the finished state. */
  .fill, .st-read, .st-ready, .q1, .a1, .p1 { animation-delay: -12s; }
}
@keyframes in40 { 0%, 38% { opacity: 0; transform: translateY(8px); } 42%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes in52 { 0%, 50% { opacity: 0; transform: translateY(8px); } 54%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes in62 { 0%, 60% { opacity: 0; transform: translateY(16px) scale(.96); } 65%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes grow { 0%, 4% { width: 0; } 30%, 100% { width: 100%; } }
@keyframes early { 0%, 31% { visibility: visible; } 32%, 100% { visibility: hidden; } }
@keyframes late { 0%, 31% { visibility: hidden; } 32%, 100% { visibility: visible; } }

/* Threads and team memory */
.mem { display: grid; grid-template-columns: minmax(0, 1fr) min(52ch, 45%); gap: 24px; align-items: start; font-size: 17px; }
@media (max-width: 900px) { .mem { grid-template-columns: minmax(0, 1fr); } }
.mem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mem-list li { background: var(--deck); border: 1px solid var(--edge); border-left: 3px solid var(--mint); border-radius: 10px; padding: 12px 16px; display: grid; gap: 6px; }
.mem-list .fact { font-size: 15.5px; color: var(--cream); }
.mem-list .by { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--dust); }
.mem-list .by .av { width: 20px; height: 20px; border-radius: 6px; font-size: 9px; }
.mem-list .by b { color: var(--sand); font-weight: 500; }
.mem-side p { margin: 0 0 14px; color: var(--sand); font-size: 16px; }

/* Images */
.imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
@media (max-width: 460px) { .imgs { grid-template-columns: minmax(0, 1fr); } }
.shot { margin: 0; border: 1px solid var(--edge); border-radius: 10px; overflow: hidden; background: var(--deck-2); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.shot figcaption { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 7px 10px; font-size: 12px; color: var(--dust); flex-wrap: wrap; }
.shot figcaption b { color: var(--sand); font-weight: 500; font-family: var(--mono); font-size: 11.5px; }

/* Where it runs */
.runs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .runs { grid-template-columns: minmax(0, 1fr); } }
.runs > div { background: var(--deck); border: 1px solid var(--edge); border-radius: 14px; padding: 22px; border-top: 3px solid var(--amber); min-width: 0; }
.runs > div.e1 { border-top-color: var(--ember); } .runs > div.e2 { border-top-color: var(--mint); }
.runs h3 { margin: 0 0 8px; font-size: 19px; }
.runs p { margin: 0; color: var(--sand); font-size: 15px; }

/* Coming next */
.next { background: linear-gradient(180deg, color-mix(in srgb, var(--amber) 5%, transparent), transparent 70%); }
.next .label { display: inline-block; margin-bottom: 14px; }
.next .sec-head { margin-bottom: 0; }

/* CTA */
.cta { text-align: center; }
.cta h2 { margin: 0 auto; }
.cta p { color: var(--sand); margin: 16px auto 0; max-width: 54ch; font-size: 17px; }
.cta .cta-row { justify-content: center; }

/* Footer */
.stripe { height: 4px; background: linear-gradient(90deg, var(--amber) 0 34%, var(--ember) 34% 67%, var(--rust) 67%); }
footer { background: var(--night); }
.foot { padding-block: 32px; font-size: 14px; color: var(--dust); }
.foot .in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot img { height: 44px; width: auto; display: block; }
.foot a { color: var(--sand); text-decoration: none; }
.foot a:hover { color: var(--cream); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* 404: the footer sits at the foot of a short page */
.nf-page { min-height: 100vh; display: flex; flex-direction: column; }
.nf-page main { flex: 1; }
