/* Torvanis — brand tokens carried over from the original site:
   maroon #840021, orange #ff9b1a, navy #0f172a, ice #e7f6ff,
   Plus Jakarta Sans (headings) + Inter (body). */
:root {
  --maroon: #840021;
  --maroon-bright: #c2183f;
  --orange: #ff9b1a;
  --navy: #0f172a;
  --navy-2: #172033;
  --slate: #212a37;
  --ice: #e7f6ff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-tint: #f4f9fd;

  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--orange); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 22px; border-radius: 999px;
  background: var(--orange); color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  text-decoration: none; border: 2px solid var(--orange);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #ffb04d; border-color: #ffb04d; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.text-link { display: inline-block; margin-top: 20px; color: var(--maroon); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Janus Edge promo bar */
.promo-bar { background: linear-gradient(90deg, var(--maroon), #5c0017); color: #fff; font-size: 14px; }
.promo-inner { display: flex; align-items: center; justify-content: center; gap: 8px 16px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.promo-bar a { color: var(--orange); font-weight: 700; text-decoration: none; white-space: nowrap; }
.promo-bar a:hover { text-decoration: underline; }
@media (max-width: 600px) { .promo-bar { font-size: 13px; } .promo-extra { display: none; } .promo-inner { gap: 4px 10px; padding-top: 7px; padding-bottom: 7px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 54px; width: auto; }

.site-nav ul { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.site-nav a:hover { color: var(--maroon); }
.site-nav a.btn { color: var(--navy); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; color: var(--ink); }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; border-radius: 2px; content: ""; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(194, 24, 63, .35), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(255, 155, 26, .14), transparent 60%),
    var(--navy);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--maroon);
  margin-bottom: 14px;
}
.hero .eyebrow, .section-dark .eyebrow { color: var(--orange); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.02em; }
.accent { color: var(--orange); }
.lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: rgba(255,255,255,.78); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip-row li {
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85); background: rgba(255,255,255,.04);
}

.hero-visual { margin: 0; }
.hero-visual svg { width: 100%; height: auto; }
.hero-visual .links path { stroke: rgba(255,255,255,.22); stroke-width: 2; stroke-dasharray: 4 6; fill: none; }
.hero-visual .pulse { fill: var(--orange); }
.hero-visual .node rect { fill: var(--navy-2); stroke: rgba(255,255,255,.16); stroke-width: 1.5; }
.hero-visual .node text { fill: #fff; font-family: var(--font-head); font-weight: 700; font-size: 16px; text-anchor: middle; }
.hero-visual .core-ring { fill: none; stroke: rgba(255,155,26,.55); stroke-width: 2; stroke-dasharray: 3 7; transform-origin: 210px 190px; animation: spin 24s linear infinite; }
.hero-visual .core-title { fill: #fff; font-family: var(--font-head); font-weight: 800; font-size: 20px; text-anchor: middle; letter-spacing: .04em; }
.hero-visual .core-sub { fill: rgba(255,255,255,.8); font-family: var(--font-body); font-size: 10.5px; text-anchor: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--surface-tint); }
.section-dark { background: var(--navy); color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }
.section-dark .section-head p:not(.eyebrow) { color: rgba(255,255,255,.75); }
.section-head-left { text-align: left; margin: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(132, 0, 33, .35); }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--ink-soft); }
.card-icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 12px; background: linear-gradient(135deg, var(--maroon), var(--maroon-bright));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 14px;
}
.card-plain { box-shadow: none; border-top: 3px solid var(--orange); border-radius: var(--radius-sm); }
.card-dark { background: var(--navy-2); border-color: rgba(255,255,255,.1); box-shadow: none; }
.card-dark p { color: rgba(255,255,255,.72); }
.card-dark h3 { color: #fff; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li {
  position: relative; padding: 28px 24px 24px; background: var(--surface);
  border-radius: var(--radius); border: 1px solid var(--line);
}
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 14px;
  color: var(--maroon); letter-spacing: .1em; margin-bottom: 12px;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 38px; right: -14px; width: 8px; height: 8px;
  border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg);
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); }

/* Split layouts */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.split-reverse { grid-template-columns: 1fr 1fr; align-items: center; }
.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
.list-grid li { padding-left: 18px; border-left: 3px solid var(--maroon); }
.list-grid h3 { font-size: 17px; margin-bottom: 6px; }
.list-grid p { color: var(--ink-soft); font-size: 15px; }

/* Janus Edge */
.check-list { margin: 22px 0 28px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--maroon);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.product-panel {
  background: var(--navy); border-radius: 22px; padding: 28px; color: #fff;
  display: grid; gap: 10px; box-shadow: 0 24px 48px rgba(15,23,42,.18);
}
.product-row {
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 16px 18px;
  text-align: center; font-family: var(--font-head); font-weight: 700;
}
.product-core { background: linear-gradient(135deg, var(--maroon), var(--maroon-bright)); border: 0; }
.product-core small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 13px; opacity: .85; margin-top: 4px; }
.product-providers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.product-providers span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.08); }
.product-arrow { width: 2px; height: 22px; margin: 0 auto; background: linear-gradient(var(--orange), rgba(255,155,26,.2)); }

/* Industries */
.industry-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.industry-list li {
  padding: 10px 18px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-weight: 500; font-size: 15px;
}

/* CTA */
.section-cta {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255,155,26,.18), transparent 60%),
    linear-gradient(135deg, var(--maroon), #5c0017);
  color: #fff;
}
.section-cta .eyebrow { color: var(--orange); }
.cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.cta-inner h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.cta-inner p:not(.eyebrow) { margin-top: 14px; color: rgba(255,255,255,.82); font-size: 17px; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: block; text-decoration: none; padding: 20px 22px; border-radius: var(--radius);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  transition: background-color .15s ease;
}
.contact-card:hover { background: rgba(255,255,255,.16); }
.contact-label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); font-weight: 700; }
.contact-value { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-top: 4px; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 14px; margin-bottom: 14px; }
.footer-logo img { height: 52px; width: auto; }
.motto { margin-top: 8px; color: var(--orange); font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.footer-heading { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.social { display: flex !important; gap: 10px !important; margin-bottom: 16px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
}
.social a:hover { background: var(--maroon); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social svg[fill="none"] { fill: none; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(36px, 6vw, 56px); }
.notfound p { margin: 16px 0 28px; color: rgba(255,255,255,.75); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .split-reverse, .cta-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .product-panel { order: 2; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,23,42,.08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav li a { display: block; padding: 12px 0; font-size: 16px; }
  .site-nav li a.btn { display: flex; margin-top: 10px; padding: 12px 16px; }
}

@media (max-width: 600px) {
  .card-grid, .card-grid-3, .steps, .list-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (min-width: 961px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

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