/* ============================================================
   EagleIQ Software Solutions — Master Stylesheet
   Brand: navy + electric blue, glassmorphism, premium SaaS
   ============================================================ */

:root {
    --navy-900: #060d22;
    --navy-800: #0a1530;
    --navy-700: #0e1d44;
    --navy-600: #142a5e;
    --blue-500: #1e90ff;
    --blue-400: #3aa0ff;
    --blue-300: #6cbcff;
    --cyan:     #21d4fd;
    --ink:      #0b1530;
    --slate:    #5d6b86;
    --muted:    #8a96ad;
    --line:     rgba(255,255,255,.08);
    --line-d:   rgba(13,27,68,.10);
    --white:    #ffffff;
    --bg:       #ffffff;
    --bg-alt:   #f5f8ff;
    --card:     #ffffff;

    --grad-blue: linear-gradient(135deg, #1e90ff 0%, #21d4fd 100%);
    --grad-navy: linear-gradient(160deg, #0a1530 0%, #0e1d44 60%, #142a5e 100%);
    --grad-text: linear-gradient(120deg, #1e90ff, #21d4fd 60%, #6cbcff);

    --shadow-sm: 0 4px 18px rgba(10,21,48,.08);
    --shadow-md: 0 18px 50px rgba(10,21,48,.12);
    --shadow-lg: 0 30px 80px rgba(10,21,48,.18);
    --shadow-blue: 0 18px 50px rgba(30,144,255,.35);

    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 28px;

    --font-head: 'Sora', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --maxw: 1200px;
    --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; color: var(--navy-800); letter-spacing: -.02em; }

/* Base icon size — specific contexts below override this. Prevents unsized SVGs from ballooning. */
.ico { width: 20px; height: 20px; flex-shrink: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--grad-navy); color: #cdd8f0; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 34px; height: 34px; border: 1.5px solid var(--blue-400); transform: translate(-50%,-50%); transition: width .25s, height .25s, background .25s; }
.cursor-dot { width: 6px; height: 6px; background: var(--blue-400); transform: translate(-50%,-50%); }
.cursor.is-hover { width: 56px; height: 56px; background: rgba(30,144,255,.12); }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; background: var(--navy-900); z-index: 10000; display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s; }
.loader.hide { opacity: 0; visibility: hidden; }
.loader__logo { text-align: center; }
.loader__logo img { width: 180px; filter: brightness(0) invert(1); animation: floaty 2s ease-in-out infinite; }
.loader__bar { width: 180px; height: 3px; background: rgba(255,255,255,.12); border-radius: 4px; margin: 22px auto 0; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; background: var(--grad-blue); border-radius: 4px; animation: load 1.1s var(--ease) infinite; }
@keyframes load { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Animated background ---------- */
.bg-mesh { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.blob--1 { width: 500px; height: 500px; background: #1e90ff; top: -150px; left: -120px; animation: drift 22s ease-in-out infinite; }
.blob--2 { width: 460px; height: 460px; background: #21d4fd; top: 30%; right: -160px; animation: drift 28s ease-in-out infinite reverse; }
.blob--3 { width: 420px; height: 420px; background: #6cbcff; bottom: -160px; left: 30%; animation: drift 26s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(60px,-40px) scale(1.12); } 66% { transform: translate(-40px,50px) scale(.92); } }

/* ---------- Navbar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; transition: all .35s var(--ease); padding: 18px 0; }
.nav.scrolled { padding: 10px 0; background: rgba(255,255,255,.75); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--line-d); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand img { height: 55px; transition: height .35s var(--ease); }
.nav.scrolled .nav__brand img { height: 44px; }
.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__link { font-size: 14.5px; font-weight: 500; color: var(--slate); padding: 8px 14px; border-radius: 10px; position: relative; transition: color .25s; white-space: nowrap; }
.nav__link:hover { color: var(--navy-700); }
.nav__link.active { color: var(--blue-500); }
.nav__link.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--grad-blue); border-radius: 2px; }
.nav__cta { margin-left: 10px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--navy-800); border-radius: 3px; transition: .3s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Dark-hero pages: navbar content goes white while transparent (over the dark hero).
   Once scrolled the nav gets its white glass background, so revert to normal dark styling. */
.has-dark-hero .nav:not(.scrolled) .nav__brand img { filter: brightness(0) invert(1); }
.has-dark-hero .nav:not(.scrolled) .nav__link { color: rgba(255,255,255,.82); }
.has-dark-hero .nav:not(.scrolled) .nav__link:hover { color: #fff; }
.has-dark-hero .nav:not(.scrolled) .nav__link.active { color: var(--blue-300); }
.has-dark-hero .nav:not(.scrolled) .nav__toggle span { background: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-head); font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 0; white-space: nowrap; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; position: relative; }
.btn .ico { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(30,144,255,.5); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--navy-700); border: 1.5px solid var(--line-d); }
.btn--outline:hover { border-color: var(--blue-400); color: var(--blue-500); transform: translateY(-3px); }

/* ---------- Section heading ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-500); background: rgba(30,144,255,.10); padding: 7px 16px; border-radius: 999px; margin-bottom: 18px; white-space: nowrap; }
.eyebrow .ico { width: 15px; height: 15px; }
.section--dark .eyebrow { background: rgba(255,255,255,.08); color: var(--blue-300); }
.head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.head--left { margin-left: 0; text-align: left; }
.head h2 { font-size: clamp(30px, 4vw, 46px); }
.head p { margin-top: 16px; color: var(--slate); font-size: 17px; }
.section--dark .head p { color: #aab8d6; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 180px 0 110px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(30,144,255,.08); border: 1px solid rgba(30,144,255,.18); color: var(--blue-500); font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 999px; margin-bottom: 24px; }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 0 rgba(30,144,255,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30,144,255,.5); } 70% { box-shadow: 0 0 0 12px rgba(30,144,255,0); } 100% { box-shadow: 0 0 0 0 rgba(30,144,255,0); } }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; line-height: 1.05; }
.hero__sub { margin-top: 22px; font-size: 18.5px; color: var(--slate); max-width: 560px; }
.hero__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero__trust { margin-top: 40px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero__trust strong { color: var(--navy-800); font-family: var(--font-head); }

/* Hero visual: floating dashboard */
.hero__visual { position: relative; height: 460px; }
.dash { position: absolute; inset: 0; margin: auto; width: 100%; max-width: 440px; background: var(--grad-navy); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); animation: floaty 6s ease-in-out infinite; }
.dash__bar { display: flex; gap: 6px; margin-bottom: 18px; }
.dash__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.25); }
.dash__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.dash__tile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px; }
.dash__tile small { color: #8fa3cf; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.dash__tile b { display: block; color: #fff; font-family: var(--font-head); font-size: 22px; margin-top: 4px; }
.dash__tile span { color: var(--cyan); font-size: 12px; }
.dash__chart { height: 120px; background: rgba(255,255,255,.05); border-radius: 14px; padding: 14px; display: flex; align-items: flex-end; gap: 8px; }
.dash__chart i { flex: 1; background: var(--grad-blue); border-radius: 6px 6px 0 0; opacity: .85; animation: grow 1.4s var(--ease) backwards; }
@keyframes grow { from { height: 0; } }
.chip { position: absolute; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border: 1px solid var(--line-d); border-radius: 14px; padding: 11px 16px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13.5px; font-family: var(--font-head); color: var(--navy-800); }
.chip .ico { width: 18px; height: 18px; color: var(--blue-500); }
.chip--1 { top: 8%; left: -6%; animation: floaty 5s ease-in-out infinite; }
.chip--2 { top: 40%; right: -8%; animation: floaty 6.5s ease-in-out infinite .4s; }
.chip--3 { bottom: 26%; left: -7%; animation: floaty 5.5s ease-in-out infinite .8s; }

/* ---------- Marquee / trust ---------- */
.marquee { overflow: hidden; padding: 30px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scroll 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #9aa7c2; white-space: nowrap; }
.marquee__item .ico { width: 24px; height: 24px; color: var(--blue-400); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--card); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 32px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; background: var(--grad-blue); opacity: 0; transition: opacity .4s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__ico { width: 58px; height: 58px; border-radius: 16px; background: rgba(30,144,255,.10); display: grid; place-items: center; margin-bottom: 22px; transition: .4s var(--ease); }
.card__ico .ico { width: 28px; height: 28px; color: var(--blue-500); transition: .4s; }
.card:hover .card__ico { background: var(--grad-blue); transform: rotate(-6deg) scale(1.05); }
.card:hover .card__ico .ico { color: #fff; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 15px; }
.card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--blue-500); font-weight: 600; font-size: 14px; font-family: var(--font-head); }
.card__link .ico { width: 16px; height: 16px; transition: transform .3s; }
.card:hover .card__link .ico { transform: translateX(5px); }

/* Why card variant */
.why-card { display: flex; gap: 20px; padding: 28px; background: var(--card); border: 1px solid var(--line-d); border-radius: var(--r-md); transition: transform .4s var(--ease), box-shadow .4s; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-card__num { font-family: var(--font-head); font-weight: 800; font-size: 34px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.why-card h3 { font-size: 18px; margin-bottom: 6px; }
.why-card p { color: var(--slate); font-size: 14.5px; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tl-item { position: relative; padding: 30px; background: var(--card); border: 1px solid var(--line-d); border-radius: var(--r-md); transition: .4s var(--ease); }
.tl-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tl-step { width: 48px; height: 48px; border-radius: 14px; background: var(--grad-navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.tl-item h3 { font-size: 19px; margin-bottom: 8px; }
.tl-item p { color: var(--slate); font-size: 14.5px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 36px 20px; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 5vw, 56px); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat__label { margin-top: 10px; color: #aab8d6; font-size: 15px; font-weight: 500; }

/* ---------- AI transform showcase ---------- */
.ai-show { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; }
.ai-col { padding: 34px; border-radius: var(--r-lg); }
.ai-col--before { background: #f1f3f8; border: 1px dashed #c7cfdf; }
.ai-col--after { background: var(--grad-navy); color: #fff; box-shadow: var(--shadow-lg); }
.ai-col h3 { font-size: 22px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.ai-col--before h3 { color: var(--slate); }
.ai-col--after h3 { color: #fff; }
.ai-line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-weight: 500; }
.ai-col--after .ai-line { border-color: rgba(255,255,255,.10); color: #cdd8f0; }
.ai-line .ico { width: 22px; height: 22px; flex: none; }
.ai-col--before .ai-line .ico { color: #b6243b; }
.ai-col--after .ai-line .ico { color: var(--cyan); }
.ai-arrow { width: 64px; height: 64px; border-radius: 50%; background: var(--grad-blue); display: grid; place-items: center; box-shadow: var(--shadow-blue); }
.ai-arrow .ico { width: 30px; height: 30px; color: #fff; }

/* ---------- Testimonials ---------- */
.tcarousel { position: relative; overflow: hidden; padding: 20px 0 60px; margin: -20px 0 -60px; }
.ttrack { display: flex; transition: transform .6s var(--ease); }
.tslide { min-width: 100%; padding: 0 8px; }
.tcard { max-width: 760px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--line-d); border-radius: var(--r-lg); padding: 50px 48px; box-shadow: var(--shadow-md); }
.tcard__quote { font-family: var(--font-head); font-size: clamp(19px, 2.4vw, 25px); font-weight: 500; color: var(--navy-800); line-height: 1.45; }
.tcard__quote::before { content: '“'; color: var(--blue-400); font-size: 40px; }
.tcard__who { margin-top: 26px; }
.tcard__who b { display: block; font-family: var(--font-head); color: var(--navy-800); }
.tcard__who span { color: var(--slate); font-size: 14px; }
.tdots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.tdot { width: 10px; height: 10px; border-radius: 50%; background: #cdd6e6; border: 0; cursor: pointer; transition: .3s; }
.tdot.active { background: var(--grad-blue); width: 30px; border-radius: 6px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-navy); border-radius: var(--r-lg); padding: 70px 56px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ''; position: absolute; width: 360px; height: 360px; background: radial-gradient(circle, rgba(30,144,255,.45), transparent 70%); top: -120px; right: -80px; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); position: relative; }
.cta-band p { color: #aab8d6; margin: 16px auto 32px; max-width: 560px; position: relative; font-size: 17px; }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Page hero (inner pages) ---------- */
.phero { padding: 170px 0 80px; text-align: center; position: relative; }
.phero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
.phero p { color: var(--slate); font-size: 18px; max-width: 620px; margin: 18px auto 0; }
.crumbs { display: flex; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.crumbs a:hover { color: var(--blue-500); }

/* ---------- Service detail blocks ---------- */
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 90px; }
.svc-block:last-child { margin-bottom: 0; }
.svc-block:nth-child(even) .svc-block__media { order: -1; }
.svc-block h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.svc-block p { color: var(--slate); font-size: 16.5px; margin-bottom: 24px; }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--navy-700); font-size: 15px; }
.svc-list .ico { width: 20px; height: 20px; color: var(--blue-500); flex: none; }
.svc-block__media { aspect-ratio: 4/3; border-radius: var(--r-lg); background: var(--grad-navy); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.svc-block__media .ico { width: 110px; height: 110px; color: rgba(255,255,255,.85); fill: currentColor; fill-opacity: 0.12; transition: transform .5s var(--ease), color .5s var(--ease), fill-opacity .5s var(--ease); }
.svc-block:hover .svc-block__media .ico { transform: scale(1.12) rotate(4deg); color: #fff; fill-opacity: 0.22; }
.svc-block__media::before { content: ''; position: absolute; width: 200%; height: 200%; background: radial-gradient(circle at 30% 30%, rgba(33,212,253,.35), transparent 40%); animation: drift 18s ease-in-out infinite; }

/* ---------- Portfolio ---------- */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.filter { background: var(--card); border: 1px solid var(--line-d); padding: 10px 22px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--slate); cursor: pointer; transition: .3s; }
.filter.active, .filter:hover { background: var(--grad-blue); color: #fff; border-color: transparent; box-shadow: var(--shadow-blue); }
.pcard { border-radius: var(--r-md); overflow: hidden; background: var(--card); border: 1px solid var(--line-d); transition: transform .4s var(--ease), box-shadow .4s; }
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pcard__img { aspect-ratio: 16/10; background: var(--grad-navy); position: relative; display: grid; place-items: center; overflow: hidden; }
.pcard__img .ico { width: 70px; height: 70px; color: rgba(255,255,255,.8); fill: currentColor; fill-opacity: 0.12; transition: transform .5s var(--ease), color .5s var(--ease), fill-opacity .5s var(--ease); }
.pcard:hover .pcard__img .ico { transform: scale(1.15) rotate(-5deg); color: #fff; fill-opacity: 0.22; }
.pcard__tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.9); color: var(--blue-500); font-size: 12px; font-weight: 700; font-family: var(--font-head); padding: 5px 12px; border-radius: 999px; }
.pcard__body { padding: 24px; }
.pcard__body h3 { font-size: 19px; margin-bottom: 6px; }
.pcard__body .meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.pcard__body p { color: var(--slate); font-size: 14.5px; }
.pcard__result { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-d); display: flex; gap: 18px; }
.pcard__result div b { display: block; font-family: var(--font-head); color: var(--blue-500); font-size: 20px; }
.pcard__result div span { font-size: 12px; color: var(--muted); }

/* ---------- ROI calculator ---------- */
.roi { background: var(--grad-navy); border-radius: var(--r-lg); padding: 48px; color: #fff; box-shadow: var(--shadow-lg); }
.roi__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.roi__field { margin-bottom: 22px; }
.roi__field label { display: block; font-size: 14px; color: #aab8d6; margin-bottom: 10px; font-weight: 500; }
.roi__field input[type=range] { width: 100%; accent-color: var(--blue-400); }
.roi__field .val { font-family: var(--font-head); font-weight: 700; color: var(--cyan); font-size: 18px; }
.roi__out { text-align: center; padding: 36px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); }
.roi__out small { color: #aab8d6; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.roi__big { font-family: var(--font-head); font-weight: 800; font-size: 52px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin: 8px 0; }

/* ---------- Case studies ---------- */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-d); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 36px; background: var(--card); transition: box-shadow .4s; }
.case:hover { box-shadow: var(--shadow-lg); }
.case__media { background: var(--grad-navy); min-height: 320px; display: grid; place-items: center; position: relative; overflow: hidden; }
.case__media .ico { width: 90px; height: 90px; color: rgba(255,255,255,.85); }
.case:nth-child(even) .case__media { order: 1; }
.case__body { padding: 44px; }
.case__body .tag { color: var(--blue-500); font-weight: 700; font-size: 13px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.case__body h3 { font-size: 25px; margin: 10px 0 18px; }
.case__psr { display: grid; gap: 16px; }
.case__psr div b { font-family: var(--font-head); color: var(--navy-800); display: block; margin-bottom: 3px; }
.case__psr div p { color: var(--slate); font-size: 14.5px; }
.case__stats { display: flex; gap: 28px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-d); }
.case__stats b { font-family: var(--font-head); color: var(--blue-500); font-size: 26px; display: block; }
.case__stats span { font-size: 12.5px; color: var(--muted); }

/* ---------- Blog ---------- */
.bcard { border-radius: var(--r-md); overflow: hidden; background: var(--card); border: 1px solid var(--line-d); transition: transform .4s var(--ease), box-shadow .4s; }
.bcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.bcard__img { aspect-ratio: 16/9; background: var(--grad-navy); position: relative; display: grid; place-items: center; }
.bcard__img .ico { width: 56px; height: 56px; color: rgba(255,255,255,.8); }
.bcard__cat { position: absolute; top: 14px; left: 14px; background: var(--grad-blue); color: #fff; font-size: 11.5px; font-weight: 700; font-family: var(--font-head); padding: 5px 12px; border-radius: 999px; }
.bcard__body { padding: 24px; }
.bcard__body .date { color: var(--muted); font-size: 13px; }
.bcard__body h3 { font-size: 19px; margin: 8px 0 10px; }
.bcard__body p { color: var(--slate); font-size: 14.5px; }

/* ---------- About ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card { padding: 40px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-d); position: relative; overflow: hidden; }
.vm-card__ico { width: 60px; height: 60px; border-radius: 16px; background: var(--grad-blue); display: grid; place-items: center; margin-bottom: 22px; box-shadow: var(--shadow-blue); }
.vm-card__ico .ico { width: 30px; height: 30px; color: #fff; }
.vm-card h3 { font-size: 24px; margin-bottom: 12px; }
.vm-card p { color: var(--slate); font-size: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.cinfo__item { display: flex; gap: 16px; margin-bottom: 26px; }
.cinfo__ico { width: 50px; height: 50px; border-radius: 14px; background: rgba(30,144,255,.10); display: grid; place-items: center; flex: none; transition: background .3s var(--ease); }
.cinfo__ico .ico { width: 24px; height: 24px; color: var(--blue-500); fill: currentColor; fill-opacity: 0.08; transition: transform .3s var(--ease), color .3s var(--ease), fill-opacity .3s var(--ease); }
.cinfo__item:hover .cinfo__ico { background: rgba(30,144,255,.18); }
.cinfo__item:hover .cinfo__ico .ico { transform: scale(1.12) rotate(-8deg); color: var(--blue-600); fill-opacity: 0.18; }
.cinfo__item b { font-family: var(--font-head); color: var(--navy-800); display: block; }
.cinfo__item a, .cinfo__item span { color: var(--slate); }
.cform { background: var(--card); border: 1px solid var(--line-d); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy-700); margin-bottom: 8px; font-family: var(--font-head); }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line-d); border-radius: 12px; font-family: var(--font-body); font-size: 15px; color: var(--ink); background: #fbfcff; transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(30,144,255,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14.5px; font-weight: 500; }
.form-note--ok { background: rgba(33,212,253,.12); color: #0a7ea4; border: 1px solid rgba(33,212,253,.3); }
.form-note--err { background: rgba(182,36,59,.10); color: #b6243b; border: 1px solid rgba(182,36,59,.25); }
.map-wrap { margin-top: 60px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-d); box-shadow: var(--shadow-md); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.2); }

/* ---------- Floating buttons ---------- */
.wa-float { position: fixed; bottom: 26px; right: 26px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; z-index: 800; box-shadow: 0 12px 32px rgba(37,211,102,.45); transition: transform .3s var(--ease); animation: floaty 3s ease-in-out infinite; }
.wa-float:hover { transform: scale(1.1); }
.to-top { position: fixed; bottom: 26px; left: 26px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy-800); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; z-index: 800; opacity: 0; visibility: hidden; transform: translateY(20px); transition: .35s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #97a4c2; padding: 80px 0 30px; position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__logo { height: 55px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer__tag { font-family: var(--font-head); color: var(--blue-300); font-weight: 600; margin-bottom: 14px; }
.footer__about { font-size: 14.5px; max-width: 320px; }
.footer__col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer__col ul li { margin-bottom: 12px; }
.footer__col ul a { font-size: 14.5px; transition: color .25s; }
.footer__col ul a:hover { color: var(--blue-300); }
.footer__contact li { margin-bottom: 12px; }
.footer__wa { margin-top: 8px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13.5px; flex-wrap: wrap; gap: 10px; }
.footer__credit { color: var(--blue-300); font-family: var(--font-head); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { height: 380px; }
    .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .section { padding: 80px 0; }
    .nav__menu { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 100px 26px 40px; gap: 4px; transform: translateX(105%); transition: transform .4s var(--ease); box-shadow: -20px 0 60px rgba(10,21,48,.15); }
    .nav__menu.open { transform: translateX(0); }
    .nav__link { padding: 14px 16px; font-size: 16px; border-bottom: 1px solid var(--line-d); border-radius: 0; }
    .nav__link.active::after { display: none; }
    .nav__cta { margin: 14px 0 0; justify-content: center; }
    .nav__toggle { display: flex; z-index: 950; }
    /* On mobile the menu is a white panel — keep its links dark even on dark-hero pages */
    .has-dark-hero .nav:not(.scrolled) .nav__link { color: var(--slate); }
    .has-dark-hero .nav:not(.scrolled) .nav__link:hover,
    .has-dark-hero .nav:not(.scrolled) .nav__link.active { color: var(--blue-500); }
    .has-dark-hero .nav__toggle.open span { background: var(--navy-800); }
    .grid--3, .grid--4, .grid--2, .vm-grid, .timeline { grid-template-columns: 1fr; }
    .svc-block, .roi__grid, .ai-show, .contact-grid, .case { grid-template-columns: 1fr; }
    .ai-show { gap: 20px; }
    .ai-arrow { transform: rotate(90deg); margin: 0 auto; }
    .svc-block:nth-child(even) .svc-block__media, .case:nth-child(even) .case__media { order: 0; }
    .svc-list { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .cta-band, .roi { padding: 44px 26px; }
    .cursor, .cursor-dot { display: none; }
}
@media (max-width: 520px) {
    .stats, .footer__grid { grid-template-columns: 1fr; }
    .field--row { grid-template-columns: 1fr; }
    .hero { padding: 140px 0 70px; }
    .case__stats { flex-wrap: wrap; gap: 18px; }
    .nav__brand img { height: 44px; }
    .nav.scrolled .nav__brand img { height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
