:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-warm: #fff7f5;
  --ink: #171a22;
  --muted: #5f6675;
  --line: #e4e7ec;
  --primary: #b91c1c;
  --primary-dark: #7f1016;
  --amber: #d97706;
  --steel: #263241;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(20, 28, 40, 0.12);
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

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

.site-header {
  width: min(1240px, calc(100% - 40px));
  min-height: 74px;
  margin: 18px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 231, 236, 0.85);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(20, 28, 40, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.brand strong,
.hero h1,
.section-head h2,
.showcase-card h3,
.process-grid h3,
.license-section h2,
.contact-cta h2 {
  font-family: var(--font-display);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.site-actions,
.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-actions a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-actions a:hover {
  color: var(--primary);
}

.btn {
  min-height: 46px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(185, 28, 28, 0.22);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.light,
.btn.ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.hero {
  margin-top: -92px;
  min-height: 720px;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(127, 16, 22, 0.82) 45%, rgba(17, 24, 39, 0.22) 100%),
    url("assets/landing-hero-dashboard.png") center right / cover no-repeat;
}

.hero-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 168px 0 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 800;
}

.hero .eyebrow {
  color: #ffb4a9;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 64px;
  line-height: 1;
}

.hero-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 28px;
}

.work-tags {
  max-width: 820px;
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-tags span {
  padding: 9px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

.intro-strip,
.product-section,
.process-section,
.license-section,
.contact-cta {
  width: min(1240px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.intro-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.intro-strip div,
.showcase-card,
.process-grid article,
.license-section,
.contact-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(20, 28, 40, 0.06);
}

.intro-strip div {
  padding: 20px;
}

.intro-strip strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.intro-strip span,
.section-head p,
.showcase-card p,
.process-grid p,
.license-section p,
.contact-cta p {
  color: var(--muted);
  line-height: 1.65;
}

.product-section,
.process-section,
.license-section,
.contact-cta {
  margin-top: 64px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.06;
}

.section-head p {
  margin: 14px 0 0;
  font-size: 17px;
}

.section-head.compact {
  max-width: 680px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.showcase-card {
  overflow: hidden;
}

.showcase-card.wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  align-items: center;
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef1f5;
  border-bottom: 1px solid var(--line);
}

.showcase-card.wide img {
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.showcase-card div {
  padding: 22px;
}

.showcase-card h3 {
  margin: 0 0 9px;
  font-size: 26px;
}

.showcase-card p {
  margin: 0;
}

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

.process-grid article {
  padding: 22px;
}

.process-grid span {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  font-weight: 800;
}

.process-grid h3 {
  margin: 0 0 9px;
  font-size: 22px;
}

.process-grid p {
  margin: 0;
}

.license-section {
  padding: 30px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
  background: var(--steel);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.license-section .eyebrow {
  color: #ffb4a9;
}

.license-section h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
}

.license-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.contact-cta {
  margin-bottom: 56px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--surface-warm);
}

.contact-cta h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
}

.contact-cta p {
  margin: 14px 0 0;
}

.contact-cta a:not(.btn) {
  color: var(--primary-dark);
  font-weight: 800;
}

@media (max-width: 1000px) {
  .hero {
    min-height: 680px;
    background:
      linear-gradient(180deg, rgba(17, 24, 39, 0.94) 0%, rgba(127, 16, 22, 0.86) 68%, rgba(17, 24, 39, 0.42) 100%),
      url("assets/landing-hero-dashboard.png") center bottom / cover no-repeat;
  }

  .hero h1 {
    font-size: 52px;
  }

  .intro-strip,
  .showcase-grid,
  .process-grid,
  .license-section,
  .contact-cta {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-card.wide {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .showcase-card.wide img {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .site-header {
    width: calc(100% - 24px);
    display: grid;
  }

  .site-actions {
    justify-content: stretch;
  }

  .site-actions a {
    flex: 1;
    text-align: center;
  }

  .hero {
    margin-top: -126px;
    min-height: 760px;
  }

  .hero-inner,
  .intro-strip,
  .product-section,
  .process-section,
  .license-section,
  .contact-cta {
    width: calc(100% - 24px);
  }

  .hero-inner {
    padding-top: 220px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions,
  .cta-actions,
  .site-actions {
    display: grid;
  }

  .intro-strip,
  .showcase-grid,
  .process-grid,
  .license-section,
  .contact-cta {
    grid-template-columns: 1fr;
  }

  .showcase-card.wide {
    grid-column: auto;
  }

  .section-head h2,
  .license-section h2,
  .contact-cta h2 {
    font-size: 30px;
  }
}
