:root {
  --bg: #fffaf8;
  --surface: rgba(255, 255, 255, 0.86);
  --text: #1f1820;
  --text-soft: #5e4f58;
  --red: #b51424;
  --red-deep: #7f0d18;
  --shadow: 0 28px 90px rgba(120, 22, 38, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0)) 0 0 / 60vw 60vw no-repeat,
    linear-gradient(180deg, #fffdfc 0%, var(--bg) 32%, #fff3ef 100%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(181, 20, 36, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 20, 36, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 85%);
}

.bg-spot {
  position: absolute;
  width: 40vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.55;
}

.bg-spot-left {
  top: -8vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(244, 143, 155, 0.45) 0%, rgba(244, 143, 155, 0) 68%);
}

.bg-spot-right {
  right: -10vw;
  top: 18vw;
  background: radial-gradient(circle, rgba(181, 20, 36, 0.16) 0%, rgba(181, 20, 36, 0) 72%);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 248, 245, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(98, 21, 37, 0.1);
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red) 0%, #df364e 100%);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 28px rgba(181, 20, 36, 0.24);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.brand-copy small,
.nav a,
.product-status,
.hero-lead,
.section-heading p,
.case-story p,
.contact-copy p,
.product-card p,
.solution-card p,
.credential-card p,
.hero-card p,
.stack-card p,
.contact-note,
.form-status,
.footer,
.hero-facts span {
  color: var(--text-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(181, 20, 36, 0.18);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  padding: 76px 0 36px;
}

.hero-copy,
.hero-panel,
.section,
.signal-strip,
.footer {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 540ms ease, transform 540ms ease;
}

.reveal.is-visible,
.reveal.is-visible .hero-copy,
.reveal.is-visible .hero-panel {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow-row,
.product-top,
.section-heading,
.case-story,
.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eyebrow,
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.eyebrow {
  background: rgba(181, 20, 36, 0.08);
  color: var(--red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge {
  background: rgba(181, 20, 36, 0.1);
  color: var(--red);
}

.badge-outline {
  background: transparent;
  border: 1px solid rgba(181, 20, 36, 0.16);
}

.hero h1,
.section-heading h2,
.case-story h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 5.3rem);
}

.section-heading h2,
.case-story h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.hero-lead,
.section-heading p,
.case-story p,
.contact-copy p,
.product-card p,
.solution-card p,
.credential-card p,
.hero-card p,
.stack-card p {
  margin: 0;
  line-height: 1.78;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--red) 0%, #da2d45 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(181, 20, 36, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid rgba(181, 20, 36, 0.12);
}

.hero-facts,
.case-metrics,
.credential-grid,
.solution-grid,
.product-grid,
.hero-stack {
  display: grid;
  gap: 16px;
}

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

.hero-facts article,
.case-metrics article,
.credential-card,
.solution-card,
.stack-card,
.hero-card,
.contact-card,
.product-card {
  border: 1px solid rgba(181, 20, 36, 0.1);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-facts article,
.case-metrics article,
.stack-card,
.solution-card,
.credential-card,
.product-card,
.hero-card,
.contact-card {
  padding: 20px 22px;
}

.hero-facts strong,
.case-metrics strong,
.credential-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card-accent {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(140deg, rgba(181, 20, 36, 0.94) 0%, rgba(128, 13, 24, 0.92) 100%);
  color: #fff;
}

.hero-card-accent::after {
  content: "";
  position: absolute;
  inset: auto -50px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
}

.hero-card-accent p,
.hero-card-accent .card-label {
  color: rgba(255, 255, 255, 0.88);
}

.hero-card h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.02;
}

.hero-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-label {
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.signal-strip {
  margin: 10px 0 40px;
  overflow: hidden;
  border: 1px solid rgba(181, 20, 36, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.signal-track {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  overflow: auto hidden;
  scrollbar-width: none;
}

.signal-track::-webkit-scrollbar {
  display: none;
}

.signal-track span {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(181, 20, 36, 0.08);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.section {
  padding: 34px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-column: span 6;
}

.product-card-wide {
  grid-column: span 12;
}

.product-card-contrast {
  background: linear-gradient(180deg, rgba(255, 236, 238, 0.95) 0%, rgba(255, 248, 245, 0.95) 100%);
}

.product-card h3,
.solution-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  line-height: 1.08;
}

.product-top {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-top a {
  color: var(--red);
  font-weight: 700;
}

.product-points {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  line-height: 1.65;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.case-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.case-stack {
  display: grid;
  gap: 16px;
}

.solution-grid,
.credential-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.solution-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: start;
}

.contact-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(181, 20, 36, 0.06);
  line-height: 1.68;
}

.contact-note span {
  display: inline-block;
  margin-left: 6px;
  color: var(--red);
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(181, 20, 36, 0.12);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  border-color: rgba(181, 20, 36, 0.38);
  box-shadow: 0 0 0 4px rgba(181, 20, 36, 0.08);
}

.lead-form textarea {
  resize: vertical;
  min-height: 140px;
}

.consent-check {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px !important;
  color: var(--text-soft) !important;
  font-weight: 500 !important;
  line-height: 1.55;
}

.consent-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  padding: 0;
}

.form-status {
  min-height: 24px;
  margin: 0;
  line-height: 1.5;
}

.form-status.is-error {
  color: var(--red-deep);
}

.form-status.is-success {
  color: #0f6c44;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 22px 0 12px;
  font-size: 0.95rem;
}

.footer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--red);
}

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

@media (max-width: 1100px) {
  .hero,
  .section-split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .solution-grid,
  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .topbar {
    border-radius: 28px;
    padding: 14px 16px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    width: 100%;
    padding-top: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .topbar.menu-open .nav {
    display: flex;
  }

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

  .topbar.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

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

  .hero {
    padding-top: 52px;
  }

  .hero-facts,
  .case-metrics,
  .hero-stack,
  .product-grid,
  .solution-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .product-card,
  .product-card-wide {
    grid-column: auto;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero h1,
  .section-heading h2,
  .case-story h2,
  .contact-copy h2 {
    letter-spacing: -0.06em;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }
}
