/* ===================================================================
   QUBEX SOLUTIONS — Design System
   Premium enterprise technology infrastructure aesthetic
   =================================================================== */

/* -------------------- Design Tokens -------------------- */
:root {
  /* Brand colors */
  --navy-950: #050b16;
  --navy-900: #071021;
  --navy-800: #0a1830;
  --navy-700: #0f2140;
  --navy-600: #15305c;
  --navy-500: #1c3f78;

  --blue-600: #1c5cff;
  --blue-500: #2f6fff;
  --blue-400: #4f8bff;
  --cyan-500: #17c2d6;
  --cyan-400: #35d6e8;
  --cyan-300: #7fe6f0;

  --white: #ffffff;
  --ink-900: #0b1220;
  --ink-800: #131c2e;
  --ink-700: #29344a;
  --ink-600: #4b5670;
  --ink-500: #6b7690;
  --ink-400: #94a0b8;
  --ink-300: #b7c0d6;
  --ink-200: #d8deea;
  --ink-100: #eef1f7;
  --ink-050: #f6f8fc;

  --success-500: #17b26a;
  --amber-500: #f59e0b;

  /* Gradients */
  --grad-hero: radial-gradient(1200px 600px at 15% -10%, rgba(47,111,255,0.35), transparent 60%),
               radial-gradient(1000px 700px at 100% 0%, rgba(23,194,214,0.25), transparent 55%),
               linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  --grad-accent: linear-gradient(135deg, var(--blue-500) 0%, var(--cyan-500) 100%);
  --grad-card-dark: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  --grad-divider: linear-gradient(90deg, transparent, rgba(47,111,255,0.5), rgba(23,194,214,0.5), transparent);

  /* Typography */
  --font-display: 'Manrope', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(11,18,32,0.06);
  --shadow-md: 0 8px 24px rgba(11,18,32,0.10);
  --shadow-lg: 0 20px 50px rgba(11,18,32,0.16);
  --shadow-glow: 0 0 0 1px rgba(47,111,255,0.15), 0 20px 60px rgba(23,194,214,0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

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

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

section { position: relative; }

/* -------------------- Typography scale -------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}
.eyebrow.on-dark { color: var(--cyan-300); }

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title.on-dark { color: var(--white); }
.section-lede {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink-600);
  max-width: 640px;
}
.section-lede.on-dark { color: var(--ink-200); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }
.section-head.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.eyebrow, .section-title, .section-lede { position: relative; z-index: 1; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--grad-accent);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(28,92,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(28,92,255,0.45); }

.btn-ghost-dark {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.5); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--ink-200);
}
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); }

.btn-sm { padding: 11px 20px; font-size: 0.86rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue-600);
  font-size: 0.95rem;
  transition: gap 0.2s var(--ease);
}
.text-link svg { width: 16px; height: 16px; }
.text-link:hover { gap: 12px; }
.text-link.on-dark { color: var(--cyan-300); }

/* -------------------- Top utility bar -------------------- */
.topbar {
  background: var(--navy-950);
  padding: 9px 0;
  text-align: center;
}
.topbar .container { position: relative; }
.topbar p { margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--ink-200); letter-spacing: 0.01em; }
.topbar-accent { color: var(--cyan-300); }

/* Small "Status" tab, pinned to the right of the topbar (above Login) */
.topbar-status {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--ink-200); text-decoration: none; white-space: nowrap;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.topbar-status:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.26); color: var(--white); }
.topbar-status .status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.55);
  animation: topbar-status-pulse 2.2s infinite;
}
@keyframes topbar-status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@media (max-width: 640px) {
  .topbar-status { padding: 5px 6px; }
  .topbar-status-label { display: none; }
}

/* -------------------- Status page -------------------- */
.page-hero.status-hero { padding: 40px 0 44px; }
.page-hero.status-hero .breadcrumb { margin-bottom: 10px; }
.page-hero.status-hero h1 { margin-bottom: 0; font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.section.status-section { padding-top: 32px; padding-bottom: 56px; }
.status-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 16px 22px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.status-banner-main { display: flex; align-items: center; gap: 12px; }
.status-banner h2 { font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 0; }
.status-banner-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; font-size: 0.84rem; color: var(--ink-500); }
.status-clock { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-700); font-variant-numeric: tabular-nums; }
.status-clock svg { color: var(--blue-600); }
.status-clock abbr { text-decoration: none; }
.status-refresh-note { display: inline-flex; align-items: center; }
.status-banner-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); animation: topbar-status-pulse 2.2s infinite;
}
.status-banner-issue .status-banner-dot { background: #f59e0b; animation: none; }
.status-banner-issue h2 { color: #b45309; }

.status-locations { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .status-locations { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .status-locations { grid-template-columns: repeat(4, 1fr); } }
.status-location-card {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.status-location-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink-100);
}
.status-location-head h3 {
  display: flex; align-items: center; gap: 7px; font-size: 1rem; margin: 0; color: var(--ink-900);
}
.status-location-head h3 svg { color: var(--blue-600); flex-shrink: 0; }
.status-location-tag {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-500); background: var(--ink-050); padding: 3px 9px; border-radius: 999px;
}
.status-services { display: flex; flex-direction: column; gap: 8px; }
.status-service-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-service-name { font-size: 0.88rem; color: var(--ink-700); font-weight: 600; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; flex-shrink: 0;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-pill.up { background: rgba(34,197,94,0.1); color: #15803d; }
.status-pill.up .dot { background: #22c55e; }
.status-pill.degraded { background: rgba(245,158,11,0.12); color: #b45309; }
.status-pill.degraded .dot { background: #f59e0b; }
.status-pill.down { background: rgba(239,68,68,0.12); color: #b91c1c; }
.status-pill.down .dot { background: #ef4444; }
.status-footnote { margin-top: 20px; text-align: center; color: var(--ink-500); font-size: 0.88rem; }
.status-footnote a { color: var(--blue-600); font-weight: 600; }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
  padding: 16px 0;
  transition: padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.site-header.is-scrolled { padding: 11px 0; box-shadow: var(--shadow-md); }

.brand { display: flex; align-items: center; justify-self: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; display: block; }
.brand-logo-chip {
  display: flex; align-items: center;
  background: var(--white);
  border-radius: 10px;
  padding: 7px 14px;
  box-shadow: var(--shadow-sm);
}
.brand-logo-chip img { height: 34px; width: auto; display: block; }
.footer-brand .brand-logo-chip { padding: 9px 16px; }
.footer-brand .brand-logo-chip img { height: 40px; }

.main-nav { display: none; justify-self: start; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-600);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.main-nav a:hover { background: var(--ink-050); color: var(--navy-900); }
.main-nav a.is-active { color: var(--white); background: var(--grad-accent); }

.header-actions { display: flex; align-items: center; justify-self: end; gap: 10px; }
.nav-toggle {
  display: flex;
  width: 44px; height: 44px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  background: var(--ink-050);
  border: 1px solid var(--ink-100);
  flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--navy-900); }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-open { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

.header-actions .btn-primary { display: none; }

/* -------------------- Login dropdown -------------------- */
.login-menu { position: relative; display: none; }
.login-trigger {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  color: var(--ink-600); background: transparent;
  border: 1px solid var(--ink-100);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.login-trigger svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.login-menu:hover .login-trigger,
.login-menu:focus-within .login-trigger {
  color: var(--navy-900); border-color: var(--ink-200); background: var(--ink-050);
}
.login-menu:hover .login-trigger svg,
.login-menu:focus-within .login-trigger svg { transform: rotate(180deg); }

.login-dropdown {
  position: absolute; top: 100%; right: 0;
  width: 252px;
  padding-top: 10px; /* invisible bridge so hover doesn't drop between button and menu */
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.login-menu:hover .login-dropdown,
.login-menu:focus-within .login-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.login-dropdown-inner {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 8px;
}
.login-dropdown-inner a {
  display: block; padding: 11px 13px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; color: var(--ink-600);
}
.login-dropdown-inner a:hover { background: var(--ink-050); color: var(--navy-900); }

.mobile-login-group { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-login-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 6px; }
.mobile-login-group a {
  display: block; padding: 11px 6px; font-size: 0.95rem; font-weight: 600; color: var(--ink-100);
}

.mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 84vw);
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  border-left: 1px solid rgba(255,255,255,0.1);
  z-index: 1001;
  padding: 100px 28px 32px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 14px 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-100);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav .btn { margin-top: 28px; }
.nav-scrim {
  position: fixed; inset: 0; background: rgba(3,7,15,0.6);
  z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

@media (min-width: 1080px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .header-actions .btn-primary { display: inline-flex; }
  .login-menu { display: block; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  padding: 84px 0 110px;
  background: var(--grad-hero);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 30% 30%, black 0%, transparent 72%);
  z-index: -1;
}
.hero-content { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.82rem; font-weight: 700; color: var(--cyan-300);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-accent); display: flex; align-items: center; justify-content: center; }
.hero-badge .dot svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--cyan-300), var(--blue-400) 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede {
  font-size: 1.12rem; line-height: 1.75; color: var(--ink-200);
  margin-bottom: 38px; max-width: 560px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--ink-300); font-weight: 600; }
.hero-trust-item svg { width: 18px; height: 18px; color: var(--cyan-400); flex-shrink: 0; }

.hero-visual { position: relative; }

@media (min-width: 980px) {
  .hero { padding: 96px 0 140px; }
  .hero-content { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
}

/* -------------------- Infra visual (SVG network graphic) -------------------- */
.infra-panel {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--grad-card-dark);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-glow);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.infra-panel .panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.infra-panel .panel-head .status { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 700; color: var(--success-500); text-transform: uppercase; letter-spacing: 0.06em; }
.infra-panel .panel-head .status .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success-500); box-shadow: 0 0 0 0 rgba(23,178,106,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(23,178,106,0.55);} 70% { box-shadow: 0 0 0 10px rgba(23,178,106,0);} 100% { box-shadow: 0 0 0 0 rgba(23,178,106,0);} }
.infra-panel .panel-head .label { font-size: 0.76rem; color: var(--ink-400); font-weight: 600; }

/* -------------------- Trust strip -------------------- */
.trust-strip { background: var(--navy-950); padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.trust-strip-item { display: flex; align-items: center; gap: 12px; color: var(--ink-300); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.01em; }
.trust-strip-item svg { width: 22px; height: 22px; color: var(--cyan-400); flex-shrink: 0; }

/* -------------------- Sections generic -------------------- */
.section { padding: 96px 0; }
.section-sm { padding: 72px 0; }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-tint { background: var(--ink-050); }
.section-navy-grad { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); color: var(--white); }

/* -------------------- Cards: services -------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2,1fr); } .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-4 { grid-template-columns: repeat(4,1fr); } }

.service-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(28,92,255,0.1), rgba(23,194,214,0.1));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-600);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-600); font-size: 0.95rem; line-height: 1.65; }
.service-card .text-link { margin-top: 18px; }
.service-card .card-num { position: absolute; top: 24px; right: 26px; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink-100); }

/* Compact variant used on the homepage "What We Do" grid */
.service-card.is-compact { padding: 22px 20px; }
.service-card.is-compact h3 { font-size: 1rem; margin-bottom: 7px; }
.service-card.is-compact p { font-size: 0.85rem; line-height: 1.55; }
.service-card.is-compact .text-link { margin-top: 14px; font-size: 0.85rem; }
.service-card.is-compact .service-icon {
  width: 42px; height: 42px; border-radius: 50%;
  margin-bottom: 14px; color: var(--white);
}
.service-card.is-compact .service-icon svg { width: 19px; height: 19px; }
.service-icon-c1 { background: linear-gradient(135deg, var(--blue-600), var(--blue-400)); }
.service-icon-c2 { background: linear-gradient(135deg, var(--cyan-500), var(--cyan-300)); }
.service-icon-c3 { background: linear-gradient(135deg, var(--navy-600), var(--blue-500)); }
.service-icon-c4 { background: linear-gradient(135deg, var(--blue-500), var(--cyan-400)); }

/* -------------------- About feature blocks -------------------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 980px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.feature-block { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--ink-100); }
.feature-block:first-of-type { border-top: none; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--ink-050); display: flex; align-items: center; justify-content: center; color: var(--blue-600);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-block h4 { font-size: 1.02rem; margin-bottom: 6px; }
.feature-block p { color: var(--ink-600); font-size: 0.93rem; line-height: 1.6; }

.about-visual { position: relative; border-radius: var(--radius-xl); overflow: hidden; }

/* Homepage About: 2x2 feature card grid; right column stretches to match
   the left column's height so the CTA button lines up with its bottom edge. */
.about-grid-top { align-items: stretch; }
.about-grid-top .about-visual-col { display: flex; flex-direction: column; justify-content: space-between; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card { background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-md); padding: 14px 14px; }
.feature-card-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin-bottom: 9px;
}
.feature-card h4 { font-size: 0.92rem; margin-bottom: 4px; }
.feature-card p { color: var(--ink-600); font-size: 0.8rem; line-height: 1.45; }

/* -------------------- Industry / solution cards -------------------- */
.industry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-100);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.industry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.industry-media { height: 150px; position: relative; overflow: hidden; }
.industry-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.industry-body h3 { font-size: 1.08rem; margin-bottom: 10px; }
.industry-body p { color: var(--ink-600); font-size: 0.92rem; line-height: 1.6; flex: 1; }
.industry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* -------------------- Case study cards & detail page -------------------- */
.case-study-loc {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.74rem; font-weight: 700; color: var(--blue-600);
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px;
}
.case-study-loc svg { width: 13px; height: 13px; }
.case-study-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.95rem; color: var(--ink-300); margin-top: 4px;
}
.case-study-meta svg { flex-shrink: 0; }
.tag { font-size: 0.72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--ink-050); color: var(--ink-600); }
a.tag-link { transition: background 0.2s var(--ease), color 0.2s var(--ease); }
a.tag-link:hover { background: var(--blue-600); color: var(--white); }

/* -------------------- Industries page: Hospitality spotlight -------------------- */
.industry-feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; align-items: center;
  background: var(--grad-hero); border-radius: var(--radius-xl); color: var(--white);
  padding: 48px; position: relative; overflow: hidden; isolation: isolate;
}
.industry-feature .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--cyan-300); }
.industry-feature h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 12px 0 14px; }
.industry-feature p { color: var(--ink-200); font-size: 0.98rem; line-height: 1.7; max-width: 520px; }
.industry-feature .tag { background: rgba(255,255,255,0.08); color: var(--ink-100); }
.industry-feature a.tag-link:hover { background: var(--blue-500); color: var(--white); }
.industry-feature-clients-label { display: block; color: var(--ink-300); font-size: 0.82rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.client-badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.client-badge-grid .client-badge { width: 100%; height: 76px; padding: 12px 16px; }
@media (max-width: 860px) {
  .industry-feature { grid-template-columns: 1fr; padding: 32px 26px; gap: 32px; }
}

/* -------------------- Industries page: other industries grid -------------------- */
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .industries-grid { grid-template-columns: 1fr; } }
.industry-tile {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 28px 26px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.industry-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.industry-tile-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.industry-tile h3 { font-size: 1.05rem; margin-bottom: 8px; }
.industry-tile p { color: var(--ink-600); font-size: 0.88rem; line-height: 1.6; }

/* -------------------- Why Qubex: 5 cards in one row (homepage) -------------------- */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.why-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.065); border-color: rgba(255,255,255,0.16); }
.why-card .why-num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--cyan-300), var(--blue-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 12px;
}
.why-card h3 { color: var(--white); font-size: 0.98rem; margin-bottom: 8px; line-height: 1.35; }
.why-card p { color: var(--ink-300); font-size: 0.84rem; line-height: 1.55; }

/* -------------------- How We Work: timeline flow chart -------------------- */
.flow-steps { position: relative; display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; }
.flow-line { position: absolute; top: 31px; left: 32px; right: 32px; height: 2px; background: rgba(255,255,255,0.12); }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; width: 190px; z-index: 1; }
.flow-marker { display: flex; flex-direction: column; align-items: center; }
.flow-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy-950); border: 2px solid var(--blue-500); color: var(--blue-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.78rem;
  margin-bottom: 16px;
}
.flow-icon { color: var(--blue-400); margin-bottom: 10px; }
.flow-icon svg { width: 20px; height: 20px; }
.flow-text h3 { color: var(--white); font-size: 0.92rem; margin-bottom: 6px; line-height: 1.3; }
.flow-text p { color: var(--ink-400); font-size: 0.78rem; line-height: 1.5; }
@media (max-width: 860px) {
  .flow-steps { flex-direction: column; align-items: stretch; gap: 30px; }
  .flow-line { top: 0; bottom: 0; left: 13px; right: auto; width: 2px; height: auto; }
  .flow-step { flex-direction: row; align-items: flex-start; text-align: left; width: 100%; gap: 18px; }
  .flow-marker { flex-shrink: 0; }
}

/* -------------------- Projects -------------------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-chip {
  padding: 9px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  background: var(--ink-050); color: var(--ink-600); border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}
.filter-chip.is-active, .filter-chip:hover { background: var(--navy-900); color: var(--white); }

.project-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--ink-100);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-media { height: 190px; position: relative; overflow: hidden; }
.project-media .category-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(5,11,22,0.62); backdrop-filter: blur(6px);
  color: var(--white); font-size: 0.72rem; font-weight: 700;
  padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
}
.project-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project-body .project-industry { font-size: 0.76rem; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.project-body h3 { font-size: 1.08rem; margin-bottom: 10px; line-height: 1.35; }
.project-body p { color: var(--ink-600); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }

/* -------------------- Technology brand cards -------------------- */
.tech-card {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-md);
  padding: 26px 20px; text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--ink-200); }
.tech-card .tech-mark {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 12px;
  background: var(--ink-050); display: flex; align-items: center; justify-content: center; color: var(--navy-700);
}
.tech-card .tech-mark svg { width: 26px; height: 26px; }
.tech-card h4 { font-size: 0.94rem; margin-bottom: 4px; }
.tech-card span { font-size: 0.76rem; color: var(--ink-500); }
.tech-category { margin-bottom: 48px; }
.tech-category:last-of-type { margin-bottom: 0; }
.tech-category-title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--ink-800); margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-100);
}

/* -------------------- AMC / Support -------------------- */
.support-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .support-grid { grid-template-columns: repeat(2,1fr); } }
.support-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 22px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--ink-100);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.support-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.support-item .check { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(160deg, rgba(28,92,255,0.12), rgba(23,194,214,0.12)); display: flex; align-items: center; justify-content: center; color: var(--blue-600); flex-shrink: 0; }
.support-item .check svg { width: 16px; height: 16px; }
.support-item h4 { font-size: 0.98rem; margin-bottom: 4px; }
.support-item p { font-size: 0.86rem; color: var(--ink-600); line-height: 1.5; }

/* -------------------- Stats / capability strip -------------------- */
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(4,1fr); } }
.stat-item { text-align: center; padding: 4px; }
.stat-item .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem,3vw,2.3rem); background: linear-gradient(135deg, var(--cyan-300), var(--blue-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-item .cap { font-size: 0.82rem; color: var(--ink-300); font-weight: 600; margin-top: 6px; }

/* -------------------- Contact CTA band -------------------- */
.cta-band {
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--ink-100);
  padding: 30px 32px;
  text-align: center;
  position: relative;
}
.cta-band .hero-grid-bg { display: none; }
.cta-band .eyebrow.on-dark { color: var(--blue-600); }
.cta-band h2 { color: var(--ink-900); font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 8px; }
.cta-band p { color: var(--ink-600); max-width: 560px; margin: 0 auto 22px; line-height: 1.6; font-size: 0.92rem; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }
.cta-band .btn-ghost-dark { background: transparent; border: 1.5px solid var(--ink-200); color: var(--ink-700); }
.cta-band .btn-ghost-dark:hover { background: var(--ink-050); border-color: var(--ink-300); transform: translateY(-2px); }

/* -------------------- Forms -------------------- */
.form-card {
  background: var(--white); border-radius: var(--radius-xl); border: 1px solid var(--ink-100);
  padding: 36px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
@media (min-width: 620px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--ink-800); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--ink-200);
  font-size: 0.95rem; color: var(--ink-900); background: var(--ink-050);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--ink-500); margin-top: 14px; text-align: center; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* -------------------- Contact info cards -------------------- */
.info-card { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-md); background: var(--ink-050); align-items: flex-start; }
.info-card .icon { width: 44px; height: 44px; border-radius: 11px; background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--blue-600); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.info-card .icon svg { width: 21px; height: 21px; }
.info-card h4 { font-size: 0.92rem; margin-bottom: 5px; color: var(--ink-500); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.info-card p { font-size: 0.98rem; font-weight: 600; color: var(--ink-900); }
.info-card p.muted { font-weight: 400; color: var(--ink-600); font-size: 0.88rem; margin-top: 3px; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--navy-950); color: var(--ink-300); padding: 56px 0 0; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.25fr 0.8fr 1.35fr 1.3fr; gap: 24px; } }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; color: var(--ink-400); max-width: 300px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; transition: background 0.2s var(--ease); }
.footer-social a:hover { background: rgba(255,255,255,0.14); }
.footer-social svg { width: 15px; height: 15px; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; font-family: var(--font-display); }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 0.88rem; color: var(--ink-400); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--cyan-300); }
.footer-col .info-line { display: flex; gap: 9px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-400); line-height: 1.45; }
.footer-col .info-line svg { width: 15px; height: 15px; color: var(--cyan-400); flex-shrink: 0; margin-top: 2px; }
@media (min-width: 560px) {
  .footer-col-services ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 16px; }
}
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; font-size: 0.8rem; color: var(--ink-500); }
.footer-bottom .legal-links { display: flex; gap: 20px; }

/* -------------------- Page header (interior pages) -------------------- */
.page-hero {
  padding: 72px 0 76px;
  background: var(--grad-hero);
  color: var(--white);
  position: relative; overflow: hidden; isolation: isolate;
}
.page-hero .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--ink-400); margin-bottom: 20px; font-weight: 600; }
.page-hero .breadcrumb a:hover { color: var(--cyan-300); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); max-width: 780px; margin-bottom: 18px; }
.page-hero p { font-size: 1.05rem; color: var(--ink-200); max-width: 640px; line-height: 1.7; }

/* -------------------- 404 page -------------------- */
.error-hero { padding: 120px 0; text-align: center; min-height: 62vh; display: flex; align-items: center; }
.error-hero .container { display: flex; flex-direction: column; align-items: center; }
.error-code {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 1; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--cyan-300), var(--blue-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-hero h1 { margin-bottom: 14px; }
.error-hero p { margin: 0 auto 32px; }
.error-hero .hero-ctas { justify-content: center; margin-bottom: 0; }

/* -------------------- FAQ (service pages) -------------------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--ink-100); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid var(--ink-100); }
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--ink-900); font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue-500); flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--ink-600); font-size: 0.94rem; line-height: 1.7; }

/* -------------------- Legal pages (privacy / terms) -------------------- */
.legal-content { max-width: 760px; }
.legal-content .legal-updated { color: var(--ink-500); font-size: 0.86rem; margin-bottom: 36px; }
.legal-content h2 { font-size: 1.25rem; margin: 38px 0 12px; color: var(--ink-900); }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--ink-600); font-size: 0.97rem; line-height: 1.75; margin-bottom: 14px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal-content li { color: var(--ink-600); font-size: 0.97rem; line-height: 1.75; margin-bottom: 8px; }
.legal-content a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--blue-500); }

/* -------------------- Detail rows (services page) -------------------- */
.detail-row {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
  padding: 64px 0; border-top: 1px solid var(--ink-100);
}
.detail-row:first-of-type { border-top: none; padding-top: 0; }
@media (min-width: 960px) { .detail-row { grid-template-columns: 1fr 1fr; gap: 64px; } }
.detail-row.reverse .detail-visual { order: -1; }
@media (min-width: 960px) { .detail-row.reverse .detail-copy { order: 1; } .detail-row.reverse .detail-visual { order: 0; } }
.detail-copy .service-icon { margin-bottom: 22px; }
.detail-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 16px; }
.detail-copy > p { color: var(--ink-600); font-size: 1rem; line-height: 1.75; margin-bottom: 24px; }
.detail-list { display: grid; gap: 12px; margin-bottom: 26px; }
.detail-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.93rem; color: var(--ink-700); line-height: 1.5; }
.detail-list li svg { width: 18px; height: 18px; color: var(--success-500); flex-shrink: 0; margin-top: 2px; }
.detail-visual { border-radius: var(--radius-xl); overflow: hidden; }

/* -------------------- Media tiles (decorative, no stock photos) -------------------- */
.media-tile {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.media-tile::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 70% 30%, black 0%, transparent 75%);
}
.media-tile .tile-icon-bg { position: absolute; right: -18px; bottom: -22px; width: 132px; height: 132px; color: rgba(255,255,255,0.16); }
.media-tile .tile-icon-fg {
  position: relative; z-index: 1;
  width: 54px; height: 54px; padding: 14px;
  color: var(--white);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  backdrop-filter: blur(4px);
}
.photo-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s var(--ease);
}
.photo-tile .photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,11,22,0.12) 0%, rgba(5,11,22,0.68) 100%);
}
.photo-tile .tile-icon-fg { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
.industry-card:hover .photo-tile img,
.project-card:hover .photo-tile img { transform: scale(1.06); }
.tile-1 { background: linear-gradient(135deg, #0b1c3a, #123a5e); }
.tile-2 { background: linear-gradient(135deg, #0a1830, #185a6b); }
.tile-3 { background: linear-gradient(135deg, #10254a, #1c5cff); }
.tile-4 { background: linear-gradient(135deg, #071021, #17384f); }
.tile-5 { background: linear-gradient(135deg, #0e2340, #0d5f6e); }
.tile-6 { background: linear-gradient(135deg, #142b52, #1c5cff); }
.tile-7 { background: linear-gradient(135deg, #0a1830, #2f6fff); }
.tile-8 { background: linear-gradient(135deg, #071021, #123a5e); }

/* -------------------- Architecture / topology diagram (about + hero) -------------------- */
.topo {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
}
.topo svg { width: 100%; height: auto; display: block; }
.topo-node-label { font-size: 9px; fill: var(--ink-300); font-family: var(--font-body); font-weight: 600; }

/* -------------------- Hub & orbit device diagram (hero) -------------------- */
.topo-orbit { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.orbit-ring {
  position: absolute; left: 18.3%; top: 11.7%; width: 63.3%; height: 63.3%;
  border-radius: 50%; border: 1.5px dashed rgba(47,111,255,0.35);
}
.orbit-hub {
  position: absolute; left: 43.3%; top: 36.7%; width: 13.3%; height: 13.3%;
  border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  display: flex; align-items: center; justify-content: center; color: var(--white);
  box-shadow: 0 0 0 8px rgba(47,111,255,0.08);
}
.orbit-hub svg { width: 46%; height: 46%; }
.orbit-node {
  position: absolute; width: 12.7%; height: 12.7%;
  border-radius: 50%; background: var(--navy-800); border: 1.4px solid var(--blue-500); color: var(--blue-400);
  display: flex; align-items: center; justify-content: center;
}
.orbit-node svg { width: 48%; height: 48%; }

.mini-stat-card {
  position: absolute;
  background: rgba(7,16,33,0.92);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 12px;
  max-width: 220px;
}
.mini-stat-card .icn { width: 36px; height: 36px; border-radius: 10px; background: var(--grad-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mini-stat-card .icn svg { width: 18px; height: 18px; color: white; }
.mini-stat-card strong { display: block; font-size: 0.86rem; color: var(--white); font-weight: 700; }
.mini-stat-card span { font-size: 0.74rem; color: var(--ink-400); }

/* -------------------- Track record stats -------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.stat-card {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 36px 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-card .stat-num {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card .stat-label { margin-top: 10px; font-size: 0.92rem; font-weight: 700; color: var(--ink-700); }

/* -------------------- Client logo strip (marquee) -------------------- */
.clients-marquee {
  overflow: hidden; width: 100%;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.clients-track {
  display: flex; width: max-content;
  animation: clients-scroll 32s linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
@keyframes clients-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}
.clients-strip { display: flex; flex-wrap: nowrap; gap: 14px; padding: 4px 7px; flex-shrink: 0; }
.client-badge {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  padding: 18px 22px; width: 176px; height: 92px;
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-md);
  text-align: center; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.client-badge:hover { border-color: var(--ink-200); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.client-badge img {
  max-width: 100%; max-height: 46px; width: auto; height: auto;
  object-fit: contain; filter: grayscale(100%); opacity: 0.72;
  transition: filter 0.2s var(--ease), opacity 0.2s var(--ease);
}
.client-badge:hover img { filter: grayscale(0%); opacity: 1; }

/* -------------------- Solution partners (logo badges) -------------------- */
.partners-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.partner-badge {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 26px; width: 172px; height: 88px;
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-md);
  text-align: center; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.partner-badge:hover { border-color: var(--ink-200); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.partner-badge img {
  max-width: 100%; max-height: 44px; width: auto; height: auto;
  object-fit: contain; filter: grayscale(100%); opacity: 0.72;
  transition: filter 0.2s var(--ease), opacity 0.2s var(--ease);
}
.partner-badge:hover img { filter: grayscale(0%); opacity: 1; }

/* -------------------- About visual: layered infra cards -------------------- */
.stack-visual { position: relative; padding: 10px; }
.stack-card {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.stack-card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-hero);
  z-index: -1;
}
.stack-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.stack-tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  color: var(--ink-200);
}
.stack-tile-icon {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 8px;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500)); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.stack-tile span:not(.stack-tile-icon) { font-size: 0.74rem; font-weight: 700; display: block; }

/* -------------------- Misc panels / graphics -------------------- */
.panel-tint { background: var(--ink-050); border-radius: var(--radius-xl); padding: 8px; }

.badge-soft {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: rgba(28,92,255,0.08); color: var(--blue-600);
}

.divider-fade { height: 1px; background: var(--grad-divider); border: none; margin: 0; }

/* -------------------- Floating WhatsApp button -------------------- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 500;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 28px rgba(0,0,0,0.34); }
.whatsapp-fab svg { width: 28px; height: 28px; }
@media (max-width: 640px) {
  .whatsapp-fab { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .whatsapp-fab svg { width: 25px; height: 25px; }
}

/* -------------------- Utility -------------------- */
.mt-0 { margin-top: 0 !important; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Progressive enhancement: content is visible by default (no-JS, slow JS,
   or a missed observer never hides it). The html.js-anim class is added
   by main.js only once it is ready to animate. */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js-anim .reveal { opacity: 0; transform: translateY(20px); }
html.js-anim .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
