:root {
  --postly-blue: #061f86;
  --postly-blue-dark: #041255;
  --postly-ink: #08364b;
  --postly-line: #dfe6f1;
  --postly-bg: #f7f9fc;
  --postly-panel: #ffffff;
  --postly-teal: #08746d;
  --postly-gold: #c9a227;
  --postly-red: #d13a2f;
  --postly-muted: #617384;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--postly-ink);
  background: var(--postly-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(223, 230, 241, 0.52);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand-link img {
  width: 124px;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.header-action,
.primary-link,
.secondary-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.nav-links a {
  padding: 0 12px;
  color: #375266;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--postly-blue);
  background: #eef3fb;
}

.header-action {
  min-width: 88px;
  padding: 0 16px;
  color: var(--white);
  background: var(--postly-blue);
}

.header-action:hover,
.primary-link:hover {
  background: var(--postly-blue-dark);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-content: center;
  gap: 24px;
  overflow: hidden;
  padding: 132px 28px 80px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(4, 18, 85, 0.9) 0%, rgba(4, 18, 85, 0.72) 38%, rgba(4, 18, 85, 0.2) 100%),
    url("/assets/hero-platform.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(180deg, rgba(4, 18, 85, 0) 0%, rgba(247, 249, 252, 0.96) 100%);
  pointer-events: none;
}

.hero-copy,
.hero-status {
  position: relative;
  z-index: 1;
}

.hero-copy {
  width: min(680px, 100%);
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--postly-teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7ce0d5;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 5.4rem;
  line-height: 0.95;
  font-weight: 900;
}

.hero-lede {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.28rem;
  line-height: 1.48;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.primary-link,
.secondary-link {
  min-width: 132px;
  padding: 0 18px;
}

.primary-link {
  color: var(--white);
  background: var(--postly-blue);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.secondary-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-status {
  width: min(360px, 100%);
  display: grid;
  gap: 8px;
  margin-top: 30px;
  padding-left: 16px;
  border-left: 3px solid #7ce0d5;
}

.hero-status span,
.hero-status small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.hero-status span {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-status strong {
  font-size: 1.45rem;
}

.hero-status small {
  line-height: 1.4;
}

.metrics-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -44px auto 0;
  width: min(1180px, calc(100% - 40px));
  overflow: hidden;
  border: 1px solid var(--postly-line);
  border-radius: 8px;
  background: var(--postly-line);
  box-shadow: 0 24px 60px rgba(20, 57, 77, 0.14);
}

.metrics-strip div {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 20px;
  background: var(--postly-panel);
}

.metrics-strip span,
.feature-card span,
.workflow-list span {
  color: var(--postly-teal);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metrics-strip strong {
  color: var(--postly-blue-dark);
  font-size: 1rem;
  font-weight: 900;
}

.metrics-strip p,
.feature-card p,
.section-heading p,
.proof-copy p,
.workflow-list p,
.operations-grid p,
.site-footer p {
  margin: 0;
  color: #375266;
  line-height: 1.48;
  font-weight: 700;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 0;
}

.section-heading {
  width: min(760px, 100%);
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.compact-heading {
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  color: var(--postly-blue-dark);
  font-size: 2.48rem;
  line-height: 1.08;
  font-weight: 900;
}

h3 {
  margin: 0;
  color: #102f45;
  font-size: 1.08rem;
  line-height: 1.18;
  font-weight: 900;
}

.feature-grid,
.operations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-card,
.operations-grid article,
.workflow-list article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--postly-line);
  border-radius: 8px;
  background: var(--postly-panel);
}

.feature-card {
  min-height: 214px;
  padding: 20px;
  box-shadow: 0 18px 44px rgba(20, 57, 77, 0.06);
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: center;
}

.proof-copy {
  display: grid;
  gap: 14px;
}

.signal-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
}

.signal-list div {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-top: 1px solid var(--postly-line);
}

.signal-list dt {
  color: var(--postly-blue-dark);
  font-weight: 900;
}

.signal-list dd {
  margin: 0;
  color: #375266;
  line-height: 1.44;
  font-weight: 720;
}

.product-figure {
  min-width: 0;
  margin: 0;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  overflow: hidden;
  background: var(--postly-panel);
  box-shadow: 0 18px 44px rgba(20, 57, 77, 0.1);
}

.product-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.product-figure figcaption {
  padding: 12px 14px;
  border-top: 1px solid #dce5ee;
  color: #4b6273;
  font-size: 0.84rem;
  font-weight: 800;
}

.mail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.wide-figure {
  height: 100%;
}

.wide-figure img {
  height: 100%;
  min-height: 440px;
}

.workflow-list {
  display: grid;
  gap: 10px;
}

.workflow-list article {
  padding: 18px;
}

.operations-section {
  padding-top: 96px;
}

.operations-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operations-grid article {
  min-height: 170px;
  padding: 22px;
}

.operations-grid article:nth-child(2) {
  border-top-color: rgba(201, 162, 39, 0.62);
}

.operations-grid article:nth-child(3) {
  border-top-color: rgba(209, 58, 47, 0.34);
}

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

.site-footer {
  width: min(1180px, calc(100% - 40px));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 92px auto 0;
  padding: 28px 0 38px;
  border-top: 1px solid var(--postly-line);
}

.site-footer img {
  width: 118px;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--postly-line);
  border-radius: 8px;
  color: #375266;
  background: var(--white);
  font-weight: 850;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--postly-blue);
  background: #eef3fb;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .metrics-strip,
  .feature-grid,
  .operations-grid,
  .visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-section,
  .mail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wide-figure img {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 12px 14px;
  }

  .brand-link img {
    width: 108px;
  }

  .header-action {
    min-width: 76px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 86svh;
    padding: 112px 18px 72px;
    background-position: 62% center;
  }

  .hero-copy {
    gap: 14px;
  }

  h1 {
    font-size: 3.05rem;
  }

  .hero-lede {
    font-size: 1.02rem;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .metrics-strip,
  .feature-grid,
  .operations-grid,
  .visual-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .metrics-strip,
  .section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .metrics-strip {
    margin-top: -26px;
  }

  .section {
    padding-top: 64px;
  }

  h2 {
    font-size: 1.64rem;
  }

  .feature-card {
    min-height: 0;
  }

  .product-figure figcaption {
    font-size: 0.78rem;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: stretch;
  }

  .footer-links a {
    width: 100%;
  }
}
