/* ============================================================
   DataPulse Consulting — v3 design system
   Modern AI-tech dark · cyan→blue gradient accent
   ============================================================ */

:root {
    --bg: #05070f;
    --bg-2: #090d1a;
    --bg-3: #0d1424;
    --surface: rgba(15, 22, 40, 0.72);
    --surface-solid: #0e1526;
    --border: rgba(140, 160, 220, 0.14);
    --border-strong: rgba(140, 160, 220, 0.28);
    --text: #edf1fb;
    --text-soft: #b8c1d9;
    --muted: #8b96b3;
    --faint: #5d6884;
    --cyan: #07c8ee;
    --blue: #347afd;
    --grad: linear-gradient(100deg, #07c8ee, #347afd);
    --grad-soft: linear-gradient(100deg, rgba(7, 200, 238, 0.14), rgba(52, 122, 253, 0.14));
    --radius: 16px;
    --radius-sm: 10px;
    --font-display: "Space Grotesk", "Inter", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: rgba(52, 122, 253, 0.4); }

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

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p  { color: var(--text-soft); }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.kicker::before {
    content: "";
    width: 26px; height: 1px;
    background: var(--grad);
    display: inline-block;
}

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { margin-top: 16px; font-size: 1.08rem; color: var(--muted); }

/* ---------- nav ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(5, 7, 15, 0.78);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.nav-logo img { height: 34px; display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
    color: var(--text-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
    padding: 14px 26px; border-radius: 12px; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    cursor: pointer; border: none;
}
.btn-primary {
    background: var(--grad); color: #fff;
    box-shadow: 0 4px 24px rgba(20, 140, 250, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(20, 140, 250, 0.5); }
.btn-ghost {
    background: rgba(140, 160, 220, 0.08); color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(140, 160, 220, 0.14); border-color: rgba(140, 160, 220, 0.45); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; border-radius: 10px; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding: 190px 0 90px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -2;
    background-image:
        linear-gradient(rgba(140, 160, 220, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 160, 220, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
}
.hero-glow {
    position: absolute; z-index: -1;
    width: 780px; height: 780px; border-radius: 50%;
    top: -320px; left: 50%; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(52, 122, 253, 0.22) 0%, rgba(7, 200, 238, 0.08) 40%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}
.hero-content { max-width: 860px; }
.hero h1 { margin-bottom: 26px; }
.hero-sub {
    font-size: 1.22rem; color: var(--muted); max-width: 620px;
    margin-bottom: 40px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }

.pulse-line { display: block; width: min(560px, 90%); height: 56px; margin: 8px 0 4px; overflow: visible; }
.pulse-line path {
    fill: none; stroke: url(#pulseGrad); stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 900; stroke-dashoffset: 900;
    animation: drawPulse 3.2s ease-out forwards, glowPulse 3s ease-in-out 3.2s infinite;
}
@keyframes drawPulse { to { stroke-dashoffset: 0; } }
@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(7, 200, 238, 0.4)); }
    50% { filter: drop-shadow(0 0 10px rgba(52, 122, 253, 0.8)); }
}

/* ---------- stat tiles ---------- */
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    margin-top: 60px;
}
.stat-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    backdrop-filter: blur(8px);
}
.stat-tile .num {
    font-family: var(--font-display); font-size: 2.1rem; font-weight: 700;
    background: var(--grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    line-height: 1.1;
}
.stat-tile .lbl { font-size: 0.86rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* ---------- marquee ---------- */
.marquee-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 26px 0;
    overflow: hidden;
    position: relative;
    background: var(--bg-2);
}
.marquee-wrap::before, .marquee-wrap::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.marquee { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee span {
    font-family: var(--font-mono); font-size: 0.88rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--faint); white-space: nowrap;
    padding: 0 34px; position: relative;
}
.marquee span::after {
    content: "·"; position: absolute; right: -6px; color: var(--cyan);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- tech stack ---------- */
.stack-rows { display: flex; flex-direction: column; gap: 22px; }
.stack-row { display: flex; align-items: baseline; gap: 24px; }
.stack-row .stack-label {
    flex: 0 0 190px;
    font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--cyan);
}
.stack-row .stack-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-pills span {
    font-size: 0.88rem; font-weight: 500; color: var(--text-soft);
    padding: 7px 15px; border-radius: 999px;
    border: 1px solid var(--border-strong); background: rgba(140, 160, 220, 0.06);
    transition: border-color 0.2s, color 0.2s;
}
.stack-pills span:hover { border-color: var(--cyan); color: var(--text); }
@media (max-width: 760px) {
    .stack-row { flex-direction: column; gap: 10px; }
    .stack-row .stack-label { flex: none; }
}

/* ---------- client logo strip ---------- */
.logo-strip { padding: 54px 0 10px; text-align: center; }
.logo-strip .strip-label {
    font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--faint); margin-bottom: 30px;
}
.logo-strip .logos {
    display: flex; align-items: center; justify-content: center;
    gap: 48px; flex-wrap: wrap;
}
.logo-strip img {
    height: 58px; width: auto; max-width: 150px; object-fit: contain;
    background: #f4f6fb; padding: 8px 16px; border-radius: 10px;
    opacity: 0.85; transition: opacity 0.2s, transform 0.2s;
}
.logo-strip img:hover { opacity: 1; transform: translateY(-2px); }

/* ---------- testimonials ---------- */
.testimonial { display: flex; flex-direction: column; gap: 20px; }
.testimonial .quote-mark {
    font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 0.6;
    background: var(--grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.testimonial blockquote {
    font-size: 1.02rem; color: var(--text-soft); line-height: 1.7; font-style: normal;
}
.testimonial .attrib { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.testimonial .attrib .name { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.testimonial .attrib .role { font-size: 0.85rem; color: var(--muted); }

/* ---------- cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 30px;
    position: relative;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    backdrop-filter: blur(8px);
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 122, 253, 0.45);
    box-shadow: 0 12px 40px rgba(10, 40, 120, 0.35);
}
.card .idx {
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan);
    letter-spacing: 0.14em; margin-bottom: 18px; display: block;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.98rem; color: var(--muted); }
.card ul { list-style: none; margin-top: 18px; }
.card ul li {
    font-size: 0.92rem; color: var(--text-soft); padding: 5px 0 5px 24px; position: relative;
}
.card ul li::before {
    content: ""; position: absolute; left: 0; top: 13px;
    width: 12px; height: 2px; background: var(--grad); border-radius: 2px;
}
.card .card-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 22px; font-weight: 600; font-size: 0.93rem;
    color: var(--cyan); text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; }

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

/* ---------- case studies ---------- */
.case-card { display: flex; flex-direction: column; gap: 16px; }
.case-tag {
    align-self: flex-start;
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--cyan);
    background: rgba(7, 200, 238, 0.09);
    border: 1px solid rgba(7, 200, 238, 0.25);
    padding: 5px 12px; border-radius: 999px;
}
.case-metrics { display: flex; gap: 28px; }
.case-metrics .m .v {
    font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
    background: var(--grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    line-height: 1.15;
}
.case-metrics .m .k { font-size: 0.82rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.case-card > p { font-size: 0.94rem; }

/* ---------- process ---------- */
.process-step { position: relative; padding-left: 0; }
.process-step .step-num {
    font-family: var(--font-display); font-size: 3rem; font-weight: 700;
    background: var(--grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    opacity: 0.85; line-height: 1; margin-bottom: 18px;
}
.process-step h3 { margin-bottom: 10px; }
.process-step p { font-size: 0.97rem; color: var(--muted); }
.process-step .deliv {
    margin-top: 18px; padding: 14px 18px;
    background: var(--grad-soft);
    border: 1px solid rgba(52, 122, 253, 0.22);
    border-radius: var(--radius-sm);
    font-size: 0.88rem; color: var(--text-soft);
}
.process-step .deliv strong { color: var(--text); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden;
    border-top: 1px solid var(--border);
    padding: 120px 0;
    text-align: center;
    background: var(--bg-2);
}
.cta-band::before {
    content: ""; position: absolute; left: 50%; bottom: -320px; transform: translateX(-50%);
    width: 720px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 122, 253, 0.25), rgba(7, 200, 238, 0.08) 45%, transparent 70%);
    filter: blur(24px); pointer-events: none;
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 36px; color: var(--muted); font-size: 1.08rem; }
.cta-band .email-line { margin-top: 26px; font-size: 0.95rem; color: var(--faint); }
.cta-band .email-line a { color: var(--text-soft); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.cta-band .email-line a:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 40px;
    background: var(--bg);
}
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand .tag { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--faint); text-transform: uppercase; }
.footer-col h4 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--font-mono); font-weight: 500; }
.footer-col a, .footer-col span { display: block; color: var(--text-soft); text-decoration: none; font-size: 0.92rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
    margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
    font-size: 0.84rem; color: var(--faint);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- services page ---------- */
.page-hero { padding: 180px 0 70px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 20px; }
.page-hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

.service-jump {
    display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px;
}
.service-jump a {
    font-size: 0.9rem; font-weight: 500; color: var(--text-soft); text-decoration: none;
    padding: 10px 18px; border-radius: 999px;
    border: 1px solid var(--border-strong); background: rgba(140, 160, 220, 0.06);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.service-jump a:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(7, 200, 238, 0.07); }

.service-block { padding: 90px 0; border-top: 1px solid var(--border); }
.service-block .svc-label {
    font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; display: block;
}
.service-block h2 { margin-bottom: 14px; }
.service-block .svc-tagline { font-size: 1.15rem; color: var(--text-soft); max-width: 700px; margin-bottom: 34px; font-weight: 500; }
.svc-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }
.svc-main h3 { font-size: 1.1rem; margin: 30px 0 12px; color: var(--text); }
.svc-main h3:first-child { margin-top: 0; }
.svc-main p { font-size: 0.99rem; color: var(--muted); margin-bottom: 14px; }
.transform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 10px; }
.transform-card {
    border-radius: var(--radius-sm); padding: 20px 22px; font-size: 0.92rem; line-height: 1.6;
    border: 1px solid var(--border);
}
.transform-card.before { background: rgba(255, 90, 90, 0.05); border-color: rgba(255, 110, 110, 0.18); }
.transform-card.after { background: rgba(7, 200, 238, 0.05); border-color: rgba(7, 200, 238, 0.22); }
.transform-card .t-label {
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
    text-transform: uppercase; display: block; margin-bottom: 10px;
}
.transform-card.before .t-label { color: #ff8080; }
.transform-card.after .t-label { color: var(--cyan); }
.transform-card p { color: var(--text-soft); margin: 0; font-size: 0.92rem; }

.svc-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; }
.side-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
}
.side-box h4 {
    font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; font-weight: 500;
}
.side-box ul { list-style: none; }
.side-box ul li {
    font-size: 0.9rem; color: var(--text-soft); padding: 5px 0 5px 22px; position: relative; line-height: 1.5;
}
.side-box ul li::before {
    content: ""; position: absolute; left: 0; top: 12px;
    width: 10px; height: 2px; background: var(--grad); border-radius: 2px;
}
.svc-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.expect-list { list-style: none; margin-top: 26px; }
.expect-list li {
    padding: 18px 0 18px 40px; position: relative;
    border-bottom: 1px solid var(--border);
    font-size: 0.98rem; color: var(--text-soft);
}
.expect-list li:last-child { border-bottom: none; }
.expect-list li strong { color: var(--text); display: block; margin-bottom: 3px; }
.expect-list li::before {
    content: ""; position: absolute; left: 0; top: 26px;
    width: 18px; height: 2px; background: var(--grad); border-radius: 2px;
}
.calendly-shell {
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 40, 120, 0.35);
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .svc-cols { grid-template-columns: 1fr; }
    .svc-side { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .section { padding: 76px 0; }
    .hero { padding: 150px 0 70px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .transform-grid { grid-template-columns: 1fr; }
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0;
        background: rgba(5, 7, 15, 0.97);
        flex-direction: column; align-items: flex-start;
        padding: 24px 28px 32px; gap: 22px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-130%); transition: transform 0.3s ease;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-toggle { display: block; }
}
@media (max-width: 520px) {
    .grid-4, .stats-row { grid-template-columns: 1fr; }
    .case-metrics { flex-wrap: wrap; gap: 18px; }
}
