/* 3DsWorks — product site
   Original styles. Palette: deep navy, product blue, cyan accent, light grey. */

:root {
  --navy: #0b1b2b;
  --navy-2: #122b42;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #2ee6d6;
  --bg: #f5f8fb;
  --bg-2: #eef4f9;
  --line: #dde7f0;
  --text: #122a3e;
  --muted: #5b7286;
  --white: #ffffff;
  --radius: 12px;
  --max: 1400px;
  --shadow: 0 24px 60px rgba(11, 27, 43, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font: 16px/1.7 "Inter", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

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

h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -0.02em; font-weight: 700; }

p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand img { height: 34px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav a { color: var(--text); }
.nav a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-actions .ghost-link { font-size: 15px; color: var(--text); }

.header-actions .ghost-link:hover { color: var(--blue); }

.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; font-size: 18px; color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-outline { border-color: #c6d6e5; background: #fff; color: var(--text); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eaf2ff; color: var(--navy); }

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 76px;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(20, 102, 255, 0.14), transparent 65%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 43, 66, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 43, 66, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 5.2vw, 62px);
  letter-spacing: -0.035em;
}

.hero h1 .accent { color: var(--blue); }

.hero .lead {
  margin-top: 20px;
  max-width: 620px;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.75;
}

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

.hero-note { margin-top: 16px; color: var(--muted); font-size: 13.5px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}

.trust span { display: inline-flex; align-items: center; gap: 7px; }

.trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* app frame */

.app-frame {
  position: relative;
  border-radius: 16px;
  background: #0f1e2e;
  box-shadow: var(--shadow);
  border: 1px solid #24384d;
  overflow: hidden;
}

.app-frame .frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #14273a;
  border-bottom: 1px solid #24384d;
}

.app-frame .frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a5068; display: inline-block; }
.app-frame .frame-bar i:first-child { background: #ff6b6b; }
.app-frame .frame-bar i:nth-child(2) { background: #ffc94d; }
.app-frame .frame-bar i:nth-child(3) { background: #38d39f; }

.app-frame .frame-bar span { margin-left: auto; color: #8ca3b8; font-size: 11.5px; letter-spacing: 0.04em; }

.app-frame img { width: 100%; height: 440px; object-fit: cover; object-position: center; }

.float-card {
  position: absolute;
  right: -14px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 14px 34px rgba(11, 27, 43, 0.16);
  font-size: 13px;
  font-weight: 600;
}

.float-card .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e7f7ef; color: #0f9d63; }

/* ---------- logo strip ---------- */

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }

.strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.strip-inner strong { color: var(--text); font-weight: 600; }

/* ---------- sections ---------- */

.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.section.tight { padding: 64px 0; }

.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.section-head h2 { margin-top: 12px; font-size: clamp(30px, 3.4vw, 44px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* advantages */

.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.adv {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.adv:hover { border-color: #b9d1ee; transform: translateY(-2px); }

.adv .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 21px;
  font-weight: 700;
}

.adv h3 { margin-top: 18px; font-size: 18px; }
.adv p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

.adv.featured {
  background: linear-gradient(160deg, #0d2a48, #0b1b2b);
  border-color: #173b5e;
  color: #fff;
}
.adv.featured .icon { background: rgba(255, 255, 255, 0.12); color: #7fd9ff; }
.adv.featured p { color: #b9cddd; }
.adv.featured .badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #12b5e5;
  color: #04202e;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* product categories */

.category {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.category:first-of-type { border-top: 0; padding-top: 0; }

.category-intro h3 { font-size: 24px; }
.category-intro p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.category-intro a { display: inline-flex; margin-top: 16px; font-size: 14.5px; font-weight: 600; }

.products { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.product {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product:hover { border-color: #b9d1ee; box-shadow: 0 12px 30px rgba(11, 27, 43, 0.07); }

.product .top { display: flex; align-items: center; gap: 10px; }

.product .p-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: #eef5ff; color: var(--blue); font-size: 17px;
}

.product h4 { font-size: 16.5px; }

.product p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { padding: 2px 8px; border-radius: 5px; background: #f0f5fa; color: #45627c; font-size: 11.5px; font-weight: 500; }
.tag.dev { background: #fff4e0; color: #9a6200; }
.tag.free { background: #e6f8ef; color: #0d7a4d; }

/* compare */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }

table.compare { width: 100%; border-collapse: collapse; min-width: 760px; }

table.compare th, table.compare td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }

table.compare thead th { background: #f7fafd; font-size: 13.5px; color: var(--muted); font-weight: 600; }

table.compare thead th.us { background: #eaf2ff; color: var(--blue-dark); }

table.compare td.us { background: #f6faff; color: var(--text); font-weight: 500; }

table.compare tr:last-child td { border-bottom: 0; }

table.compare td:first-child { font-weight: 600; color: var(--text); }

.compare-note { margin-top: 14px; color: var(--muted); font-size: 12.5px; }

/* steps */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.step { position: relative; padding: 0 0 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.step > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.step .num { display: block; margin: 22px 22px 0; font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 0.08em; }
.step h3 { margin: 10px 22px 0; font-size: 17px; }
.step p { margin: 8px 22px 0; color: var(--muted); font-size: 14px; }

/* formats */

.formats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.format { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #34526d; font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; }

/* CTA */

.cta {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  background:
    linear-gradient(110deg, rgba(6, 17, 29, 0.92) 0%, rgba(10, 30, 55, 0.78) 55%, rgba(10, 40, 70, 0.45) 100%),
    url("../images/cta-factory.jpg") right center / cover no-repeat,
    linear-gradient(120deg, #0b1b2b 0%, #102c49 55%, #0d3c66 100%);
  color: #fff;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.75), transparent 70%);
}

.cta .container { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

.cta h2 { font-size: clamp(28px, 3.2vw, 40px); }
.cta p { margin-top: 12px; color: #b9cddd; font-size: 16px; max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* footer */

.site-footer { background: #081522; color: #a9bdcd; padding: 58px 0 30px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }

.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 16px; font-size: 14px; max-width: 300px; }

.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: #a9bdcd; font-size: 14px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: #7f95a8;
  font-size: 12.5px;
}

/* ---------- inner pages ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 72px;
  background: linear-gradient(120deg, #0b1b2b 0%, #102d49 58%, #0d3a60 100%);
  color: #fff;
  border-bottom: 1px solid #173b5e;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to right, rgba(0,0,0,.7), transparent 75%);
}
.page-hero .container { position: relative; z-index: 1; }

.crumbs { color: #9fb4c6; font-size: 13px; }
.crumbs a { color: #9fb4c6; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 7px; color: #5f7b93; }

.page-hero h1 { margin-top: 14px; color: #fff; font-size: clamp(34px, 4.4vw, 52px); }
.page-hero p { margin-top: 14px; color: #b9ccdc; font-size: 17px; max-width: 780px; }

.page-body { padding: 54px 0 80px; }

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px;
  margin-bottom: 20px;
}

.content-card h2 { font-size: 24px; margin-bottom: 12px; }
.content-card h2:not(:first-child) { margin-top: 34px; }
.content-card h3 { font-size: 18px; margin-top: 26px; margin-bottom: 8px; }
.content-card p, .content-card li { color: var(--muted); font-size: 15px; line-height: 1.8; }
.content-card ul, .content-card ol { margin: 10px 0 0; padding-left: 22px; }
.content-card li { margin-bottom: 6px; }
.content-card strong { color: var(--text); }

code {
  padding: 1px 6px;
  border: 1px solid #e2ebf4;
  border-radius: 5px;
  background: #f6f9fc;
  color: #0b4fd6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.notice-box { border-left: 3px solid var(--blue); background: #f5f9ff; padding: 14px 18px; border-radius: 0 8px 8px 0; color: #47627a; font-size: 14.5px; }

.download-group { display: grid; gap: 10px; margin-top: 16px; }

.download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.download-row a { color: var(--text); font-weight: 600; font-size: 14.5px; }
.download-row a:hover { color: var(--blue); }
.download-row span { color: var(--muted); font-size: 13px; }

.platform-title { display: flex; align-items: center; gap: 10px; margin-top: 32px; }
.platform-title:first-child { margin-top: 0; }
.platform-title .p-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #eef5ff; color: var(--blue); font-size: 16px; }
.platform-title h3 { margin: 0; font-size: 19px; }

.report-form { display: grid; gap: 14px; margin-top: 20px; }
.report-form label { font-size: 14px; font-weight: 600; color: var(--text); }
.report-form input, .report-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfdce8;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.report-form input:focus, .report-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 102, 255, 0.12); }
.report-form textarea { min-height: 190px; resize: vertical; }

.small { font-size: 13px; color: var(--muted); }

/* responsive */

@media (max-width: 1040px) {
  .advantages, .steps { grid-template-columns: 1fr 1fr; }
  .category { grid-template-columns: 1fr; gap: 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .app-frame img { height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav, .header-actions .ghost-link { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(11, 27, 43, 0.08);
  }
  .nav.open a { width: 100%; padding: 9px 0; }
  .menu-toggle { display: inline-flex; }
  .hero { padding: 54px 0 50px; }
  .hero h1 { font-size: 38px; }
  .products { grid-template-columns: 1fr; }
  .advantages, .steps, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .app-frame img { height: 280px; }
  .float-card { right: 10px; bottom: 12px; }
  .cta .container { display: block; }
  .cta-actions { margin-top: 24px; }
  .content-card { padding: 24px; }
}

/* ---------- grand layout (product-page scale) ---------- */

:root { --max: 1400px; }

.container { padding-left: 40px; padding-right: 40px; }

.section { padding: 84px 0; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 44px); }

.hero-grand {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #081522;
  color: #fff;
}
.hero-grand .hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero-assembly.jpg") center/cover no-repeat;
  opacity: 1;
  transform: scale(1.02);
}
.hero-grand::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 17, 29, 0.88) 0%, rgba(7, 20, 34, 0.62) 48%, rgba(8, 24, 40, 0.18) 100%),
    linear-gradient(0deg, rgba(6, 17, 29, 0.55), transparent 55%);
}
.hero-grand .container { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 100px; padding-left: clamp(48px, 10vw, 140px); }
.hero-grand .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #cfe6ff;
}
.hero-grand h1 {
  margin-top: 24px;
  max-width: 880px;
  font-size: clamp(52px, 6.2vw, 88px);
  font-weight: 600;
  line-height: 1.04;
  color: #fff;
  letter-spacing: -0.04em;
}
.hero-grand h1 .accent { color: #62d4ff; }
.hero-grand .lead { margin-top: 28px; max-width: 720px; color: #d4e2ef; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.65; }
.hero-grand .hero-actions { margin-top: 40px; }
.hero-grand .btn-primary { background: #fff; color: #0b1b2b; }
.hero-grand .btn-primary:hover { background: #e7f1ff; color: #0b1b2b; }
.hero-grand .btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.42); color: #fff; }
.hero-grand .btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }
.hero-grand .hero-note { margin-top: 20px; color: #9fb4c6; font-size: 14px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 44px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-facts strong { display: block; color: #fff; font-size: 25px; line-height: 1.2; letter-spacing: -0.02em; }
.hero-facts span { color: #9fb4c6; font-size: 13px; }

.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 18px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; color: var(--navy); white-space: nowrap; }
.stat span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }

.cat-nav {
  position: sticky;
  top: 76px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.cat-nav .container { display: flex; gap: 30px; overflow-x: auto; padding-top: 15px; padding-bottom: 15px; scrollbar-width: none; }
.cat-nav .container::-webkit-scrollbar { display: none; }
.cat-nav a { color: #48627a; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.cat-nav a:hover { color: var(--blue); }

.category {
  display: block;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.category:first-of-type { border-top: 0; padding-top: 0; }
.category-head { max-width: 820px; margin: 0 auto 32px; text-align: center; }
.category-head h3 { font-size: clamp(28px, 3vw, 38px); font-weight: 600; }
.category-head p { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.category .products { max-width: 1120px; margin: 0 auto; grid-template-columns: 1fr 1fr; gap: 16px; }
.category .product { min-height: 140px; padding: 18px 20px; border-radius: 8px; }
.category .product h4 { font-size: 17px; font-weight: 600; }
.category .product p { margin-top: 8px; font-size: 14px; line-height: 1.65; }

.showcase {
  position: relative;
  overflow: hidden;
  padding: 108px 0;
  background: #081522;
  color: #fff;
}
.showcase .bg {
  position: absolute;
  inset: 0;
  background: url("../images/showcase-gearbox.jpg") center/cover no-repeat;
  opacity: 0.55;
}
.showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 17, 29, 0.94) 0%, rgba(6, 17, 29, 0.62) 55%, rgba(6, 17, 29, 0.35) 100%);
}
.showcase .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.showcase h2 { color: #fff; font-size: clamp(34px, 4vw, 50px); }
.showcase p { margin-top: 18px; color: #c3d4e2; font-size: 17px; line-height: 1.85; max-width: 620px; }
.showcase .list { margin-top: 26px; display: grid; gap: 12px; }
.showcase .list span { display: flex; gap: 10px; align-items: flex-start; color: #dbe7f1; font-size: 15px; }
.showcase .list b { color: #62d4ff; }
.showcase-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 26px;
  backdrop-filter: blur(8px);
}
.showcase-card h3 { color: #fff; font-size: 20px; }
.showcase-card p { color: #a9c0d2; font-size: 14px; }
.showcase-card .rows { margin-top: 18px; display: grid; gap: 10px; }
.showcase-card .row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: #b9ccdc; }
.showcase-card .row b { color: #fff; font-weight: 600; }

/* Screenshot pair */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.app-shot {
  margin: 0;
  overflow: hidden;
  background: #e9edf2;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.app-shot img { width: 100%; height: auto; display: block; }
.app-shot figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 18px;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.app-shot figcaption b {
  flex: none;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.app-shot-wide figcaption { padding: 17px 22px; }
#screens { scroll-margin-top: 96px; }
@media (max-width: 860px) {
  .pair { grid-template-columns: 1fr; }
  .app-shot figcaption { flex-direction: column; gap: 6px; }
}

@media (max-width: 1040px) {
  .showcase .container { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-grand { min-height: 92vh; }
  .hero-grand .container { padding-top: 100px; padding-bottom: 60px; }
  .hero-grand h1 { font-size: clamp(40px, 11vw, 56px); }
  .hero-grand .lead { font-size: 16.5px; }
  .hero-facts { gap: 18px 28px; }
  .hero-facts strong { font-size: 20px; }
  .cat-nav { top: 60px; }
  .category .products { grid-template-columns: 1fr; }
  .category { padding: 56px 0; }
  .stat strong { font-size: 34px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
}

/* ---------- Dark charcoal theme layer ---------- */
/* White surfaces, charcoal type, red primary actions, blue links, soft 6px cards. */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --red: #2563eb;
  --red-dark: #1d4ed8;
  --navy: #1e293b;
  --navy-2: #34394d;
  --text: #111827;
  --muted: #374151;
  --bg: #f5f6f7;
  --bg-2: #e9ecef;
  --line: #e5e7eb;
  --radius: 6px;
  --shadow: 0 2px 2px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.1);
}

body { color: var(--text); font-weight: 300; }

h1, h2, h3, h4 { font-weight: 400; }
.hero-grand h1 { font-weight: 600; }
.category .product h4, .adv h3, .step h3, .showcase-card h3, .content-card h2, .content-card h3 { font-weight: 500; }

.btn { border-radius: 22px; font-weight: 600; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: #cbd5e1; color: var(--text); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.hero-grand .btn-primary { background: var(--red); color: #fff; }
.hero-grand .btn-primary:hover { background: var(--red-dark); color: #fff; }
.hero-grand .btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.hero-grand .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }

.kicker { color: var(--red); }
.eyebrow { border-color: #f3d0d0; background: #fcf0f0; color: var(--red); }
.hero-grand .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); color: #ffd7d7; }

.section.alt { background: #f5f6f7; }
.section-head h2, .category-head h3 { color: var(--text); font-weight: 400; }
.section-head p, .category-head p { color: var(--muted); }

.stats { background: #fff; }
.stat strong { color: var(--text); font-weight: 400; }
.stat span { color: var(--muted); }
.stat:first-child strong { color: var(--brand-warm-dark, #d97706); font-weight: 700; }

.cat-nav { background: rgba(255,255,255,.97); }
.cat-nav a { color: #4b5563; }
.cat-nav a:hover { color: var(--red); }

.category .product {
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}
.category .product:hover {
  border: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.product .p-icon { background: #f2f4f6; color: var(--red); border-radius: 6px; }
.tag { border-radius: 4px; background: #f3f4f6; color: #4b5563; }
.tag.free { background: #e8f5ee; color: #1b7a45; }

.showcase::after { background: linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.7) 55%, rgba(17, 24, 39, 0.45) 100%); }
.showcase .kicker { color: #ffd7d7 !important; }
.showcase-card { border-radius: 6px; background: rgba(255,255,255,.05); }

.table-wrap { border: 1px solid var(--line); border-radius: 6px; }
table.compare th, table.compare td { border-color: var(--line); }
table.compare thead th { background: #f3f4f6; color: #4b5563; }
table.compare thead th.us { background: #fdf2f2; color: var(--red); }
table.compare td.us { background: #fcfafa; }
table.compare td:first-child { color: var(--text); }

.step { border: 0; box-shadow: var(--shadow); border-radius: 6px; }
.step .num { color: var(--red); }
.format { border-color: var(--line); border-radius: 4px; color: #374151; }

.site-footer { background: #111827; }
.footer-col a:hover { color: #fff; }

.content-card { border: 0; box-shadow: var(--shadow); border-radius: 6px; }
.content-card h2, .content-card h3 { color: var(--text); }
.page-hero { background: #1e293b; border-bottom-color: #111827; }
.page-hero::before { opacity: .35; }
.download-row { border-color: var(--line); border-radius: 6px; }
.download-row a { color: var(--text); }
.download-row a:hover { color: var(--red); }
.notice-box { border-left-color: var(--red); background: #fdf6f6; color: #4b5563; }
.report-form input:focus, .report-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(194,21,21,.12); }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.section-head .kicker { color: var(--red); }

/* ---------- Cost comparison ---------- */
.cost { background: #fff; }
.cost-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.cost-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.cost-card h3 { font-size: 20px; margin-bottom: 20px; font-weight: 500; }
.cost-card p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 12px; }
.cost-card .cost-value { color: var(--text); font-size: 30px; font-weight: 600; line-height: 1.2; margin-top: 16px; }
.cost-card.them .cost-bar span { background: #9ca3af; }
.cost-card.us { border-color: #fcd9a8; background: linear-gradient(180deg, #fffbf3 0%, #fff 100%); }
.cost-card.us .cost-bar span { background: var(--brand-warm, #f59e0b); }
.cost-card.us .cost-value { color: var(--brand-warm-dark, #d97706); }
.cost-bar {
  height: 10px;
  border-radius: 999px;
  background: #eef0f2;
  overflow: hidden;
}
.cost-bar span { display: block; height: 100%; border-radius: 999px; }

/* ---------- Migration ---------- */
.migrate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.migrate-card {
  background: #fff;
  border-radius: 6px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.migrate-card .m-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #f2f4f6;
  color: var(--red);
  font-size: 20px;
  margin-bottom: 16px;
}
.migrate-card h3 { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.migrate-card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; flex: 1; }
.m-status {
  align-self: flex-start;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}
.m-status.ok { background: #e8f5ee; color: #1b7a45; }
.m-status.dev { background: #fdf0e6; color: #a15a12; }
.migrate-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 24px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--red);
  font-size: 22px;
  line-height: 1;
  transition: transform .18s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-a {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.faq-a a { color: var(--red); }

/* ---------- Footer legal ---------- */
.footer-legal {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .cost-grid { grid-template-columns: 1fr; }
  .migrate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .migrate-grid { grid-template-columns: 1fr; }
}

/* ---------- Migration guide page ---------- */
.migrate-steps { margin-top: 14px !important; }
.migrate-steps li { margin-bottom: 20px; }
.migrate-steps h3 { margin: 0 0 6px !important; }
.migrate-limits { margin-top: 12px !important; }
.migrate-limits b { color: var(--text); }
.page-body .migrate-actions { margin: 32px 0 4px; }


/* ---------- CAE cross-link band ---------- */
.section.tight { padding: 56px 0; }
.cae-band {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background:
    linear-gradient(100deg, rgba(8, 17, 29, 0.97) 0%, rgba(8, 20, 36, 0.88) 55%, rgba(8, 24, 42, 0.55) 100%),
    url("../images/cae-fea.jpg") right center / cover no-repeat;
  border-top: 0;
  border-bottom: 0;
  color: #fff;
}
.cae-band-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cae-band-inner > div:first-child { max-width: 720px; }
.cae-band .kicker { color: #ff9a3c; }
.cae-band h2 { margin-top: 10px; font-size: clamp(26px, 2.8vw, 36px); color: #fff; }
.cae-band p { margin-top: 12px; color: #c3d4e2; font-size: 16px; }
.cae-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cae-band .btn-primary { background: #ff9a3c; color: #1a1206; }
.cae-band .btn-primary:hover { background: #ffb066; }
.cae-band .btn-outline { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.cae-band .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
