/* ==========================================================================
   VISIODEN — Global Stylesheet
   Palette: Trust Blue / White / Cool Gray
   ========================================================================== */

:root {
  --blue-900: #0b2e59;
  --blue-800: #103d73;
  --blue-700: #154a8c;
  --blue-600: #1c5aa8;
  --blue-500: #2f74c9;
  --blue-100: #e8f0fb;
  --blue-50:  #f4f8fd;

  --gray-900: #1f2733;
  --gray-700: #4a5568;
  --gray-500: #7a8699;
  --gray-300: #cbd3dd;
  --gray-200: #e3e8ee;
  --gray-100: #f1f4f8;

  --white: #ffffff;

  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 40, 80, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 40, 80, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 40, 80, 0.14);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

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

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--gray { background: var(--blue-50); }
.section--dark { background: var(--blue-900); color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue-500);
  display: inline-block;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0 0 16px; color: var(--gray-900); }
h1 { font-size: clamp(32px, 4.5vw, 52px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 20px; }
p { color: var(--gray-700); margin: 0 0 16px; }

.section--dark h1, .section--dark h2, .section--dark p { color: var(--white); }
.section--dark .eyebrow { color: #9ec4f0; }
.section--dark .eyebrow::before { background: #9ec4f0; }

.lead { font-size: 18px; color: var(--gray-700); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn--primary { background: var(--blue-600); color: var(--white); }
.btn--primary:hover { background: var(--blue-700); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline:hover { background: rgba(255,255,255,0.12); }
.btn--ghost { background: var(--white); color: var(--blue-700); border-color: var(--gray-200); }
.btn--ghost:hover { border-color: var(--blue-400); box-shadow: var(--shadow-sm); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--blue-800);
}
.brand small {
  display: block;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-top: 1px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-700); border-color: var(--blue-500); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-900); margin: 5px 0; }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 90px;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(47,116,201,0.16), transparent 60%),
    linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat {
  background: var(--blue-50);
  border-radius: 12px;
  padding: 18px;
}
.stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-700);
  line-height: 1;
  margin-bottom: 6px;
}
.stat .label { font-size: 13px; color: var(--gray-700); font-weight: 500; }

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  padding: 28px 0;
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-strip .label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.trust-marks { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.trust-mark { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gray-700); font-size: 15px; }
.trust-mark svg { width: 20px; height: 20px; color: var(--blue-600); }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-tile svg { width: 24px; height: 24px; color: var(--blue-600); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 10px; }

/* Category chips (products page) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--blue-400); color: var(--blue-700); }
.filter-chip.is-active { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }

.category-block { margin-bottom: 64px; }
.category-block-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-200);
}
.category-block-head h2 { margin: 0; font-size: 24px; }
.category-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 4px 12px;
  border-radius: 999px;
}

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-thumb {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, var(--blue-50), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}
.product-thumb svg { width: 44px; height: 44px; color: var(--blue-500); }
/* Real product photo, if present, overlays the placeholder icon.
   Drop a matching file into assets/products/ and it appears automatically —
   if the file is missing, onerror removes the <img> and the icon shows through. */
.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.product-body h3 { margin-bottom: 6px; font-size: 17px; }
.product-code { font-size: 12.5px; color: var(--gray-500); margin-bottom: 10px; font-family: 'SFMono-Regular', Menlo, monospace; }
.product-desc { font-size: 14px; color: var(--gray-700); margin-bottom: 0; flex: 1; }
.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}
.product-link { font-size: 13.5px; font-weight: 700; color: var(--blue-700); }

/* Timeline / process */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-step { position: relative; }
.process-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-600);
  background: var(--blue-100);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon-tile { margin-bottom: 0; flex-shrink: 0; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; color: var(--gray-700); margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue-800), var(--blue-600));
  border-radius: 20px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }

/* Footer */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand p { color: var(--gray-500); font-size: 14px; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: var(--gray-500); font-size: 14.5px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-500);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--blue-50), var(--white));
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb { font-size: 13.5px; color: var(--gray-500); margin-bottom: 16px; }
.breadcrumb a { color: var(--blue-600); font-weight: 600; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .product-grid, .process-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 26px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .trust-strip .container { flex-direction: column; align-items: flex-start; }
}
