/* ============================================================================
   Maobyte Innovations — site design system
   Palette derived from the logo itself: the ribbon samples at #206068 (shadow)
   through #3f97a3 (mid) to #8fd4e0 (highlight). Brand ink #082227.
   ========================================================================== */
:root {
  --ink:        #061a1e;
  --ink-2:      #0a262c;
  --ink-3:      #0e3238;
  --surface:    #0b2b31;
  --surface-2:  #10383f;
  --line:       #1c4b53;
  --line-soft:  #143b42;

  --brand:      #3f97a3;   /* mid ribbon */
  --brand-deep: #206068;   /* ribbon shadow */
  --brand-lite: #8fd4e0;   /* ribbon highlight */
  --brand-glow: rgba(63,151,163,.35);

  --text:       #e6f1f1;
  --text-2:     #a9c4c6;
  --text-3:     #7b999c;

  --ok:         #4fd18b;
  --warn:       #e8b84b;
  --dev:        #8fa8ab;
  --alert:      #ef7a5a;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-lite); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.018em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.1em; color: var(--text-2); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.small { font-size: 14.5px; }
.center { text-align: center; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6,26,30,.82); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.logo .lt { font-family: var(--serif); font-size: 20px; color: var(--text); letter-spacing: -.02em; }
.logo .lt b { font-weight: 500; color: var(--brand-lite); }
nav { display: flex; gap: 24px; font-size: 14.5px; align-items: center; }
nav a { color: var(--text-2); }
nav a:hover { color: var(--text); text-decoration: none; }
nav a.cta {
  background: var(--brand); color: #04181b; padding: 9px 16px; border-radius: 999px;
  font-weight: 600;
}
nav a.cta:hover { background: var(--brand-lite); }
@media (max-width: 880px) { nav .hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
/* Phones, slow connections and reduced-motion get no WebGL at all (three.js is 255 KB). The
   gradient below carries the hero instead, so the page still looks deliberate and loads fast. */
.hero.no-3d { background:
  radial-gradient(120% 120% at 82% 18%, rgba(63,151,163,.28) 0%, rgba(63,151,163,.10) 34%, rgba(6,26,30,0) 62%),
  radial-gradient(90% 80% at 96% 72%, rgba(239,122,90,.13) 0%, rgba(6,26,30,0) 55%),
  linear-gradient(160deg, #071e23 0%, #061a1e 58%, #082227 100%); }
.hero.no-3d #hero-canvas { display: none; }
.hero.no-3d::after { background: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 8% 40%, rgba(6,26,30,.97) 0%, rgba(6,26,30,.9) 34%, rgba(6,26,30,.35) 62%, rgba(6,26,30,0) 82%);
}
.hero-inner { position: relative; z-index: 2; padding: 104px 0 92px; max-width: 46rem; }
.hero h1 { max-width: 18ch; }
.hero h1 em { font-style: italic; color: var(--brand-lite); }
.hero .lede { font-size: clamp(1.05rem, 1.7vw, 1.24rem); max-width: 56ch; }
.chiprow { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 26px; }
.cta-row { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; background: var(--brand); color: #04181b; padding: 13px 22px;
  border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--brand-lite); transform: translateY(-1px); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand-lite); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(63,151,163,.12); border-color: var(--brand); }
.scroll-hint { position: absolute; right: 26px; bottom: 20px; z-index: 3; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text-2); background: rgba(255,255,255,.02);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dev); }
.chip.live .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(79,209,139,.7); animation: ping 2.4s infinite; }
.chip.live { color: var(--ok); border-color: rgba(79,209,139,.35); }
.chip.dev .dot { background: var(--warn); }
.chip.dev { color: var(--warn); border-color: rgba(232,184,75,.3); }
.chip.oss .dot { background: var(--brand-lite); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(79,209,139,.55);} 70% { box-shadow: 0 0 0 7px rgba(79,209,139,0);} 100% { box-shadow: 0 0 0 0 rgba(79,209,139,0);} }

/* ---------- sections ---------- */
section { padding: 86px 0; border-bottom: 1px solid var(--line-soft); }
section.tight { padding: 62px 0; }
.sec-head { max-width: 62ch; margin-bottom: 42px; }
.sec-head p { font-size: 1.05rem; margin: 0; }
.eyebrow { display: block; margin-bottom: 12px; }

/* ---------- product grid ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  position: relative; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface) 0%, var(--ink-2) 100%);
  padding: 26px 24px 22px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--brand-deep); box-shadow: 0 18px 40px -22px rgba(0,0,0,.9); }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand), var(--brand-lite));
  opacity: .75;
}
.card h3 { margin: 10px 0 8px; font-size: 1.42rem; }
.card .lede-sm { color: var(--text-2); font-size: 15.5px; margin: 0 0 18px; flex: 1; }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line-soft); padding-top: 14px; }
.card .price { font-family: var(--mono); font-size: 13px; color: var(--brand-lite); }
.card .go { font-size: 13.5px; color: var(--brand-lite); }
.card:hover .go { text-decoration: underline; }

/* readiness meter — OUR rubric, labelled as such, never presented as a customer rating */
.meter { display: flex; align-items: center; gap: 9px; }
.meter .bars { display: flex; gap: 3px; }
.meter .bars i { width: 12px; height: 5px; border-radius: 2px; background: var(--line); display: block; }
.meter .bars i.on { background: var(--brand); }
.meter .lbl { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); letter-spacing: .05em; }

/* ---------- at a glance panel ---------- */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.glance > div { background: var(--ink-2); padding: 20px 22px; }
.glance dt { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px; }
.glance dd { margin: 0; font-size: 16px; color: var(--text); }
.glance dd .tiny { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 18px; align-items: start; }
.tier { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px 22px; background: var(--ink-2); }
.tier.feature { border-color: var(--brand); background: linear-gradient(170deg, var(--surface-2), var(--ink-2)); }
.tier h3 { font-size: 1.16rem; margin: 0 0 4px; }
.tier .amt { font-family: var(--mono); font-size: 20px; color: var(--brand-lite); margin: 8px 0 14px; }
.tier ul { margin: 0; padding-left: 18px; }
.tier li { color: var(--text-2); font-size: 15px; margin-bottom: 7px; }

/* ---------- prose / two-col ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } }
.prose p { color: var(--text-2); }
.prose h3 { margin-top: 1.4em; }
.facts { display: flex; flex-direction: column; gap: 20px; }
.fact { border-left: 2px solid var(--brand); padding-left: 16px; }
.fact b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--brand-lite); font-weight: 500; line-height: 1; }
.fact span { color: var(--text-2); font-size: 14.5px; }

/* ---------- code / terminal ---------- */
pre.code {
  background: #04171a; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px;
  line-height: 1.6; color: #cfe6e6; margin: 0 0 16px;
}
pre.code .k { color: var(--brand-lite); }
pre.code .s { color: #8fe0b0; }
pre.code .c { color: var(--text-3); }
.tabbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { font-family: var(--mono); font-size: 12px; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); color: var(--text-2); background: transparent; }
.tab[aria-selected="true"] { background: var(--brand); color: #04181b; border-color: var(--brand); font-weight: 600; }
.tabpanel[hidden] { display: none; }

/* ---------- live status widget ---------- */
.livebox { border: 1px solid var(--line-soft); border-radius: var(--radius); background: #04171a; padding: 18px; }
.livebox .row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14.5px; }
.livebox .row:last-child { border-bottom: none; }
.livebox .row span:first-child { color: var(--text-3); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.livebox .val { color: var(--text); font-family: var(--mono); font-size: 13.5px; }
.livebox .val.ok { color: var(--ok); }
.livebox .val.bad { color: var(--alert); }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; padding: 19px 0; font-family: var(--serif); font-size: 1.2rem;
  list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 20px; }

/* ---------- related strip ---------- */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 16px; }
.related a { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 18px 18px 16px;
  background: var(--ink-2); display: block; }
.related a:hover { border-color: var(--brand); text-decoration: none; }
.related h4 { margin: 0 0 5px; font-size: 1.06rem; color: var(--text); }
.related p { margin: 0; font-size: 13.5px; color: var(--text-3); }

/* ---------- capability list (feature rows) ---------- */
.caps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.caps li { border-bottom: 1px solid var(--line-soft); padding: 24px 0; display: grid;
  grid-template-columns: 230px 1fr; gap: 30px; align-items: baseline; }
.caps li h3 { margin: 0; font-size: 1.24rem; }
.caps li p { margin: 0; color: var(--text-2); max-width: 66ch; }
@media (max-width: 760px) { .caps li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- contact form ---------- */
.cform { margin: 0; max-width: 40rem; }
.cform .frow { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.cform label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-3); }
.cform .opt { text-transform: none; letter-spacing: 0; color: var(--line); }
.cform input, .cform textarea {
  background: #04171a; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--sans); font-size: 16px; padding: 12px 14px; width: 100%;
}
.cform textarea { resize: vertical; line-height: 1.55; }
.cform input:focus, .cform textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow);
}
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .note { color: var(--text-3); font-size: 13px; margin: 14px 0 0; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--alert); border-radius: var(--radius-sm);
  background: var(--ink-2); padding: 14px 16px; margin-bottom: 22px; font-size: 15px; }

/* ---------- footer ---------- */
footer { padding: 54px 0 34px; color: var(--text-3); font-size: 13.5px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; margin-bottom: 34px; }
@media (max-width: 820px) { footer .cols { grid-template-columns: 1fr; gap: 22px; } }
footer img.logo-img { height: 40px; margin-bottom: 14px; }
footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; }
footer a { color: var(--text-2); display: block; margin-bottom: 7px; font-size: 13.5px; }
footer .legal { border-top: 1px solid var(--line-soft); padding-top: 20px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .chip.live .dot { animation: none; }
}