/* Zyric Group — Enterprise SI Design System (Phase 1)
   Rules: Static HTML, no layout reinvention, hierarchy-first, minimal text density. */

:root{
  /* Neutral enterprise palette */
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #5c667a;
  --border: #e6e9f0;
  --border-strong: #d7dce7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;   /* muted bands */
  --surface-3: #f1f4fa;   /* subtle contrast */

  /* Brand / accent (kept restrained) */
  --primary: #1f4fff;
  --primary-ink: #0a2bd6;

  /* Radii + shadows */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;

  --shadow-1: 0 1px 2px rgba(16,24,40,.06), 0 6px 18px rgba(16,24,40,.06);
  --shadow-2: 0 2px 6px rgba(16,24,40,.08), 0 16px 40px rgba(16,24,40,.10);

  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --lh: 1.55;

  /* Layout rhythm */
  --container: 1120px;
  --gutter: 20px;
  --section-y: 72px;
  --section-y-sm: 44px;

  /* Grid */
  --gap: 18px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: var(--lh);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ============ Topbar / Nav ============ */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .2px;
}

.logo{
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(31,79,255,.18), rgba(31,79,255,.06)),
    linear-gradient(0deg, #ffffff, #ffffff);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 0 rgba(16,24,40,.04);
}

.menu{
  display:flex;
  align-items:center;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.menu a{
  padding: 10px 10px;
  border-radius: 10px;
}
.menu a:hover{
  color: var(--text);
  background: var(--surface-2);
}

/* ============ Buttons ============ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 1px 0 rgba(16,24,40,.04);
  transition: transform .06s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  cursor: pointer;
}

.btn:hover{
  background: var(--surface-2);
  box-shadow: var(--shadow-1);
}

.btn:active{
  transform: translateY(1px);
}

.btn.primary{
  background: linear-gradient(180deg, rgba(31,79,255,1), rgba(23,64,223,1));
  border-color: rgba(31,79,255,.55);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px rgba(31,79,255,.18);
}
.btn.primary:hover{
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 38px rgba(31,79,255,.22);
}

/* ============ Sections / Bands ============ */
.section{
  padding: var(--section-y) 0;
}

.section.muted{
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section + .section{ border-top: 1px solid rgba(230,233,240,.0); }

/* ============ Typography ============ */
.h1{
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.12;
  margin: 0 0 12px;
  letter-spacing: -0.6px;
}
.h2{
  font-size: clamp(20px, 2.0vw, 28px);
  line-height: 1.22;
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}
.h3{
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.1px;
}

.lead{
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 72ch;
}

.small{
  font-size: 12px;
  color: var(--muted);
}

/* ============ Layout blocks ============ */
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
}

.media{
  min-height: 260px;
  border-radius: var(--r-lg);
  border: 1px dashed var(--border-strong);
  background: linear-gradient(180deg, #fff, var(--surface-2));
  color: var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  box-shadow: var(--shadow-1);
}

/* Grid system used on Home (cols-3 etc.) */
.grid{
  display:grid;
  gap: var(--gap);
}

.grid.cols-3{
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 18px;
  box-shadow: 0 1px 0 rgba(16,24,40,.03);
  transition: transform .10s ease, box-shadow .12s ease, border-color .12s ease;
}

.card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card:hover{
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
}

/* ============ Footer ============ */
.footer{
  padding: 34px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

/* ============ Accessibility / Focus ============ */
:focus-visible{
  outline: 3px solid rgba(31,79,255,.28);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ============ Responsive ============ */
@media (max-width: 920px){
  :root{
    --section-y: 56px;
    --gap: 14px;
  }
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .media{ min-height: 220px; }
  .grid.cols-3{
    grid-template-columns: 1fr;
  }
  .menu{
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .menu a{ padding: 8px 10px; }
}

@media (max-width: 520px){
  :root{ --gutter: 16px; }
  .nav{ min-height: 66px; }
  .btn{ padding: 11px 12px; }
}

/* ================================
   Phase 1 — Design System Hardening Add-ons
   Full replacement (no append instructions)
================================ */

/* Section header divider (enterprise band feel) */
.section-header{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-header .meta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}
.divider{
  height: 1px;
  background: linear-gradient(90deg, rgba(215,220,231,0), rgba(215,220,231,1), rgba(215,220,231,0));
  margin: 18px 0 0;
}

/* Enterprise badge / pill */
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2px;
}
.badge.dot::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(31,79,255,.55);
  box-shadow: 0 0 0 3px rgba(31,79,255,.12);
}

/* Card header row (icon + title) */
.card-head{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 8px;
}
.icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(31,79,255,.14), rgba(31,79,255,.04)),
    linear-gradient(0deg, #fff, #fff);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(31,79,255,.9);
  font-weight: 900;
  font-size: 12px;
}

/* Better list styling (for future checklists without blog feel) */
.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{
  margin: 6px 0;
}
.list strong{
  color: var(--text);
}

/* Compact KPI/outcome strip */
.kpi{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.kpi .k{
  flex: 1 1 200px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  padding: 12px 14px;
}
.kpi .k .label{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .2px;
  margin-bottom: 4px;
}
.kpi .k .value{
  font-weight: 900;
  letter-spacing: -.2px;
}

/* Link-card affordance (keeps cards “clickable” like SI libraries) */
a.card{
  position: relative;
}
a.card::after{
  content: "→";
  position:absolute;
  right: 14px;
  top: 14px;
  color: rgba(11,18,32,.35);
  font-weight: 900;
}
a.card:hover::after{
  color: rgba(11,18,32,.65);
}

/* Subtle table style (future: comparison pages without heavy UI) */
.table{
  width:100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow:hidden;
  background:#fff;
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  text-align:left;
  font-size: 14px;
}
.table th{
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
}
.table tr:last-child td{ border-bottom: none; }
