/* Primo Technologies — shared styles
   Theme: "always-on / uptime"
   ------------------------------------------------- */

:root {
  --ink:        #121a2f;   /* deep navy base */
  --ink-soft:   #1d2840;   /* raised surfaces on dark */
  --paper:      #f6f5f0;   /* warm off-white */
  --paper-2:    #ffffff;
  --primary:    #3a47e0;   /* ultramarine */
  --primary-2:  #5b67f0;
  --signal:     #1bbf73;   /* operational green */
  --slate:      #4a5468;   /* body text */
  --slate-soft: #717b90;
  --line:       #e3e1d8;   /* hairline on paper */
  --line-dark:  #2c3550;

  --radius:     14px;
  --radius-lg:  22px;
  --maxw:       1180px;
  --ease:       cubic-bezier(.22,.61,.36,1);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; color: var(--slate); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(27,191,115,.5);
  animation: pulse 2.2s infinite var(--ease);
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(27,191,115,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(27,191,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(27,191,115,0); }
}

.lead { font-size: 1.15rem; color: var(--slate); max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(58,71,224,.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(58,71,224,.7); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background:#fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,245,240,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 30px; height: 30px;
  flex: none;
}
.brand small {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .14em;
  color: var(--slate-soft);
  display: block;
  margin-top: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--slate);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- sections ---------- */
section { padding-block: clamp(64px, 9vw, 110px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }

.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 96px) clamp(48px, 7vw, 84px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.stat .lbl {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-soft);
}

/* status console — hero signature */
.console {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: #cdd5e6;
  box-shadow: 0 30px 60px -28px rgba(18,26,47,.6);
  border: 1px solid var(--line-dark);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.console-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #3a4660; }
.dot.r { background:#ff5f57; } .dot.y { background:#febc2e; } .dot.g { background:#28c840; }
.console-bar .title {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--slate-soft);
  margin-left: 6px;
}
.console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .82rem;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.console-row:last-child { border-bottom: 0; }
.console-row .svc { color: #e6ebf5; }
.console-row .ok {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--signal);
  font-size: .76rem;
}
.console-row .ok::before {
  content:""; width:7px; height:7px; border-radius:50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  animation: pulse 2.4s infinite;
}
.console-row .ms { color: var(--slate-soft); }

/* ---------- service cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -28px rgba(18,26,47,.4);
  border-color: #d6d3c7;
}
.card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(58,71,224,.08);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .96rem; margin: 0; }
.card .tag {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-soft);
  display: block;
  margin-bottom: 14px;
}

/* ---------- alternating feature rows ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature.flip .feature-media { order: -1; }
.feature + .feature { margin-top: 90px; }
.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  min-height: 320px;
}
.checklist { list-style: none; margin: 22px 0 0; padding: 0; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 9px 0;
  color: var(--slate);
}
.checklist li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(27,191,115,.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231bbf73' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- band / cta ---------- */
.band {
  background: var(--ink);
  color: #e6ebf5;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.band h2 { color: #fff; }
.band p { color: #aab4ca; }
.band .grid-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px circle at 85% 20%, rgba(58,71,224,.35), transparent 60%),
    radial-gradient(360px circle at 10% 90%, rgba(27,191,115,.18), transparent 60%);
  pointer-events: none;
}
.band > * { position: relative; }

/* ---------- stat strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 34px;
}
.strip .stat { text-align: center; }
.strip .num { font-size: 2.4rem; }

/* ---------- about: values ---------- */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.value {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.value .n {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}

.timeline { border-left: 2px solid var(--line); padding-left: 28px; margin-top: 10px; }
.timeline .item { position: relative; padding-bottom: 30px; }
.timeline .item::before {
  content:""; position: absolute; left: -35px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--primary);
}
.timeline .yr { font-family: var(--font-mono); font-size: .78rem; color: var(--primary); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: .96rem;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-2);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58,71,224,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--slate-soft); margin-top: 6px; }
.form-status { font-family: var(--font-mono); font-size:.85rem; margin-top:14px; min-height: 1.2em; }
.form-status.ok { color: var(--signal); }

.contact-card {
  background: var(--ink);
  color: #e6ebf5;
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-card h3 { color: #fff; margin-bottom: 22px; }
.contact-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ci-ico { color: var(--signal); flex: none; margin-top: 2px; }
.contact-item .k { font-family: var(--font-mono); font-size: .66rem; letter-spacing:.1em; text-transform: uppercase; color: var(--slate-soft); }
.contact-item .v { color: #e6ebf5; font-weight: 500; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(54px, 7vw, 86px) clamp(34px,4vw,52px); }
.page-hero .lead { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #aab4ca;
  padding-block: 64px 30px;
  margin-top: 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand small { color: var(--slate-soft); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a { display: block; padding: 6px 0; color: #aab4ca; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-status {
  font-family: var(--font-mono);
  font-size: .76rem;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--signal);
}
.footer-status::before {
  content:""; width:7px;height:7px;border-radius:50%;
  background: var(--signal); box-shadow:0 0 8px var(--signal);
  animation: pulse 2.4s infinite;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .values { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .feature-media { order: 0; }
  .feature + .feature { margin-top: 56px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .strip { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .grid-3, .values, .strip { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
