/* Layout: dark industrial control-room page. Full-bleed sections on a technical grid,
   content in a 1200px wrap, bento cards for capabilities, mono readouts for real units. */
:root {
  --bg: #0B0F17;
  --bg-2: #111827;
  --surface: #121A27;
  --surface-2: #172133;
  --line: #1E293B;
  --line-2: #2A3850;
  --fg: #F8FAFC;
  --fg-2: #E2E8F0;
  --muted: #94A3B8;
  --cyan: #22D3EE;
  --blue: #0EA5E9;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #F43F5E;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --r: 12px;
  --wrap: 1600px; /* ancho máximo; por debajo el contenido es fluido */
  --gutter: clamp(16px, 4vw, 72px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--f-display); color: var(--fg); margin: 0; text-wrap: balance; font-stretch: 112%; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 650; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cyan); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 8px;
  font: 600 0.95rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn-primary { background: var(--cyan); color: #04121A; }
.btn-primary:hover { background: #67E8F9; color: #04121A; box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--fg); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(11, 15, 23, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand-logo { display: block; height: 22px; width: auto; margin-right: 12px; }
.footer-logo { height: 22px; margin-bottom: 4px; }
.brand-word { font: 700 1.15rem/1 var(--f-display); font-stretch: 125%; letter-spacing: .06em; color: var(--fg); margin: 0; }
.nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav a:not(.btn) { color: var(--fg-2); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--cyan); }
.nav-cta { min-height: 38px; padding: 8px 16px; font-size: .88rem; white-space: nowrap; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.lang-btn { background: none; border: 0; color: var(--muted); font: 600 .78rem/1 var(--f-mono); letter-spacing: .08em; padding: 9px 10px; cursor: pointer; min-width: 40px; }
.lang-btn[aria-pressed="true"] { background: var(--surface-2); color: var(--cyan); }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--fg); transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1360px) {
  .menu-btn { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-cta { margin-top: 16px; min-height: 46px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 96px) 40px; border-bottom: 1px solid var(--line); }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(60% 50% at 75% 30%, rgba(14, 165, 233, .16), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
  opacity: .7;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { min-width: 0; display: grid; gap: 22px; }
.eyebrow { font: 500 .78rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.lead { font-size: 1.12rem; color: var(--fg-2); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 8px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; gap: 2px; }
.hero-facts dt { font-size: 1.35rem; font-weight: 600; color: var(--fg); }
.hero-facts dd { margin: 0; font-size: .85rem; color: var(--muted); }

.hero-visual { margin: 0; min-width: 0; display: grid; gap: 8px; }
.hero-visual figcaption { font-size: .72rem; color: var(--muted); text-align: right; }
.hud { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(14, 165, 233, .35); }
.hud-bar, .hud-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: .72rem; color: var(--muted); }
.hud-bar { border-bottom: 1px solid var(--line); }
.hud-right { margin-left: auto; color: var(--cyan); }
.hud-foot { border-top: 1px solid var(--line); flex-wrap: wrap; gap: 6px 18px; }
.hud-foot .ok { color: var(--green); } .hud-foot .nok { color: var(--red); }
.hud-svg { display: block; width: 100%; height: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.dot.live { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } }
.scanline { animation: scan 4s linear infinite; }
@keyframes scan { from { transform: translateY(-60px); } to { transform: translateY(320px); } }
.svg-label { font: 600 11px var(--f-mono); }
.svg-label.dark { fill: #04121A; }
.svg-ocr { font: 600 13px var(--f-mono); fill: #0A0E15; }

.proof { position: relative; margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 16px; }
.proof-label { font-size: .8rem; color: var(--muted); }
.proof-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 44px; }
.wm { color: #C5CFDD; opacity: .85; font-size: 1.25rem; white-space: nowrap; }
.wm-serif { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .01em; }
.wm-wide { font-family: var(--f-display); font-stretch: 125%; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 1rem; }
.wm-round { font-family: var(--f-body); font-weight: 700; letter-spacing: -.01em; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
.section-head { display: grid; gap: 14px; max-width: 820px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-intro { color: var(--fg-2); font-size: 1.05rem; max-width: 68ch; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card p { color: var(--fg-2); font-size: .95rem; }
.card:hover { border-color: rgba(34, 211, 238, .45); box-shadow: 0 0 0 1px rgba(34, 211, 238, .12), 0 20px 40px -24px rgba(34, 211, 238, .3); }
.card-span2 { grid-column: span 2; }
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 12px 28px; }
.card-wide .chips { margin: 0; }
.card-tall { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center; }
.card-copy { display: grid; gap: 12px; min-width: 0; }
.card-art { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.card-compliance { background: linear-gradient(160deg, rgba(16, 185, 129, .12), var(--surface) 55%); border-color: rgba(16, 185, 129, .35); }
.card-compliance:hover { border-color: var(--green); box-shadow: 0 20px 40px -24px rgba(16, 185, 129, .4); }
.badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font: 600 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green); border: 1px solid rgba(16, 185, 129, .5); border-radius: 999px; padding: 6px 10px; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.spec { color: var(--cyan) !important; font-size: 1.05rem !important; font-weight: 600; }
.chips { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .78rem; padding: 4px 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--fg-2); }
.chips-mono li { font-family: var(--f-mono); font-size: .72rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.industries { list-style: none; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.industries li { display: grid; gap: 4px; }
.industries b { color: var(--fg); font-weight: 600; }
.industries span { font-size: .85rem; color: var(--muted); }

/* pipeline / lifecycle (real sequences) */
.pipeline, .lifecycle { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lifecycle { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 0; }
.pipeline li, .lifecycle li { background: var(--surface); padding: 18px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.pipeline b, .lifecycle b { color: var(--fg); font-weight: 600; }
.pipeline span:not(.step), .lifecycle span:not(.step) { font-size: .85rem; color: var(--muted); }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--cyan); color: var(--cyan); font-size: .78rem; margin-bottom: 6px; }

/* tabs */
.tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tab-list { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tab-list [role="tab"] { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 500 .92rem/1 var(--f-body); padding: 16px 20px; cursor: pointer; min-height: 48px; }
.tab-list [role="tab"]:hover { color: var(--fg); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--cyan); border-bottom-color: var(--cyan); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: clamp(20px, 3vw, 36px); align-items: center; animation: fadeUp .35s ease both; }
.panel-copy { display: grid; gap: 14px; min-width: 0; }
.panel-copy p { color: var(--fg-2); }
.panel-art { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }

.deploy { margin-top: 48px; display: grid; gap: 20px; }
.deploy-title { font-size: 1.25rem; }
.deploy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-flat { background: transparent; }
.kicker { color: var(--cyan); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.stack-chips { margin: 0; }

/* product */
.section-product { background:
  radial-gradient(50% 60% at 90% 10%, rgba(34, 211, 238, .12), transparent 70%),
  linear-gradient(180deg, #0D1422, var(--bg)); }
.eyebrow-product { color: var(--green); }
.rufus-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: start; }
.arch { margin: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(10, 14, 21, .7); padding: 12px; }
.arch svg { display: block; width: 100%; height: auto; }
.bus { animation: drive 7s ease-in-out infinite alternate; }
@keyframes drive { from { transform: translateX(-60px); } to { transform: translateX(10px); } }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.flow li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.flow li > div { display: grid; gap: 4px; }
.flow p { font-size: .94rem; color: var(--fg-2); }
.specs { margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.specs div { background: var(--surface); padding: 20px; display: grid; gap: 4px; }
.specs dt { font-size: 1.6rem; font-weight: 600; color: var(--cyan); }
.specs dd { margin: 0; font-size: .85rem; color: var(--muted); }
.demo { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: var(--r); border: 1px solid rgba(34, 211, 238, .45); background: linear-gradient(120deg, rgba(14, 165, 233, .14), rgba(16, 185, 129, .06)); }
.demo-copy { display: grid; gap: 12px; min-width: 0; }
.demo-steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: .93rem; }
.demo-steps li::marker { font-family: var(--f-mono); color: var(--cyan); }
.demo-actions { display: grid; gap: 10px; }

/* integration */
.vendor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 52px; }
.vendor { border-top: 2px solid var(--cyan); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.vendor h3 { font-size: 1.35rem; font-stretch: 118%; }
.vendor p { color: var(--fg-2); font-size: .95rem; }
.lifecycle-title { margin-bottom: 18px; font-size: 1.25rem; }

/* cases */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.case p { font-size: .93rem; color: var(--fg-2); }
.case-feature { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(34, 211, 238, .1), var(--surface) 60%); border-color: var(--line-2); }
.case-feature h3 { font-size: 1.4rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber) !important; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.sector { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan) !important; }
.nda, .case-tags { margin-top: auto !important; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: .74rem !important; color: var(--muted) !important; }
.ecosystem { margin-top: 44px; display: grid; gap: 14px; }
.eco-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eco-list li { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 8px; font-size: .8rem; color: var(--fg-2); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-copy { display: grid; gap: 18px; }
.contact-copy > p { color: var(--fg-2); }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-list .k { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.call { justify-self: start; }

.wizard { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.wizard-progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.wizard-progress .bar { display: block; height: 100%; width: 25%; background: var(--cyan); transition: width .3s; }
.wizard-count { font-size: .75rem; color: var(--muted); margin-top: -8px; }
.step-pane { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.step-pane legend { font: 650 1.2rem/1.3 var(--f-display); color: var(--fg); margin-bottom: 14px; padding: 0; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; }
.option span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); transition: border-color .2s, background .2s; }
.option b { color: var(--fg); font-weight: 600; font-size: .95rem; }
.option small { color: var(--muted); font-size: .8rem; }
.option input:checked + span { border-color: var(--cyan); background: rgba(34, 211, 238, .08); }
.option input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; font-size: .85rem; color: var(--fg-2); min-width: 0; }
.field input, .field textarea {
  width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 12px; font: 400 1rem/1.4 var(--f-body);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; }
.checks .check { padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); }
.checks .check:has(input:checked) { border-color: var(--cyan); background: rgba(34, 211, 238, .08); }
.check input { width: 18px; height: 18px; accent-color: var(--cyan); }
.consent { margin-top: 4px; }
.legal-link { font-size: .82rem; justify-self: start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-size: .9rem; }
.form-msg.error { color: var(--red); }
.form-msg.ok { color: var(--green); }
.wizard-nav { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* footer */
.site-footer { padding-block: 40px; background: #080B11; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; }
.footer-grid .muted { font-size: .85rem; margin-top: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: var(--fg-2); text-decoration: none; font-size: .88rem; }
.footer-nav a:hover { color: var(--cyan); }


/* ---------- RUFUS software (v2) ---------- */
.sub-title { font-size: 1.25rem; margin: 56px 0 20px; }
.rufus-showcase { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: 20px; align-items: start; }
.shot { margin: 0; display: grid; gap: 8px; min-width: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); }
.shot-plant img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
.shot figcaption, .portico figcaption { font: 400 .74rem/1.4 var(--f-mono); color: var(--muted); }
.showcase-side { display: grid; gap: 20px; min-width: 0; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feature-list li { background: var(--surface); padding: 16px 18px; display: grid; gap: 4px; }
.feature-list b { color: var(--fg); font-weight: 600; }
.feature-list span { font-size: .86rem; color: var(--muted); }

.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: border-color .25s, box-shadow .25s; }
.tool:hover { border-color: rgba(34, 211, 238, .45); box-shadow: 0 20px 40px -24px rgba(34, 211, 238, .3); }
.tool img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #05070B; border-bottom: 1px solid var(--line); }
.tool-body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.tool-body p { font-size: .93rem; color: var(--fg-2); }

.approach { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.approach-col { background: var(--bg-2); padding: clamp(20px, 3vw, 32px); display: grid; gap: 12px; align-content: start; }
.approach-col > p:not(.kicker) { color: var(--fg-2); font-size: .95rem; }

.measure { margin-top: 56px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.measure-copy { display: grid; gap: 14px; }
.measure-copy > p:not(.eyebrow) { color: var(--fg-2); }
.measure-title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2; }
.measure-list { margin: 0; display: grid; border-top: 1px solid var(--line); }
.measure-list div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.measure-list dt { color: var(--cyan); font: 600 .78rem/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.measure-list dd { margin: 0; color: var(--fg-2); font-size: .94rem; }

.pipeline-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 40px; }
.bento-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Rufus Aware photo */
.portico { margin: 32px 0 0; display: grid; gap: 8px; }
.portico img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line-2); }

/* ---------- Why LYNXAI ---------- */
.section-why { background: linear-gradient(180deg, var(--bg), #0D1320); }
.why-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.why { grid-column: span 2; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: grid; gap: 10px; align-content: start; }
.why:nth-child(4), .why:nth-child(5) { grid-column: span 3; }
.why p { color: var(--fg-2); font-size: .95rem; }
.compare-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .93rem; }
.compare caption { text-align: left; padding: 16px 20px; font: 650 1.05rem/1.3 var(--f-display); color: var(--fg); border-bottom: 1px solid var(--line); }
.compare th, .compare td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font: 600 .74rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.compare thead th:last-child { color: var(--cyan); }
.compare tbody th { color: var(--fg); font-weight: 600; width: 18%; }
.compare td { color: var(--muted); }
.compare td:last-child { color: var(--fg); background: rgba(34, 211, 238, .05); }

/* ---------- Locations page ---------- */
.loc-hero { padding-block: clamp(48px, 7vw, 88px) 32px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.loc-hero .wrap { position: relative; display: grid; gap: 16px; }
.loc-hero .lead { max-width: 62ch; }
.map { margin: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.map svg { display: block; width: 100%; height: auto; }
.map-label { font: 600 12px var(--f-mono); }
.map-small { font: 400 10px var(--f-mono); fill: var(--muted); }
.route { stroke-dasharray: 6 6; animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.locs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.loc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.loc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.loc-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.loc-role { font: 500 .74rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.loc-clock { text-align: right; }
.loc-clock .t { display: block; font: 600 1.5rem/1 var(--f-mono); color: var(--fg); font-variant-numeric: tabular-nums; }
.loc-clock small { font: 400 .72rem/1.4 var(--f-mono); color: var(--muted); }
.loc > p { color: var(--fg-2); }
.loc .contact-list { margin: 0; }
.coverage { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.coverage li { font: 500 .74rem/1 var(--f-mono); padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--fg-2); }

@media (max-width: 980px) {
  .rufus-showcase, .approach, .measure, .locs { grid-template-columns: minmax(0, 1fr); }
  .shot-plant { max-width: 420px; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why, .why:nth-child(4), .why:nth-child(5) { grid-column: auto; }
  .bento-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tools, .feature-list, .pipeline-5 { grid-template-columns: minmax(0, 1fr); }
  .measure-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .shot-plant { max-width: none; }
}

/* motion: content is visible at rest; reveal only nudges position */
@keyframes fadeUp { from { opacity: .001; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.js .reveal { transition: transform .6s ease, opacity .6s ease; }
.js .reveal.pre { transform: translateY(14px); opacity: .6; }

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

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .rufus-grid, .contact-grid, .tab-panel { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-span2 { grid-column: 1 / -1; }
  .card-wide { grid-template-columns: minmax(0, 1fr); }
  .industries, .pipeline, .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cases, .vendor-grid, .deploy-grid { grid-template-columns: minmax(0, 1fr); }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo-actions { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bento, .card-tall, .options, .field-row { grid-template-columns: minmax(0, 1fr); }
  .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { grid-template-columns: minmax(0, 1fr); }
  .wm { font-size: 1.05rem; }
  .proof-list { gap: 12px 28px; }
  .lang-btn { min-width: 36px; padding: 9px 8px; }
}
