/* ==========================================================================
   ProSCM.ai — Design tokens
   Palette: brand navy/blue/cyan (from the logo). Display: Fraunces (editorial,
   confident serif — reads like an industrial engineering firm, not a SaaS
   template). Body: Inter. Utility/eyebrows: IBM Plex Mono — a systems/telemetry
   register that matches a company whose product IS a data flow.
   Signature element: "the flow line" — a connected-node path (echoing the
   logo's monogram) that threads through section dividers and the hero.
   ========================================================================== */

:root{
  --navy:      #0A2540;
  --navy-2:    #0F2E52;
  --navy-3:    #133863;
  --blue:      #1E5FCC;
  --cyan:      #22B8E8;
  --ink:       #142033;
  --slate:     #5B7A9C;
  --mist:      #EAF2FF;
  --mist-2:    #F5F9FF;
  --paper:     #FCFDFF;
  --line:      #DCE8F8;
  --white:     #FFFFFF;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0; color: var(--navy); font-weight: 600; }
p{ margin: 0; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
::selection{ background: var(--cyan); color: var(--navy); }

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

/* Focus visibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------------- Eyebrow / mono labels ---------------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 18px; height: 1px;
  background: var(--cyan);
  display: inline-block;
}
.on-dark .eyebrow{ color: var(--cyan); }
.on-dark .eyebrow::before{ background: var(--cyan); }

/* ---------------- Nav ---------------- */
.site-nav{
  position: sticky; top: 0; z-index: 50;
  background: rgba(252,253,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-brand{ display: flex; align-items: center; gap: 10px; }
.nav-brand img{ height: 30px; width: 30px; }
.nav-brand span{ font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--navy); }
.nav-brand span em{ font-style: normal; color: var(--blue); }
.nav-links{ display: flex; align-items: center; gap: 34px; }
.nav-links a{
  font-size: 14.5px; font-weight: 500; color: var(--ink); position: relative; padding: 6px 0;
}
.nav-links a.active{ color: var(--blue); }
.nav-links a:not(.btn)::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active:not(.btn)::after{ transform: scaleX(1); }
.nav-toggle{ display: none; }

/* ---------------- Buttons ---------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary{ background: var(--blue); color: var(--white); box-shadow: 0 6px 18px rgba(30,95,204,0.28); }
.btn-primary:hover{ background: #1a52b3; transform: translateY(-1px); }
.btn-ghost{ background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--blue); color: var(--blue); }
.btn-on-dark{ background: var(--cyan); color: var(--navy); }
.btn-on-dark:hover{ background: #4cc7ee; transform: translateY(-1px); }
.btn-outline-dark{ background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline-dark:hover{ border-color: var(--cyan); color: var(--cyan); }
.btn-sm{ padding: 9px 16px; font-size: 13.5px; }

/* ---------------- Sections / type ---------------- */
section{ padding: 108px 0; position: relative; }
section.tight{ padding: 76px 0; }
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin-top: 14px; letter-spacing: -0.01em; }
.section-head p{ margin-top: 16px; color: var(--slate); font-size: 16.5px; line-height: 1.6; }
.on-dark{ background: var(--navy); color: var(--white); }
.on-dark .section-head p{ color: #A9C6E8; }
.on-dark h2, .on-dark h3, .on-dark h4{ color: var(--white); }
.bg-mist{ background: var(--mist-2); }

/* ---------------- Hero ---------------- */
.hero{
  padding: 72px 0 40px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 62%, var(--navy-2) 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero .container{ position: relative; z-index: 2; }
.hero-copy{ max-width: 760px; }
.hero h1{
  color: var(--white);
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-top: 22px;
  font-weight: 600;
}
.hero h1 em{ font-style: italic; color: var(--cyan); font-weight: 500; }
.hero-sub{
  margin-top: 22px; font-size: 18px; line-height: 1.6; color: #C3D8F2; max-width: 560px;
}
.hero-cta{ display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta{ margin-top: 46px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-meta div{ font-family: var(--font-mono); font-size: 12.5px; color: #7FA0C6; }
.hero-meta strong{ display: block; font-family: var(--font-display); font-size: 22px; color: var(--white); font-weight: 600; margin-bottom: 2px; }

/* ---------------- Flow line (signature element) ---------------- */
.flowline-wrap{ margin-top: 64px; }
.flowline{ width: 100%; height: auto; display: block; }
.flowline .fl-path{
  fill: none; stroke: url(#flGrad); stroke-width: 2; stroke-dasharray: 6 8; stroke-linecap: round;
  opacity: 0.55;
}
.flowline .fl-node{ fill: #12345C; stroke: #2E6FE0; stroke-width: 1.4; }
.flowline .fl-node.lit{ fill: var(--cyan); stroke: var(--cyan); }
.flowline .fl-node circle.core{ fill: #072041; }
.flowline text{ font-family: var(--font-mono); font-size: 11px; fill: #8FB3DE; letter-spacing: 0.04em; }
.flowline .fl-node.lit + text, text.lit{ fill: var(--white); }

.flowline .fl-node{ animation: flPulse 3.2s ease-in-out infinite; }
.flowline .fl-node:nth-child(1){ animation-delay: 0s; }
.flowline .fl-node:nth-child(3){ animation-delay: .4s; }
.flowline .fl-node:nth-child(5){ animation-delay: .8s; }
.flowline .fl-node:nth-child(7){ animation-delay: 1.2s; }
.flowline .fl-node:nth-child(9){ animation-delay: 1.6s; }
@keyframes flPulse{
  0%, 100%{ filter: drop-shadow(0 0 0 rgba(34,184,232,0)); }
  50%{ filter: drop-shadow(0 0 6px rgba(34,184,232,0.9)); }
}

/* mini divider version used between sections */
.divider-flow{ display: flex; align-items: center; justify-content: center; padding: 6px 0 0; }
.divider-flow svg{ width: 220px; height: 28px; }

/* ---------------- Icon chip ---------------- */
.icon-chip{
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--mist); flex: none;
}
.icon-chip img{ width: 30px; height: 30px; }
.icon-chip.dark{ background: var(--navy-2); }
.icon-chip.solid-blue{ background: var(--blue); }
.icon-chip.circle{ border-radius: 50%; }

/* ---------------- Cards / rows ---------------- */
.row-list{ display: flex; flex-direction: column; gap: 0; }
.row-item{
  display: flex; gap: 22px; align-items: flex-start; padding: 26px 0; border-top: 1px solid var(--line);
}
.row-item:last-child{ border-bottom: 1px solid var(--line); }
.row-item h4{ font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.row-item p{ color: var(--slate); font-size: 14.5px; line-height: 1.55; }
.on-dark .row-item{ border-color: rgba(255,255,255,0.12); }
.on-dark .row-item p{ color: #AFC9E8; }

.grid{ display: grid; gap: 22px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{ transform: translateY(-3px); box-shadow: 0 16px 36px rgba(10,37,64,0.08); border-color: #c7dcf5; }
.card h4{ font-size: 16px; margin: 16px 0 8px; }
.card p{ color: var(--slate); font-size: 13.5px; line-height: 1.55; }

.card-dark{ background: var(--navy-2); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 28px; }
.card-dark h4{ color: var(--white); font-size: 16px; margin: 16px 0 8px; }
.card-dark p{ color: #AFC9E8; font-size: 13.5px; line-height: 1.55; }

/* ---------------- Stat strip ---------------- */
.stat-strip{ display: flex; gap: 56px; flex-wrap: wrap; }
.stat{ }
.stat .num{ font-family: var(--font-display); font-size: 40px; color: var(--navy); font-weight: 600; }
.stat .lbl{ font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; }
.on-dark .stat .num{ color: var(--white); }

/* ---------------- Tag / pill ---------------- */
.pill{
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; background: var(--mist); color: var(--blue);
}

/* ---------------- Table (comparison) ---------------- */
.table-wrap{ overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table{ width: 100%; border-collapse: collapse; min-width: 720px; }
th, td{ padding: 15px 18px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); }
thead th{ background: var(--navy); color: var(--white); font-weight: 600; font-size: 12.5px; }
tbody tr:nth-child(even){ background: var(--mist-2); }
td.hi, th.hi{ background: var(--mist); color: var(--blue); font-weight: 700; }
thead th.hi{ background: var(--blue); color: var(--white); }
tbody tr:last-child td{ border-bottom: none; }

/* ---------------- Pricing ---------------- */
.price-card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px;
  display: flex; flex-direction: column;
}
.price-card.hi{ background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-10px); box-shadow: 0 20px 50px rgba(10,37,64,0.25); }
.price-card .tier{ font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.price-card.hi .tier{ color: var(--white); }
.price-card .desc{ margin-top: 8px; font-size: 13.5px; color: var(--slate); min-height: 40px; }
.price-card.hi .desc{ color: #AFC9E8; }
.price-card .feats{ margin-top: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-card .feats li{ display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.price-card .feats img{ width: 16px; height: 16px; margin-top: 2px; }
.price-card .btn{ margin-top: 26px; width: 100%; }
.price-badge{ font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 10px; }

/* ---------------- Forms ---------------- */
.form-card{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field{ margin-bottom: 18px; }
.field label{ display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea{
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; color: var(--ink); background: var(--mist-2);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline: none; border-color: var(--blue); background: var(--white); }
.field textarea{ min-height: 110px; resize: vertical; }
.form-note{ font-size: 12px; color: var(--slate); margin-top: 14px; }

/* ---------------- CTA band ---------------- */
.cta-band{
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  border-radius: 24px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h3{ color: var(--white); font-size: 28px; max-width: 480px; }
.cta-band p{ color: #A9C6E8; margin-top: 10px; font-size: 14.5px; max-width: 460px; }

/* ---------------- Footer ---------------- */
footer{ background: var(--navy); color: #9FC0E6; padding: 64px 0 30px; }
.foot-grid{ display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-brand{ display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-brand span{ font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: 18px; }
.foot-brand img{ height: 26px; }
footer p.tag{ font-size: 13.5px; max-width: 260px; line-height: 1.6; }
footer h5{ font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #6E93BE; margin-bottom: 16px; }
footer ul li{ margin-bottom: 10px; }
footer ul li a{ font-size: 13.5px; color: #B9D0EC; }
footer ul li a:hover{ color: var(--cyan); }
.foot-bottom{ display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 12.5px; color: #5E82AC; flex-wrap: wrap; gap: 10px; }

/* ---------------- Utility ---------------- */
.mt-0{ margin-top: 0; }
.center{ text-align: center; margin-left: auto; margin-right: auto; }
.max-560{ max-width: 560px; }
.max-720{ max-width: 720px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .foot-grid{ grid-template-columns: 1fr 1fr; row-gap: 32px; }
}
@media (max-width: 760px){
  section{ padding: 72px 0; }
  .nav-links{
    position: fixed; inset: 76px 0 0 0; background: var(--paper); flex-direction: column;
    padding: 34px 28px; gap: 22px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease; border-top: 1px solid var(--line);
  }
  .nav-links.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle{
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
  }
  .nav-toggle span{ width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
  .grid-3, .grid-2, .grid-4{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .price-card.hi{ transform: none; }
  .foot-grid{ grid-template-columns: 1fr; }
  .cta-band{ padding: 36px; flex-direction: column; align-items: flex-start; }
  .hero-meta{ gap: 26px; }
}
