:root {
  --color-bg: #ffffff;
  --color-surface: #f4f4f1;
  --color-text: #090909;
  --color-inverse: #ffffff;
  --color-dark: #000000;
  --color-accent: #d60000;
  --color-border: rgba(9, 9, 9, 0.14);
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.08);
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

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

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

main {
  overflow: clip;
}

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

.section {
  padding: 96px 0;
}

.section-light {
  background: var(--color-bg);
  color: var(--color-text);
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-inverse);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(9, 9, 9, 0.08);
}

.header-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  box-shadow: 8px 8px 0 var(--color-dark);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a,
.footer-nav a {
  position: relative;
}

.site-nav a::after,
.footer-nav a::after,
.tier-card a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.footer-nav a:hover::after,
.tier-card a:hover::after {
  transform: scaleX(1);
}

.hero {
  padding-top: 72px;
}

.hero-grid,
.compatibility-grid,
.demo-grid,
.oem-grid,
.footer-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  max-width: 11ch;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-lead,
.hero-sub,
.section-heading p,
.section-statement,
.compatibility-panel p,
.demo-grid p,
.contact-card p,
.site-footer p {
  font-size: 1.06rem;
  max-width: 62ch;
}

.hero-lead {
  margin: 28px 0 0;
}

.hero-sub {
  margin: 18px 0 0;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid currentColor;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-inverse);
}

.button-secondary {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-inverse);
}

.button-ghost {
  background: transparent;
}

.hero-frame,
.video-placeholder,
.contact-card,
.compatibility-panel,
.tier-card,
.comparison-card,
.workflow-grid li {
  border: 1px solid var(--color-border);
}

.hero-frame {
  position: relative;
  min-height: 620px;
  background:
    linear-gradient(180deg, rgba(214, 0, 0, 0.08), transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #eeeeea 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 0.96rem;
  color: rgba(9, 9, 9, 0.72);
}

.section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.section-heading-left {
  text-align: left;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  max-width: 12ch;
}

.section-heading p {
  margin: 18px auto 0;
}

.section-heading-left p {
  margin-left: 0;
}

.comparison-grid,
.pricing-grid {
  display: grid;
  gap: 22px;
}

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

.comparison-card {
  padding: 28px;
  min-height: 100%;
}

.comparison-card h3,
.compatibility-panel h3,
.contact-card h3,
.tier-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.comparison-card ul,
.feature-list,
.footer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comparison-card li,
.feature-list li {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.comparison-card-muted {
  background: rgba(255, 255, 255, 0.04);
}

.comparison-card-accent {
  background: linear-gradient(180deg, rgba(214, 0, 0, 0.2), rgba(214, 0, 0, 0.05));
}

.section-statement {
  margin: 28px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.workflow-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.workflow-grid li {
  padding: 24px;
  background: var(--color-surface);
}

.workflow-grid strong,
.workflow-grid p {
  display: block;
}

.workflow-step,
.tier-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.compatibility-grid,
.demo-grid,
.oem-grid,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 600;
}

.compatibility-panel,
.contact-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
}

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

.tier-card {
  padding: 28px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
}

.tier-figure {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(214, 0, 0, 0.08), transparent 48%),
    linear-gradient(135deg, #fafaf8 0%, #ecece7 100%);
  border: 1px solid var(--color-border);
}

.tier-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tier-card-featured {
  background: linear-gradient(180deg, rgba(214, 0, 0, 0.08), rgba(214, 0, 0, 0.02));
  border-color: rgba(214, 0, 0, 0.4);
}

.tier-card p,
.tier-card a {
  margin: 0;
}

.tier-card a {
  margin-top: auto;
  font-weight: 700;
}

.video-placeholder {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(214, 0, 0, 0.18), rgba(255, 255, 255, 0.03)),
    #111111;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.feature-list li {
  border-top-color: var(--color-border);
}

.site-footer {
  padding: 56px 0 40px;
  background: var(--color-dark);
  color: var(--color-inverse);
}

.eyebrow-footer {
  margin-bottom: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.footer-visual {
  justify-self: end;
  max-width: 460px;
  opacity: 0.92;
}

@media (max-width: 1080px) {
  .hero-grid,
  .compatibility-grid,
  .demo-grid,
  .oem-grid,
  .footer-grid,
  .comparison-grid,
  .pricing-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    min-height: 480px;
  }

  .tier-figure {
    min-height: 320px;
  }
}

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

  .section {
    padding: 72px 0;
  }

  .header-row {
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .hero-actions,
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h1,
  .section-heading h2 {
    line-height: 1;
  }

  .hero-frame {
    min-height: 360px;
  }

  .tier-figure {
    min-height: 260px;
  }

  .button {
    width: 100%;
  }
}
