/* ==========================================================================
   Mahdy Smarts Solutions — site styles
   ========================================================================== */

:root {
  --navy-950: #030d24;
  --navy-900: #061638;
  --navy-800: #0a2253;
  --navy-700: #12306e;
  --blue-600: #0146b1;
  --blue-500: #1d5fd1;
  --blue-400: #5a8ff0;
  --blue-100: #dbe7ff;
  --blue-50: #eef4ff;
  --gold-400: #ffc400;
  --gold-300: #ffd447;
  --gold-50: #fff7db;
  --green-500: #14a35a;
  --green-50: #e7f7ee;
  --red-500: #d93838;

  --ink: #0b1630;
  --ink-2: #27324d;
  --muted: #5a6680;
  --line: #e2e8f2;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 48, .06), 0 2px 8px rgba(11, 22, 48, .05);
  --shadow: 0 18px 40px -18px rgba(11, 22, 48, .22), 0 6px 14px -8px rgba(11, 22, 48, .10);
  --shadow-lg: 0 50px 90px -30px rgba(1, 8, 26, .65), 0 20px 40px -20px rgba(1, 8, 26, .45);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold-400); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .72em 1.25em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-lg { padding: .95em 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold-400); color: var(--navy-950); box-shadow: 0 8px 24px -10px rgba(255, 196, 0, .7); }
.btn-gold:hover { background: var(--gold-300); color: var(--navy-950); box-shadow: 0 12px 28px -10px rgba(255, 196, 0, .8); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px -12px rgba(1, 70, 177, .8); }
.btn-primary:hover { background: var(--blue-500); color: #fff; }
.btn-primary:disabled { opacity: .65; cursor: progress; transform: none; }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; }
.link-arrow .i { transition: transform .2s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; position: relative; }
.brand img { height: 46px; width: auto; transition: opacity .3s; }
.brand .logo-on-light { position: absolute; inset: 0; opacity: 0; }
.site-header.is-solid { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 22, 48, .4); }
.site-header.is-solid .logo-on-dark { opacity: 0; }
.site-header.is-solid .logo-on-light { opacity: 1; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  display: block; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .94rem;
  color: rgba(255, 255, 255, .86); transition: color .2s, background-color .2s;
}
.site-nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav ul a.is-active { color: var(--gold-400); }
.site-header.is-solid .site-nav ul a { color: var(--ink-2); }
.site-header.is-solid .site-nav ul a:hover { color: var(--blue-600); background: var(--blue-50); }
.site-header.is-solid .site-nav ul a.is-active { color: var(--blue-600); }
.nav-cta { padding: .62em 1.15em; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06); color: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .i { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.site-header.is-solid .nav-toggle { color: var(--ink); border-color: var(--line); background: #fff; }
.site-header.nav-open .nav-toggle .i-open { display: none; }
.site-header.nav-open .nav-toggle .i-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #c9d5ee;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(120px, 12vw, 170px);
  background:
    radial-gradient(900px 620px at 88% -8%, rgba(1, 70, 177, .75), transparent 62%),
    radial-gradient(700px 520px at -12% 110%, rgba(255, 196, 0, .13), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 65% 35%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 65% at 65% 35%, #000 25%, transparent 75%);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .5; mix-blend-mode: luminosity; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 620px at 88% -8%, rgba(1, 70, 177, .55), transparent 62%),
    linear-gradient(90deg, rgba(3, 13, 36, .95) 0%, rgba(3, 13, 36, .84) 45%, rgba(6, 22, 56, .62) 100%),
    linear-gradient(180deg, rgba(3, 13, 36, 0) 55%, var(--navy-900) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: #e6ecf8; font-size: .85rem; font-weight: 600; margin-bottom: 22px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 0 rgba(255, 196, 0, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 196, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 196, 0, 0); } }

.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; }
.hero h1 .hl {
  background: linear-gradient(92deg, var(--gold-300), var(--gold-400) 60%, #ffb000);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin-top: 22px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 560px; color: #b9c7e3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: .92rem; font-weight: 600; color: #dbe4f5; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .i { color: var(--gold-400); }

/* Hero mockup */
.hero-visual { position: relative; padding: 24px 0 40px; }
.mock {
  position: relative; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; color: var(--ink-2); font-size: 13px; transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
  transform-origin: left center; border: 1px solid rgba(255, 255, 255, .6);
}
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #f6f8fc; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d7dde9; }
.dots i:nth-child(1) { background: #ff6b5f; } .dots i:nth-child(2) { background: #ffc130; } .dots i:nth-child(3) { background: #2bcb57; }
.mock-title { font-weight: 700; color: var(--ink); font-size: 12.5px; }
.mock-live { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--green-500); background: var(--green-50); padding: 3px 9px; border-radius: 999px; }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.kpi span { font-size: 11px; color: var(--muted); font-weight: 600; }
.kpi strong { font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.kpi em { font-style: normal; font-size: 11px; font-weight: 700; }
.kpi em.up { color: var(--green-500); }
.chart { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); font-size: 12px; margin-bottom: 10px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); font-size: 11px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--blue-600); }
.bars { height: 120px; display: flex; align-items: flex-end; gap: 7px; background: repeating-linear-gradient(to top, transparent 0 29px, #eef1f7 29px 30px); }
.bars span {
  flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--blue-400), var(--blue-600));
  transform-origin: bottom; animation: grow 1s var(--ease) both;
}
.bars span:nth-child(n) { animation-delay: calc(var(--i, 0) * 40ms + 300ms); }
.bars span.is-hi { background: linear-gradient(180deg, var(--gold-300), var(--gold-400)); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.rows { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #f6f8fc; font-weight: 600; color: var(--ink-2); font-size: 12.5px; }
.row b { margin-left: auto; font-size: 11px; color: var(--blue-600); background: var(--blue-50); padding: 2px 9px; border-radius: 999px; }
.row b.ok { color: var(--green-500); background: var(--green-50); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-blue { background: var(--blue-600); } .dot-gold { background: var(--gold-400); }

.float-card {
  position: absolute; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-lg);
  color: var(--ink-2); font-size: 12.5px; border: 1px solid rgba(255, 255, 255, .8);
  animation: float 6s ease-in-out infinite;
}
.fc-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: .06em; }
.fc-label .i { width: 14px; height: 14px; }
.fc-title { font-weight: 800; color: var(--ink); font-size: 14px; margin-top: 2px; }
.fc-flow { left: -36px; bottom: -6px; width: 220px; }
.flow { margin-top: 10px; display: grid; gap: 8px; counter-reset: f; }
.flow li { position: relative; padding-left: 26px; font-weight: 600; }
.flow li::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff;
}
.flow li.done::before { background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; border-color: var(--green-500); }
.flow li.active::before { border-color: var(--gold-400); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 9px var(--gold-400); }
.flow li.active { color: var(--ink); }
.fc-donut { right: -22px; top: -8px; display: flex; align-items: center; gap: 12px; animation-delay: -3s; }
.donut {
  --p: 50; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold-400) calc(var(--p) * 1%), #e9eef7 0);
}
.donut span { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: var(--ink); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: clamp(-96px, -8vw, -72px); }
.stats-card {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 30px) 0;
}
.stat { padding: 6px clamp(16px, 2.4vw, 32px); display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { font-size: clamp(2rem, 3.4vw, 2.75rem); color: var(--blue-600); line-height: 1; letter-spacing: -.03em; font-weight: 800; }
.stat > span { color: var(--muted); font-weight: 600; font-size: .92rem; line-height: 1.4; }

/* ---------- Tech strip ---------- */
.tech { padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); }
.tech-label { text-align: center; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); margin-bottom: 22px; }
.marquee {
  display: flex; overflow: hidden; gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 14px; flex: none; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  white-space: nowrap; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-weight: 700; font-size: .92rem; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.marquee-track li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--gold-400); margin-right: 10px; vertical-align: middle; translate: 0 -1px; }
@keyframes marquee { to { transform: translateX(calc(-100% - 14px)); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head-left { text-align: left; margin-inline: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--gold-400); }
.section h2, .cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); letter-spacing: -.03em; }
.lead { margin-top: 16px; font-size: clamp(1.02rem, 1.3vw, 1.14rem); color: var(--muted); }

.section-dark {
  position: relative; isolation: isolate; color: #b9c7e3;
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(1, 70, 177, .55), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(255, 196, 0, .08), transparent 60%),
    var(--navy-900);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-400); }
.section-dark .lead { color: #a9b8d6; }

/* ---------- Cards / services ---------- */
.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); color: var(--blue-600);
}
.icon-tile .i { width: 24px; height: 24px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card::after {
  content: ""; position: absolute; inset: 0 24px auto; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--gold-400)); opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card:hover::after { opacity: 1; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service h3 { font-size: 1.2rem; margin: 20px 0 10px; }
.service p { color: var(--muted); font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: .78rem; font-weight: 700; color: var(--blue-600); background: var(--blue-50); padding: 4px 10px; border-radius: 999px; }

/* ---------- Tabs ---------- */
.tab-list {
  display: flex; gap: 6px; padding: 6px; margin: 0 auto 36px; width: max-content; max-width: 100%;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 0;
  background: transparent; color: var(--muted); font-weight: 700; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--blue-600); box-shadow: var(--shadow-sm); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel:not([hidden]) { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.025em; }
.panel-copy > p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.checklist { display: grid; gap: 12px; margin: 24px 0 28px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 600; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230146b1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Panel visuals */
.panel-visual { position: relative; }
.panel-visual::before {
  content: ""; position: absolute; inset: 8% -4% -6% 8%; z-index: -1; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-100), var(--gold-50));
}
.viz { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; font-size: 13.5px; }

/* Photo with a floating widget card overlapping its lower-left corner */
.photo-stack { position: relative; padding: 0 0 64px 40px; }
.photo-stack > img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); background: var(--bg-soft); }
.viz-float {
  position: absolute; left: 0; bottom: 0; width: min(76%, 430px); padding: 18px; font-size: 12.5px;
  box-shadow: 0 34px 60px -24px rgba(11, 22, 48, .45), 0 10px 20px -12px rgba(11, 22, 48, .2);
}
.viz-float .viz-head { margin-bottom: 14px; }
.viz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.chip { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.chip-green { color: var(--green-500); background: var(--green-50); }
.chip-gold { color: #8a6400; background: var(--gold-50); }

.gantt { display: grid; gap: 12px; }
.g-row { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 14px; font-weight: 600; color: var(--ink-2); }
.g-track { position: relative; height: 26px; border-radius: 8px; background: repeating-linear-gradient(90deg, #f3f6fb 0 calc(20% - 1px), #e6ebf4 calc(20% - 1px) 20%); }
.g-track i { position: absolute; top: 4px; bottom: 4px; left: var(--s); width: var(--w); border-radius: 6px; background: var(--blue-100); }
.g-track i.done { background: var(--blue-600); }
.g-track i.active { background: linear-gradient(90deg, var(--blue-600) 55%, var(--blue-100) 55%); }
.g-track i.gold { background: var(--gold-400); }
.g-scale { display: flex; justify-content: space-between; margin: 12px 0 0 126px; font-size: 11.5px; font-weight: 700; color: var(--muted); }

.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field label { display: flex; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.f-field label em { font-style: normal; font-size: 10px; color: #8a6400; background: var(--gold-50); border: 1px solid #ffe08a; padding: 0 6px; border-radius: 999px; }
.f-input { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; font-weight: 600; color: var(--ink); background: #fbfcfe; }
.f-select { justify-content: space-between; }
.f-select::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; translate: 0 -2px; }
.is-custom .f-input { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(255, 196, 0, .18); }
.meter { flex: 1; height: 6px; border-radius: 6px; background: #edf0f6; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green-500); border-radius: 6px; }
.f-span { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.f-span label { margin: 0; }
.f-toggle { width: 42px; height: 24px; border-radius: 999px; background: var(--blue-600); position: relative; }
.f-toggle i { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.f-rule { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); font-weight: 700; font-size: 12.5px; }

.viz-code { background: #0b1736; border-color: #1a2b55; color: #d5def2; padding: 0; overflow: hidden; }
.viz-code .viz-head { margin: 0; padding: 12px 16px; background: #0e1d42; color: #9fb0d4; font-size: 12px; font-weight: 600; justify-content: flex-start; border-bottom: 1px solid #1a2b55; }
.viz-code pre { margin: 0; padding: 20px 22px; overflow-x: auto; font: 500 13px/1.75 var(--mono); }
.viz-code.viz-float { padding: 0; }
.viz-code.viz-float pre { padding: 14px 18px; font-size: 11.5px; line-height: 1.7; }
.viz-code .c { color: #6f84b3; font-style: italic; }
.viz-code .k { color: #7fb0ff; }
.viz-code .s { color: var(--gold-300); }

.roadmap ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.roadmap li { font-size: 12.5px; font-weight: 700; color: var(--muted); border-top: 4px solid var(--line); padding-top: 8px; }
.roadmap li b { display: block; font-size: 11px; color: var(--muted); }
.roadmap li.done { border-color: var(--blue-600); color: var(--ink); }
.roadmap li.active { border-color: var(--gold-400); color: var(--ink); }

/* ---------- Approach steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 31px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, rgba(255, 196, 0, .7), rgba(90, 143, 240, .5), rgba(255, 196, 0, .7));
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step-icon {
  position: relative; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(145deg, #183a80, #0c2558); color: var(--gold-400);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 8px var(--navy-900), 0 18px 30px -12px rgba(0, 0, 0, .6);
}
.step-icon .i { width: 26px; height: 26px; }
.step-num { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; color: var(--blue-400); margin-bottom: 6px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: .94rem; color: #a9b8d6; }

/* ---------- Case studies ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-900); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.case:hover .case-media img { transform: scale(1.05); }
.case-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 22, 56, 0) 50%, var(--navy-900) 100%); }
.case-media .pill { position: absolute; left: 18px; top: 18px; z-index: 1; background: rgba(3, 13, 36, .62); backdrop-filter: blur(6px); }
.case-top {
  position: relative; padding: 8px 26px 24px; color: #c9d5ee;
  background: radial-gradient(400px 220px at 100% 100%, rgba(29, 95, 209, .55), transparent 70%), var(--navy-900);
}
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); padding: 5px 12px; border-radius: 999px; }
.pill .i { width: 14px; height: 14px; color: var(--gold-400); }
.case-top h3 { color: #fff; font-size: 1.2rem; margin: 0 0 18px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metrics div { display: grid; gap: 2px; }
.metrics strong { font-size: 2rem; line-height: 1.05; color: var(--gold-400); letter-spacing: -.03em; font-weight: 800; }
.metrics span { font-size: .82rem; font-weight: 600; color: #a9b8d6; }
.case-body { margin: 0; padding: 22px 26px 26px; display: grid; gap: 4px; }
.case-body dt { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin-top: 10px; }
.case-body dt:first-child { margin-top: 0; }
.case-body dd { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-media { position: relative; padding-bottom: 64px; }
.about-main { width: 88%; aspect-ratio: 5 / 4.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-inset {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 10 / 7; object-fit: cover;
  border-radius: 18px; border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.about-media::before {
  content: ""; position: absolute; inset: -18px auto auto -18px; width: 45%; height: 55%; z-index: -1; border-radius: var(--radius-lg);
  background: radial-gradient(circle, var(--gold-400) 1.6px, transparent 2px) 0 0 / 16px 16px; opacity: .55;
}
.about-badge {
  position: absolute; left: -14px; top: 36px; display: flex; align-items: center; gap: 14px; max-width: 280px;
  background: var(--navy-900); color: #c9d5ee; padding: 16px 20px; border-radius: 16px; box-shadow: var(--shadow-lg);
}
.about-badge strong { font-size: 2.2rem; line-height: 1; color: var(--gold-400); font-weight: 800; letter-spacing: -.03em; }
.about-badge span { font-size: .88rem; font-weight: 600; line-height: 1.35; }
.reasons { display: grid; gap: 22px; margin-top: 32px; }
.reasons li { display: flex; gap: 16px; align-items: flex-start; }
.reasons h3 { font-size: 1.08rem; margin-bottom: 4px; }
.reasons p { color: var(--muted); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-weight: 700; color: var(--ink); font-size: 1.04rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230146b1' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--gold-50); }
.faq-a { padding: 0 22px 22px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 7vw, 88px) 0;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(255, 196, 0, .16), transparent 60%),
    linear-gradient(115deg, var(--navy-900), var(--blue-600));
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; z-index: -1;
  border: 60px solid rgba(255, 255, 255, .05);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d5ee; margin-top: 10px; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 22px; margin: 32px 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a, .contact-list li > div > span:not(.label) { font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--blue-600); }
.social { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.social:hover { border-color: var(--blue-600); color: var(--blue-600); }
.social .i { color: #0a66c2; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 22px; }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.req { color: var(--red-500); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fbfcfe; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background-color .2s; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  padding-right: 40px; cursor: pointer;
  background: #fbfcfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6680' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c9d3e5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background-color: #fff; box-shadow: 0 0 0 4px rgba(1, 70, 177, .12); }
.field-error { display: none; color: var(--red-500); font-size: .84rem; font-weight: 600; margin-top: 6px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red-500); }
.field.is-invalid .field-error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .84rem; color: var(--muted); text-align: center; }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .94rem; background: var(--blue-50); color: var(--blue-600); }
.form-status.is-success { background: var(--green-50); color: #0d7a43; }
.form-status.is-error { background: #fdecec; color: #b42323; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #93a3c4; padding: clamp(56px, 7vw, 80px) 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 40px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: 0; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: #b6c3de; transition: color .2s; }
.site-footer a:hover { color: var(--gold-400); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .i { margin-top: 4px; color: var(--gold-400); }
.social-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-top: 18px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.social-icon:hover { background: rgba(255, 255, 255, .12); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem;
}
.footer-bottom .tm { color: #6f7fa0; flex: 1 1 360px; text-align: center; }

/* ---------- Simple pages (privacy / 404) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 64px) 0 56px; color: #c9d5ee;
  background: radial-gradient(700px 400px at 90% 0%, rgba(1, 70, 177, .7), transparent 60%), var(--navy-950);
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: -.03em; }
.page-hero p { margin-top: 12px; }
.prose { max-width: 760px; padding-block: clamp(48px, 6vw, 80px); }
.prose h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p, .prose ul + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 10px; }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(92deg, var(--gold-300), var(--gold-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { margin: 12px auto 28px; max-width: 440px; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 16px; }
  .site-nav ul a { padding: 8px 9px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 18px;
    background: #fff; padding: 18px var(--gutter) 26px; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(11, 22, 48, .35);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .site-header.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a, .site-header.is-solid .site-nav ul a { color: var(--ink); padding: 13px 12px; font-size: 1.05rem; }
  .site-nav ul a:hover { background: var(--blue-50); color: var(--blue-600); }
  .site-nav ul a.is-active { color: var(--blue-600); }
  .nav-cta { padding: .9em 1.2em; font-size: 1rem; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 8px auto 0; width: 100%; }
  .mock { transform: none; }

  .service-grid, .case-grid { grid-template-columns: 1fr 1fr; }
  .tab-panel, .about-grid, .contact-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .tab-panel .panel-visual { order: -1; }
  .faq-grid .section-head { position: static; }
  .about-media { max-width: 620px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 720px) {
  .stats-card { grid-template-columns: 1fr 1fr; padding: 4px 0; }
  .stat { padding: 18px 20px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .service-grid, .case-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: left; padding: 0 0 30px; }
  .step-icon { grid-row: span 3; margin: 0; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 74px; bottom: 6px; width: 2px; background: rgba(255, 196, 0, .35); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-badge { left: 10px; top: 10px; padding: 12px 14px; }
  .about-badge strong { font-size: 1.7rem; }
  .about-media { padding-bottom: 48px; }
  .about-main { width: 92%; }
  .photo-stack { padding: 0; }
  .viz-float { position: relative; width: auto; margin: -56px 12px 0; }
  .fc-flow { left: -6px; bottom: -14px; width: 200px; }
  .fc-donut { right: -6px; top: -14px; }
  .kpi strong { font-size: 16px; }
  .g-row { grid-template-columns: 92px 1fr; }
  .g-scale { margin-left: 106px; }
  .f-grid { grid-template-columns: 1fr; }
  .tab { padding: 10px 14px; font-size: .9rem; }
  .tab-list { width: 100%; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.15rem; }
  .btn-lg { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { display: none; }
  .fc-flow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .marquee-track { flex-wrap: wrap; justify-content: center; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
