/* ============================================================
   Varant Inc — dark engineering theme
   Deep-space navy + checkmark red + teal. Space Grotesk display,
   Inter body, JetBrains Mono for technical accents.
   ============================================================ */
:root {
  --bg: #070d16;
  --bg-soft: #0b1421;
  --bg-card: #0d1725;
  --bg-deep: #04080e;
  --bg-tint: #12202f;
  --line: rgba(148, 180, 210, 0.14);
  --line-strong: rgba(148, 180, 210, 0.26);
  --ink: #d7e3ee;
  --muted: #8b9eb3;
  --heading: #f2f7fb;
  --navy: #0d2b45;
  --red: #e0494f;
  --red-dark: #b93a40;
  --red-glow: rgba(224, 73, 79, 0.35);
  --teal: #2aa198;
  --teal-dim: rgba(42, 161, 152, 0.14);
  --green: #3ecf8e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Light theme (opt-in via [data-theme="light"]; dark is default) ---------- */
[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-soft: #e9eff6;
  --bg-card: #ffffff;
  --bg-deep: #dfe7f1;
  --bg-tint: #e4ecf5;
  --line: rgba(13, 43, 69, 0.12);
  --line-strong: rgba(13, 43, 69, 0.24);
  --ink: #20334a;
  --muted: #5a7186;
  --heading: #0e1e30;
  --red: #d43a41;
  --red-dark: #b03339;
  --red-glow: rgba(212, 58, 65, 0.22);
  --teal: #1d8a80;
  --teal-dim: rgba(29, 138, 128, 0.12);
  --green: #189a5c;
  --shadow: 0 10px 30px rgba(13, 43, 69, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 43, 69, 0.14);
}
[data-theme="light"] .card { background: var(--bg-card); }
[data-theme="light"] .site-footer { background: #0b1524; }
[data-theme="light"] .trust-logos span { color: #93a8bd; }
[data-theme="light"] .trust-logos span:hover { color: #33475c; }
[data-theme="light"] .btn-dark { background: #0e1e30; color: #fff; }
[data-theme="light"] .site-header { background: rgba(244, 247, 251, 0.88); }
[data-theme="light"] .main-nav a { color: var(--muted); }
[data-theme="light"] .main-nav a:hover { color: var(--heading); }
[data-theme="light"] .main-nav a.active { color: var(--red); }
[data-theme="light"] .main-nav a:hover { background: rgba(13, 43, 69, 0.06); }
[data-theme="light"] .hero {
  background:
    linear-gradient(rgba(13, 43, 69, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 43, 69, 0.05) 1px, transparent 1px),
    radial-gradient(70% 90% at 70% 10%, rgba(212, 58, 65, 0.07) 0%, transparent 55%),
    radial-gradient(50% 70% at 15% 90%, rgba(29, 138, 128, 0.07) 0%, transparent 55%),
    var(--bg);
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  background: transparent; border: 1px solid var(--line-strong); border-radius: 10px;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); padding: 0; flex: 0 0 auto;
}
.theme-toggle:hover { color: var(--heading); border-color: var(--red); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(224, 73, 79, 0.4); color: #fff; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #1d2f44; border-radius: 8px; border: 2px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: #2a4259; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--red); }
.container { width: min(1200px, 92%); margin: 0 auto; }
section { padding: 88px 0; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); line-height: 1.16; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 4.8vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); margin-bottom: 0.6em; }
h3 { font-size: 1.28rem; margin-bottom: 0.4em; }
p { margin-bottom: 1em; color: var(--ink); }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 640px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 16px;
}
.eyebrow::before { content: "// "; color: var(--teal); }
.section-head { max-width: 720px; margin-bottom: 50px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: 14px 30px; border-radius: 10px; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer; text-align: center; font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(180deg, #e0494f, #c93339); color: #fff;
  box-shadow: 0 8px 26px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--red-glow); color: #fff; }
.btn-dark { background: #e8eef4; color: #0a141f; }
.btn-dark:hover { background: #fff; color: #0a141f; transform: translateY(-2px); }
.btn-outline { border-color: var(--line-strong); color: var(--heading); background: rgba(255, 255, 255, 0.03); }
.btn-outline:hover { border-color: var(--red); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); }
.btn-light { background: #fff; color: #0a141f; }
.btn-light:hover { transform: translateY(-2px); color: #0a141f; }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; border-radius: 8px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--bg-deep); color: #7d93a8; font-size: 0.84rem; border-bottom: 1px solid var(--line); font-family: var(--font-mono); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #c9d8e4; }
.topbar a:hover { color: #fff; }
.topbar .dot { margin: 0 10px; opacity: 0.35; }
.sys-status { display: inline-flex; align-items: center; gap: 9px; color: #7d93a8; margin-right: 18px; }
.sys-status i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: block;
  box-shadow: 0 0 10px var(--green); animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 22, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; gap: 20px; }
.brand img { height: 44px; width: auto; background: #fff; border-radius: 10px; padding: 5px 12px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  color: var(--muted); font-weight: 500; padding: 10px 15px; border-radius: 8px; font-size: 0.98rem;
  font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.02em;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.main-nav a.active { color: var(--red); font-weight: 600; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #dbe6f0; margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 104px; position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(120, 160, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 200, 0.045) 1px, transparent 1px),
    radial-gradient(70% 90% at 70% 10%, rgba(224, 73, 79, 0.09) 0%, transparent 55%),
    radial-gradient(50% 70% at 15% 90%, rgba(42, 161, 152, 0.08) 0%, transparent 55%),
    var(--bg);
  background-size: 46px 46px, 46px 46px, cover, cover, cover;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-copy p.lead { margin: 22px 0 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }

.page-hero {
  padding: 78px 0 64px; position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(120, 160, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 200, 0.05) 1px, transparent 1px),
    radial-gradient(55% 120% at 85% 0%, rgba(224, 73, 79, 0.12) 0%, transparent 60%),
    var(--bg-deep);
  background-size: 46px 46px, 46px 46px, cover, cover;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { color: var(--muted); max-width: 680px; margin-bottom: 0; font-size: 1.12rem; }

/* ---------- Wow console (hero) ---------- */
.console {
  background: linear-gradient(160deg, #0a1a2e 0%, #0c2036 70%, #0e2540 100%);
  border-radius: 16px;
  border: 1px solid rgba(148, 180, 210, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(224, 73, 79, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden; position: relative;
}
.console::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 80% 0%, rgba(224, 73, 79, 0.1) 0%, transparent 55%);
}
.console-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid rgba(148, 180, 210, 0.12);
  position: relative; z-index: 1;
}
.console-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.console-bar i:nth-child(1) { background: #e0a93e; }
.console-bar i:nth-child(2) { background: #3ecf8e; }
.console-bar span { margin-left: 8px; font-size: 0.78rem; color: #7d93a8; font-family: var(--font-mono); }
#net-canvas { display: block; width: 100%; height: 270px; cursor: crosshair; position: relative; z-index: 1; }
.terminal {
  padding: 16px 22px 22px; min-height: 158px;
  font-family: var(--font-mono);
  font-size: 0.9rem; line-height: 1.95; color: #c9d8e4;
  border-top: 1px solid rgba(148, 180, 210, 0.12);
  position: relative; z-index: 1; background: rgba(0, 0, 0, 0.22);
}
.terminal .tline.cmd { color: #fff; font-weight: 600; }
.terminal .tline.ok { color: #4ade80; }
.terminal .tline.dim { color: #7d93a8; }
.terminal .tline.err { color: #e0494f; }
.terminal .cursor {
  display: inline-block; width: 9px; height: 1.05em; background: #4ade80;
  vertical-align: text-bottom; margin-left: 2px; animation: tblink 1s steps(1) infinite;
}
@keyframes tblink { 50% { opacity: 0; } }

/* ---------- Trust strip ---------- */
.trust { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-deep); }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.trust-label { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.trust-logos { display: flex; gap: 38px; flex-wrap: wrap; justify-content: center; }
.trust-logos span { font-family: var(--font-display); font-size: 1.2rem; color: #54687e; font-weight: 600; transition: color 0.2s; }
.trust-logos span:hover { color: #9db4c9; }

/* ---------- Stats ---------- */
.stats-band { background: var(--bg-deep); padding: 66px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.7rem; color: var(--heading); font-variant-numeric: tabular-nums; }
.stat strong em { font-style: normal; color: var(--red); }
.stat span { color: var(--muted); font-size: 0.94rem; font-family: var(--font-mono); }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: linear-gradient(180deg, var(--bg-card), #0b1320);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  display: flex; flex-direction: column; position: relative;
}
.card:hover {
  transform: translateY(-5px); border-color: rgba(224, 73, 79, 0.45);
  box-shadow: var(--shadow-lg), 0 0 34px rgba(224, 73, 79, 0.1);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(224, 73, 79, 0.1); border: 1px solid rgba(224, 73, 79, 0.28);
  color: var(--red); display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 16px; flex: 1; }
.card-link { font-weight: 600; color: var(--red); font-family: var(--font-mono); font-size: 0.92rem; }
.card-link:hover { color: #ff7a7f; }
.card-link::after { content: " →"; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.check-list { list-style: none; margin: 26px 0; }
.check-list li { padding: 11px 0 11px 40px; position: relative; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 11px; width: 26px; height: 26px;
  border-radius: 8px; background: rgba(62, 207, 142, 0.12); border: 1px solid rgba(62, 207, 142, 0.35);
  color: #4ade80; font-weight: 700; font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.check-list strong { color: var(--heading); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step {
  position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-card), #0b1320);
}
.step-num {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--red); letter-spacing: 0.1em;
  margin-bottom: 14px; font-weight: 600;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- News ---------- */
.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 26px; padding: 26px 8px;
  border-bottom: 1px solid var(--line); transition: background 0.15s ease;
}
.news-item:hover { background: rgba(255, 255, 255, 0.02); }
.news-date { font-family: var(--font-mono); font-weight: 600; color: var(--red); font-size: 0.9rem; white-space: nowrap; }
.news-item h3 { font-size: 1.14rem; margin-bottom: 4px; }
.news-item p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(rgba(120, 160, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 200, 0.05) 1px, transparent 1px),
    linear-gradient(120deg, #0c1a2c 0%, #0a1421 60%, #0d1c30 100%);
  background-size: 46px 46px, 46px 46px, cover;
  border: 1px solid var(--line-strong); border-radius: 22px; padding: 68px 48px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 0 80px rgba(224, 73, 79, 0.05);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 32px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Products ---------- */
.product-card { overflow: hidden; padding: 0; }
.product-card .pc-media { height: 230px; overflow: hidden; border-bottom: 1px solid var(--line); }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; opacity: 0.92; }
.product-card:hover .pc-media img { transform: scale(1.04); opacity: 1; }
.product-card .pc-body { padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal);
  background: var(--teal-dim); border: 1px solid rgba(42, 161, 152, 0.35);
  border-radius: 6px; padding: 5px 12px; margin-bottom: 16px; align-self: flex-start;
}

/* ---------- Jobs ---------- */
.job-card { align-items: stretch; }
.job-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
.job-meta span {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--muted); border-radius: 6px; padding: 5px 12px;
}
.jobs-toolbar { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.jobs-toolbar input, .jobs-toolbar select {
  font: inherit; padding: 13px 18px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg-deep); color: var(--ink);
}
.jobs-toolbar input { flex: 1; min-width: 220px; }
.jobs-toolbar input:focus, .jobs-toolbar select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42, 161, 152, 0.15);
}
.jobs-toolbar select option { background: var(--bg-deep); }
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 0.92rem;
}

/* ---------- Offices / contact ---------- */
.office-tabs { display: flex; gap: 10px; margin-bottom: 30px; }
.office-tab {
  padding: 12px 26px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--bg-card); font-weight: 600; cursor: pointer; color: var(--muted);
  font-size: 0.98rem; font-family: var(--font-body); transition: all 0.15s ease;
}
.office-tab:hover { color: var(--heading); border-color: var(--red); }
.office-tab.active { background: rgba(224, 73, 79, 0.12); border-color: var(--red); color: #fff; }
.office-panel { display: none; }
.office-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.office-info { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; }
.office-info h3 { margin-bottom: 20px; }
.contact-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-row .ic {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(224, 73, 79, 0.1);
  border: 1px solid rgba(224, 73, 79, 0.28); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.map-frame { border: 1px solid var(--line); width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); filter: grayscale(0.4) brightness(0.92); }
.form-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 42px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; color: var(--heading); font-family: var(--font-mono); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg-deep); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42, 161, 152, 0.15);
}
.form-field select option { background: var(--bg-deep); }
.form-field textarea { min-height: 140px; resize: vertical; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 20px; padding-left: 34px; border-left: 1px solid var(--line-strong); display: grid; gap: 32px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -40px; top: 5px; width: 11px; height: 11px; border-radius: 3px;
  background: var(--red); box-shadow: 0 0 14px var(--red-glow); transform: rotate(45deg);
}
.timeline-item .t-date { font-family: var(--font-mono); font-weight: 600; color: var(--red); font-size: 0.86rem; letter-spacing: 0.06em; }
.timeline-item h3 { margin: 6px 0; }
.timeline-item p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #8b9eb3; padding: 72px 0 0; margin-top: 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 52px; }
.footer-brand img { height: 42px; margin-bottom: 18px; background: #fff; border-radius: 10px; padding: 5px 12px; }
.footer-brand p { color: #66798e; font-size: 0.94rem; }
.site-footer h4 { color: #fff; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #8b9eb3; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 24px 0; display: flex; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 0.86rem; color: #66798e; font-family: var(--font-mono);
}
.portal-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224, 73, 79, 0.1); border: 1px solid rgba(224, 73, 79, 0.4);
  color: #ffb3b6 !important; padding: 10px 20px; border-radius: 10px;
  font-weight: 600; font-size: 0.9rem; font-family: var(--font-mono);
  transition: all 0.15s ease;
}
.portal-link:hover { background: rgba(224, 73, 79, 0.2); color: #fff !important; box-shadow: 0 0 24px rgba(224, 73, 79, 0.25); }

/* ---------- ERP banner (home) ---------- */
.erp-banner {
  margin-top: 26px; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(224, 73, 79, 0.1), rgba(42, 161, 152, 0.07)), var(--bg-card);
  border: 1px solid var(--line-strong); border-left: 3px solid var(--red);
  border-radius: var(--radius); padding: 32px 36px;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.erp-banner:hover { border-color: rgba(224, 73, 79, 0.5); box-shadow: var(--shadow-lg), 0 0 34px rgba(224, 73, 79, 0.1); }
.erp-banner h3 { margin: 10px 0 6px; font-size: 1.5rem; }
.erp-banner p { color: var(--muted); margin: 0; font-family: var(--font-mono); font-size: 0.93rem; }

/* ---------- Mini list (ERP vendor cards) ---------- */
.mini-list { list-style: none; margin-top: 20px; display: grid; gap: 11px; }
.mini-list li { position: relative; padding-left: 24px; color: var(--muted); font-size: 0.94rem; }
.mini-list li::before {
  content: "▸"; position: absolute; left: 0; color: var(--teal);
  font-family: var(--font-mono); font-weight: 600;
}
.mini-list li strong { color: var(--ink); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .terminal .cursor, .sys-status i { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .split { grid-template-columns: 1fr; gap: 42px; }
}
@media (max-width: 760px) {
  section { padding: 62px 0; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7, 13, 22, 0.98);
    flex-direction: column; padding: 14px 4%; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .header-actions .btn-portal-m { display: inline-block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .office-panel.active { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 46px 26px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .topbar-inner { justify-content: center; text-align: center; }
  .sys-status { margin-right: 0; }
  #net-canvas { height: 210px; }
  .terminal { font-size: 0.8rem; min-height: 140px; }
}
.header-actions .btn-portal-m { display: none; }

/* --- Collapsible cards (services deep-dives) --- */
details.collapsible { cursor: default; }
details.collapsible summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
details.collapsible summary::-webkit-details-marker { display: none; }
details.collapsible summary h3 { margin: 0; flex: 1; min-width: 0; }
details.collapsible .collapse-icon {
  width: 28px; height: 28px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%;
  position: relative; transition: transform .25s ease, border-color .25s ease;
}
details.collapsible .collapse-icon::before,
details.collapsible .collapse-icon::after {
  content: ""; position: absolute; background: var(--muted);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  transition: background .25s ease;
}
details.collapsible .collapse-icon::before { width: 12px; height: 2px; }
details.collapsible .collapse-icon::after { width: 2px; height: 12px; }
details.collapsible[open] .collapse-icon { transform: rotate(135deg); border-color: var(--red); }
details.collapsible[open] .collapse-icon::before,
details.collapsible[open] .collapse-icon::after { background: var(--red); }
details.collapsible summary:hover .collapse-icon { border-color: var(--red); }
details.collapsible .collapsible-body { padding-top: 4px; }
details.collapsible summary:focus-visible {
  outline: 2px solid var(--red); outline-offset: 4px; border-radius: 8px;
}

/* --- CTA banner --- */
.cta-banner {
  padding: 72px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.cta-banner h2 { margin-bottom: 12px; }

/* --- Notify form --- */
.notify-form input[type="email"]:focus {
  outline: 2px solid var(--red); outline-offset: 2px; border-color: var(--red);
}
.notify-form .notify-msg.ok { color: #3ecf8e; }
.notify-form .notify-msg.err { color: #e5484d; }
