/* ==========================================================================
   MorganTech — shared stylesheet
   Palette sourced from the client logo (blue + silver-gray), dark theme.
   Fonts: Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (labels)
   ========================================================================== */

:root{
  --bg:#0A121C;
  --bg-soft:#0D1720;
  --panel:#121F2C;
  --panel-2:#17293C;
  --border:#223244;
  --border-soft:#1A2735;
  --text:#EDF2F6;
  --text-muted:#8C9BAC;
  --text-dim:#54677A;
  --accent:#2E8FD6;
  --accent-hi:#57ACE8;
  --accent-deep:#123B57;
  --accent-dim:#0D2C41;
  --silver:#9AA6B4;
  --silver-dim:#4B5A69;
  --danger:#F2637A;

  --container: 1200px;
  --gutter: 24px;
}

*, *::before, *::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
input, textarea, select{ font-family:inherit; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p{ margin:0; }
img{ max-width:100%; display:block; }

.df{ font-family:'Space Grotesk', system-ui, sans-serif; }
.mono{ font-family:'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace; }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding-inline:var(--gutter);
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:'IBM Plex Mono', monospace;
  font-size:13px;
  font-weight:600;
  letter-spacing:.05em;
  padding:15px 26px;
  border-radius:3px;
  white-space:nowrap;
  transition:background .2s ease, border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.btn-primary{ background:var(--accent); color:#08121C; }
.btn-primary:hover{ background:var(--accent-hi); transform:translateY(-1px); }
.btn-outline{ background:transparent; border:1px solid var(--border); color:var(--text); }
.btn-outline:hover{ border-color:var(--accent); background:rgba(46,143,214,.08); }
.btn-sm{ font-size:12px; padding:12px 20px; }

/* ---------- header / nav ---------- */
.site-header{
  border-bottom:1px solid var(--border-soft);
  position:sticky;
  top:0;
  background:rgba(10,18,28,.9);
  backdrop-filter:blur(8px);
  z-index:50;
}
.nav-row{
  height:88px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand img{ width:36px; height:auto; }
.brand-word{ font-size:17px; font-weight:700; letter-spacing:.01em; }
.brand-word span{ color:var(--accent-hi); }

.nav-links{ display:flex; align-items:center; gap:40px; }
.nav-link{ position:relative; color:var(--text-muted); font-size:14px; letter-spacing:.02em; transition:color .2s ease; }
.nav-link:hover{ color:var(--text); }
.nav-link.active{ color:var(--text); }
.nav-link.active::after{ content:''; position:absolute; left:0; right:0; bottom:-32px; height:2px; background:var(--accent-hi); }

.nav-actions{ display:flex; align-items:center; gap:24px; }
.nav-phone{ font-size:14px; color:var(--text-muted); }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  padding:6px;
}
.nav-toggle span{ width:22px; height:2px; background:var(--text); display:block; transition:transform .2s ease, opacity .2s ease; }

/* ---------- hero ---------- */
.hero{ padding:120px 0 0; }
.hero-inner{ display:flex; align-items:center; justify-content:space-between; gap:64px; }
.hero-text{ width:600px; max-width:100%; display:flex; flex-direction:column; gap:26px; }
.hero-eyebrow{ font-size:13px; letter-spacing:.14em; color:var(--accent-hi); display:flex; align-items:center; gap:10px; }
.hero-title{ font-size:56px; line-height:1.08; font-weight:700; letter-spacing:-.01em; }
.hero-sub{ font-size:18px; line-height:1.65; color:var(--text-muted); max-width:520px; }
.hero-actions{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding-top:8px; }

.hero-visual{ position:relative; width:420px; height:420px; flex-shrink:0; }
.hero-visual-photo{ position:absolute; inset:0; border-radius:50%; overflow:hidden; border:1px solid var(--border); }
.hero-visual-photo img{ width:100%; height:100%; object-fit:cover; object-position:58% 42%; }
.hero-visual-photo::after{
  content:''; position:absolute; inset:0;
  box-shadow:inset 0 0 70px 12px rgba(10,18,28,.6);
}
.hero-rings{ position:absolute; inset:0; pointer-events:none; }
.live-badge{
  position:absolute; top:22px; right:22px;
  font-size:11px; letter-spacing:.08em; color:var(--accent-hi);
  display:flex; align-items:center; gap:8px;
  background:rgba(13,23,32,.8); padding:6px 10px;
  border:1px solid var(--border); border-radius:2px;
}

.pulse-dot{ width:6px; height:6px; border-radius:50%; background:var(--accent-hi); display:inline-block; animation:pulseDot 2.4s ease-out infinite; }
@keyframes pulseDot{
  0%{ box-shadow:0 0 0 0 rgba(46,143,214,.55); }
  70%{ box-shadow:0 0 0 9px rgba(46,143,214,0); }
  100%{ box-shadow:0 0 0 0 rgba(46,143,214,0); }
}

/* ---------- stat strip ---------- */
.stat-strip{ margin-top:80px; background:var(--panel); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }
.stat-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); padding:36px 0; }
.stat-item{ padding-inline:24px; border-right:1px solid var(--border-soft); }
.stat-item:first-child{ padding-left:0; }
.stat-item:last-child{ border-right:none; }
.stat-value{ font-size:30px; font-weight:700; }
.stat-label{ font-size:11px; letter-spacing:.08em; color:var(--text-dim); margin-top:6px; }

/* ---------- sections ---------- */
.section{ padding:100px 0; }
.section-tight{ padding:64px 0; }
.section-head{ max-width:640px; margin-bottom:56px; }
.eyebrow{ font-size:12px; letter-spacing:.14em; color:var(--accent-hi); margin-bottom:16px; }
.section-title{ font-size:38px; line-height:1.18; font-weight:700; margin-bottom:18px; }
.section-body{ font-size:16px; line-height:1.6; color:var(--text-muted); }

.bg-soft{ background:var(--bg-soft); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }

/* ---------- capability / why-us cards ---------- */
.cap-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:28px; }
.cap-card{
  border:1px solid var(--border); border-radius:4px; overflow:hidden;
  display:flex; flex-direction:column;
  transition:border-color .25s ease, background .25s ease, transform .25s ease;
}
.cap-card:hover{ border-color:var(--accent-deep); background:var(--panel-2); transform:translateY(-4px); }
.cap-media{ position:relative; height:160px; background:var(--bg-soft); }
.cap-media img{ width:100%; height:100%; object-fit:cover; }
.cap-number{
  position:absolute; top:12px; left:12px; font-size:11px; letter-spacing:.06em; color:var(--text);
  background:rgba(10,18,28,.72); border:1px solid var(--border); padding:4px 8px; border-radius:2px;
}
.cap-body{ padding:28px 32px 32px; }
.cap-title{ font-size:21px; font-weight:600; margin-bottom:10px; }
.cap-desc{ font-size:14.5px; line-height:1.6; color:var(--text-muted); margin-bottom:18px; }
.cap-list{ display:flex; flex-direction:column; gap:9px; }
.cap-list li{ font-size:12.5px; color:var(--text-dim); }

.why-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:24px; }
.why-card{ border:1px solid var(--border); border-radius:4px; padding:28px; transition:border-color .25s ease, transform .25s ease; }
.why-card:hover{ border-color:var(--accent-deep); transform:translateY(-3px); }
.why-icon{ width:44px; height:44px; border:1px solid var(--border); border-radius:4px; display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.why-title{ font-size:16.5px; font-weight:600; margin-bottom:8px; }
.why-desc{ font-size:13.5px; line-height:1.6; color:var(--text-muted); }

/* ---------- trust strip ---------- */
.trust-strip{ padding:48px 0; text-align:center; }
.trust-label{ font-size:11px; letter-spacing:.14em; color:var(--text-dim); margin-bottom:22px; }
.trust-row{ display:flex; align-items:center; justify-content:center; gap:56px; flex-wrap:wrap; }
.trust-row span{ font-size:17px; font-weight:600; color:var(--silver); font-family:'Space Grotesk', sans-serif; }

/* ---------- engineering / blueprint panel ---------- */
.blueprint-panel{ display:flex; align-items:stretch; background:var(--panel); border:1px solid var(--border-soft); border-radius:4px; overflow:hidden; }
.blueprint-text{ width:50%; padding:56px; display:flex; flex-direction:column; justify-content:center; gap:16px; }
.blueprint-stats{ display:flex; gap:40px; padding-top:20px; }
.blueprint-stats .stat-value{ font-size:24px; }
.blueprint-media{ width:50%; background:var(--bg-soft); border-left:1px solid var(--border-soft); position:relative; min-height:360px; overflow:hidden; }
.blueprint-media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.blueprint-overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,18,28,0) 50%, rgba(10,18,28,.88) 100%); }
.blueprint-caption{ position:absolute; left:24px; bottom:20px; font-size:11px; letter-spacing:.1em; color:var(--accent-hi); }
.scanwrap{ position:relative; overflow:hidden; }
.scanwrap::after{
  content:''; position:absolute; left:0; right:0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(87,172,232,.65), transparent);
  animation:scan 5s ease-in-out infinite;
}
@keyframes scan{ 0%{ top:0; opacity:0; } 12%{ opacity:1; } 88%{ opacity:1; } 100%{ top:100%; opacity:0; } }

/* ---------- cta + contact ---------- */
.cta-split{ display:flex; gap:64px; }
.cta-info{ width:440px; max-width:100%; flex-shrink:0; display:flex; flex-direction:column; justify-content:center; gap:20px; }
.cta-title{ font-size:36px; line-height:1.2; font-weight:700; }
.cta-contact-list{ display:flex; flex-direction:column; gap:18px; padding-top:16px; border-top:1px solid var(--border-soft); }
.cta-contact-list a, .cta-contact-list div{ display:flex; align-items:center; gap:12px; font-size:15px; color:var(--text-muted); transition:color .2s ease; }
.cta-contact-list a:hover{ color:var(--accent-hi); }
.cta-contact-list .tag{ color:var(--text-dim); font-size:12px; }

.form-panel{ flex:1; background:var(--panel); border:1px solid var(--border-soft); border-radius:4px; padding:44px; display:flex; flex-direction:column; gap:18px; }
.form-row{ display:flex; gap:16px; }
.form-field{ flex:1; display:flex; flex-direction:column; gap:8px; }
.form-label{ font-size:11px; letter-spacing:.06em; color:var(--text-dim); }
.form-input{
  background:var(--bg-soft); border:1px solid var(--border); color:var(--text);
  padding:13px 14px; border-radius:3px; font-size:14px;
  transition:border-color .2s ease;
}
.form-input:focus{ outline:none; border-color:var(--accent); }
.form-input::placeholder{ color:var(--text-dim); }
textarea.form-input{ resize:vertical; min-height:96px; }

/* Honeypot — off-screen (not display:none) so it still fools bots that
   check computed visibility, but real visitors and screen readers never see it. */
.hp-field{ position:absolute; left:-9999px; top:-9999px; width:1px; height:1px; overflow:hidden; }

.form-note{ font-size:13px; line-height:1.5; color:var(--text-muted); }
.form-status{ font-size:13px; line-height:1.5; min-height:0; }
.form-status.is-error{ color:var(--danger); }
.form-status.is-success{ color:var(--accent-hi); }

.chip{
  border:1px solid var(--border); border-radius:3px; padding:10px 14px; font-size:12.5px; color:var(--text-muted);
  cursor:pointer; transition:border-color .2s ease, color .2s ease, background .2s ease;
  display:inline-flex; align-items:center; gap:8px;
}
.chip:hover, .chip.is-active{ border-color:var(--accent); color:var(--text); background:rgba(46,143,214,.06); }
.chip-row{ display:flex; gap:10px; flex-wrap:wrap; }

/* ---------- contact page specifics ---------- */
.info-grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:24px; }
.info-card{ border:1px solid var(--border); border-radius:4px; padding:32px; transition:border-color .25s ease, transform .25s ease; }
.info-card:hover{ border-color:var(--accent-deep); transform:translateY(-3px); }
.info-card svg{ margin-bottom:16px; }
.info-label{ font-size:11px; letter-spacing:.08em; color:var(--text-dim); margin-bottom:8px; }
.info-value{ font-size:19px; font-weight:600; display:block; }

.contact-split{ display:flex; gap:24px; align-items:stretch; }
.location-panel{ flex:1; background:var(--panel); border:1px solid var(--border-soft); border-radius:4px; padding:48px; display:flex; flex-direction:column; }
.location-map{ background:var(--bg-soft); border:1px solid var(--border-soft); border-radius:4px; overflow:hidden; margin-bottom:24px; }
.location-map svg{ display:block; width:100%; height:auto; }
.location-address{ display:flex; flex-direction:column; gap:6px; margin-bottom:24px; }
.location-note{ font-size:13.5px; line-height:1.65; color:var(--text-muted); border-top:1px solid var(--border-soft); padding-top:20px; }

.cta-strip{
  border:1px solid var(--border-soft); border-radius:4px; padding:28px 40px;
  display:flex; align-items:center; justify-content:space-between; background:var(--bg-soft); flex-wrap:wrap; gap:16px;
}

/* ---------- service detail blocks (services.html) ---------- */
.svc-block{ display:flex; align-items:stretch; overflow:hidden; border:1px solid var(--border-soft); border-radius:4px; margin-bottom:28px; transition:border-color .25s ease; }
.svc-block:hover{ border-color:var(--accent-deep); }
.svc-block.reverse{ flex-direction:row-reverse; }
.svc-text{ width:56%; padding:52px; display:flex; flex-direction:column; justify-content:center; gap:16px; }
.svc-tag{ font-size:12px; color:var(--silver); font-family:'IBM Plex Mono', monospace; }
.svc-title{ font-size:28px; font-weight:600; line-height:1.25; }
.svc-desc{ font-size:15px; line-height:1.65; color:var(--text-muted); }
.svc-list{ display:flex; flex-direction:column; gap:10px; padding-top:8px; }
.svc-list li{ font-size:13px; color:var(--text-dim); font-family:'IBM Plex Mono', monospace; }
.svc-media{ width:44%; background:var(--bg-soft); position:relative; min-height:300px; overflow:hidden; }
.svc-media img{ width:100%; height:100%; object-fit:cover; }
.svc-media.placeholder{ display:flex; align-items:center; justify-content:center; }

.stat-recap{ padding:28px 0; background:var(--panel); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }
.stat-recap-row{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px 32px; font-size:13px; color:var(--text-muted); font-family:'IBM Plex Mono', monospace; }
.stat-recap-row b{ color:var(--accent-hi); font-weight:600; }

.process-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:1px; background:var(--border-soft); border:1px solid var(--border-soft); border-radius:4px; overflow:hidden; }
.process-step{ background:var(--bg); padding:30px 26px; transition:transform .25s ease; }
.process-step:hover{ transform:translateY(-3px); }
.process-num{ font-size:24px; font-weight:700; color:var(--accent-hi); }
.process-title{ font-size:16px; font-weight:600; margin:14px 0 8px; }
.process-desc{ font-size:13px; line-height:1.6; color:var(--text-muted); }

.cta-banner{
  background:var(--panel); border:1px solid var(--border-soft); border-radius:4px;
  padding:48px 56px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-banner-title{ font-size:26px; font-weight:700; margin-bottom:8px; }
.cta-banner-body{ font-size:14.5px; color:var(--text-muted); }

/* ---------- footer ---------- */
.site-footer{ border-top:1px solid var(--border-soft); padding:72px 0 32px; }
.footer-cols{ display:flex; justify-content:space-between; gap:48px; padding-bottom:48px; }
.footer-brand{ max-width:320px; display:flex; flex-direction:column; gap:16px; }
.footer-brand-row{ display:flex; align-items:center; gap:10px; }
.footer-brand-row img{ width:32px; height:auto; }
.footer-desc{ font-size:13.5px; line-height:1.65; color:var(--text-muted); }
.social-row{ display:flex; gap:10px; padding-top:4px; }
.social-link{
  width:34px; height:34px; border:1px solid var(--border); border-radius:3px;
  display:flex; align-items:center; justify-content:center; color:var(--text-muted);
  transition:border-color .2s ease, color .2s ease;
}
.social-link:hover{ border-color:var(--accent); color:var(--accent); }
.footer-col{ display:flex; flex-direction:column; gap:14px; }
.footer-col-title{ font-size:11px; letter-spacing:.1em; color:var(--text-dim); margin-bottom:4px; font-family:'IBM Plex Mono', monospace; }
.footer-link{ font-size:14px; color:var(--text-muted); transition:color .2s ease; }
.footer-link:hover{ color:var(--accent-hi); }
.footer-bottom{ border-top:1px solid var(--border-soft); padding-top:24px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; font-size:11.5px; color:var(--text-dim); font-family:'IBM Plex Mono', monospace; }
.footer-credit{ text-decoration:underline; text-underline-offset:2px; transition:color .2s ease; }
.footer-credit:hover{ color:var(--accent-hi); }

/* ---------- load-in animation ---------- */
@keyframes fadeUp{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:translateY(0); } }
.fu{ opacity:0; animation:fadeUp .7s cubic-bezier(.2,.7,.3,1) forwards; }
.fu1{ animation-delay:.05s; } .fu2{ animation-delay:.16s; } .fu3{ animation-delay:.27s; } .fu4{ animation-delay:.38s; }

/* ---------- scroll reveal (JS-driven, see js/main.js) ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .nav-links, .nav-actions .nav-phone{ display:none; }
  .nav-toggle{ display:flex; }
  .site-header.is-open .nav-links{
    display:flex; flex-direction:column; align-items:flex-start; gap:20px;
    position:absolute; top:100%; left:0; right:0; background:var(--bg-soft);
    border-bottom:1px solid var(--border-soft); padding:24px var(--gutter) 28px;
  }
  .site-header.is-open .nav-link.active::after{ display:none; }

  .hero{ padding-top:56px; }
  .hero-inner{ flex-direction:column; align-items:flex-start; gap:40px; }
  .hero-title{ font-size:40px; }
  .hero-visual{ width:280px; height:280px; align-self:center; }
  .stat-strip{ margin-top:56px; }
  .stat-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); row-gap:24px; }
  .stat-item{ border-right:none !important; padding-left:0 !important; }

  .section{ padding:64px 0; }
  .section-title{ font-size:30px; }
  .cap-grid, .why-grid{ grid-template-columns:1fr; }
  .info-grid{ grid-template-columns:1fr; }

  .blueprint-panel{ flex-direction:column; }
  .blueprint-text, .blueprint-media{ width:100%; }
  .blueprint-media{ min-height:260px; border-left:none; border-top:1px solid var(--border-soft); }

  .cta-split, .contact-split{ flex-direction:column; }
  .cta-info, .location-panel{ width:100%; }
  .form-panel, .location-panel{ padding:32px; }

  .svc-block, .svc-block.reverse{ flex-direction:column; }
  .svc-text, .svc-media{ width:100%; }
  .svc-media{ min-height:220px; }
  .svc-text{ padding:36px; }

  .process-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .footer-cols{ flex-wrap:wrap; }
  .footer-brand{ max-width:100%; }
}

@media (max-width: 620px){
  .form-row{ flex-direction:column; }
  .info-grid, .trust-row{ row-gap:16px; }
  .trust-row{ gap:28px; }
  .stat-grid{ grid-template-columns:1fr; }
  .process-grid{ grid-template-columns:1fr; }
  .cta-banner, .cta-strip{ flex-direction:column; align-items:flex-start; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}
