:root {
  --bg: #f6f3f2;
  --bg-2: #fbf8f7;
  --surface: rgba(255,255,255,0.86);
  --surface-strong: #ffffff;
  --text: #121212;
  --muted: #62646c;
  --line: rgba(18,18,18,0.08);
  --line-strong: rgba(18,18,18,0.14);
  --primary: #d81f26;
  --primary-dark: #b7171d;
  --primary-soft: rgba(216,31,38,0.08);
  --green: #15803d;
  --green-soft: rgba(21,128,61,0.10);
  --shadow: 0 22px 56px rgba(17,17,17,0.08);
  --shadow-soft: 0 10px 28px rgba(17,17,17,0.05);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: 1220px;
  --section-space: clamp(64px, 8vw, 104px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216,31,38,0.05), transparent 30%),
    linear-gradient(180deg, #f3f0ef 0%, #f7f5f4 20%, #fbf9f8 100%);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.section { padding: var(--section-space) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 800; color: var(--primary);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--primary); border-radius: 999px; }
h1,h2,h3,h4,p { margin: 0; }
h1 { font-size: clamp(44px, 7vw, 90px); line-height: .96; letter-spacing: -.05em; font-weight: 800; }
h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; }
h3 { font-size: clamp(22px, 2.2vw, 31px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
p.lead { font-size: clamp(18px, 1.8vw, 23px); color: var(--muted); line-height: 1.7; }
p.body { font-size: 16px; color: var(--muted); line-height: 1.8; }
.page-shell, .section-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.topbar {
  position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(18px);
  background: rgba(249,247,246,0.88); border-bottom: 1px solid rgba(18,18,18,0.06);
}
.navbar {
  min-height: 92px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
}
.brand-link img { height: 72px; width: auto; }
.nav-wrap { justify-self: center; width: 100%; max-width: 780px; }
.nav-links {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.76); box-shadow: var(--shadow-soft);
}
.nav-item { position: relative; }
.nav-link {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 18px; border-radius: 999px; font-weight: 600; color: #222; border: 1px solid transparent; transition: .24s ease;
}
.nav-link:hover, .nav-link.active, .nav-item.open > .nav-link { background: #fff; color: var(--primary); border-color: var(--line); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.button {
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: 999px; font-weight: 700; white-space: nowrap; transition: .24s ease;
}
.button-primary { color: #fff; background: linear-gradient(180deg, #e12d34, #ca1b22); box-shadow: 0 16px 32px rgba(216,31,38,.22); }
.button-primary:hover { transform: translateY(-2px); }
.button-secondary { color: #1a1a1a; background: rgba(255,255,255,.9); border: 1px solid var(--line-strong); }
.button-secondary:hover { background: #fff; transform: translateY(-2px); }
.mobile-toggle { display: none; width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-soft); }
.mobile-toggle span, .mobile-toggle span::before, .mobile-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: #111; border-radius: 999px; position: relative; }
.mobile-toggle span::before { position: absolute; top: -6px; }
.mobile-toggle span::after { position: absolute; top: 6px; }
.menu-backdrop { display: none; position: fixed; inset: 0; background: rgba(18,18,18,.28); z-index: 900; }
.menu-backdrop.show { display: block; }
.submenu {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(860px, calc(100vw - 32px)); padding: 22px; border-radius: 28px; background: rgba(255,255,255,.98);
  border: 1px solid var(--line); box-shadow: 0 26px 70px rgba(18,18,18,.12); opacity: 0; visibility: hidden; pointer-events: none; transition: .24s ease;
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu, .nav-item.open .submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.submenu-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.submenu-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.submenu-brand img { height: 34px; width: auto; }
.submenu-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.submenu-card {
  padding: 18px; min-height: 126px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); transition: .24s ease;
}
.submenu-card:hover { background: #fff; border-color: rgba(216,31,38,.18); transform: translateY(-2px); }
.submenu-card h4 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.02em; }
.submenu-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.hero { padding: 52px 0 26px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(340px,.96fr); gap: 38px; align-items: stretch; }
.hero-copy, .hero-media { background: rgba(255,255,255,.76); border: 1px solid var(--line); border-radius: 36px; box-shadow: var(--shadow); }
.hero-copy { padding: clamp(34px,4vw,52px); display: flex; flex-direction: column; gap: 22px; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.hero-copy .support-copy { color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-media { padding: 22px; }
.visual-card {
  min-height: 100%; border-radius: 28px; overflow: hidden; border: 1px solid rgba(18,18,18,.08); background:
  linear-gradient(160deg, rgba(16,17,24,.96), rgba(34,35,46,.92)), radial-gradient(circle at top right, rgba(216,31,38,.22), transparent 30%);
}
.visual-header, .visual-footer { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px; color: rgba(255,255,255,.9); }
.visual-header { border-bottom: 1px solid rgba(255,255,255,.08); }
.visual-body { padding: 28px 22px 26px; }
.visual-body h3 { color: #fff; margin-bottom: 12px; font-size: clamp(26px,3vw,40px); }
.visual-body p { color: rgba(255,255,255,.74); font-size: 15px; line-height: 1.75; max-width: 540px; }
.visual-machines { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; padding: 0 22px 26px; }
.machine-illus {
  min-height: 210px; border-radius: 22px; padding: 16px 14px; display: flex; flex-direction: column; justify-content: flex-end; position: relative;
  border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04)); overflow: hidden;
}
.machine-illus::before {
  content: ""; position: absolute; inset: 18px 18px auto; height: 120px; border-radius: 18px;
  background:
   linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.03)),
   repeating-linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,.14) 8px, transparent 8px, transparent 22px),
   repeating-linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.12) 9px, transparent 9px, transparent 22px);
  border: 1px solid rgba(255,255,255,.12);
}
.machine-illus.red::before { box-shadow: inset 0 0 0 2px rgba(216,31,38,.18); }
.machine-illus span, .machine-illus strong { position: relative; z-index: 1; color: #fff; }
.machine-illus span { font-size: 13px; opacity: .76; }
.machine-illus strong { font-size: 16px; margin-top: 6px; }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 26px; }
.stat-card, .info-card, .panel-card, .compare-card, .table-panel, .contact-card, .form-card, .stack-card, .metric-card, .machine-card, .step-card {
  background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-soft);
}
.stat-card { padding: 24px; }
.stat-card strong { display: block; font-size: clamp(28px,3vw,40px); letter-spacing: -.04em; margin-bottom: 8px; }
.stat-card p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 28px; }
.section-head p { max-width: 620px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.info-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.icon-circle { width: 50px; height: 50px; border-radius: 16px; background: linear-gradient(180deg, rgba(216,31,38,.10), rgba(216,31,38,.04)); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.info-card p { color: var(--muted); line-height: 1.75; font-size: 15px; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.compare-card { padding: 26px; }
.compare-card.bad { background: linear-gradient(180deg, #fff, #fcf5f5); }
.compare-card.good { background: linear-gradient(180deg, #fff, #f4faf6); border-color: rgba(21,128,61,.16); }
.pill { display: inline-flex; padding: 8px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; margin-bottom: 16px; }
.bad .pill { background: rgba(216,31,38,.08); color: var(--primary); }
.good .pill { background: rgba(21,128,61,.10); color: var(--green); }
.list-check, .list-x { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.list-check li, .list-x li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.75; }
.list-check li::before, .list-x li::before {
  width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-top: 2px;
}
.list-check li::before { content: "✓"; background: var(--green-soft); color: var(--green); }
.list-x li::before { content: "–"; background: rgba(216,31,38,.10); color: var(--primary); }
.opportunity-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 22px; }
.panel-card { padding: 28px; }
.highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.highlight-box { padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); }
.highlight-box strong { display: block; margin-bottom: 8px; font-size: 16px; }
.highlight-box p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.table-panel { overflow: hidden; }
.table-panel table { width: 100%; border-collapse: collapse; }
.table-panel thead th { background: #12141a; color: #fff; text-align: left; padding: 18px 20px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.table-panel tbody td { padding: 18px 20px; border-top: 1px solid var(--line); vertical-align: top; font-size: 15px; line-height: 1.7; }
.table-panel tbody tr:nth-child(even) td { background: #fcfbfb; }
.badge-positive { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(21,128,61,.08); color: var(--green); font-size: 13px; font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.machine-layout, .operator-layout, .contact-layout { display: grid; gap: 22px; }
.machine-layout { grid-template-columns: 1.06fr .94fr; }
.operator-layout { grid-template-columns: .94fr 1.06fr; }
.contact-layout { grid-template-columns: .92fr 1.08fr; align-items: start; }
.machine-card, .stack-card, .contact-card, .form-card { padding: 28px; }
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.showcase-box { min-height: 230px; border-radius: 22px; background: linear-gradient(180deg, #151821, #252937); color: #fff; position: relative; padding: 18px; overflow: hidden; }
.showcase-box::after {
  content: ""; position: absolute; right: 18px; bottom: 18px; width: 86px; height: 148px; border-radius: 16px;
  background:
   linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.04)),
   repeating-linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.12) 8px, transparent 8px, transparent 22px),
   repeating-linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.10) 10px, transparent 10px, transparent 20px);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.showcase-box.red::after { box-shadow: inset 0 0 0 2px rgba(216,31,38,.18), 0 12px 28px rgba(0,0,0,.25); }
.showcase-box p { color: rgba(255,255,255,.76); font-size: 14px; max-width: 260px; margin-top: 10px; line-height: 1.7; }
.matrix-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.matrix-table th, .matrix-table td { padding: 16px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; line-height: 1.7; }
.matrix-table th { color: #51515a; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.steps { display: grid; gap: 16px; }
.step-card { padding: 18px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.step-num { width: 44px; height: 44px; border-radius: 14px; background: rgba(216,31,38,.08); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.step-card p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 6px; }
.contact-points { display: grid; gap: 14px; margin-top: 18px; }
.contact-point { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-point:first-child { border-top: 0; padding-top: 0; }
.contact-point strong { display: block; margin-bottom: 6px; font-size: 16px; }
.contact-point span, .contact-point a { color: var(--muted); font-size: 15px; line-height: 1.75; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: #2b2b2b; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid rgba(18,18,18,.12); background: #fbfbfb; border-radius: 16px; padding: 15px 16px; color: #111; outline: none; transition: .2s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(216,31,38,.40); background: #fff; box-shadow: 0 0 0 4px rgba(216,31,38,.08); }
.footer { padding: 46px 0 62px; }
.footer-shell {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px; border-radius: 28px;
  background: rgba(255,255,255,.74); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.footer-shell p { color: var(--muted); margin-top: 8px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-weight: 600; }
.page-hero { padding: 42px 0 8px; }
.page-title-card { padding: clamp(30px,4vw,44px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.centered { text-align: center; }
.note-box { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); }
@media (max-width: 1180px) {
  .hero-grid, .opportunity-grid, .machine-layout, .operator-layout, .contact-layout, .two-col { grid-template-columns: 1fr; }
  .stats-strip, .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .navbar { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-wrap { position: fixed; top: 92px; left: 16px; right: 16px; z-index: 950; max-width: none; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .24s ease; }
  .nav-wrap.show { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 8px; padding: 14px; border-radius: 28px; }
  .nav-item, .nav-link { width: 100%; }
  .nav-link { justify-content: space-between; min-height: 54px; padding: 0 16px; border: 1px solid var(--line); background: #fff; }
  .submenu { position: static; width: 100%; transform: none; opacity: 1; visibility: visible; pointer-events: auto; display: none; margin-top: 10px; box-shadow: none; border-radius: 22px; }
  .nav-item.open .submenu { display: block; }
  .submenu-grid { grid-template-columns: 1fr; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-actions { display: none; }
  .visual-machines { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .navbar { min-height: 78px; }
  .brand-link img { height: 56px; }
  .hero { padding-top: 28px; }
  .hero-copy, .hero-media, .page-title-card, .compare-card, .panel-card, .table-panel, .contact-card, .form-card, .stack-card, .machine-card, .stat-card, .info-card, .footer-shell { border-radius: 24px; }
  .stats-strip, .grid-3, .compare-grid, .form-grid, .highlight-grid, .showcase-grid { grid-template-columns: 1fr; }
  .visual-machines { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .footer-shell { flex-direction: column; align-items: start; }
}
