:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --ink: #181a1f;
  --muted: #626b78;
  --line: #dfe4ea;
  --panel: #ffffff;
  --red: #ff2a20;
  --red-dark: #cf1d16;
  --green: #24785a;
  --soft-blue: #e9f2f7;
  --soft-green: #eaf5ef;
  --shadow: 0 18px 48px rgba(30, 39, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 250, 0.9);
  border-bottom: 1px solid rgba(223, 228, 234, 0.82);
  backdrop-filter: blur(14px);
}

.brand img {
  width: clamp(140px, 18vw, 186px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0 0 7px;
  color: var(--red-dark);
  background: transparent;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--red-dark);
}

.nav-links a {
  position: relative;
  padding-bottom: 7px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #f3a29e;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a.active {
  color: var(--red-dark);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

main {
  overflow: hidden;
  padding-bottom: 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(34px, 5vw, 64px);
  width: min(1160px, calc(100% - 36px));
  min-height: 620px;
  margin: 0 auto;
  padding: clamp(52px, 7vw, 82px) 0 clamp(64px, 8vw, 92px);
}

.hero h1,
.section-heading h2,
.split-copy h2,
.contact-section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.12;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 78px);
}

.lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: #343b45;
  font-size: clamp(18px, 2vw, 22px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--red);
  box-shadow: 0 12px 28px rgba(255, 42, 32, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.hero-visual {
  position: relative;
  min-height: 360px;
}

.hero-visual img,
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  aspect-ratio: 1.22 / 1;
  max-height: 440px;
}

.signal-panel {
  position: absolute;
  right: 50%;
  bottom: 22px;
  width: min(300px, calc(100% - 28px));
  padding: 18px;
  color: white;
  background: #171b20;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transform: translateX(50%);
}

.signal-panel span,
.signal-panel small {
  display: block;
  color: #b9c1cb;
}

.signal-panel strong {
  display: block;
  margin: 3px 0;
  font-size: 25px;
}

.intro,
.section,
.split-section,
.target-section,
.contact-section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  padding: 44px 0 18px;
  color: #222a33;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.35;
}

.section,
.target-section {
  padding: 88px 0;
}

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

.section-heading h2,
.split-copy h2,
.contact-section h2 {
  font-size: clamp(32px, 4vw, 50px);
}

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

.service-card,
.target-item {
  min-height: 230px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(30, 39, 52, 0.06);
}

.service-card:nth-child(2n) {
  background: var(--soft-blue);
}

.service-card:nth-child(3n) {
  background: var(--soft-green);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: white;
  background: #20252b;
  border-radius: 50%;
}

.service-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.target-item strong {
  display: block;
  margin: 22px 0 10px;
  font-size: 22px;
  line-height: 1.28;
}

.service-card p,
.split-copy p,
.target-item span,
.contact-section p,
.site-footer {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  padding: 74px 0;
}

.split-image {
  min-height: 460px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 14px 14px 14px 44px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 20px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

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

.blog-section,
.product-section {
  scroll-margin-top: 92px;
}

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

.blog-card {
  min-height: 240px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(30, 39, 52, 0.06);
}

.blog-card > span,
.product-label {
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 36px 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

.blog-card p,
.product-card p,
.modal-heading p,
.modal-section p,
.feature-grid span {
  color: var(--muted);
}

.section-action {
  margin-top: 22px;
}

.coming-soon {
  display: inline-flex;
  padding: 10px 14px;
  color: var(--muted);
  background: #eceff3;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: clamp(28px, 5vw, 52px);
  color: white;
  background: #191d22;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-card h3 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 5vw, 60px);
}

.product-card p {
  max-width: 790px;
  color: rgba(255, 255, 255, 0.74);
}

.product-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.product-points li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--red);
}

.modal {
  width: min(920px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 12px;
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.modal::backdrop {
  background: rgba(12, 15, 18, 0.72);
  backdrop-filter: blur(4px);
}

.modal.fallback-modal {
  position: fixed;
  inset: 14px;
  z-index: 1000;
  margin: auto;
}

.modal-shell {
  position: relative;
  padding: clamp(28px, 5vw, 54px);
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-heading h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.1;
}

.product-modal-heading .checkmate-logo {
  width: min(560px, 100%);
  height: auto;
  margin: 0 auto 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.modal-section {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.modal-section h3 {
  margin: 0 0 16px;
  font-size: 25px;
}

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

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

.feature-grid > div,
.pricing-grid > div {
  display: grid;
  gap: 6px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-showcase-heading {
  margin-top: 38px;
}

.product-showcase-heading h3 {
  margin-bottom: 6px;
}

.product-showcase-heading p {
  margin: 0;
  font-size: 14px;
}

.product-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.product-screenshot {
  overflow: hidden;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(30, 39, 52, 0.07);
}

.product-screenshot a {
  display: block;
  background: #f4f5fb;
}

.product-screenshot img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.product-screenshot a:hover img {
  transform: scale(1.015);
}

.product-screenshot figcaption {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.product-screenshot figcaption span {
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: white;
  background: #20252b;
}

.comparison-note {
  font-size: 13px;
}

.check-list.compact {
  margin-top: 0;
}

.pricing-grid strong {
  font-size: 28px;
}

.pricing-grid small {
  color: var(--muted);
}

.pricing-grid .recommended {
  border-color: var(--red);
  background: #fff3f2;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}

.product-modal-actions {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-modal {
  width: min(760px, calc(100% - 28px));
}

.contact-form,
.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form {
  gap: 18px;
  margin-top: 32px;
}

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

.contact-form label {
  color: #343b45;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd2db;
  border-radius: 7px;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  outline: 3px solid rgba(255, 42, 32, 0.12);
}

.form-notice,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status.success {
  color: var(--green);
}

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

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.target-item {
  min-height: 170px;
}

.target-item strong {
  margin-top: 0;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 56px;
  padding: clamp(28px, 5vw, 52px);
  color: white;
  background: #191d22;
  border-radius: 8px;
}

.contact-section h2,
.contact-section p {
  max-width: 780px;
  color: white;
}

.contact-section p {
  opacity: 0.76;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  display: flex;
  justify-content: center;
  padding: 16px 24px;
  background: rgba(247, 248, 250, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .hero-visual,
  .split-image {
    min-height: 320px;
  }

  .service-grid,
  .target-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    font-size: 14px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions,
  .contact-section {
    align-items: stretch;
    flex-direction: column;
  }

  .product-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .form-grid,
  .feature-grid,
  .pricing-grid,
  .product-showcase {
    grid-template-columns: 1fr;
  }

  .product-screenshot img {
    height: 200px;
  }
}
