/* ==========================================================================
   DigitraX IT Solutions — Main Stylesheet
   Theme: White base + black feature sections + crimson red accents
   ========================================================================== */

/* ---------- Light (default) tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f8;
  --card: #ffffff;
  --card-hover: #ffffff;
  --border: rgba(12, 12, 24, .08);
  --border-strong: rgba(12, 12, 24, .16);
  --text: #0b0b12;
  --text-2: #33333f;
  --muted: #5d5d6c;
  --muted-2: #b3b3c0;
  --accent: #e0102f;
  --accent-2: #d40e2b;
  --accent-dark: #8a0a1d;
  --accent-soft: rgba(224, 16, 47, .08);
  --grad: linear-gradient(135deg, #ff2d4a 0%, #e0102f 45%, #8a0a1d 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(12, 12, 24, .25);
  --shadow-card: 0 1px 2px rgba(12, 12, 24, .04), 0 14px 34px -14px rgba(12, 12, 24, .14);
  --glow: 0 0 0 1px rgba(224, 16, 47, .3), 0 24px 50px -20px rgba(224, 16, 47, .35);
  --nav-bg: rgba(255, 255, 255, .85);
  --nav-bg-scrolled: rgba(255, 255, 255, .96);
  --chip-bg: rgba(255, 255, 255, .96);
  --ghost-num: rgba(12, 12, 24, .05);
  --hover-tint: rgba(224, 16, 47, .04);
  --input-bg: #ffffff;
  --scroll-thumb: #c9c9d3;
  --ok-bg: rgba(20, 150, 90, .08); --ok-border: rgba(20, 150, 90, .35); --ok-text: #0f6b40;
  --err-text: #a3071f;
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-h: 76px;
}

/* ---------- Dark scopes (black feature areas) ---------- */
.theme-dark, .topbar, .hero, .page-hero, .site-footer, .newsletter-card, .section-dark {
  --bg: #07070a;
  --bg-2: #0d0d12;
  --card: #15151d;
  --card-hover: #1b1b25;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #f4f4f7;
  --text-2: #d6d6de;
  --muted: #a4a4b4;
  --muted-2: #5d5d6b;
  --accent-2: #ff2d4a;
  --accent-soft: rgba(224, 16, 47, .14);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  --shadow-card: none;
  --glow: 0 0 0 1px rgba(224, 16, 47, .35), 0 18px 50px -12px rgba(224, 16, 47, .45);
  --chip-bg: rgba(10, 10, 14, .92);
  --ghost-num: rgba(255, 255, 255, .04);
  --hover-tint: rgba(255, 255, 255, .03);
  --input-bg: rgba(255, 255, 255, .04);
  color: var(--text);
}
.section-dark {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(224,16,47,.22), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(138,10,29,.25), transparent 60%),
    var(--bg);
}
.theme-dark .btn-close, .section-dark .btn-close { filter: invert(1); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 10px); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--text);
}
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent); color: #fff; }

.fw-black { font-weight: 900 !important; }
.text-accent { color: var(--accent-2) !important; }
.text-muted-2 { color: var(--muted) !important; }
.bg-surface { background: var(--bg-2); }

.skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 9999;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 10px; color: #fff; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 10px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: grid; place-items: center; transition: opacity .5s, visibility .5s;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 50px; padding: .7rem 1.5rem; transition: all .25s ease; }
.btn-sm { padding: .5rem 1.1rem; white-space: nowrap; }
.btn-lg { padding: .9rem 2rem; }
.btn-accent {
  background: var(--grad); color: #fff; border: 0;
  box-shadow: 0 10px 30px -10px rgba(224,16,47,.7);
}
.btn-accent:hover, .btn-accent:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(224,16,47,.9); }
.btn-outline-light { border: 1px solid var(--border-strong); color: var(--text); background: transparent; }
.btn-outline-light:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-dark-x { background: #0b0b12; color: #fff; border: 0; }
.btn-dark-x:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-light:hover { transform: translateY(-2px); }
.link-arrow { color: var(--accent-2); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow i { transition: transform .25s; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: #000; font-size: .82rem; padding: .5rem 0; }
.topbar a { color: var(--muted); }
.topbar a:hover { color: #fff; }
.topbar .vr { background: var(--border-strong); opacity: 1; }

/* ---------- Navbar (white) ---------- */
.sticky-nav {
  position: relative; height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
}
/* Blur lives on a pseudo-element so it doesn't trap the fixed offcanvas menu */
.sticky-nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: background .3s;
}
.sticky-nav.scrolled { box-shadow: 0 10px 30px -18px rgba(12,12,24,.35); }
.sticky-nav.scrolled::before { background: var(--nav-bg-scrolled); }
header { position: sticky; top: 0; z-index: 1046; } /* above offcanvas backdrop (1040) */

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand small { display: block; font-size: .5rem; letter-spacing: .38em; color: var(--muted); font-weight: 600; margin-top: -2px; }
.brand > span { line-height: 1; }
.brand-mark { filter: drop-shadow(0 4px 12px rgba(224,16,47,.35)); }

.navbar .nav-link {
  color: var(--text-2); font-weight: 500; font-size: .95rem; padding: .5rem .85rem !important;
  position: relative; border-radius: 8px;
}
.navbar .nav-link::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--text); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler { border: 0; padding: .5rem; display: flex; flex-direction: column; gap: 5px; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { width: 26px; height: 2px; background: var(--text); border-radius: 2px; display: block; }
.toggler-bar:nth-child(2) { width: 18px; margin-left: auto; background: var(--accent); }

.offcanvas { background: var(--bg); border-left: 3px solid var(--accent) !important; }
@media (max-width: 991.98px) {
  .navbar .nav-link { padding: .85rem .5rem !important; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .navbar .nav-link::after { display: none; }
  .navbar .nav-link.active { color: var(--accent-2); }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-sm { padding: 70px 0; }
@media (max-width: 767.98px) { .section { padding: 70px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--accent); }
.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1rem; }
.section-head.text-center .eyebrow::after { content: ''; width: 24px; height: 2px; background: var(--accent); }

/* ---------- Hero (black, like the brand artwork) ---------- */
.hero {
  position: relative; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center;
  padding: 80px 0 120px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(224,16,47,.28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(138,10,29,.35), transparent 60%),
    var(--bg);
}
.wave-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero .container { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .45rem;
  border-radius: 50px; background: rgba(255,255,255,.04); border: 1px solid var(--border-strong);
  font-size: .85rem; color: var(--text-2); margin-bottom: 1.5rem;
}
.hero-badge b { background: var(--grad); color: #fff; padding: .2rem .65rem; border-radius: 50px; font-size: .72rem; letter-spacing: .05em; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 900; line-height: 1.04; margin-bottom: 1.5rem; text-transform: uppercase; }
.hero h1 .stroke { -webkit-text-stroke: 1.5px rgba(255,255,255,.85); color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.5rem; color: var(--muted); font-size: .9rem; }
.hero-trust i { color: var(--accent-2); margin-right: .35rem; }

/* Hero hub visual (arc of stack icons around a cloud) */
.hub { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin-inline: auto; }
.hub-arc { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-arc path { fill: none; stroke: url(#arcGrad); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.hub-node {
  position: absolute; transform: translate(-50%, -35px); text-align: center; width: 130px;
  animation: floaty 6s ease-in-out infinite;
}
.hub-node:nth-child(odd) { animation-delay: -3s; }
.hub-icon {
  width: 70px; height: 70px; border-radius: 50%; background: #fff; margin: 0 auto .6rem;
  display: grid; place-items: center; font-size: 1.8rem;
  box-shadow: 0 0 0 6px rgba(224,16,47,.18), 0 12px 30px -8px rgba(224,16,47,.7);
}
.hub-node h3 { font-size: .72rem; letter-spacing: .08em; color: var(--accent-2); margin: 0 0 .15rem; text-transform: uppercase; }
.hub-node p { font-size: .7rem; color: var(--text-2); margin: 0; line-height: 1.35; }
.hub-cloud {
  position: absolute; left: 50%; top: 80%; transform: translate(-50%, -50%);
  background: #fff; color: #222; border-radius: 80px; padding: 1.1rem 1.8rem;
  display: flex; align-items: center; gap: .75rem; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 0 0 8px rgba(224,16,47,.9), 0 0 60px 10px rgba(224,16,47,.5); white-space: nowrap;
}
.ms-squares { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 26px; height: 26px; }
.ms-squares i:nth-child(1) { background: #f25022; } .ms-squares i:nth-child(2) { background: #7fba00; }
.ms-squares i:nth-child(3) { background: #00a4ef; } .ms-squares i:nth-child(4) { background: #ffb900; }
@keyframes floaty { 0%, 100% { margin-top: 0; } 50% { margin-top: -10px; } }
@media (max-width: 575.98px) {
  .hub-node { width: 96px; transform: translate(-50%, -25px); }
  .hub-icon { width: 50px; height: 50px; font-size: 1.3rem; }
  .hub-node p { display: none; }
  .hub-cloud { font-size: .95rem; padding: .8rem 1.2rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) { .hub-node p { display: none; } }

/* ---------- Marquee (partners) ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg); padding: 1.6rem 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 4rem; width: max-content; animation: marquee 35s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--muted-2); white-space: nowrap; transition: color .3s; }
.marquee-item:hover { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.v-card {
  position: relative; height: 100%; padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card) 0%, var(--card) 60%, var(--bg-2) 100%);
  border: 1px solid var(--border); overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow-card);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.bg-surface .v-card { background: var(--card); }
.v-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(224,16,47,.12), transparent 45%);
}
.v-card::after {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--grad); transition: width .45s;
}
.v-card:hover { transform: translateY(-6px); border-color: rgba(224,16,47,.35); box-shadow: var(--glow); }
.v-card:hover::before { opacity: 1; }
.v-card:hover::after { width: 100%; }
.v-card h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.v-card p { color: var(--muted); margin-bottom: 1.25rem; }
.v-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; color: #fff; margin-bottom: 1.5rem; background: var(--grad);
  box-shadow: 0 12px 26px -10px rgba(224,16,47,.8);
}
.v-icon.ghost { background: var(--accent-soft); color: var(--accent-2); box-shadow: none; border: 1px solid rgba(224,16,47,.25); }
.v-icon.dark { background: #0b0b12; color: #fff; box-shadow: 0 12px 26px -12px rgba(0,0,0,.6); }
.v-card:hover .v-icon.dark { background: var(--grad); }
.v-card .num-bg {
  position: absolute; right: 1.2rem; top: .6rem; font-family: var(--font-head); font-weight: 900;
  font-size: 4.5rem; color: var(--ghost-num); line-height: 1; z-index: -1;
}
.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.check-list li { padding: .3rem 0 .3rem 1.7rem; position: relative; color: var(--text-2); font-size: .95rem; }
.check-list li::before { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; left: 0; color: var(--accent-2); }

/* Mini card (products) */
.p-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); height: 100%; transition: all .3s; }
.p-card:hover { border-color: rgba(224,16,47,.45); background: var(--card-hover); transform: translateY(-3px); color: var(--text); box-shadow: var(--glow); }
.p-card i.main { font-size: 1.6rem; color: var(--accent-2); width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); flex-shrink: 0; transition: all .3s; }
.p-card:hover i.main { background: var(--grad); color: #fff; }
.p-card h3 { font-size: 1rem; margin: 0; }
.p-card small { color: var(--muted); }
.p-card .bi-arrow-up-right { margin-left: auto; color: var(--muted); transition: all .3s; }
.p-card:hover .bi-arrow-up-right { color: var(--accent-2); transform: translate(3px, -3px); }

/* ---------- Stats (white cards floating over the black hero) ---------- */
.stats-strip { padding: 0; margin-top: -70px; position: relative; z-index: 3; }
.stat-card {
  text-align: center; padding: 2rem 1rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 24px 50px -24px rgba(12,12,24,.35);
  border-bottom: 3px solid var(--accent);
}
.stat-card i { font-size: 1.6rem; color: var(--accent-2); }
.stat-num { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; margin: .4rem 0 .2rem; color: var(--text); }
.stat-label { color: var(--muted); font-size: .9rem; }

/* ---------- Feature split / why ---------- */
.why-item { display: flex; gap: 1.1rem; padding: 1.25rem; border-radius: var(--radius-sm); transition: background .3s; }
.why-item:hover { background: var(--hover-tint); }
.why-item .v-icon { width: 52px; height: 52px; font-size: 1.3rem; margin: 0; flex-shrink: 0; border-radius: 14px; }
.why-item h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.why-item p { color: var(--muted); margin: 0; font-size: .94rem; }

.img-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: radial-gradient(circle at 30% 20%, rgba(224,16,47,.18), transparent 60%), var(--bg-2);
  aspect-ratio: 4 / 3.4; display: grid; place-items: center; box-shadow: var(--shadow-card);
}
.theme-dark .img-frame, .section-dark .img-frame { background: radial-gradient(circle at 30% 20%, rgba(224,16,47,.35), transparent 60%), var(--card); }
.img-frame .floating-chip {
  position: absolute; background: var(--chip-bg); border: 1px solid var(--border-strong); backdrop-filter: blur(8px);
  border-radius: 14px; padding: .8rem 1rem; display: flex; gap: .7rem; align-items: center; font-size: .85rem;
  box-shadow: var(--shadow); color: var(--text);
}
/* Hover: white frame fades into the black + red "dashboard" look */
.img-frame { isolation: isolate; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .45s; }
.img-frame::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s ease;
  background:
    radial-gradient(circle at 30% 20%, rgba(224,16,47,.45), transparent 60%),
    linear-gradient(160deg, #1a1a24 0%, #0b0b10 60%, #07070a 100%);
}
.img-frame > i, .img-frame > svg { transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s; }
.img-frame .floating-chip { transition: background .45s, color .45s, border-color .45s, transform .45s; }
.img-frame .floating-chip small { transition: color .45s; }
.img-frame:hover { transform: translateY(-6px); border-color: rgba(224,16,47,.45); box-shadow: var(--glow); }
.img-frame:hover::before { opacity: 1; }
.img-frame:hover > i, .img-frame:hover > svg { transform: scale(1.07); filter: drop-shadow(0 10px 30px rgba(224,16,47,.55)); }
.img-frame:hover .floating-chip { background: rgba(10,10,14,.92); color: #f4f4f7; border-color: rgba(255,255,255,.16); transform: translateY(-3px); }
.img-frame:hover .floating-chip small { color: #a4a4b4 !important; }

.floating-chip i { color: var(--accent-2); font-size: 1.3rem; }
.floating-chip strong { display: block; font-family: var(--font-head); }

/* ---------- Lifecycle timeline ---------- */
.lifecycle { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; position: relative; }
.lifecycle::before { content: ''; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, #0b0b12, var(--accent), #0b0b12); }
.life-step { text-align: center; position: relative; }
.life-step .dot {
  width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
  background: #0b0b12; color: #fff; border: 2px solid var(--accent); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 0 0 6px var(--bg), 0 12px 30px -6px rgba(224,16,47,.5); transition: all .3s;
}
.life-step:hover .dot { background: var(--grad); transform: translateY(-4px); }
.life-step h3 { font-size: 1rem; }
@media (max-width: 767.98px) {
  .lifecycle { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .lifecycle::before { display: none; }
}

/* ---------- Testimonials ---------- */
.t-card { padding: 2.2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); height: 100%; position: relative; }
.t-card .bi-quote { font-size: 3rem; color: var(--accent); line-height: 1; opacity: .9; }
.t-card blockquote { font-size: 1.05rem; color: var(--text-2); margin: 1rem 0 1.5rem; }
.t-card .who { display: flex; align-items: center; gap: .8rem; }
.t-card .avatar { width: 46px; height: 46px; border-radius: 50%; background: #0b0b12; color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); border: 2px solid var(--accent); }
.t-card .who strong { display: block; font-size: .95rem; }
.t-card .who small { color: var(--muted); }
.stars { color: #f5a300; font-size: .85rem; letter-spacing: 2px; }
.carousel-indicators.custom { position: static; margin: 2.5rem 0 0; }
.carousel-indicators.custom [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; background: var(--muted-2); border: 0; opacity: 1; }
.carousel-indicators.custom .active { background: var(--accent); width: 30px; border-radius: 10px; }

/* ---------- Industries ---------- */
.ind-card { position: relative; padding: 2rem; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); height: 100%; transition: all .35s; }
.ind-card::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--grad); transition: width .45s; }
.ind-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.ind-card:hover::after { width: 100%; }
.ind-card .big-ic { position: absolute; right: -10px; bottom: -20px; font-size: 7rem; color: rgba(224,16,47,.07); transition: all .4s; }
.ind-card:hover .big-ic { color: rgba(224,16,47,.15); transform: rotate(-8deg) scale(1.05); }
.ind-card h3 { font-size: 1.25rem; }
.ind-card p { color: var(--muted); }

/* ---------- Locations ---------- */
.loc-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.loc-card .flag { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; flex-shrink: 0; }
.loc-card strong { display: block; font-family: var(--font-head); }
.loc-card small { color: var(--muted); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { --bs-accordion-bg: var(--card); --bs-accordion-border-color: var(--border); --bs-accordion-active-bg: var(--card); --bs-accordion-active-color: var(--accent-2); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-color: var(--text); --bs-accordion-btn-color: var(--text); }
.accordion-item { border-radius: var(--radius-sm) !important; overflow: hidden; margin-bottom: .8rem; border: 1px solid var(--border) !important; box-shadow: var(--shadow-card); }
.accordion-button { font-family: var(--font-head); font-weight: 700; padding: 1.2rem 1.4rem; }
.accordion-button:not(.collapsed) { color: var(--accent-2); box-shadow: inset 3px 0 0 var(--accent); }
.accordion-body { color: var(--muted); }

/* ---------- CTA band (red) ---------- */
.cta-band { position: relative; overflow: hidden; padding: 3.5rem; border-radius: 26px; background: var(--grad); color: #fff; box-shadow: 0 30px 60px -30px rgba(224,16,47,.7); }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.25), transparent 40%), repeating-linear-gradient(115deg, rgba(0,0,0,.08) 0 2px, transparent 2px 14px); }
.cta-band .btn-light { color: var(--accent-dark); }
@media (max-width: 575.98px) { .cta-band { padding: 2.2rem 1.5rem; } }

/* ---------- Page hero (inner pages, black) ---------- */
.page-hero {
  position: relative; padding: 110px 0 90px; overflow: hidden;
  background: radial-gradient(700px 400px at 80% 0%, rgba(224,16,47,.3), transparent 60%), var(--bg);
}
.page-hero h1 { margin-bottom: 1rem; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--muted); --bs-breadcrumb-item-active-color: var(--accent-2); font-size: .88rem; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); }

/* ---------- Forms ---------- */
.form-control, .form-select {
  background-color: var(--input-bg); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 12px; padding: .85rem 1rem;
}
.form-control:focus, .form-select:focus { background-color: var(--input-bg); border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(224,16,47,.15); color: var(--text); }
.form-control::placeholder { color: var(--muted); opacity: .7; }
.form-label { font-weight: 600; font-size: .9rem; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.contact-card { padding: 2.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); border-top: 3px solid var(--accent); }
@media (max-width: 575.98px) { .contact-card { padding: 1.5rem; } }
.info-tile { display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); margin-bottom: 1rem; }
.info-tile .v-icon { width: 50px; height: 50px; font-size: 1.2rem; margin: 0; flex-shrink: 0; }
.info-tile h3 { font-size: 1rem; margin-bottom: .2rem; }
.info-tile p, .info-tile a { color: var(--muted); margin: 0; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); filter: grayscale(.4); }
.alert-vx { border-radius: 12px; border: 1px solid var(--ok-border); background: var(--ok-bg); color: var(--ok-text); }
.alert-vx.err { border-color: rgba(224,16,47,.4); background: var(--accent-soft); color: var(--err-text); }

/* ---------- Newsletter (black card on white) ---------- */
.newsletter { padding: 0 0 80px; }
.newsletter-card { padding: 2.5rem; border-radius: var(--radius); background: linear-gradient(120deg, #0b0b12, #15151d); position: relative; overflow: hidden; }
.newsletter-card::before { content: ''; position: absolute; width: 300px; height: 300px; right: -100px; top: -150px; background: radial-gradient(circle, rgba(224,16,47,.45), transparent 70%); }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; position: relative; }
.newsletter-form .form-control { flex: 1 1 220px; border-radius: 50px; }

/* ---------- Footer (black) ---------- */
.site-footer { background: #000; padding: 80px 0 0; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.footer-title { font-size: 1rem; margin-bottom: 1.3rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .7rem; }
.footer-links a { color: var(--muted); font-size: .94rem; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: .7rem; color: var(--muted); margin-bottom: .9rem; font-size: .94rem; }
.footer-contact i { color: var(--accent-2); }
.footer-contact a { color: var(--muted); }
.social { display: flex; gap: .6rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); color: var(--text-2); }
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.cert-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.cert-badges span { font-size: .72rem; padding: .3rem .6rem; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--muted); font-weight: 600; background: var(--card); }
.footer-bottom { margin-top: 60px; padding: 1.5rem 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .88rem; }
.footer-bottom a { color: var(--muted); }

/* ---------- Back to top & install toast ---------- */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 1040; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--grad); color: #fff; font-size: 1.2rem; box-shadow: 0 10px 25px -8px rgba(224,16,47,.8);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.install-toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1050;
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border-strong); box-shadow: var(--shadow); width: max-content; max-width: calc(100% - 32px);
}
.install-toast[hidden] { display: none; }
.install-toast strong { display: block; font-size: .92rem; }
.install-toast small { color: var(--muted); font-size: .78rem; }
.install-toast .btn-close { font-size: .7rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Misc ---------- */
.pill { display: inline-block; padding: .3rem .8rem; border-radius: 50px; background: var(--accent-soft); color: var(--accent-2); font-size: .78rem; font-weight: 600; border: 1px solid rgba(224,16,47,.25); }
.divider-glow { height: 1px; background: linear-gradient(90deg, transparent, rgba(224,16,47,.6), transparent); border: 0; opacity: 1; margin: 0; }
.filter-btns { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btns .btn { border: 1px solid var(--border-strong); color: var(--text-2); padding: .5rem 1.2rem; background: var(--card); }
.filter-btns .btn.active, .filter-btns .btn:hover { background: #0b0b12; border-color: #0b0b12; color: #fff; }
.filter-btns .btn.active { background: var(--accent); border-color: var(--accent); }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--muted); }

/* ==========================================================================
   Card hover: white card turns into the black + red "dashboard" style
   (same look as the Microsoft section image). Works by switching the
   colour tokens inside the hovered card, so all its text adapts.
   ========================================================================== */
.v-card, .stat-card, .t-card, .ind-card, .p-card, .loc-card, .info-tile {
  position: relative; overflow: hidden; isolation: isolate;
  background-color: var(--card); color: var(--text);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1), background-color .45s ease, border-color .45s, box-shadow .45s;
}
.v-card { background-image: none; }

/* Red glow layer (cards whose ::before is free) */
.stat-card::before, .t-card::before, .ind-card::before, .p-card::before, .loc-card::before, .info-tile::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s ease; pointer-events: none;
  background: radial-gradient(circle at 25% 0%, rgba(224,16,47,.45), transparent 60%);
}

/* Smooth text colour change inside cards */
:is(.v-card, .stat-card, .t-card, .ind-card, .p-card, .loc-card, .info-tile) :is(h3, p, small, strong, blockquote, span, li, a, div, i) {
  transition: color .45s ease, background-color .45s ease, border-color .45s ease, transform .45s ease;
}

/* Hovered state: dark tokens + black surface */
:is(.v-card, .stat-card, .t-card, .ind-card, .p-card, .loc-card, .info-tile):hover {
  --text: #f4f4f7;
  --text-2: #d6d6de;
  --muted: #a4a4b4;
  --muted-2: #5d5d6b;
  --accent-2: #ff2d4a;
  --accent-soft: rgba(224, 16, 47, .18);
  --border: rgba(255, 255, 255, .1);
  --ghost-num: rgba(255, 255, 255, .05);
  background-color: #0d0d12;
  border-color: rgba(224, 16, 47, .5);
  box-shadow: 0 0 0 1px rgba(224,16,47,.35), 0 26px 55px -18px rgba(224,16,47,.45);
  transform: translateY(-6px);
}
:is(.stat-card, .t-card, .ind-card, .p-card, .loc-card, .info-tile):hover::before { opacity: 1; }
.v-card::before { background: radial-gradient(460px circle at var(--mx, 30%) var(--my, 0%), rgba(224,16,47,.4), transparent 55%); }

/* Per-card details on hover */
.stat-card:hover i { transform: scale(1.15); }
.stat-card:hover .stat-num { color: #fff; }
.t-card:hover .avatar { background: var(--grad); }
.t-card:hover .bi-quote { color: #ff2d4a; }
.v-card:hover .v-icon, .info-tile:hover .v-icon { box-shadow: 0 12px 30px -8px rgba(224,16,47,.9); }
.v-card:hover .v-icon.ghost, .ind-card:hover .v-icon.ghost { background: var(--grad); color: #fff; border-color: transparent; }
.loc-card:hover .flag { background: var(--grad); color: #fff; }
.ind-card:hover .big-ic { color: rgba(224,16,47,.25); }
.v-card:hover .stat-num.text-accent { color: #ff2d4a !important; }
.info-tile:hover a:hover { color: #fff; }

/* ==========================================================================
   Cards inside BLACK sections: WHITE normally, turn BLACK (with red glow)
   on hover. White sections keep the opposite (white -> black on hover).
   ========================================================================== */
:is(.section-dark, .theme-dark) :is(.v-card, .why-item, .loc-card, .p-card, .info-tile, .stat-card, .t-card, .ind-card) {
  --text: #0b0b12;
  --text-2: #33333f;
  --muted: #5d5d6c;
  --muted-2: #b3b3c0;
  --accent-2: #d40e2b;
  --accent-soft: rgba(224, 16, 47, .08);
  --border: rgba(12, 12, 24, .08);
  --ghost-num: rgba(12, 12, 24, .05);
  background-color: #ffffff;
  background-image: none;
  color: var(--text);
  border: 1px solid rgba(12, 12, 24, .08);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
}
:is(.section-dark, .theme-dark) .why-item {
  padding: 1rem !important;
  border-radius: var(--radius-sm);
  transition: background-color .45s ease, border-color .45s ease, box-shadow .45s ease, transform .45s ease;
}
:is(.section-dark, .theme-dark) .why-item :is(h3, p, div, i) {
  transition: color .45s ease, background-color .45s ease, border-color .45s ease;
}

/* Hover: back to the dark look */
:is(.section-dark, .theme-dark) :is(.v-card, .why-item, .loc-card, .p-card, .info-tile, .stat-card, .t-card, .ind-card):hover {
  --text: #f4f4f7;
  --text-2: #d6d6de;
  --muted: #a4a4b4;
  --muted-2: #5d5d6b;
  --accent-2: #ff2d4a;
  --accent-soft: rgba(224, 16, 47, .18);
  --border: rgba(255, 255, 255, .1);
  --ghost-num: rgba(255, 255, 255, .05);
  background-color: #0d0d12;
  border-color: rgba(224, 16, 47, .5);
  box-shadow: 0 0 0 1px rgba(224,16,47,.35), 0 26px 55px -18px rgba(224,16,47,.5);
  transform: translateY(-6px);
}

/* Big image frames inside BLACK sections: white normally, black + red on hover */
:is(.section-dark, .theme-dark) .img-frame {
  --text: #0b0b12;
  --muted: #5d5d6c;
  --accent-2: #d40e2b;
  --chip-bg: rgba(255, 255, 255, .97);
  --border-strong: rgba(12, 12, 24, .14);
  --shadow: 0 14px 30px -12px rgba(12, 12, 24, .35);
  background: radial-gradient(circle at 30% 20%, rgba(224,16,47,.14), transparent 60%), #ffffff;
  border-color: rgba(12, 12, 24, .1);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
}
:is(.section-dark, .theme-dark) .img-frame:hover {
  border-color: rgba(224, 16, 47, .5);
  box-shadow: 0 0 0 1px rgba(224,16,47,.35), 0 26px 55px -18px rgba(224,16,47,.5);
}

/* ==========================================================================
   Section decoration: subtle red/black patterns so white areas feel designed
   - dotted grid + soft red glow (white sections)
   - concentric rings + fine diagonal lines (gray sections)
   - dotted grid (black sections)
   - wavy divider line at the bottom of every section
   ========================================================================== */
.section { overflow: hidden; }
.section > .container { position: relative; z-index: 2; }
.section::before, .section::after { content: ''; position: absolute; pointer-events: none; z-index: 0; }

/* --- White sections: dot grid (top-right) + glow (bottom-left) --- */
.section:not(.bg-surface):not(.section-dark) {
  background-image:
    radial-gradient(520px 320px at 0% 100%, rgba(224,16,47,.07), transparent 70%),
    radial-gradient(420px 260px at 100% 0%, rgba(11,11,18,.04), transparent 70%);
}
.section:not(.bg-surface):not(.section-dark)::before {
  top: 0; right: 0; width: min(560px, 60%); height: 380px;
  background-image: radial-gradient(rgba(224,16,47,.32) 1.5px, transparent 1.7px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 68%);
          mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 68%);
}

/* --- Gray sections: fine diagonal lines + rings --- */
.section.bg-surface {
  background-image:
    repeating-linear-gradient(135deg, rgba(11,11,18,.028) 0 1px, transparent 1px 16px),
    radial-gradient(520px 320px at 100% 100%, rgba(224,16,47,.08), transparent 70%);
}
.section.bg-surface::before {
  top: -140px; left: -140px; width: 460px; height: 460px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none'%3E%3Ccircle cx='200' cy='200' r='60' stroke='%230b0b12' stroke-opacity='.10'/%3E%3Ccircle cx='200' cy='200' r='105' stroke='%23e0102f' stroke-opacity='.35' stroke-dasharray='3 9' stroke-width='1.6'/%3E%3Ccircle cx='200' cy='200' r='150' stroke='%230b0b12' stroke-opacity='.08'/%3E%3Ccircle cx='200' cy='200' r='195' stroke='%23e0102f' stroke-opacity='.18'/%3E%3Ccircle cx='305' cy='200' r='5' fill='%23e0102f'/%3E%3Ccircle cx='95' cy='200' r='4' fill='%230b0b12' fill-opacity='.5'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: spin 90s linear infinite;
}

/* --- Black sections: white dot grid --- */
.section.section-dark::before {
  top: 0; left: 0; width: min(560px, 60%); height: 360px;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.3px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at top left, #000 0%, transparent 68%);
          mask-image: radial-gradient(ellipse at top left, #000 0%, transparent 68%);
}

/* --- Alternate sides so it doesn't look repeated --- */
main > .section:nth-of-type(even):not(.bg-surface):not(.section-dark)::before {
  right: auto; left: 0;
  -webkit-mask-image: radial-gradient(ellipse at top left, #000 0%, transparent 68%);
          mask-image: radial-gradient(ellipse at top left, #000 0%, transparent 68%);
}
main > .section:nth-of-type(even).bg-surface::before { left: auto; right: -140px; }
main > .section:nth-of-type(even).section-dark::before {
  left: auto; right: 0;
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 68%);
          mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 68%);
}

/* --- Wavy divider line (bottom of each section) --- */
.section::after {
  left: 0; right: 0; bottom: 0; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 40C240 0 480 80 720 40S1200 0 1440 40' stroke='%23e0102f' stroke-opacity='.6' stroke-width='2'/%3E%3Cpath d='M0 50C240 10 480 90 720 50S1200 10 1440 50' stroke='%230b0b12' stroke-opacity='.28' stroke-width='1.2'/%3E%3Cpath d='M0 60C240 20 480 100 720 60S1200 20 1440 60' stroke='%23e0102f' stroke-opacity='.22' stroke-width='1' stroke-dasharray='2 7'/%3E%3C/svg%3E") repeat-x center bottom / 1440px 70px;
}
.section.section-dark::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 40C240 0 480 80 720 40S1200 0 1440 40' stroke='%23ff2d4a' stroke-opacity='.75' stroke-width='2'/%3E%3Cpath d='M0 50C240 10 480 90 720 50S1200 10 1440 50' stroke='%23ffffff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M0 60C240 20 480 100 720 60S1200 20 1440 60' stroke='%23ff2d4a' stroke-opacity='.3' stroke-width='1' stroke-dasharray='2 7'/%3E%3C/svg%3E");
}
/* keep bottom padding clear of the wave */
.section { padding-bottom: 120px; }
.section.pt-0 { padding-bottom: 90px; }
@media (max-width: 767.98px) {
  .section { padding-bottom: 90px; }
  .section::after { height: 50px; background-size: 900px 50px; }
  .section:not(.bg-surface):not(.section-dark)::before, .section.section-dark::before { height: 260px; }
  .section.bg-surface::before { width: 300px; height: 300px; top: -100px; left: -100px; }
}
