/* ============================================================
   Web Solutions, Inc. — Enterprise Automation & Observable Systems
   Design system: Professional enterprise technology
   Fonts: IBM Plex Sans (display/body) + IBM Plex Mono (labels/data)
   Palette: Deep navy + signal blues + slate grays on crisp white
   ============================================================ */

:root {
  --navy-900: #0F1F3D;
  --navy-800: #14264A;
  --navy-700: #1A2E57;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-400: #60A5FA;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --white:    #FFFFFF;
  --line:     #E2E8F0;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --shadow-sm: 0 1px 3px rgba(15, 31, 61, 0.06), 0 1px 2px rgba(15, 31, 61, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 31, 61, 0.08), 0 2px 4px rgba(15, 31, 61, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 31, 61, 0.12), 0 4px 8px rgba(15, 31, 61, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ============ NAVBAR ============ */
.ws-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.ws-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ws-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.ws-logo svg { display: block; }
.ws-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ws-nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.18s ease;
}
.ws-nav-links a:hover { color: var(--blue-600); }
.ws-nav-cta {
  background: var(--navy-900);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.18s ease;
}
.ws-nav-cta:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
}
.ws-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.ws-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 1px;
}

/* ============ HERO ============ */
.ws-hero {
  background:
    radial-gradient(1200px 600px at 15% -10%, var(--blue-50), transparent 60%),
    linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ws-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px 96px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.ws-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 20px;
}
.ws-eyebrow-light { color: var(--blue-400); }
.ws-hero-title {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--navy-900);
  margin: 0 0 24px;
}
.ws-hero-title em {
  font-style: normal;
  color: var(--blue-600);
  position: relative;
}
.ws-hero-title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-100));
  opacity: 0.5;
  z-index: -1;
  border-radius: 3px;
}
.ws-hero-lede {
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--slate-500);
  max-width: 560px;
  margin: 0 0 32px;
}
.ws-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}
.ws-btn-lg { padding: 16px 30px; font-size: 16px; }
.ws-btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.ws-btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.ws-btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--slate-300);
}
.ws-btn-ghost:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: var(--blue-50);
}
.ws-hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.ws-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  font-family: var(--font-mono);
}
.ws-stat span {
  font-size: 13px;
  color: var(--slate-500);
}

.ws-hero-visual {
  position: relative;
}
.ws-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.ws-hero-visual::before {
  content: '';
  position: absolute;
  inset: -16px -16px 16px 16px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  z-index: -1;
  background:
    linear-gradient(var(--slate-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--slate-100) 1px, transparent 1px);
  background-size: 24px 24px;
}
.ws-hero-visual-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--slate-500);
  flex-wrap: wrap;
}
.ws-mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ============ SECTION SHARED ============ */
.ws-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px;
}
.ws-section-header {
  max-width: 720px;
  margin-bottom: 56px;
}
.ws-section-title {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 16px;
}
.ws-section-desc {
  font-size: 17px;
  color: var(--slate-500);
  line-height: 1.65;
  margin: 0;
}

/* ============ SOLUTIONS MATRIX ============ */
.ws-matrix {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Integration connectors between cards — drawn via pseudo-elements */
.ws-matrix::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-400) 12%, var(--blue-400) 88%, transparent);
  z-index: 0;
  opacity: 0.6;
}
.ws-matrix::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--blue-400) 12%, var(--blue-400) 88%, transparent);
  z-index: 0;
  opacity: 0.6;
}

.ws-matrix-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 32px 32px;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ws-matrix-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue-100);
}
.ws-matrix-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  opacity: 0;
  transition: opacity 0.22s ease;
}
.ws-matrix-card:hover::before { opacity: 1; }

.ws-matrix-card::after {
  content: '';
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px var(--blue-100);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.ws-matrix-card:hover::after { opacity: 1; }

.ws-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ws-card-index {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-300);
  letter-spacing: 0.05em;
}
.ws-card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin: 0 0 12px;
}
.ws-card-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--slate-500);
  margin: 0 0 20px;
}
.ws-card-features {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ws-card-features li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--slate-600);
}
.ws-card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue-100);
  border: 1px solid var(--blue-400);
}


/* ============ DARK SECTION (CAPABILITIES) ============ */
.ws-section-dark {
  max-width: 100%;
  background:
    radial-gradient(1000px 500px at 80% 0%, rgba(59, 130, 246, 0.18), transparent 55%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--slate-200);
  padding: 96px 32px;
}
.ws-section-dark .ws-section-header { max-width: 760px; }
.ws-section-header-light .ws-section-title { color: var(--white); }
.ws-section-header-light .ws-section-desc { color: var(--slate-400); }

.ws-capability-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-left: 1px solid rgba(148, 163, 184, 0.2);
}
.ws-capability-item {
  display: flex;
  gap: 16px;
  padding: 32px 28px;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  transition: background 0.2s ease;
}
.ws-capability-item:hover { background: rgba(59, 130, 246, 0.08); }
.ws-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}
.ws-capability-item h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.ws-capability-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate-400);
}

/* ============ CASE STUDIES ============ */
.ws-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ws-case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.ws-case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue-100);
}
.ws-case-card .ws-mono-tag {
  align-self: flex-start;
  margin-bottom: 18px;
}
.ws-case-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  line-height: 1.3;
  margin: 0 0 12px;
}
.ws-case-card > p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--slate-500);
  margin: 0 0 24px;
  flex-grow: 1;
}
.ws-case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.ws-metric strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--blue-600);
  line-height: 1.2;
}
.ws-metric span {
  font-size: 12px;
  color: var(--slate-400);
  line-height: 1.35;
}

/* ============ CONTACT CTA ============ */
.ws-section-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 110px;
}
.ws-cta-inner {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(59, 130, 246, 0.16), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: 16px;
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ws-cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.ws-cta-title {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.12;
  margin: 0 auto 16px;
  max-width: 680px;
}
.ws-cta-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate-400);
  max-width: 600px;
  margin: 0 auto 36px;
}
.ws-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.ws-cta-or {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate-400);
  letter-spacing: 0.05em;
}
.ws-section-cta .ws-btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.ws-section-cta .ws-btn-ghost:hover {
  border-color: var(--blue-400);
  color: var(--blue-400);
  background: rgba(59, 130, 246, 0.12);
}

/* ============ FOOTER ============ */
.ws-footer {
  background: var(--navy-900);
  color: var(--slate-300);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.ws-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.ws-footer-brand .ws-logo { color: var(--white); margin-bottom: 14px; }
.ws-footer-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate-400);
  margin: 0;
}
.ws-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.ws-footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.ws-footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--slate-300);
  padding: 5px 0;
  transition: color 0.18s ease;
}
.ws-footer-col a:hover { color: var(--blue-400); }
.ws-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--slate-400);
}
.ws-footer-bottom a { color: var(--slate-300); }
.ws-footer-bottom a:hover { color: var(--blue-400); }
.ws-footer-dot { color: var(--slate-500); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .ws-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 28px 72px;
  }
  .ws-hero-visual { max-width: 640px; margin: 0 auto; }
  .ws-hero-visual::before { display: none; }
  .ws-case-grid { grid-template-columns: 1fr; }
  .ws-case-metrics { grid-template-columns: repeat(3, 1fr); }
  .ws-matrix { grid-template-columns: 1fr; gap: 24px; }
  .ws-matrix::before, .ws-matrix::after { display: none; }
  .ws-capability-grid { grid-template-columns: 1fr; }
  .ws-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .ws-section { padding: 64px 28px; }
}

@media (max-width: 760px) {
  .ws-nav-links { display: none; }
  .ws-nav-links.ws-nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 16px 28px 24px;
    box-shadow: var(--shadow-md);
    gap: 8px;
    z-index: 99;
  }
  .ws-nav-links.ws-nav-open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .ws-nav-links.ws-nav-open .ws-nav-cta {
    text-align: center;
    background: var(--blue-600);
    border-bottom: none;
    margin-top: 4px;
  }
  .ws-mobile-toggle { display: flex; }

  .ws-hero-inner { padding: 48px 20px 60px; }
  .ws-hero-title { font-size: 36px; }
  .ws-hero-stats { gap: 20px; flex-wrap: wrap; }
  .ws-hero-actions { flex-direction: column; align-items: stretch; }
  .ws-hero-actions .ws-btn { text-align: center; justify-content: center; }

  .ws-matrix-card { padding: 28px 22px 24px; }
  .ws-card-title { font-size: 19px; }

  .ws-capability-grid { grid-template-columns: 1fr; }
  .ws-capability-item { padding: 24px 20px; }

  .ws-cta-inner { padding: 40px 24px; }
  .ws-cta-actions { flex-direction: column; align-items: stretch; }
  .ws-cta-actions .ws-btn { text-align: center; justify-content: center; }
  .ws-cta-or { display: none; }

  .ws-footer-inner { gap: 28px; }
  .ws-footer-links { grid-template-columns: 1fr; gap: 20px; }
  .ws-footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ws-footer-dot { display: none; }

  .ws-section { padding: 56px 20px; }
  .ws-section-cta { padding: 20px 16px 80px; }
  .ws-section-dark { padding: 64px 20px; }
  .ws-section-header { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ws-matrix-card, .ws-case-card, .ws-btn, .ws-nav-cta { transition: none; }
}
