:root {
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #f1f4f8;
  --text: #17191d;
  --muted: #636a75;
  --muted-2: #8a929e;
  --line: #e2e7ee;
  --accent: #e31d23;
  --accent-soft: #ffe8e9;
  --green: #48b76f;
  --amber: #f3a329;
  --blue: #3f7ee8;
  --shadow: 0 18px 44px rgba(19, 24, 32, 0.1);
  --shadow-soft: 0 8px 24px rgba(19, 24, 32, 0.07);
  --radius: 8px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(226, 231, 238, 0.55) 1px, transparent 1px),
    linear-gradient(180deg, rgba(226, 231, 238, 0.55) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(0,0,0,0.08) 55%, transparent);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; font: inherit; }

.skip-link {
  position: absolute;
  left: 18px;
  top: 12px;
  z-index: 999;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #fff;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

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

.section-space { padding: 96px 0; }
.compact-section { padding: 82px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(226, 231, 238, 0.68);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(227, 29, 35, 0.16);
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-links a {
  padding: 10px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(19, 24, 32, 0.08);
}

.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(227, 29, 35, 0.24);
}

.nav-cta:hover, .btn:hover { transform: translateY(-2px); }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 99px;
}

.hero {
  position: relative;
  padding: 86px 0 110px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(227, 29, 35, 0.32);
  border-left: 0;
  border-bottom: 0;
}

.hero::before {
  width: 33vw;
  height: 58px;
  left: 0;
  top: 44px;
}

.hero::after {
  width: 38vw;
  height: 48px;
  right: 0;
  bottom: 70px;
  transform: scaleX(-1);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(390px, 0.82fr);
  gap: 64px;
  align-items: center;
}

.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 7px 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(227, 29, 35, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.65;
}

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

.btn-primary { color: #fff; background: var(--accent); box-shadow: 0 14px 34px rgba(227, 29, 35, 0.22); }
.btn-secondary { color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }

.hero-panel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-muted), #fff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 38px 0 0 112px;
  width: 380px;
  height: 472px;
  background: #eef2f7;
  border-radius: var(--radius) 0 0 var(--radius);
  border: 1px solid var(--line);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 76px;
  width: 270px;
  height: 360px;
  background:
    linear-gradient(90deg, rgba(227,29,35,0.32) 1px, transparent 1px),
    linear-gradient(180deg, rgba(227,29,35,0.32) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.5;
}

.panel-topline {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: var(--accent); }
.dot-yellow { background: var(--amber); }
.dot-green { background: var(--green); }

.hero-logo-card {
  position: absolute;
  z-index: 3;
  inset: 78px 76px auto auto;
  display: grid;
  place-items: center;
  width: 230px;
  height: 230px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-logo-card img {
  width: 154px;
  border-radius: 50%;
}

.mini-card {
  position: absolute;
  z-index: 4;
  min-width: 204px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.mini-card::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid rgba(227, 29, 35, 0.16);
}

.mini-card strong { display: block; margin-bottom: 4px; letter-spacing: -0.02em; }
.mini-card span { color: var(--muted); font-size: 14px; font-weight: 600; }
.mini-card-one { left: 26px; bottom: 174px; }
.mini-card-two { right: 24px; bottom: 104px; }
.mini-card-three { left: 92px; bottom: 22px; }

.page-hero {
  position: relative;
  padding: 88px 0 92px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 44px;
  width: 36vw;
  height: 58px;
  pointer-events: none;
  border: 1px solid rgba(227, 29, 35, 0.32);
  border-left: 0;
  border-bottom: 0;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 56px;
  align-items: center;
}

.page-hero-grid > * {
  min-width: 0;
}

.page-hero-copy h1 {
  max-width: 800px;
}

.about-profile-card {
  display: grid;
  justify-items: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-profile-card img {
  justify-self: start;
  width: 118px;
  height: 118px;
  margin-bottom: 24px;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(227, 29, 35, 0.18);
}

.about-profile-card h2 {
  justify-self: start;
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.about-profile-card p {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 600;
  overflow-wrap: break-word;
}

.about-profile-card .about-tags {
  justify-self: start;
}

.metrics-section { padding: 0 0 42px; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.metric-card span {
  color: var(--muted);
  line-height: 1.5;
  font-weight: 600;
}

.split-section, .workflow-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 34px;
  align-items: start;
}

.section-heading h2 {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-heading p {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 600;
}

.centered {
  text-align: center;
  margin: 0 auto 38px;
  display: grid;
  justify-items: center;
}

.about-card, .process-list, .cta-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.about-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.about-card p + p {
  margin-top: 16px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-tags span, .product-tags span {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 750;
}

.value-grid,
.comparison-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.value-card,
.comparison-grid article,
.testimonials-grid figure,
.faq-list details,
.seo-product {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.value-card {
  padding: 24px;
}

.value-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-weight: 900;
}

.value-card h3,
.comparison-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.value-card p,
.comparison-grid li,
.testimonials-grid blockquote,
.faq-list p,
.seo-product p,
.benefit-list li,
.video-frame p {
  color: var(--muted);
  line-height: 1.62;
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 29, 35, 0.34);
  box-shadow: var(--shadow);
}

.product-image-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: var(--surface-muted);
}

.product-image-link::after {
  content: "";
  position: absolute;
  inset: auto 16px -1px;
  height: 5px;
  background: var(--accent);
  border-radius: 999px 999px 0 0;
}

.product-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-image-link img { transform: scale(1.04); }
.product-content { padding: 24px; }

.product-type {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-content h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.product-content p {
  min-height: 88px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 600;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  color: #fff;
  background: var(--text);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(19, 24, 32, 0.16);
}

.inline-link {
  width: fit-content;
  min-width: 190px;
  margin-top: 8px;
  padding: 0 22px;
}

.detail-stack {
  display: grid;
  gap: 24px;
}

.seo-product {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 30px;
  align-items: center;
  padding: 24px;
}

.seo-product.reverse {
  grid-template-columns: 1.14fr 0.86fr;
}

.seo-product.reverse .seo-product-media {
  order: 2;
}

.seo-product-media {
  overflow: hidden;
  min-height: 320px;
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.seo-product-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.seo-product h2 {
  margin: 16px 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.seo-product p {
  margin-bottom: 16px;
  font-size: 17px;
}

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

.comparison-grid article {
  padding: 26px;
}

.comparison-grid ul,
.benefit-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.video-frame {
  overflow: hidden;
  padding: 14px;
  border-radius: var(--radius);
  background: #111827;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
}

.video-frame p {
  margin: 12px 4px 0;
  color: rgba(255,255,255,0.76);
  font-size: 14px;
}

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

.testimonials-grid figure {
  margin: 0;
  padding: 24px;
}

.testimonials-grid blockquote {
  margin: 0 0 14px;
  font-size: 17px;
}

.testimonials-grid figcaption {
  color: var(--text);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
}

.process-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.process-item span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-weight: 900;
}

.process-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.process-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 600;
}

.cta-section { padding-top: 52px; }

.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(226, 231, 238, 0.64) 1px, transparent 1px),
    linear-gradient(180deg, rgba(226, 231, 238, 0.64) 1px, transparent 1px),
    var(--surface);
  background-size: 46px 46px;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), #fff 76%);
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  max-width: 760px;
  margin: 16px auto 12px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.cta-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
}

.centered-actions { justify-content: center; }

.site-footer {
  padding: 30px 0 46px;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.footer-grid p { margin: 0; }
.footer-grid a:last-child { color: var(--text); font-weight: 800; }

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

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

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (max-width: 980px) {
  .hero-grid, .page-hero-grid, .split-section, .workflow-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 500px; max-width: 620px; }
  .products-grid, .metrics-grid, .about-feature-grid, .value-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .seo-product, .seo-product.reverse, .comparison-grid { grid-template-columns: 1fr; }
  .seo-product.reverse .seo-product-media { order: 0; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section-space { padding: 68px 0; }
  .compact-section { padding: 64px 0; }
  .site-header { padding: 10px 0; }
  .nav-shell { grid-template-columns: auto auto; gap: 14px; }
  .menu-button { display: block; justify-self: end; }
  .nav-cta { display: none; }
  .nav-links {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius);
  }
  .nav-shell.menu-open .nav-links { display: flex; }
  .nav-links a { text-align: center; border-radius: var(--radius); }
  .hero { padding: 58px 0 76px; }
  .page-hero { padding: 58px 0 72px; }
  .page-hero::before { opacity: 0.45; }
  .hero::before, .hero::after { opacity: 0.45; }
  .hero-grid { display: block; }
  .page-hero-grid { display: block; }
  .hero-copy { width: 100%; max-width: 100%; }
  h1 {
    max-width: 12ch;
    font-size: clamp(36px, 10vw, 42px);
    line-height: 1.05;
    overflow-wrap: break-word;
  }
  .hero-text {
    max-width: 28ch;
    font-size: 17px;
    overflow-wrap: break-word;
  }
  .page-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(36px, 10vw, 42px);
    line-height: 1.05;
  }
  .about-profile-card {
    width: 100%;
    max-width: calc(100vw - 28px);
    margin-top: 56px;
    padding: 24px;
  }
  .hero-panel {
    width: 100%;
    max-width: 362px;
    min-height: 440px;
    margin-top: 64px;
  }
  .hero-panel::before { inset: 54px 0 0 58px; width: 292px; height: 330px; }
  .hero-panel::after { right: 0; top: 90px; width: 178px; height: 270px; }
  .hero-logo-card {
    width: 148px;
    height: 148px;
    inset: 84px 18px auto auto;
  }
  .hero-logo-card img { width: 104px; }
  .mini-card { min-width: 0; width: 150px; max-width: 150px; padding: 12px; }
  .mini-card::before { width: 22px; height: 22px; margin-bottom: 8px; }
  .mini-card-one { left: 14px; top: 190px; bottom: auto; }
  .mini-card-two { right: 12px; top: 246px; bottom: auto; }
  .mini-card-three { left: 28px; top: 318px; bottom: auto; }
  .product-content p { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
