/* ============================================================
   Zilisoft Tech Inc — zilisoft.com
   Brand: #00AEEF (primary) · #0A1A2F (navy) · #F6FAFD (light)
   Mobile-first, no frameworks, no external images.
   ============================================================ */

:root {
  --blue: #00aeef;
  --blue-dark: #0087c9;
  --blue-deep: #005f8f;
  --navy: #0a1a2f;
  --navy-2: #10263f;
  --ink: #1c2b3a;
  --muted: #5b6b7d;
  --line: #e3ecf3;
  --bg: #ffffff;
  --bg-soft: #f6fafd;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(10, 26, 47, 0.08);
  --shadow-sm: 0 6px 18px rgba(10, 26, 47, 0.06);
  --grad: linear-gradient(135deg, #00aeef 0%, #38c6ff 60%, #6fdcff 100%);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-head: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 750; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 700; }

p { margin: 0 0 1rem; }
.lead { font-size: 1.12rem; color: var(--muted); }

.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 0.9rem;
}
.eyebrow.on-dark { color: #8fdcff; }

.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.tiny { font-size: 0.75rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 174, 239, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(0, 174, 239, 0.45); }
.btn-outline {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: transparent;
}
.btn-outline:hover { background: rgba(0, 174, 239, 0.08); }
.btn-light { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.btn-row.center { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { height: 44px; width: auto; }
.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
  border-left: 1px solid var(--line);
  padding-left: 0.6rem;
  line-height: 1.3;
  display: none;
}
.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 1.9rem;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-dark); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
}
.nav-cta { display: none; }
.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--navy); }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.6rem 0 1.2rem;
  background: #fff;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.8rem 4%;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu a:hover, .mobile-menu a.active {
  background: var(--bg-soft);
  color: var(--blue-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(0, 174, 239, 0.16), transparent 60%),
    radial-gradient(700px 420px at 5% 110%, rgba(0, 174, 239, 0.10), transparent 60%),
    var(--bg-soft);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { max-width: 34rem; margin-top: 1.1rem; }
.hero-art {
  position: relative;
  min-height: 300px;
}
.shield-card {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 70%);
  border-radius: 26px;
  padding: 2.2rem;
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.shield-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, transparent 0deg, rgba(0,174,239,0.25) 60deg, transparent 120deg);
  animation: spin 14s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.shield-inner { position: relative; z-index: 1; }
.shield-inner h3 { color: #fff; margin: 1rem 0 0.4rem; }
.shield-inner p { color: #b9c9da; font-size: 0.94rem; margin: 0; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 200, 120, 0.14);
  border: 1px solid rgba(0, 200, 120, 0.4);
  color: #7fe7b0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.status-chip .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2fe38f;
  box-shadow: 0 0 10px #2fe38f;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.55; } }
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.4rem;
  position: relative;
  z-index: 1;
}
.mini-stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.7rem;
  text-align: center;
}
.mini-stat b { display: block; font-size: 1.25rem; color: #fff; font-family: var(--font-head); }
.mini-stat span { font-size: 0.72rem; color: #9fb3c8; }

/* ---------- Trust strip / logos ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  background: #fff;
}
.trust-strip .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.trust-strip .row span { display: inline-flex; align-items: center; gap: 0.5rem; opacity: 0.75; }
.trust-strip svg { width: 20px; height: 20px; fill: var(--blue); }

/* ---------- Sections / cards ---------- */
.split {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(0,174,239,0.14), rgba(0,174,239,0.05));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--blue-dark); fill: none; stroke-width: 1.8; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }
.grid-2 { display: grid; gap: 1.4rem; }
.grid-3 { display: grid; gap: 1.4rem; }

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--navy) 0%, #12304f 100%);
  color: #fff;
  border-radius: 26px;
  padding: clamp(2rem, 5vw, 3.4rem);
  position: relative;
  overflow: hidden;
}
.stats-band::after {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  right: -160px; top: -160px;
  background: radial-gradient(circle, rgba(0,174,239,0.28), transparent 65%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  position: relative;
  z-index: 1;
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: #a9bfd4; font-size: 0.92rem; }
.stats-note { position: relative; z-index: 1; margin-top: 1.6rem; color: #7e96ae; font-size: 0.78rem; }

/* ---------- Numbered solution rows ---------- */
.sol-row {
  display: grid;
  gap: 1.6rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.sol-num {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue-dark);
}
.sol-row h2 { margin-bottom: 0.5rem; }
.sol-row .tagline { font-size: 1.08rem; color: var(--muted); margin-bottom: 1rem; }
.check-list { list-style: none; margin: 1rem 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.32rem;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.sol-art {
  border-radius: var(--radius);
  min-height: 220px;
  background:
    radial-gradient(420px 260px at 80% 20%, rgba(0,174,239,0.25), transparent 60%),
    linear-gradient(150deg, var(--navy), var(--navy-2));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.sol-art svg { width: 96px; height: 96px; stroke: #8fdcff; fill: none; stroke-width: 1.4; opacity: 0.9; }

/* ---------- Case highlight ---------- */
.case-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  gap: 1.8rem;
  align-items: center;
}
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.case-metrics .m b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--blue-dark);
}
.case-metrics .m span { font-size: 0.82rem; color: var(--muted); }
.illustrative {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0,174,239,0.1);
  color: var(--blue-deep);
  border: 1px dashed rgba(0,174,239,0.5);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, #2bb8f5 55%, #63d4ff 100%);
  border-radius: 26px;
  padding: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% -30%, rgba(255,255,255,0.22), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; position: relative; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 36rem; margin: 0 auto; position: relative; }
.cta-band .btn-row { justify-content: center; position: relative; }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; gap: 1.4rem; }
.contact-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.9rem;
}
.contact-card h3 { color: #fff; margin-bottom: 0.8rem; }
.contact-card a { color: #8fdcff; font-weight: 600; font-size: 1.05rem; }
.contact-card p { color: #a9bfd4; margin: 0.2rem 0; font-size: 0.94rem; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,174,239,0.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; }
.alert {
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  font-size: 0.94rem;
  display: none;
}
.alert.show { display: block; }
.alert-success { background: #e7f9f0; border: 1px solid #9fe3c0; color: #14663a; }
.alert-error { background: #fdeaea; border: 1px solid #f3b0b0; color: #8f1d1d; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
}
.faq-q .chev { transition: transform 0.2s ease; flex: none; color: var(--blue-dark); font-size: 1.3rem; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; color: var(--muted); }
.faq-a p { padding-bottom: 1.3rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #a9bfd4;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3.2rem 0 2rem;
}
.footer-brand img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0.9rem;
}
.footer-brand p { font-size: 0.92rem; max-width: 22rem; }
.footer-tag { color: #8fdcff; font-style: italic; font-size: 0.9rem; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; letter-spacing: 0.04em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: #a9bfd4; font-size: 0.93rem; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #7e96ae;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .shield-card::before { animation: none; }
}

/* ---------- 404 ---------- */
.error-wrap { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.error-code {
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

/* ---------- Portal (webapp) ---------- */
.portal-body { background: var(--bg-soft); min-height: 100vh; display: flex; flex-direction: column; }
.portal-login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 4%;
}
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 2.4rem;
  width: min(430px, 100%);
}
.login-card img { height: 46px; margin-bottom: 1.2rem; }
.demo-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a5a00;
  background: #fff3d6;
  border: 1px solid #f0d48a;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.demo-creds {
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.demo-creds code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  color: var(--blue-deep);
}

.portal-app { display: none; flex: 1; }
.portal-app.active { display: flex; flex-direction: column; }
.portal-topbar {
  background: var(--navy);
  color: #fff;
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.portal-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.portal-topbar img { height: 34px; filter: brightness(0) invert(1); }
.portal-user { display: flex; align-items: center; gap: 0.9rem; font-size: 0.88rem; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.84rem; }

.portal-layout { display: flex; flex: 1; }
.portal-sidebar {
  width: 230px;
  flex: none;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 1.4rem 0.9rem;
  display: none;
}
.portal-nav { list-style: none; }
.portal-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  margin-bottom: 0.25rem;
}
.portal-nav button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; }
.portal-nav button:hover { background: var(--bg-soft); color: var(--navy); }
.portal-nav button.active { background: rgba(0,174,239,0.12); color: var(--blue-dark); }
.portal-main { flex: 1; padding: 1.8rem 4%; max-width: 1080px; width: 100%; margin: 0 auto; }
.portal-view { display: none; }
.portal-view.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.p-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.p-card h3 { font-size: 1rem; margin-bottom: 1rem; }
.p-stat b { font-family: var(--font-head); font-size: 1.9rem; color: var(--navy); display: block; }
.p-stat span { font-size: 0.85rem; color: var(--muted); }
.pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.pill-green { background: #e7f9f0; color: #14663a; }
.pill-amber { background: #fff3d6; color: #8a5a00; }
.pill-red { background: #fdeaea; color: #8f1d1d; }
.pill-blue { background: rgba(0,174,239,0.12); color: var(--blue-deep); }

.activity { list-style: none; }
.activity li {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.activity li:last-child { border-bottom: none; }
.activity .time { color: var(--muted); font-size: 0.78rem; flex: none; width: 86px; }

.ticket { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; margin-bottom: 0.9rem; background: #fff; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin-bottom: 0.4rem; }
.ticket-head b { font-size: 0.98rem; }
.ticket p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.ticket-meta { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }

.score-ring-wrap { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.score-ring { position: relative; width: 150px; height: 150px; flex: none; }
.score-ring svg { transform: rotate(-90deg); }
.score-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-num b { font-family: var(--font-head); font-size: 2rem; color: var(--navy); }
.score-num span { font-size: 0.72rem; color: var(--muted); }
.finding { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.finding:last-child { border-bottom: none; }
.sev { flex: none; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.25rem 0.7rem; border-radius: 6px; margin-top: 0.15rem; }
.sev-high { background: #fdeaea; color: #8f1d1d; }
.sev-med { background: #fff3d6; color: #8a5a00; }
.sev-low { background: rgba(0,174,239,0.12); color: var(--blue-deep); }

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.doc-row:last-child { border-bottom: none; }
.doc-row .dname { font-weight: 600; }
.doc-row .dmeta { font-size: 0.8rem; color: var(--muted); }

.portal-tabs { display: flex; gap: 0.6rem; margin-bottom: 1.4rem; overflow-x: auto; }
.portal-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.portal-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Breakpoints ---------- */
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(4, 1fr); }
  .portal-sidebar { display: block; }
  .sol-row { grid-template-columns: 90px 1fr 320px; }
  .split { grid-template-columns: 1fr 1fr; }
  .case-card { grid-template-columns: 1.2fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .brand-tag { display: block; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
