:root {
  --bg-deep: #050c1c;
  --bg-header: #0a1226;
  --card-bg-1: #232f42;
  --card-bg-2: #131b2c;
  --blue-700: #1e3a8a;
  --blue-500: #2563eb;
  --blue-400: #38bdf8;
  --blue-300: #38bdf8;
  --slate: #64748b;
  --platinum: #f1f5f9;
  --text-light: #f1f5fb;
  --text-muted: #9aa7bd;
  --text-dark: #1e293b;
  --border-soft: rgba(255,255,255,0.08);
  --radius: 14px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text-light);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

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

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--platinum);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-badge {
  position: relative;
  width: 96px;
  height: 96px;
}

.loader-ring, .loader-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loader-ring {
  animation: page-loader-spin 1.1s linear infinite;
}

@keyframes page-loader-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .loader-ring { animation: none; }
}

/* Header */
.site-header {
  background: var(--platinum);
  border-bottom: 1px solid rgba(15,23,42,0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.header-logo-img {
  height: 60px;
  width: auto;
}

.footer-logo-img {
  height: 145px;
  width: auto;
  margin: -49px 0;
}

.main-nav {
  display: flex;
  gap: 26px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dark);
  opacity: 0.7;
  font-size: 0.92rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: opacity 0.15s ease;
}

.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a.active { border-bottom-color: var(--blue-500); }

.chev {
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
}

.nav-item { position: relative; }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 20;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  padding: 8px 10px;
  border-radius: 6px;
  border-bottom: none;
  font-size: 0.9rem;
}

.nav-dropdown a:hover { background: var(--platinum); opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  opacity: 0.7;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}
.icon-btn:hover { opacity: 1; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { opacity: 0.88; }

.btn-primary {
  background: var(--blue-500);
  color: #fff;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text-light);
  background: transparent;
}

.btn-small { padding: 10px 18px; font-size: 0.88rem; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 70% 25%, rgba(37,99,235,0.16) 0%, transparent 55%),
    var(--bg-deep);
  padding: 96px 0 80px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-copy { flex: 1.1; }

.eyebrow {
  color: var(--blue-400);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: 2.7rem;
  line-height: 1.22;
  margin: 0 0 20px;
  font-weight: 700;
}

.accent { color: var(--blue-400); }

.lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-art {
  flex: 1;
  max-width: 480px;
}

.hero-art svg { width: 100%; height: auto; }

/* Solutions */
.solutions {
  background: var(--bg-deep);
  padding: 64px 0 100px;
  border-top: 1px solid var(--border-soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: linear-gradient(155deg, var(--card-bg-1), var(--card-bg-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}

.card-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.badge-blue { background: rgba(37,99,235,0.18); color: var(--blue-300); }
.badge-purple { background: rgba(100,116,139,0.18); color: var(--slate); }

.card h3 { margin: 0 0 10px; font-size: 1.08rem; color: var(--text-light); }

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
  min-height: 66px;
}

.learn-more {
  color: var(--blue-400);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  gap: 5px;
}

/* Inner page hero */
.page-hero {
  background:
    radial-gradient(circle at 70% 25%, rgba(37,99,235,0.16) 0%, transparent 55%),
    var(--bg-deep);
  padding: 72px 0 56px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
}

.page-hero .lede { margin-left: auto; margin-right: auto; }

/* Service detail sections */
.service-detail {
  background: var(--bg-deep);
  padding: 56px 0;
  border-top: 1px solid var(--border-soft);
}

.service-detail.alt { background: var(--bg-header); }

.service-detail-inner { max-width: 720px; }

.service-detail-copy h2 { margin: 0 0 6px; font-size: 1.6rem; }

.product-logo {
  max-height: 84px;
  width: auto;
  margin-bottom: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-tagline {
  color: var(--blue-400);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.service-detail-copy > p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 20px;
}

.service-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.service-detail-copy .btn { margin-top: 4px; }

.service-points li {
  position: relative;
  padding-left: 22px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-400);
}

.service-detail-copy h3 {
  font-size: 0.98rem;
  color: var(--text-light);
  margin: 0 0 10px;
}

.tag-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  background: rgba(37,99,235,0.14);
  color: var(--blue-300);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* CTA band */
.cta-band {
  background: var(--bg-header);
  border-top: 1px solid var(--border-soft);
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 { margin: 0 0 10px; font-size: 1.8rem; }
.cta-band p { color: var(--text-muted); margin: 0 0 28px; }

/* Contact page */
.contact-section {
  background: var(--bg-deep);
  padding: 64px 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }

.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .card-badge { flex-shrink: 0; margin-bottom: 0; }
.contact-item h3 { margin: 0 0 4px; font-size: 1rem; }
.contact-item a { color: var(--blue-400); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }
.contact-item p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.contact-form {
  background: linear-gradient(155deg, var(--card-bg-1), var(--card-bg-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }

.form-row label { font-size: 0.88rem; color: var(--text-muted); }

.form-row input, .form-row textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue-500);
}

.contact-form .btn { align-self: flex-start; border: none; cursor: pointer; }

.form-honeypot {
  display: none;
}

.form-status {
  margin: 0;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

.contact-form .btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Careers page */
.careers-section {
  background: var(--bg-deep);
  padding: 64px 0 100px;
}

.careers-inner {
  max-width: 620px;
  text-align: center;
}

.careers-icon { margin: 0 auto 20px; }

.careers-section h2 { margin: 0 0 14px; font-size: 1.8rem; }
.careers-section > .container > p {
  color: var(--text-muted);
  margin: 0 0 28px;
}

/* Footer */
.site-footer {
  background: var(--bg-header);
  color: var(--text-muted);
  padding: 40px 0 22px;
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links { display: flex; gap: 22px; font-size: 0.88rem; }
.footer-links a:hover { color: var(--text-light); }

.copyright {
  margin: 0;
  font-size: 0.82rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 980px) {
  .header-inner { position: relative; }
  .header-actions .icon-btn { display: none; }
  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--platinum);
    border-bottom: 1px solid rgba(15,23,42,0.08);
    padding: 12px 32px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .nav-item { width: 100%; }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: none;
    padding: 0 0 4px 16px;
  }
  .nav-dropdown a { padding: 6px 0; opacity: 0.7; }

  .header-logo-img { height: 44px; }
  .header-actions .btn-small { padding: 8px 14px; font-size: 0.82rem; }

  .hero-inner { flex-direction: column; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero h1 { font-size: 2.1rem; }
  .footer-inner { justify-content: center; text-align: center; }

  .page-hero h1 { font-size: 1.9rem; }
  .service-points { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .btn { align-self: stretch; }
}

@media (max-width: 420px) {
  .header-actions .btn-small { display: none; }
}
