/* ============================================================
   ABSULT — modern corporate landing page
   Brand: orange #f29428 + warm gold, neutral greys (from absult.de)
   Dark + light theming via CSS custom properties on :root[data-theme]
   ============================================================ */

/* ---------- Theme tokens ---------- */
:root {
  --accent: #f29428;
  --accent-2: #f7b733;
  --accent-grad: linear-gradient(120deg, #f7941e 0%, #f9c846 100%);
  --on-accent: #331c00;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root[data-theme="dark"] {
  --bg: #0a0e14;
  --bg-alt: #0f141d;
  --surface: #131a24;
  --surface-2: #182230;
  --border: #233040;
  --text: #e8eef6;
  --text-dim: #9aa9bd;
  --text-mute: #6c7c91;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.7);
  --glow: radial-gradient(60% 60% at 70% 10%, rgba(242,148,40,.18), transparent 70%);
  --header-bg: rgba(10,14,20,.72);
}

:root[data-theme="light"] {
  --bg: #f6f8fb;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f3f6fa;
  --border: #dde4ee;
  --text: #0e1726;
  --text-dim: #475569;
  --text-mute: #7a8aa0;
  --shadow: 0 18px 44px -22px rgba(20,40,80,.28);
  --glow: radial-gradient(60% 60% at 70% 10%, rgba(242,148,40,.14), transparent 70%);
  --header-bg: rgba(255,255,255,.78);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .35s var(--ease), color .35s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; font-size: .95rem; padding: .8em 1.4em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s var(--ease),
  box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s; white-space: nowrap;
}
.btn-sm { padding: .6em 1.1em; font-size: .88rem; }
.btn-primary { background: var(--accent-grad); color: var(--on-accent); box-shadow: 0 10px 26px -10px rgba(242,148,40,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(242,148,40,.65); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(160%) blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 72px; }

/* Brand logo is an INDEPENDENT floating mark, pinned to the top-right corner.
   Fixed positioning takes it out of the header flow, so it never pushes the
   nav or changes the header height — it simply overlays the top-right corner. */
.brand {
  position: fixed; top: 10px; right: clamp(12px, 3vw, 34px); z-index: 200;
  display: inline-flex; align-items: center; margin: 0; line-height: 0;
}
.brand-logo { height: clamp(152px, 15vw, 188px); width: auto; display: block; }
.brand-logo--footer { position: static; height: 40px; }
:root[data-theme="dark"] .brand-logo {
  background: #fff; padding: 10px 18px; border-radius: 14px;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.6);
}

.main-nav { display: flex; gap: 26px; }
.main-nav a {
  font-size: .94rem; font-weight: 500; color: var(--text-dim); position: relative; padding: 4px 0;
  transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent-grad); transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.is-active { color: var(--accent); }
.main-nav a.is-active::after { width: 100%; }

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

.lang-switch { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: .82rem; }
.lang-btn {
  background: none; border: 0; cursor: pointer; color: var(--text-mute); font: inherit;
  padding: 4px 6px; border-radius: 6px; transition: color .2s, background .2s; font-weight: 700;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { color: var(--accent); }
.lang-sep { color: var(--text-mute); }

.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer;
  transition: color .2s, border-color .2s, transform .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: none; }

.btn-sxarc { padding: .62em 1.2em; font-weight: 700; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; background: var(--glow);
  pointer-events: none;
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(75% 60% at 50% 0%, #000 35%, transparent 80%);
  opacity: .5;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.hero-title { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-dim); max-width: 640px; margin: 18px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 48px; margin: 54px 0 0; flex-wrap: wrap; }
.hero-stats dt { font-size: 2.2rem; font-weight: 800; font-family: var(--mono);
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats dd { margin: 2px 0 0; color: var(--text-mute); font-size: .9rem; }

/* Main hero: use full container width, center all content */
.hero .hero-inner { max-width: none; text-align: center; }
.hero .hero-lead { margin-left: auto; margin-right: auto; }
.hero .hero-cta { justify-content: center; }
.hero .hero-stats { justify-content: center; }

/* Small hero variant (platform page) */
.hero-sm { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 80px) 0 clamp(32px, 5vw, 56px); }
.hero-sm .hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--glow); pointer-events: none; }
.hero-sm .hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(75% 60% at 50% 0%, #000 35%, transparent 80%);
  opacity: .5;
}
.hero-sm .hero-inner { position: relative; z-index: 1; max-width: none; text-align: center; }
.hero-sm .hero-title { font-size: clamp(1.8rem, 5vw, 3rem); }
.hero-sm .hero-lead { margin-left: auto; margin-right: auto; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
.section-sub { color: var(--text-dim); font-size: 1.08rem; margin: 0; }
/* These section heads span the full container width */
#portfolio .section-head,
#partners .section-head,
#certifications .section-head { max-width: none; }
/* Partners title is long — shrink it so it stays on one line */
#partners .section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

/* ---------- Portfolio / module cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
  background: var(--surface-2); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 10px;
}
.plat-head-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plat-badge {
  display: inline-block; font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
  background: var(--surface-2); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 10px;
}
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--surface-2); color: var(--accent); border: 1px solid var(--border); margin-bottom: 18px;
}
.card-title { font-size: 1.25rem; font-weight: 700; }
.card-desc { color: var(--text-dim); margin: 0 0 16px; font-size: .96rem; }
.card-feats { display: flex; flex-wrap: wrap; gap: 8px; }
.card-feats li {
  font-family: var(--mono); font-size: .76rem; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px;
}

/* ---------- Why Sertrix value grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.why-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.why-card .why-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--surface-2); color: var(--accent); border: 1px solid var(--border); margin-bottom: 16px;
}
.why-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { color: var(--text-dim); font-size: .94rem; margin: 0; }

/* ---------- Tech strip ---------- */
.tech-strip { padding: 40px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tech-strip-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.tech-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .82rem; font-weight: 600;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border);
  padding: 10px 18px; border-radius: 999px; transition: border-color .2s, color .2s, transform .15s;
}
.tech-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.tech-chip .chip-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-grad); flex-shrink: 0;
}

/* ---------- Badge / cert grid ---------- */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.badge-grid li {
  display: grid; place-items: center; min-height: 92px; text-align: center; font-weight: 700;
  font-family: var(--mono); font-size: 1.05rem; letter-spacing: .02em; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .25s, color .25s, transform .2s;
}
.badge-grid li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--text-dim); }
.value-list { display: grid; gap: 16px; }
.value-list li {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 18px 20px;
}
.value-list strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.value-list span { color: var(--text-dim); font-size: .94rem; }

/* ---------- Partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.partner-grid li {
  display: grid; place-items: center; min-height: 70px; padding: 10px 14px; text-align: center; font-weight: 600;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: color .2s, border-color .2s, transform .2s;
  overflow-wrap: anywhere;
}
.partner-grid .pg-sub { display: block; font-size: .68rem; font-weight: 500; opacity: .85; margin-top: 3px; }
.partner-grid li:hover { color: var(--text); border-color: var(--accent); transform: translateY(-3px); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; }
.contact-card--brand { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; }
.contact-brand-logo { width: auto; height: 55px; max-width: 100%; box-sizing: content-box; background: #fff; padding: 14px 20px; border-radius: 16px; }
.contact-card--brand p { color: var(--text-dim); font-size: .96rem; margin: 0; }
.contact-card h3 { font-size: 1.05rem; color: var(--accent); }
.contact-card address { font-style: normal; color: var(--text-dim); line-height: 1.8; }
.contact-card a { color: var(--text); font-weight: 500; }
.contact-card a:hover { color: var(--accent); }
.contact-card .btn { margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-tagline { margin: 4px 0 0; color: var(--text-mute); font-size: .9rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: .92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; color: var(--text-mute); font-size: .85rem; }

/* ---------- SXarc modal ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute; inset: 0; background: rgba(4,8,14,.72);
  backdrop-filter: blur(6px); animation: fade .25s var(--ease) both;
}
.modal-panel {
  position: relative; z-index: 1; width: 100%; max-width: 460px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 32px 34px; box-shadow: var(--shadow); animation: pop .3s var(--ease) both;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid;
  place-items: center; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; transition: color .2s, border-color .2s;
}
.modal-close:hover { color: var(--accent); border-color: var(--accent); }

.modal-logo-wrap { display: inline-flex; padding: 14px 20px; border-radius: 14px; margin-bottom: 22px; }
:root[data-theme="dark"] .modal-logo-wrap { background: #fff; box-shadow: 0 8px 22px -10px rgba(0,0,0,.6); }
.modal-logo { height: 56px; width: auto; display: block; }

.modal-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.modal-sub { color: var(--text-dim); margin: 0 0 26px; font-size: .98rem; }

.modal-choices { display: grid; gap: 14px; }
.choice {
  display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
  transition: transform .18s var(--ease), border-color .2s, box-shadow .2s;
}
.choice:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.choice-icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--accent);
}
.choice-primary .choice-icon { background: var(--accent-grad); color: var(--on-accent); border-color: transparent; }
.choice-text { display: flex; flex-direction: column; }
.choice-text strong { font-size: 1.05rem; }
.choice-text span { color: var(--text-dim); font-size: .9rem; }

/* ---------- View toggle (platform page) ---------- */
.view-toggle-wrap {
  display: flex; justify-content: center; padding: 0 0 clamp(32px, 5vw, 56px);
  position: relative; z-index: 1;
}
.view-toggle {
  display: inline-flex; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px; gap: 4px;
}
.view-toggle-btn {
  font-family: var(--font); font-size: .92rem; font-weight: 600;
  padding: .7em 1.6em; border-radius: 999px; border: none; cursor: pointer;
  background: transparent; color: var(--text-dim); transition: all .25s var(--ease);
}
.view-toggle-btn:hover { color: var(--text); }
.view-toggle-btn.is-active-view {
  background: var(--accent-grad); color: var(--on-accent);
  box-shadow: 0 4px 14px -4px rgba(242,148,40,.5);
}

/* View visibility */
body.view-mgmt .tech-only { display: none !important; }
body.view-tech .mgmt-only { display: none !important; }

/* ---------- Platform sections ---------- */
.plat-section { padding: clamp(40px, 6vw, 64px) 0; }
.plat-section:nth-child(even) { background: var(--bg-alt); }
.plat-section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.plat-section h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; margin-bottom: 16px;
}
.plat-section .plat-lead {
  color: var(--text-dim); font-size: 1.05rem; margin: 0 0 24px; max-width: 760px;
}
.plat-section .plat-details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px;
}
.plat-detail-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 20px; transition: border-color .2s, transform .2s;
}
.plat-detail-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.plat-detail-card h4 {
  font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 8px;
}
.plat-detail-card p { color: var(--text-dim); font-size: .92rem; margin: 0; }
.plat-detail-card ul { margin-top: 10px; }
.plat-detail-card li {
  color: var(--text-dim); font-size: .88rem; padding: 3px 0; padding-left: 16px; position: relative;
}
.plat-detail-card li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- PQ Callout ---------- */
.pq-callout {
  background: var(--surface); border: 1px solid var(--accent); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 28px 28px; margin: 0 auto;
  max-width: var(--maxw); position: relative;
}
.pq-callout-wrap { padding: clamp(32px, 5vw, 56px) 24px; }
.pq-callout h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--accent); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.pq-callout p { color: var(--text-dim); font-size: .98rem; margin: 0; max-width: 780px; }

/* ---------- Tech stack chips (bottom of platform) ---------- */
.tech-stack-wrap { padding: clamp(32px, 5vw, 56px) 0; background: var(--bg-alt); }
.tech-stack-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px; text-align: center;
}
.tech-stack-inner h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.tech-stack-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.tech-stack-chip {
  font-family: var(--mono); font-size: .8rem; font-weight: 600;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; transition: border-color .2s, color .2s;
}
.tech-stack-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Comparison table ---------- */
.comparison-wrap { overflow-x: auto; margin-top: 24px; }
.comparison-table {
  width: 100%; border-collapse: collapse; font-size: .9rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.comparison-table th, .comparison-table td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
  background: var(--surface-2); font-weight: 700; color: var(--text);
  position: sticky; top: 0; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .04em;
}
.comparison-table thead th:first-child { min-width: 160px; }
.comparison-table tbody td:first-child { font-weight: 600; color: var(--text); }
.comparison-table tbody tr:hover { background: var(--surface-2); }
.comparison-table .check { color: var(--accent); font-weight: 700; }
.comparison-table .cross { color: var(--text-mute); }
.comparison-table .partial { color: var(--accent-2); }
.comparison-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 18px 0 0; padding: 0; font-size: .88rem; color: var(--text-dim); }
.comparison-legend li { display: flex; align-items: center; gap: 8px; }
.comparison-legend .lg-check { color: var(--accent); font-weight: 700; }
.comparison-legend .lg-partial { color: var(--accent-2); font-weight: 700; }
.comparison-legend .lg-cross { color: var(--text-mute); font-weight: 700; }

/* ---------- Reveal animation ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .card, .badge-grid li, .value-list li, .contact-card, .why-card, .plat-detail-card {
    animation: rise .6s var(--ease) both;
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .site-header.nav-open .main-nav { max-height: 380px; }
  .main-nav a { padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .btn-login { display: none; }
  .view-toggle-btn { padding: .6em 1.2em; font-size: .85rem; }
}
@media (max-width: 520px) {
  .hero-stats { gap: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .why-grid { grid-template-columns: 1fr; }
}

/* ===================== LEGAL PAGES ===================== */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) 0; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 8px; }
.legal .legal-updated { color: var(--text-mute); font-size: .9rem; margin: 0 0 36px; }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin: 38px 0 12px; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-dim); line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 6px; }
.legal a { color: var(--accent); }
.legal address { font-style: normal; color: var(--text-dim); line-height: 1.7; margin: 0 0 14px; }
.legal .todo { color: #e0b341; font-weight: 600; }

/* ===================== CONSENT BANNER ===================== */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .35);
  padding: 16px 0;
  animation: consent-in .3s var(--ease);
}
@keyframes consent-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
.consent-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.consent-text { margin: 0; color: var(--text-dim); font-size: .9rem; line-height: 1.5; max-width: 760px; }
.consent-text a { color: var(--accent); }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: flex-end; }
}

/* ---------- Company history timeline (about) ---------- */
.timeline-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 18px; color: var(--accent); }
.timeline { display: grid; gap: 0; position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: var(--border);
}
.timeline li {
  position: relative; padding: 0 0 22px 8px; color: var(--text-dim); font-size: .96rem; line-height: 1.5;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg);
}
.tl-year {
  display: inline-block; font-family: var(--mono); font-weight: 700; color: var(--text);
  margin-right: 10px; min-width: 46px;
}

/* Light-theme brand logo: keep white-bg JPEG on a clean chip */
:root[data-theme="light"] .brand-logo {
  background: #fff; padding: 4px 10px; border-radius: 10px;
  box-shadow: 0 4px 14px -8px rgba(20,40,80,.25);
}

/* ---------- Floating logo: keep it clear of the mobile nav controls ----------
   A literal 4x logo can't coexist with the header controls on a phone, so on
   narrow screens the floating mark scales down (still prominently enlarged) and
   the secondary "Sertrix" CTA is hidden from the bar (it remains in the page). */
@media (max-width: 560px) {
  .brand { top: 8px; right: 8px; }
  .brand-logo { height: 114px; }
  :root[data-theme="dark"] .brand-logo,
  :root[data-theme="light"] .brand-logo { padding: 7px 12px; border-radius: 12px; }
  .header-actions .btn-sxarc { display: none; }
  /* Keep the nav controls clickable above the fixed logo, whatever the width. */
  .header-actions { position: relative; z-index: 210; }
}

/* ---------- Blank reference placeholders (reserved slots) ---------- */
.card--blank {
  min-height: 190px;
  border-style: dashed;
  background: transparent;
  animation: none;
}
.card--blank::before { content: none; }
.card--blank:hover { transform: none; border-color: var(--border); box-shadow: none; }
