:root {
  --ink: #0a1628;
  --navy: #142442;
  --blue: #3b82f6;
  --mist: #eef2f7;
  --border: #e2e8f0;
  --text: #0a1628;
  --muted: #64748b;
  --bg: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; color: #fff; }
.brand__logo { height: 32px; width: auto; filter: brightness(0) invert(1); }
.nav__links { display: none; gap: 28px; font-size: 14px; color: rgba(255,255,255,0.7); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__inner .nav__cta { display: none; }
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__inner .nav__cta { display: inline-flex; }
}

/* Mobile / tablet menu (no JS) */
.nav__mobile { position: relative; }
@media (min-width: 1024px) { .nav__mobile { display: none; } }
.nav__mobile > summary {
  list-style: none;
  cursor: pointer;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  transition: color .2s;
}
.nav__mobile > summary::-webkit-details-marker { display: none; }
.nav__mobile > summary:hover { color: #fff; }
.nav__burger { display: inline-flex; flex-direction: column; gap: 6px; width: 22px; }
.nav__burger span { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s, width .2s; }
.nav__burger span:nth-child(1) { width: 22px; }
.nav__burger span:nth-child(2) { width: 16px; align-self: flex-end; }
.nav__burger span:nth-child(3) { width: 22px; }
.nav__mobile[open] .nav__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); width: 22px; }
.nav__mobile[open] .nav__burger span:nth-child(2) { opacity: 0; }
.nav__mobile[open] .nav__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); width: 22px; }
.nav__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  padding: 16px;
  background: rgba(10,22,40,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
}
.nav__panel a {
  padding: 12px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav__panel a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav__panel-cta { margin-top: 8px; justify-content: center; color: var(--ink) !important; background: #fff; }
.nav__panel-cta:hover { background: rgba(255,255,255,0.9) !important; }

.btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; transition: background .2s, color .2s; }
.btn--pill { padding: 10px 20px; border-radius: 999px; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: rgba(255,255,255,0.9); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.25); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.1); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.35) 55%, rgba(10,22,40,0.15) 100%),
    linear-gradient(to right, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.05) 60%, transparent 100%);
}
.hero__content { position: relative; z-index: 1; padding: 128px 24px 80px; width: 100%; }
@media (min-width: 1024px) { .hero__content { padding: 144px 40px 96px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 24px; }
.eyebrow--light { color: rgba(238,242,247,0.7); }
.eyebrow--blue { color: var(--blue); margin-bottom: 16px; }
.rule { display: inline-block; width: 32px; height: 1px; background: var(--blue); }

.h-display {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 780px;
}
.h-display--dark { color: var(--ink); font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.05; }
.h-display .accent, .h-display--dark .accent { display: block; color: var(--blue); margin-top: 8px; }

.hero__lead { margin-top: 24px; max-width: 560px; font-size: clamp(0.95rem, 1.1vw, 1.1rem); color: rgba(255,255,255,0.72); line-height: 1.65; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Marquee */
.marquee { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.1); padding: 64px 0; color: #fff; }
@media (min-width: 1024px) { .marquee { padding: 96px 0; } }
.grid { display: grid; gap: 56px 64px; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
.slide h3 { font-family: 'Sora', sans-serif; font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; letter-spacing: -0.02em; margin-top: 12px; }
.slide p { margin-top: 16px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* Sections */
.section { padding: 96px 0; }
@media (min-width: 1024px) { .section { padding: 128px 0; } }
.section--light { background: #fff; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: #fff; }
.section--tight { padding-bottom: 32px; }
@media (min-width: 1024px) { .section--tight { padding-bottom: 48px; } }

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.product-card {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(10,22,40,0.25); }
.product-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.product-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; display: block; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.product-card__eyebrow {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
}
.product-card__body h3 { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--ink); line-height: 1.3; }

/* Software grid */
.software-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .software-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .software-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.software-card {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.software-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(10,22,40,0.25); }
.software-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.software-card__icon {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--ink), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.75rem;
  color: #fff; letter-spacing: 0.04em;
}
.software-card__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.software-card__eyebrow {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
}
.software-card__body h3 { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--ink); line-height: 1.3; }
.software-card__body p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-top: 4px; }

/* Product modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: modal-fade .2s ease-out;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,22,40,0.72);
}
.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
  animation: modal-pop .25s cubic-bezier(.2,.9,.3,1);
}
@media (min-width: 768px) { .modal__dialog { grid-template-columns: 5fr 6fr; } }
.modal__media {
  background: var(--mist);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
@media (min-width: 768px) { .modal__media { aspect-ratio: auto; height: 100%; min-height: 360px; } }
.modal__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__body {
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
}
@media (min-width: 768px) { .modal__body { padding: 40px; gap: 18px; } }
.modal__body .h-sub { margin: 0; }
.modal__body .muted { max-width: none; line-height: 1.6; }
.modal__body .btn { margin-top: 8px; align-self: flex-start; }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 999px;
  border: none; background: rgba(255,255,255,0.9); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease;
}
.modal__close:hover { background: var(--ink); color: #fff; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__dialog--no-media { grid-template-columns: 1fr !important; max-width: 560px; }
.modal__dialog--no-media .modal__media { display: none; }

.section__head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 64px; }
@media (min-width: 768px) { .section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.muted { color: var(--muted); max-width: 360px; }
.muted--light { color: rgba(255,255,255,0.6); margin-top: 24px; line-height: 1.6; }

/* About */
.about { display: grid; grid-template-columns: 1fr; gap: 64px; }
@media (min-width: 1024px) { .about { grid-template-columns: 5fr 7fr; } .about__body { padding-top: 24px; } }
.lead { font-size: 1.125rem; color: var(--muted); line-height: 1.65; }
.checklist { list-style: none; margin-top: 40px; }
.checklist li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); font-weight: 500; color: var(--ink); }
.check { width: 24px; height: 24px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Services */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
.service { background: #fff; padding: 32px; transition: background .3s, color .3s; }
@media (min-width: 1024px) { .service { padding: 40px; } }
.service h3 { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.service p { margin-top: 12px; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.service:hover { background: var(--ink); }
.service:hover h3 { color: #fff; }
.service:hover p { color: rgba(255,255,255,0.6); }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.pillar { padding-top: 24px; border-top: 2px solid var(--ink); }
.pillar__num {
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 16px;
}
.pillar h3 { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--ink); line-height: 1.35; }
.pillar p { margin-top: 12px; font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* Sectors */
.sectors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 640px) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
.sector { background: #fff; padding: 28px; }
@media (min-width: 1024px) { .sector { padding: 36px; } }
.sector h3 { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.sector p { margin-top: 10px; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

.h-sub { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 1.875rem); color: var(--ink); margin-bottom: 32px; line-height: 1.2; }

/* Contact */
.contact__intro { max-width: 820px; margin-bottom: 64px; }
.contact__layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .contact__layout { grid-template-columns: 5fr 7fr; gap: 40px; } }
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(255,255,255,0.1); border-radius: 16px; overflow: hidden; align-self: stretch; }
@media (min-width: 640px) and (max-width: 1023px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
.contact__card { background: var(--ink); padding: 32px; display: block; transition: background .2s; }
.contact__card:hover { background: var(--navy); }
.contact__label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.contact__line { font-family: 'Sora', sans-serif; font-weight: 500; color: #fff; font-size: 1.0625rem; line-height: 1.4; word-break: break-word; }
.contact__line--sm { font-size: 0.95rem; letter-spacing: -0.01em; }

/* Footer */
.footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.1); padding: 40px 0; color: rgba(255,255,255,0.5); font-size: 14px; }
.footer__inner { display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .footer__inner { flex-direction: row; } }
.footer__links { display: flex; gap: 24px; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: #fff; }
/* Contact form */
.contact__form { display: grid; gap: 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 28px; }
@media (min-width: 1024px) { .contact__form { padding: 36px; } }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; color: rgba(255,255,255,0.65); font-weight: 500; }
.field input, .field textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); background: rgba(255,255,255,0.09); }
.form-foot { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-content: space-between; margin-top: 4px; }
@media (min-width: 640px) { .form-foot { flex-direction: row; align-items: center; } }
.small { font-size: 12px; }

/* Solution groups */
.solution-group + .solution-group { margin-top: 64px; }
.solution-group__head { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.solution-group__head h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--ink);
  line-height: 1.25;
}
.solution-group__head p { margin-top: 8px; color: var(--muted); max-width: 62ch; }
.solution-group .software-card { justify-content: flex-start; }
