/* ============================================================
   ExeSum — stylesheet
   Palette: ink #101D2E · paper #F4F8FC · haze #D9E4F0
            signal blue #2456E6 · radar green #17A673 · beacon amber #FFB020
   Type:    Space Grotesk (display) · IBM Plex Sans (body) · IBM Plex Mono (utility)
   ============================================================ */

:root {
  --ink:    #101D2E;
  --ink-60: #4B5B70;
  --paper:  #F4F8FC;
  --white:  #FFFFFF;
  --haze:   #D9E4F0;
  --signal: #2456E6;
  --signal-dark: #1B41AC;
  --radar:  #17A673;
  --beacon: #FFB020;

  --font-display: "Space Grotesk", sans-serif;
  --font-body:    "IBM Plex Sans", sans-serif;
  --font-mono:    "IBM Plex Mono", monospace;

  --wrap: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.mono { font-family: var(--font-mono); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; font-weight: 600; }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-60);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-live { background: var(--radar); box-shadow: 0 0 0 0 rgba(23,166,115,.5); animation: pulse 2.2s infinite; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(23,166,115,.45); }
  70%  { box-shadow: 0 0 0 9px rgba(23,166,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(23,166,115,0); }
}

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 248, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--haze);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 30px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }

.nav-menu { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-menu a { color: var(--ink); font-weight: 500; font-size: 0.98rem; }
.nav-menu a:hover { color: var(--signal); text-decoration: none; }

.nav-cta {
  background: var(--signal); color: #fff !important;
  padding: 9px 16px; border-radius: 999px;
}
.nav-cta:hover { background: var(--signal-dark); }

.nav-toggle {
  display: none;
  font: 500 0.95rem var(--font-body);
  background: none; border: 1px solid var(--haze); border-radius: 8px;
  padding: 8px 14px; cursor: pointer; color: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-dark); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--haze); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--signal); color: var(--signal); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.lede { color: var(--ink-60); font-size: 1.15rem; margin: 20px 0 28px; max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 10px 36px; margin-top: 40px; padding-top: 26px;
  border-top: 1px solid var(--haze);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.hero-stats span { font-size: 0.82rem; color: var(--ink-60); }

/* ---------- signature: migration board ---------- */
.hero-board {
  background: var(--white);
  border: 1px solid var(--haze);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(16, 29, 46, 0.35);
}
.board-titlebar {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--ink-60);
  padding: 12px 18px; border-bottom: 1px solid var(--haze);
}
.board-svg { width: 100%; height: auto; padding: 8px 6px 0; }

.node rect, .node path {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 2;
}
.node-onprem line { stroke: var(--ink-60); stroke-width: 2; stroke-linecap: round; }
.node-label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  fill: var(--ink-60); text-anchor: middle;
}
.node-cloud path { stroke: var(--signal); }

.path {
  fill: none; stroke: var(--signal); stroke-width: 2;
  stroke-dasharray: 7 7; opacity: 0.7;
  animation: flow 1.4s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -14; } }

.packet { fill: var(--beacon); }
.packet-1 { offset-path: path('M140 168 C 240 140, 300 100, 388 84'); animation: travel 3.2s linear infinite; }
.packet-2 { offset-path: path('M140 184 C 250 190, 310 240, 388 258'); animation: travel 3.2s linear infinite 1.6s; }
@keyframes travel {
  0%   { offset-distance: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.board-log {
  list-style: none; padding: 14px 18px 18px;
  border-top: 1px solid var(--haze);
  font-size: 0.8rem; color: var(--ink-60);
  display: grid; gap: 6px;
}
.board-log .ok  { color: var(--radar); }
.board-log .run { color: var(--beacon); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--white); border-block: 1px solid var(--haze); }

/* ---------- service manifest ---------- */
.manifest { margin-top: 40px; border-top: 1px solid var(--haze); }
.manifest-row {
  display: grid; grid-template-columns: 110px 1.2fr 1fr;
  gap: 28px; padding: 34px 0;
  border-bottom: 1px solid var(--haze);
}
.manifest-code {
  font-size: 0.85rem; color: var(--signal); letter-spacing: 0.08em;
  padding-top: 5px;
}
.manifest-body h3 { margin-bottom: 8px; font-size: 1.35rem; }
.manifest-body p { color: var(--ink-60); max-width: 32em; }

.manifest-items { list-style: none; display: grid; gap: 9px; align-content: start; }
.manifest-items li {
  position: relative; padding-left: 22px; font-size: 0.95rem;
}
.manifest-items li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 12px; height: 2px; background: var(--signal);
}

/* ---------- platforms ---------- */
.platforms-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start;
}
.platforms-grid > div > p { color: var(--ink-60); }

.platform-cards { display: grid; gap: 20px; }
.platform-card {
  background: var(--paper); border: 1px solid var(--haze);
  border-radius: var(--radius); padding: 26px 28px;
}
.platform-card h3 { margin-bottom: 6px; }
.platform-tags { font-size: 0.78rem; color: var(--signal); margin-bottom: 10px; letter-spacing: 0.02em; }
.platform-card p:last-child { color: var(--ink-60); font-size: 0.98rem; }

/* ---------- process ---------- */
.process {
  list-style: none; margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  counter-reset: none;
}
.process-step {
  background: var(--white); border: 1px solid var(--haze);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.process-num {
  font-size: 0.85rem; color: var(--signal);
  border: 1px solid var(--haze); border-radius: 999px;
  width: 44px; height: 44px; display: grid; place-items: center;
}
.process-step h3 { margin-bottom: 6px; }
.process-step p { color: var(--ink-60); font-size: 0.95rem; }

/* ---------- contact ---------- */
.section-contact { background: var(--ink); color: #EAF1F9; }
.section-contact h2 { color: #fff; }
.section-contact .eyebrow { color: #93A7C0; }
.section-contact p { color: #B9C8DB; }
.contact-side a { color: #8FB4FF; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-side { margin-top: 22px; font-size: 0.9rem; }

.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-form label {
  display: grid; gap: 7px;
  font-size: 0.88rem; font-weight: 500; color: #C9D6E6;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: 400 1rem var(--font-body);
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--signal); outline-offset: 1px;
}
.contact-form .btn { justify-self: start; margin-top: 4px; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-flash {
  border-radius: 10px; padding: 14px 18px; margin-bottom: 20px;
  font-size: 0.95rem;
}
.flash-ok  { background: rgba(23,166,115,.15); color: #7FE0BC; border: 1px solid rgba(23,166,115,.4); }
.flash-err { background: rgba(255,99,99,.12);  color: #FFB3B3; border: 1px solid rgba(255,99,99,.35); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #93A7C0; border-top: 1px solid #223349; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px; padding: 52px 24px 34px;
}
.footer-logo { height: 26px; width: auto; margin-bottom: 12px; }
.footer-head { color: #C9D6E6; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.footer-note { font-size: 0.9rem; line-height: 1.7; }
.footer-note a { color: #8FB4FF; }
.footer-legal { padding: 18px 24px 30px; font-size: 0.82rem; border-top: 1px solid #223349; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .platforms-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .manifest-row { grid-template-columns: 84px 1fr; }
  .manifest-items { grid-column: 2; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute; right: 16px; top: 62px;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; border: 1px solid var(--haze); border-radius: 12px;
    padding: 12px; min-width: 220px;
    box-shadow: 0 18px 40px -18px rgba(16,29,46,.35);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 9px 10px; border-radius: 8px; }
  .nav-menu a:hover { background: var(--paper); }
  .nav-cta { text-align: center; margin-top: 4px; }

  .section { padding: 64px 0; }
  .process { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .manifest-row { grid-template-columns: 1fr; gap: 14px; }
  .manifest-items { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}
