/* ==========================================================================
   ZWCADS / CivilShop — Modern Design System
   Shared stylesheet for all pages
   ========================================================================== */

:root {
  /* Brand palette */
  --brand: #005caa;
  --brand-600: #0069c2;
  --brand-700: #004a8c;
  --brand-800: #023a6d;
  --accent: #ff5a3c;
  --accent-600: #e94327;

  /* Neutrals */
  --ink: #0f1b2d;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6eaf0;
  --bg: #f6f8fb;
  --bg-2: #eef2f8;
  --white: #ffffff;

  /* Effects */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 12px rgba(15, 27, 45, .05);
  --shadow: 0 10px 30px rgba(15, 27, 45, .08);
  --shadow-lg: 0 24px 60px rgba(2, 58, 109, .16);
  --ring: 0 0 0 4px rgba(0, 92, 170, .15);

  --container: 1200px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; color: var(--ink); font-weight: 800; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: rgba(0, 92, 170, .08);
  padding: 7px 14px; border-radius: 999px;
}

.section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 15px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(0, 92, 170, .28); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 92, 170, .34); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255, 90, 60, .3); }
.btn-accent:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-light { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255, 255, 255, .28); }
.btn-lg { padding: 18px 34px; font-size: 17px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, height .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: rgba(230, 234, 240, .9);
  box-shadow: 0 6px 24px rgba(15, 27, 45, .06);
}
.site-header .nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--ink-2); font-weight: 600; font-size: 15px;
  padding: 10px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--brand); background: rgba(0, 92, 170, .07); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* offset for fixed header */
.page { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(0, 92, 170, .18), transparent 60%),
    radial-gradient(700px 400px at 0% 20%, rgba(255, 90, 60, .10), transparent 55%),
    linear-gradient(180deg, #f3f7fc 0%, var(--bg) 100%);
  padding: clamp(70px, 9vw, 120px) 0 clamp(70px, 9vw, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 92, 170, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 92, 170, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; pointer-events: none; z-index: 0; }
.blob.b1 { width: 380px; height: 380px; background: rgba(0, 92, 170, .35); top: -80px; right: -60px; animation: float 9s ease-in-out infinite; }
.blob.b2 { width: 300px; height: 300px; background: rgba(255, 90, 60, .28); bottom: -100px; left: -40px; animation: float 11s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -24px); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); margin-bottom: 20px; }
.hero h1 .hl { color: var(--brand); }
.hero p.lead { font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges i { color: var(--brand); }
.hero-visual {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .6);
  aspect-ratio: 4 / 3; background: #dbe6f2;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
}
.hero-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.hero-chip strong { font-size: 15px; }
.hero-chip small { color: var(--muted); display: block; }

/* ---------- App / CAD window mockup ---------- */
.app-window {
  position: relative; border-radius: 18px; overflow: hidden; background: #0f1b2d;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .08);
  animation: floatWin 7s ease-in-out infinite;
}
@keyframes floatWin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #16233a; border-bottom: 1px solid rgba(255,255,255,.06); }
.app-bar .dots { display: flex; gap: 7px; }
.app-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.app-bar .dots i:nth-child(1) { background: #ff5f57; }
.app-bar .dots i:nth-child(2) { background: #febc2e; }
.app-bar .dots i:nth-child(3) { background: #28c840; }
.app-bar .title { color: #9fb0c7; font-size: 12.5px; font-weight: 600; margin-left: 6px; }
.app-body { display: grid; grid-template-columns: 54px 1fr; height: 300px; }
.app-side { background: #101d31; border-right: 1px solid rgba(255,255,255,.06); display: grid; gap: 10px; padding: 14px 0; align-content: start; justify-items: center; }
.app-side i { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #6fa8dc; font-size: 13px; }
.app-side i.on { background: var(--brand); color: #fff; }
.app-canvas {
  position: relative; background-color: #0c1626;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
}
.app-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-tag {
  position: absolute; bottom: 14px; right: 14px; background: rgba(255,255,255,.94);
  border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow);
}
.app-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.app-tag b { font-size: 13px; color: var(--ink); }

/* ---------- Logo strip ---------- */
.trust { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust p { text-align: center; color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; align-items: center; }
.trust-row span { font-weight: 800; font-size: 20px; color: #94a3b8; letter-spacing: -.02em; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0, 92, 170, .25); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card-tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.card h3 { font-size: 24px; margin-bottom: 8px; }
.card .sub { color: var(--brand-700); font-weight: 700; margin-bottom: 16px; }
.card ul { list-style: none; margin: 0 0 24px; display: grid; gap: 12px; }
.card li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 15px; }
.card li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0, 92, 170, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23005caa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.card .card-foot { margin-top: auto; display: flex; gap: 12px; align-items: center; }

/* ---------- Feature / icon grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; font-size: 22px;
  box-shadow: 0 10px 20px rgba(0, 92, 170, .28);
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Industry solutions (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.solution {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow);
}
.solution img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.solution::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 58, 109, .1), rgba(2, 58, 109, .85)); }
.solution .inner { position: relative; z-index: 1; padding: 34px; }
.solution .badge { display: inline-block; background: rgba(255, 255, 255, .18); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, .3); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.solution h3 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.solution p { color: rgba(255, 255, 255, .9); font-size: 15px; max-width: 460px; }

/* ---------- Stats band ---------- */
.stats { background: linear-gradient(135deg, var(--brand-700), var(--brand)); color: #fff; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .stat b { display: block; font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.stats .stat span { color: rgba(255, 255, 255, .82); font-weight: 600; }

/* ---------- Testimonials ---------- */
.tcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.tcard .stars { color: #f5a623; margin-bottom: 14px; letter-spacing: 2px; }
.tcard p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 20px; }
.tcard .who { display: flex; align-items: center; gap: 12px; }
.tcard .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.tcard .who b { display: block; font-size: 15px; }
.tcard .who small { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; text-align: center; color: #fff;
  padding: clamp(48px, 7vw, 84px) 24px;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(255, 90, 60, .35), transparent 60%),
    linear-gradient(135deg, var(--brand-800), var(--brand));
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.cta p { color: rgba(255, 255, 255, .9); font-size: 19px; max-width: 620px; margin: 0 auto 30px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1626; color: #cbd5e1; padding: 72px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #94a3b8; font-size: 15px; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 40px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-brand p { color: #94a3b8; font-size: 15px; max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; color: #cbd5e1; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--brand); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #7c8aa0; font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .split { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 20px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-links a { padding: 14px; font-size: 16px; border-radius: 12px; }
  body.nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-cta .btn:not(.nav-toggle) { display: none; }
  .section { padding: 68px 0; }
}

@media (max-width: 560px) {
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
