/* TorqueForge website — dark engineering theme */
:root {
  --bg: #0c131a;
  --bg-2: #101921;
  --card: #141f29;
  --card-2: #18252f;
  --line: #243440;
  --line-2: #2e4250;
  --text: #eef3f6;
  --muted: #9fb0bc;
  --dim: #6f8290;
  --accent: #19b6cf;       /* cyan */
  --accent-soft: rgba(25, 182, 207, .12);
  --orange: #f28c28;
  --orange-hi: #f7a145;
  --steel: #2b3c4b;
  --steel-hi: #3a5063;
  --cu: #e07a2c;
  --mag-n: #e4574a;
  --mag-s: #19b6cf;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 16px;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); font-size: .9em; color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.02em; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--accent { color: var(--accent); }
.ico--win { fill: currentColor; stroke: none; width: 13px; height: 13px; }

/* ───── Buttons ───── */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px; border-radius: 10px;
  font: 600 15px/1 var(--font-display);
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #1a1006; }
.btn--primary:hover { background: var(--orange-hi); box-shadow: 0 6px 24px -6px rgba(242, 140, 40, .55); }
.btn--ghost { background: var(--card); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--dim); background: var(--card-2); }
.btn--lg { padding: 14px 20px; }
.btn--block { width: 100%; padding: 14px; }

/* ───── Navigation ───── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 19, 26, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  height: 78px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 28px; }
.brand__tile {
  width: 42px; height: 42px; border-radius: 9px; background: #fff;
  display: grid; place-items: center; flex: none;
}
.brand__tile img { width: 34px; height: 34px; }
.brand__name { font: 700 20px/1 var(--font-display); letter-spacing: -.01em; }
.nav__links { margin-left: auto; display: flex; gap: 28px; }
.nav__links a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 8px; }
.nav__burger { display: none; }

/* ───── Hero ───── */
.hero { position: relative; padding: 16px 0 72px; text-align: center; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(600px 300px at 50% 18%, rgba(25, 182, 207, .10), transparent 70%),
    radial-gradient(500px 260px at 80% 70%, rgba(242, 140, 40, .06), transparent 70%);
}
.hero__glow::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .22;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(20, 31, 41, .8); border: 1px solid var(--line-2);
  color: var(--muted); font-size: 13px;
  transition: border-color .2s;
}
.pill:hover { border-color: var(--accent); }
.pill .ico { width: 15px; height: 15px; }
.hero__title {
  margin-top: 30px;
  font-weight: 600; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.12;
}
.hero__title .amp { color: var(--text); }
.hero__sub {
  margin: 26px 0 0; font: 500 clamp(17px, 2vw, 21px)/1.5 var(--font-display);
}
.hero__lead { margin: 18px auto 0; max-width: 620px; color: var(--muted); font-size: 16px; }
.hero__actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__meta {
  margin: 26px 0 0; color: var(--muted); font-size: 11.5px; letter-spacing: .08em;
  display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.hero__meta .dot { color: var(--dim); }

/* ───── Why strip ───── */
.why { border-block: 1px solid var(--line); padding: 44px 0 46px; }
.why__label { text-align: center; color: var(--muted); font-size: 12px; margin: 0 0 22px; letter-spacing: .02em; }
.why__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
}
.why__list li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14.5px; }

/* ───── Sections ───── */
.section { padding: 88px 0; }
.section--tight { padding: 0 0 24px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.h2 { font-weight: 600; font-size: clamp(30px, 4.2vw, 40px); line-height: 1.15; }
.lead { margin: 18px 0 0; color: var(--muted); font-size: 16.5px; }

.grid { display: grid; gap: 18px; margin-top: 54px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.card--feature { padding: 28px; transition: border-color .25s, transform .25s, background .25s; }
.card--feature:hover { border-color: rgba(25, 182, 207, .5); background: var(--card-2); transform: translateY(-2px); }
.card__icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(25, 182, 207, .25); color: var(--accent);
}
.card__icon .ico { width: 20px; height: 20px; }
.card h3 { margin-top: 32px; font-size: 21px; font-weight: 600; }
.card p { color: var(--muted); margin: 14px 0 0; font-size: 15px; }
.tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 6px; }

/* ───── Pricing ───── */
.pricing { gap: 22px; }
.price { position: relative; padding: 36px 32px 32px; display: flex; flex-direction: column; }
.price h3 { margin: 0; font-size: 22px; }
.price__amount { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 0 !important; }
.price__amount b { font: 600 56px/1 var(--font-display); color: var(--text); letter-spacing: -.03em; }
.price__amount span { color: var(--muted); font-size: 13px; }
.price__note { font-size: 13px !important; margin-top: 28px !important; color: var(--text) !important; opacity: .82; }
.price__for { font-size: 16px !important; line-height: 1.75; margin-top: 18px !important; min-height: 56px; }
.checks { list-style: none; padding: 0; margin: 34px 0 40px; display: grid; gap: 12px; flex: 1; align-content: start; }
.checks li { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.checks li::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.price--pro {
  border-color: var(--orange);
  background: linear-gradient(160deg, #1d2a35 0%, var(--card) 45%);
  box-shadow: 0 30px 60px -30px rgba(242, 140, 40, .25);
}
.badge {
  position: absolute; top: 34px; right: 32px;
  background: var(--orange); color: #1a1006; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px;
}

/* ───── FAQ ───── */
.faq { display: grid; grid-template-columns: 1fr 1.65fr; gap: 64px; }
.faq__intro .h2 { font-size: clamp(32px, 4.2vw, 40px); }
.faq__list details { border-bottom: 1px solid var(--line-2); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 24px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font: 600 15px/1.4 var(--font-display); transition: color .2s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; width: 14px; height: 14px; flex: none; transition: transform .25s;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 1.5px 100% no-repeat;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:hover { color: var(--accent); }
.faq__list details p { margin: -6px 24px 24px; color: var(--muted); font-size: 15px; max-width: 60ch; }

/* ───── Footer ───── */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.brand--footer { gap: 14px; }
.brand--footer .brand__name { font-size: 22px; font-weight: 600; }
.footer p { color: var(--muted); font-size: 14px; margin: 24px 0 0; }
.footer__small { font-size: 13.5px !important; margin-top: 36px !important; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; align-content: start; padding-top: 6px; }
.footer__links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer__links a:hover { color: var(--text); }

/* ───── Reveal on scroll ───── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease, border-color .25s, background .25s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ───── Responsive ───── */
@media (max-width: 960px) {
  .faq { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 1000px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: grid; gap: 6px; margin-left: auto; width: 40px; height: 40px; place-content: center;
    background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
  }
  .nav__burger span { width: 18px; height: 1.5px; background: var(--text); transition: transform .2s; }
  .nav.is-open .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 78px; left: 0; right: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
}
@media (max-width: 760px) {
  .brand { gap: 14px; }
  .grid--2 { grid-template-columns: 1fr; }
  .why__list { flex-direction: column; align-items: flex-start; }
  .price { padding: 28px 22px 24px; }
  .badge { top: 28px; right: 22px; }
  .section { padding: 64px 0; }
  .faq__list summary { padding: 20px 4px; }
  .faq__list details p { margin-inline: 4px; }
}

/* ═════════ Screenshots, gallery, analyses, validation ═════════ */
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.q {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line-2); font-size: 11px; color: var(--muted); vertical-align: 2px;
}
.card--feature h3 { font-size: 19px; margin-top: 26px; }

/* App window frame with screenshot */
.window {
  margin: 0; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.window--hero { margin: 64px auto 0; max-width: 1040px; border-color: rgba(42, 134, 216, .45); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(25, 182, 207, .25); }
.window__bar { display: flex; align-items: center; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.window__dots { display: flex; gap: 6px; flex: none; }
.window__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.window__title { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; height: auto; display: block; }
.shot--light { background: #fff; border-radius: 10px; padding: 10px; }

/* Workflow gallery */
.gallery { margin-top: 48px; display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.gallery__steps { display: grid; gap: 8px; }
.gstep {
  display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; text-align: left;
  padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  cursor: pointer; transition: border-color .2s, background .2s; font: inherit;
}
.gstep span {
  grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  font-size: 11px; background: rgba(42, 134, 216, .22); color: #9fd0ff;
}
.gstep b { font: 600 15px/1.3 var(--font-display); }
.gstep small { font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.gstep:hover { border-color: var(--line-2); background: var(--card); }
.gstep.is-active { border-color: rgba(242, 140, 40, .6); background: var(--card); }
.gstep.is-active span { background: var(--orange); color: #1a1006; }
.gallery__view img { transition: opacity .2s; }
.gallery__view img.is-fading { opacity: 0; }

/* Analyses list */
.analyses { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.analyses li {
  display: flex; gap: 14px; padding: 18px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); border-left: 3px solid var(--c);
}
.analyses .sym {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; font: 600 14px/1 var(--font-display);
}
.analyses b { font: 600 15px/1.3 var(--font-display); }
.analyses p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.figs { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fig { margin: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px; }
.fig .shot--light { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.fig .shot--light img { max-height: 100%; object-fit: contain; }
.fig figcaption { padding: 14px 6px 4px; display: grid; gap: 2px; }
.fig figcaption b { font: 600 15px/1.3 var(--font-display); }
.fig figcaption span { font-size: 13px; color: var(--muted); }

/* Arrangements & topology overview */
.arrangements { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.arr { padding: 20px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.arr b { font: 600 16px/1.3 var(--font-display); }
.arr p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.topo-all { margin-top: 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); }
.topo-all summary {
  list-style: none; cursor: pointer; padding: 16px 22px; display: flex; justify-content: space-between; align-items: center;
  font: 600 15px/1 var(--font-display);
}
.topo-all summary::-webkit-details-marker { display: none; }
.topo-all summary:hover { color: var(--accent); }
.topo-all summary .ico { transition: transform .25s; }
.topo-all[open] summary .ico { transform: rotate(180deg); }
.topo-all .shot { margin: 0 16px 16px; width: calc(100% - 32px); }

/* Pricing, three tiers */
.price .price__for { min-height: 84px; }
.checks li { align-items: flex-start; line-height: 1.5; }
.checks li::before { margin-top: 4px; }
.checks li.no { color: var(--dim); }
.checks li.no::before {
  background: var(--dim);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}
.badge--cyan { background: var(--accent); color: #04232a; }
.price--academic {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(25, 182, 207, .14) 0%, var(--card) 45%);
  box-shadow: 0 30px 60px -30px rgba(25, 182, 207, .35);
}
.price--academic .price__amount b { color: #7fdcec; }
.btn--cyan { background: var(--accent); color: #04232a; }
.btn--cyan:hover { background: #3fcbe0; box-shadow: 0 6px 24px -6px rgba(25, 182, 207, .55); }
.price h3 { padding-right: 130px; }

.compare { margin-top: 22px; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.compare th, .compare td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font: 600 14px/1.3 var(--font-display); color: var(--text); background: var(--card-2); }
.compare td { color: var(--muted); }
.compare td:first-child { color: var(--text); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.compare .hl { color: var(--orange-hi); }
.compare th.hl { color: var(--orange); }
.compare td:nth-child(3) { color: #7fdcec; background: rgba(25, 182, 207, .05); }
.compare th:nth-child(3) { color: var(--accent); background: rgba(25, 182, 207, .12); }
.compare td.hl, .compare th.hl { background: rgba(242, 140, 40, .05); }
.compare th.hl { background: rgba(242, 140, 40, .12); }

/* Footer: developer logo */
.footer__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 32px; }
.footer__dev { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; }
.footer__dev img { height: 34px; width: auto; }

/* Lightbox */
.lightbox {
  max-width: min(1600px, 96vw); max-height: 94vh; padding: 0; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--bg-2); overflow: auto;
}
.lightbox::backdrop { background: rgba(5, 9, 12, .82); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 100%; height: auto; }
.lightbox__close {
  position: sticky; top: 10px; float: right; margin: 10px 10px -50px 0; z-index: 2;
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  background: rgba(20, 31, 41, .9); border: 1px solid var(--line-2); color: var(--text);
}

@media (max-width: 1080px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .analyses { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery__steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .grid--3, .analyses, .figs, .arrangements { grid-template-columns: 1fr; }
  .gallery__steps { grid-template-columns: 1fr 1fr; }
  .gstep { grid-template-columns: 1fr; }
  .gstep span { grid-row: auto; margin-bottom: 8px; }
  .footer__right { align-items: flex-start; }
  .window--hero { margin-top: 44px; }
  .price h3 { padding-right: 0; }
  .badge { position: static; align-self: flex-start; margin-bottom: 14px; }
}

/* ═════════ Machine combinatorics & double rotor ═════════ */
.combo {
  margin-top: 48px; padding: 28px; display: grid; grid-template-columns: 3fr auto 4fr auto 150px;
  align-items: center; gap: 20px;
}
.combo__label { margin: 0 0 12px; font-size: 11.5px; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.combo__tiles { display: grid; gap: 10px; }
.combo__tiles--3 { grid-template-columns: repeat(3, 1fr); }
.combo__tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 16px 8px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line);
}
.tile img { width: 64px; height: 64px; }
.tile b { font: 600 14px/1.25 var(--font-display); }
.tile span { font-size: 11px; color: var(--accent); }
.tile--hl { border-color: rgba(242, 140, 40, .7); box-shadow: 0 0 0 3px rgba(242, 140, 40, .12); }
.combo__op { font: 500 34px/1 var(--font-display); color: var(--dim); align-self: end; padding-bottom: 46px; }
.combo__result {
  align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center;
  border-radius: 12px; background: linear-gradient(160deg, rgba(42, 134, 216, .25), rgba(242, 140, 40, .18));
  border: 1px solid var(--line-2); margin-top: 26px;
}
.combo__result b { font: 700 58px/1 var(--font-display); letter-spacing: -.03em; }
.combo__result span { margin-top: 6px; font-size: 13px; color: var(--muted); }

.families { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fam { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.fam img { width: 36px; height: 36px; flex: none; }
.fam b { font: 600 15px/1.3 var(--font-display); }
.fam p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.dr {
  margin-top: 64px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center;
  padding: 36px; border-radius: 20px; border: 1px solid rgba(242, 140, 40, .45);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(242, 140, 40, .10), transparent 70%),
    radial-gradient(600px 300px at 100% 100%, rgba(42, 134, 216, .12), transparent 70%),
    var(--card);
}
.dr .eyebrow { color: var(--orange); }
.spark { margin-right: 4px; }
.dr__title { font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2; }
.dr__lead { color: var(--muted); margin: 16px 0 0; }
.dr__list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.dr__list li { position: relative; padding-left: 20px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.dr__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.dr__list b { color: var(--text); font-weight: 600; }
.dr__stators { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.stator { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.stator img { width: 48px; height: 48px; flex: none; }
.stator b { font: 600 14px/1.3 var(--font-display); }
.stator p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.stator--hl { border-color: rgba(25, 182, 207, .5); }
.dr__shot { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }

@media (max-width: 1080px) {
  .combo { grid-template-columns: 1fr; }
  .combo__op { align-self: center; justify-self: center; padding: 0; }
  .combo__result { margin-top: 0; padding: 18px; flex-direction: row; gap: 12px; }
  .combo__result b { font-size: 44px; }
  .families { grid-template-columns: repeat(2, 1fr); }
  .dr { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 760px) {
  .combo { padding: 18px; }
  .combo__tiles--4 { grid-template-columns: repeat(2, 1fr); }
  .tile img { width: 52px; height: 52px; }
  .families, .dr__stators { grid-template-columns: 1fr; }
  .dr { padding: 20px; }
}

/* ═════════ Compact features & FEMM image gallery ═════════ */
.feats { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feat {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line-2); transition: border-color .25s;
}
.feat:hover { border-color: rgba(25, 182, 207, .5); }
.feat .card__icon { flex: none; width: 38px; height: 38px; }
.feat .card__icon .ico { width: 18px; height: 18px; }
.feat b { font: 600 16px/1.3 var(--font-display); }
.feat p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.results-head { margin-top: 56px; }
.results-head h3 { font-size: 24px; font-weight: 600; }
.results-head p { margin: 8px 0 0; color: var(--muted); }
.figs__label { margin: 26px 0 0; font-size: 11.5px; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.figs__label + .figs { margin-top: 12px; }
.fig--dark .shot { background: #1b2232; border-radius: 10px; overflow: hidden; aspect-ratio: 710 / 634; }
.fig--dark .shot img { transition: transform .3s; }
.fig--dark .shot:hover img { transform: scale(1.03); }
.figs .fig .shot--light { aspect-ratio: 710 / 634; }
.figs--4 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fig--dark .shot img { width: 100%; height: 100%; object-fit: contain; }
.figs--4 .fig { padding: 10px; }
.figs--4 .fig figcaption b { font-size: 14px; }
.figs--4 .fig figcaption span { font-size: 12px; line-height: 1.45; }

@media (max-width: 1080px) { .feats, .figs--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .feats { grid-template-columns: 1fr; } }

@media (max-width: 560px) { .figs--4 { grid-template-columns: 1fr; } }

/* ═════════ Legal pages (imprint, privacy, terms, EULA) ═════════ */
.legal { padding: 64px 0 40px; }
.legal__inner { max-width: 760px; }
.legal h1 { font-weight: 600; font-size: clamp(30px, 4.2vw, 40px); line-height: 1.15; }
.legal__meta { margin: 12px 0 0; color: var(--dim); font-size: 13px; }
.legal h2 { margin-top: 44px; font-size: 21px; font-weight: 600; }
.legal h3 { margin-top: 26px; font-size: 16.5px; font-weight: 600; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal p { margin: 12px 0 0; }
.legal ul, .legal ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.legal a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal address { font-style: normal; color: var(--text); margin-top: 12px; line-height: 1.7; }
.legal__note {
  margin-top: 28px; padding: 14px 18px; border-radius: 12px; font-size: 14px;
  background: var(--accent-soft); border: 1px solid rgba(25, 182, 207, .3); color: var(--muted);
}
/* Placeholder still to be filled in before going live */
.ph { color: var(--orange-hi); background: rgba(242, 140, 40, .1); border: 1px dashed rgba(242, 140, 40, .5); border-radius: 4px; padding: 0 4px; }
.nav__back { margin-left: auto; color: var(--muted); font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.nav__back:hover { color: var(--text); }

/* Coming soon popup */
.soon {
  width: min(460px, calc(100% - 32px)); padding: 32px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--card); color: var(--text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.soon::backdrop { background: rgba(5, 9, 12, .78); backdrop-filter: blur(4px); }
.soon .eyebrow { margin: 22px 0 8px; }
.soon h3 { font-size: 24px; font-weight: 600; }
.soon p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.soon__close { position: absolute; top: 14px; right: 14px; float: none; margin: 0; }
.soon__actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Navigation: download button next to the trial CTA (icon only on small screens) */
.nav__dl { margin-left: 8px; padding-inline: 16px; }
.nav__dl + .nav__cta { margin-left: -12px; }
@media (max-width: 1000px) {
  .nav__dl { margin-left: auto; width: 40px; height: 40px; padding: 0; }
  .nav__dl span { display: none; }
  .nav__dl + .nav__cta + .nav__burger { margin-left: -14px; }
}

/* Footer: contact and social links */
.footer__head { margin: 6px 0 0 !important; font-size: 12px !important; color: var(--accent) !important; letter-spacing: .08em; text-transform: uppercase; }
.footer__mail { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 14.5px; transition: color .2s; }
.footer__mail:hover { color: var(--accent); }
.footer__contact p:not(.footer__head) { margin-top: 12px; line-height: 1.6; }
.footer__social { margin-top: 20px; display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--muted);
  background: var(--card); border: 1px solid var(--line-2); transition: color .2s, border-color .2s;
}
.footer__social a:hover { color: var(--accent); border-color: rgba(25, 182, 207, .5); }
.pricing__femm { margin: 18px 0 0; color: var(--dim); font-size: 13px; max-width: 820px; }
.footer__inner > div:first-child { flex: 1 1 320px; max-width: 420px; }

/* Workflow gallery: graphs and table as two stacked windows */
.stack { display: grid; }
.stack[hidden] { display: none; }
.stack__card { grid-area: 1 / 1; width: 88%; transition: transform .35s ease, opacity .35s ease, filter .35s ease; }
.stack__card.is-back {
  justify-self: end; align-self: start; opacity: .7; filter: saturate(.6) brightness(.8);
  transform: scale(.97); transform-origin: top right; cursor: pointer;
}
.stack__card.is-back .shot { cursor: pointer; pointer-events: none; }
.stack__card.is-back:hover { opacity: .9; filter: none; }
.stack__card.is-front { justify-self: start; margin-top: 9%; z-index: 1; }

/* Gallery: never wider than the screen, same height for every step (no layout jumps) */
.gallery { grid-template-columns: 280px minmax(0, 1fr); }
.gallery__stage { display: grid; min-width: 0; }
.gallery__stage > * { grid-area: 1 / 1; min-width: 0; }
.gallery__stage > [hidden] { display: grid; visibility: hidden; pointer-events: none; }
.window__bar { min-width: 0; }
@media (max-width: 1080px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* Phones: swipe through the simulation images and the workflow steps */
.swipe-hint { display: none; }
@media (max-width: 760px) {
  .figs--4 {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 0 16px 10px; scrollbar-width: none;
  }
  .figs--4::-webkit-scrollbar { display: none; }
  .figs--4 .fig { flex: 0 0 84%; scroll-snap-align: center; }
  .figs--4 .reveal { opacity: 1; transform: none; }
  .swipe-hint { display: inline; color: var(--dim); text-transform: none; letter-spacing: 0; }

  .gallery__steps {
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: -16px; padding: 0 16px 4px;
  }
  .gallery__steps::-webkit-scrollbar { display: none; }
  .gstep { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 14px; scroll-snap-align: start; }
  .gstep span { margin: 0; width: 28px; height: 28px; flex: none; }
  .gstep small { display: none; }
  .gallery__stage { touch-action: pan-y; }
}

/* Phones: compare table with a fixed first column, compact hero pill */
.compare__hint { display: none; }
@media (max-width: 760px) {
  .compare__hint { display: block; margin-top: 28px; }
  .compare__hint + .compare { margin-top: 10px; }
  .compare table { min-width: 560px; }
  .compare th:first-child, .compare td:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--card-2); min-width: 150px;
    box-shadow: 1px 0 0 var(--line);
  }
  .compare th, .compare td { padding: 12px 14px; }
  .pill { font-size: 11.5px; padding: 6px 12px; }
}
