:root {
  --bg: #f7f6f4;
  --bg-dark: #111111;
  --surface: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #e0dedd;
  --accent: #1240ab;
  --accent-muted: #eef0fb;
  --max-width: 1160px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.product-head h2 a,
.card-kicker a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  opacity: 0.9;
}

.product-head h2 a:hover,
.card-kicker a:hover {
  opacity: 1;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 0;
}

/* ─── Header ─── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 18px max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(220px, 40vw);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
}

/* ─── Hero ─── */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  padding: 80px 0 72px;
  align-items: start;
  border-bottom: 1px solid var(--border);
}

.hero-copy {
  padding-top: 8px;
}

.eyebrow,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}

.eyebrow::before,
.card-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.hero-text {
  margin-top: 22px;
  font-size: 1.02rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}

.button-primary:hover {
  background: #0e339a;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button-secondary:hover {
  border-color: #999;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.hero-points li {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
}

/* ─── Hero Panel ─── */

.hero-panel {
  display: grid;
  gap: 14px;
}

.product-card {
  padding: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.product-card-accent {
  background: var(--bg-dark);
  border-color: transparent;
  color: #f4f4f4;
}

.product-card-accent p,
.product-card-accent li {
  color: rgba(244, 244, 244, 0.65);
}

.product-card-accent .pill {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(244, 244, 244, 0.8);
  border: none;
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.product-head h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-card-accent h2 {
  color: #f4f4f4;
}

.product-card ul {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.product-card li {
  font-size: 0.9rem;
  padding-left: 16px;
  position: relative;
}

.product-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0.4;
  font-size: 0.8rem;
}

.product-card-accent li::before {
  color: #7a9fff;
  opacity: 1;
}

.pill {
  padding: 5px 10px;
  border-radius: 3px;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(18, 64, 171, 0.12);
}

/* ─── Sections ─── */

.products-section,
.experience-section,
.capabilities,
.contact-section {
  padding-top: 80px;
}

.section-intro {
  max-width: 700px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.section-intro h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.section-intro p:last-child {
  margin-top: 12px;
  font-size: 0.98rem;
}

.narrow {
  max-width: 560px;
}

/* ─── Product Grid ─── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.detail-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.detail-card-meridian {
  border-left: 3px solid var(--accent);
}

.detail-card-assets {
  border-left: 3px solid var(--text);
}

.detail-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 6px;
}

.detail-card p {
  margin-top: 12px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.feature-list span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
}

/* ─── Experience & Capabilities Grid ─── */

.experience-grid,
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.experience-grid article,
.capability-grid article {
  padding: 28px;
  background: var(--surface);
}

.experience-grid article + article,
.capability-grid article + article {
  border-left: 1px solid var(--border);
}

.experience-grid h3,
.capability-grid h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ─── Contact ─── */

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  background: var(--bg-dark);
  border-radius: 6px;
  margin-top: 0;
}

.contact-panel .eyebrow {
  color: #7a9fff;
}

.contact-panel h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 18ch;
  color: #f4f4f4;
}

.contact-panel p {
  color: rgba(244, 244, 244, 0.6);
  margin-top: 12px;
  max-width: 52ch;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
  flex-shrink: 0;
}

.contact-panel .button-primary {
  background: #ffffff;
  color: var(--bg-dark);
  border-color: transparent;
}

.contact-panel .button-primary:hover {
  background: #e8e8e8;
}

.contact-panel .button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

.contact-panel .button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* ─── Footer ─── */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ─── Responsive ─── */

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0 64px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .product-grid,
  .experience-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .experience-grid article + article,
  .capability-grid article + article {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .contact-actions {
    min-width: 0;
    width: 100%;
  }

  .contact-actions .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    padding: 16px 20px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 32px 28px;
  }
}
