/* Mor Tech Solutions — glassmorphism on a deep tech ground.
 *
 * Mobile-first: every rule below is the 375px design; breakpoints only add.
 * No bundler, no CDN, no webfont link (system stack — fast, and compliant
 * with the estate's no-third-party-CDN rule). */

:root {
  --ink:      #05070d;
  --ink-2:    #0a0f1a;
  --haze:     rgba(255, 255, 255, 0.06);
  --haze-2:   rgba(255, 255, 255, 0.10);
  --edge:     rgba(255, 255, 255, 0.14);
  --edge-hot: rgba(120, 200, 255, 0.45);
  --text:     #e8eef7;
  --text-dim: #94a3b8;
  --accent:   #4cc4ff;
  --accent-2: #7c6cff;
  --accent-3: #35f0c0;
  --warn-bg:  rgba(255, 190, 60, 0.12);
  --warn-br:  rgba(255, 190, 60, 0.40);
  --warn-tx:  #ffcf6b;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 18px;
  --pad: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;          /* the page body must never scroll sideways */
  -webkit-font-smoothing: antialiased;
}

/* The ambient mesh. Fixed so it never contributes to scroll height. */
.mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58vmax 58vmax at 12% -8%,  rgba(76, 196, 255, .20), transparent 60%),
    radial-gradient(50vmax 50vmax at 92% 8%,   rgba(124, 108, 255, .20), transparent 62%),
    radial-gradient(60vmax 60vmax at 50% 108%, rgba(53, 240, 192, .13), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink) 100%);
}
.mesh::after {                  /* faint grid, keeps large flat areas alive */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 100%);
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- glass primitive ---------------------------------------------- */
.glass {
  background: linear-gradient(160deg, var(--haze-2), var(--haze));
  border: 1px solid var(--edge);
  border-radius: var(--r);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255,255,255,.10);
}

/* ---------- header ------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 13, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.head-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  font: 700 15px/1 var(--mono); letter-spacing: -.5px; color: #04121a;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 4px 16px rgba(76,196,255,.32);
}
.brand-name { font-weight: 650; letter-spacing: -.2px; font-size: 16px; }
.brand-name span { color: var(--accent); }

/* CSS-only nav: motion may fail, navigation may not. */
#nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn {
  display: grid; place-items: center; width: 44px; height: 44px;  /* 44px tap target */
  border-radius: 12px; border: 1px solid var(--edge);
  background: var(--haze); cursor: pointer;
}
.nav-btn span, .nav-btn span::before, .nav-btn span::after {
  content: ""; display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px; position: relative;
}
.nav-btn span::before { position: absolute; top: -6px; }
.nav-btn span::after  { position: absolute; top: 6px; }

.nav {
  display: none;
  position: absolute; left: var(--pad); right: var(--pad); top: calc(100% + 8px);
  flex-direction: column; padding: 8px; gap: 2px;
}
#nav-toggle:checked ~ .nav { display: flex; }
.nav a {
  color: var(--text); text-decoration: none; font-size: 15px;
  padding: 12px 14px; border-radius: 12px; min-height: 44px;
  display: flex; align-items: center;
}
.nav a:hover, .nav a:focus-visible { background: var(--haze-2); color: #fff; }

/* ---------- buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary {
  color: #04121a;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 8px 26px rgba(76,196,255,.30);
}
.btn-ghost { color: var(--text); border-color: var(--edge); background: var(--haze); }
.btn:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- sections ----------------------------------------------------- */
section { padding: 68px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
h1 { font-size: clamp(2.1rem, 8.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.5rem); font-weight: 680; }
h3 { font-size: 1.06rem; font-weight: 640; }
p  { margin: 0 0 14px; color: var(--text-dim); }
.lead { font-size: 1.03rem; color: #b9c6d8; }

.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-3) 45%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- hero --------------------------------------------------------- */
.hero { padding: 56px 0 44px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--edge); background: var(--haze);
  font: 500 12.5px/1 var(--sans); color: var(--text-dim);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3);
  box-shadow: 0 0 0 3px rgba(53,240,192,.16);
}
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 0; }
.hero-cta .btn { width: 100%; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; }
.stat { padding: 16px 12px; text-align: center; }
.stat b { display: block; font: 700 1.35rem/1.1 var(--sans); color: #fff; }
.stat small { font-size: 11.5px; color: var(--text-dim); line-height: 1.35; display: block; margin-top: 5px; }

/* ---------- cards -------------------------------------------------------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card { padding: 22px; position: relative; overflow: hidden; }
.card-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 14px; background: rgba(76,196,255,.12);
  border: 1px solid rgba(76,196,255,.24); color: var(--accent);
}
.card-ico svg { width: 21px; height: 21px; }
.card p { font-size: 14.5px; margin: 0; }

/* ---------- placeholder marker ------------------------------------------- */
/* Deliberately loud. Nothing here is real client copy, and it must be
   impossible to mistake it for shippable content. */
.ph {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--warn-tx); background: var(--warn-bg);
  border: 1px dashed var(--warn-br); border-radius: 6px;
  padding: 4px 8px; margin-bottom: 10px;
}
.ph-text { color: #8794a8; font-style: italic; }

.notice {
  border: 1px dashed var(--warn-br); background: var(--warn-bg);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 26px;
}
.notice p { color: #d9caa4; margin: 0; font-size: 14px; }
.notice strong { color: var(--warn-tx); }

/* ---------- steps -------------------------------------------------------- */
.steps { display: grid; gap: 12px; counter-reset: s; }
.step { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font: 700 13px/1 var(--mono); color: var(--accent);
  border: 1px solid rgba(76,196,255,.3); background: rgba(76,196,255,.10);
  border-radius: 9px; padding: 8px 9px; flex: none;
}
.step h3 { margin-bottom: 5px; }
.step p { font-size: 14px; margin: 0; }

/* ---------- contact ------------------------------------------------------ */
.contact-grid { display: grid; gap: 14px; }
.contact-card { padding: 22px; }
.contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .k {
  font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); min-width: 72px; flex: none;
}
.contact-row .v { font-size: 14.5px; color: var(--text); }

/* ---------- footer ------------------------------------------------------- */
.site-foot {
  border-top: 1px solid rgba(255,255,255,.08); padding: 30px 0 40px;
  margin-top: 20px; font-size: 13px; color: var(--text-dim);
}
.foot-row { display: flex; flex-direction: column; gap: 14px; }
.legal { font-size: 12px; color: #6b7a8f; }

/* ---------- motion staging ---------------------------------------------- *
 * Hidden pre-animation states live under html.js ONLY, and an inline head
 * script removes that class unless the driver checks in within 2.5s. If the
 * library 404s, JS throws, or motion is unavailable, everything renders.   */
html.js [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- breakpoints (additive only) ---------------------------------- */
@media (min-width: 640px) {
  :root { --pad: 28px; }
  .hero-cta { flex-direction: row; }
  .hero-cta .btn { width: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  section { padding: 92px 0; }
  .hero { padding: 92px 0 76px; }
  .nav-btn { display: none; }
  .nav {
    display: flex !important; flex-direction: row; position: static;
    padding: 0; gap: 4px; background: none; border: 0; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav a { padding: 9px 14px; font-size: 14.5px; min-height: 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { max-width: 760px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
