/* =========================================================
   Venturiq — landing page styles
   ========================================================= */

:root {
    /* ─────────────────────────────────────────────
       DESIGN TOKENS — primary semantic definitions
       Slightly desaturated, slightly deeper.
       Bold without the neon.
       ───────────────────────────────────────────── */

    /* Backgrounds */
    --color-bg-base:     #080D18; /* Page background, outermost layer   */
    --color-bg-surface:  #0D1828; /* Cards, nav bar, footer              */
    --color-bg-elevated: #132035; /* Hover state on cards, dropdowns     */
    --color-bg-subtle:   #0A1E32; /* Icon backgrounds, input fields      */

    /* Borders & Dividers */
    --color-border-default: #1A3050; /* Card borders, table lines, dividers */
    --color-border-active:  #1AB0D0; /* Focused inputs, active card border  */
    --color-border-subtle:  #234870; /* Secondary borders, inactive pills   */

    /* Brand Accents */
    --color-accent-primary:       #1AB0D0; /* CTA buttons, active nav, icons     */
    --color-accent-primary-hover: #3ACAE8; /* Hover state on primary button      */
    --color-accent-primary-text:  #03161E; /* Text on top of primary accent      */
    --color-accent-secondary:     #2B7FCC; /* Links, secondary buttons           */
    --color-accent-tertiary:      #4A90C4; /* Inactive nav, filter tab labels    */

    /* Typography */
    --color-text-heading:   #FFFFFF; /* All headings, H1–H4                */
    --color-text-body:      #C0D4E8; /* All body copy and paragraph text   */
    --color-text-secondary: #6A94B8; /* Labels, captions, metadata         */
    --color-text-muted:     #355878; /* Placeholder text, disabled states  */

    /* RGB channel values — required before any rgba() references below */
    --color-accent-primary-rgb:   26, 176, 208;
    --color-accent-secondary-rgb: 43, 127, 204;
    --color-bg-base-rgb:          8, 13, 24;
    --color-bg-surface-rgb:       13, 24, 40;
    --color-bg-elevated-rgb:      19, 32, 53;

    /* Interactive States */
    --color-state-ghost:    rgba(var(--color-accent-primary-rgb), 0.12); /* Ghost button fill, selected row bg */
    --color-state-pressed:  #0A7A96;                  /* Active/pressed primary button      */
    --color-state-inactive: #0A2840;                  /* Inactive tab bg, unselected pill   */

    /* ─────────────────────────────────────────────
       SHORTHAND ALIASES — all existing CSS unchanged
       ───────────────────────────────────────────── */

    --bg:         var(--color-bg-base);
    --bg-2:       var(--color-bg-surface);
    --bg-3:       var(--color-bg-elevated);
    --surface:    var(--color-bg-surface);
    --bg-subtle:  var(--color-bg-subtle);

    --line:        var(--color-border-default);
    --line-active: var(--color-border-active);
    --line-subtle: var(--color-border-subtle);

    --accent:       var(--color-accent-primary);
    --accent-hover: var(--color-accent-primary-hover);
    --accent-text:  var(--color-accent-primary-text);
    --accent-2:     var(--color-accent-secondary);
    --accent-3:     var(--color-accent-tertiary);
    --accent-glow:  rgba(var(--color-accent-primary-rgb), 0.35);

    --text:           var(--color-text-heading);
    --text-dim:       var(--color-text-body);
    --text-secondary: var(--color-text-secondary);
    --muted:          var(--color-text-muted);

    --state-ghost:    var(--color-state-ghost);
    --state-pressed:  var(--color-state-pressed);
    --state-inactive: var(--color-state-inactive);

    /* ─────────────────────────────────────────────
       LAYOUT & MISC
       ───────────────────────────────────────────── */
    --success:    #3ddc97;
    --radius:     14px;
    --radius-lg:  22px;
    --container:  1200px;
    --shadow-lg:  0 30px 80px -20px rgba(0, 0, 0, 0.6);
    --transition: 0.25s ease;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', var(--font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 16px;
}

h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--text-dim); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    padding: 6px 14px;
    border: 1px solid rgba(var(--color-accent-primary-rgb), 0.35);
    border-radius: 999px;
    margin-bottom: 18px;
    background: rgba(var(--color-accent-primary-rgb), 0.08);
}

.accent {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(var(--color-bg-base-rgb), 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition);
}
.site-header.scrolled {
    border-bottom-color: var(--line);
    background: rgba(var(--color-bg-base-rgb), 0.9);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.brand-logo { width: 150px; height: 32px; }
.brand-name { font-size: 1.15rem; letter-spacing: -0.01em; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
    font-size: 0.94rem;
    color: var(--text-dim);
    transition: color var(--transition);
    position: relative;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.nav-cta {
    padding: 10px 18px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
}
.main-nav a.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--accent-glow); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 18px 40px -16px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -16px var(--accent-glow); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: radial-gradient(ellipse at top, #0d2035 0%, var(--bg) 60%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}
.hero-video.ready { opacity: 0.55; }

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: 0;
    transition: opacity 0.6s ease;
}
/* When a real video is playing, fade the canvas out */
.hero.has-video .hero-canvas { opacity: 0; }

.hero-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(var(--color-bg-base-rgb),0) 0%, rgba(var(--color-bg-base-rgb),0.2) 65%, rgba(var(--color-bg-base-rgb),0.65) 100%),
        linear-gradient(180deg, rgba(var(--color-bg-base-rgb),0) 0%, rgba(var(--color-bg-base-rgb),0.45) 100%);
    z-index: 2;
    pointer-events: none;
}
.hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 0;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    z-index: 1;
    mix-blend-mode: screen;
}
.orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -120px; left: -120px;
}
.orb-2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
    top: 60px; right: -140px;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    z-index: 1;
}
.hero-inner { position: relative; text-align: center; z-index: 3; }
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}
.hero-sub {
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: 1.08rem;
    color: var(--text-dim);
}
.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 72px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 36px;
    background: rgba(var(--color-bg-surface-rgb), 0.55);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(5px);
}
.stat-value {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.stat-label {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ---------- Logos marquee ---------- */
.logos {
    padding: 60px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}
.logos::before,
.logos::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}
.logos::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-2) 0%, rgba(var(--color-bg-surface-rgb),0) 100%);
}
.logos::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-2) 0%, rgba(var(--color-bg-surface-rgb),0) 100%);
}
.logos-title {
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 36px;
}
.logos-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.logos-track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: marquee 45s linear infinite;
    will-change: transform;
}
.logos-marquee:hover .logos-track {
    animation-play-state: paused;
}
.logo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    opacity: 0.85;
    transition: opacity var(--transition), color var(--transition), transform var(--transition);
    flex-shrink: 0;
}
.logo-svg {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-svg svg {
    width: 30px;
    height: 30px;
}
.logo-item:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-2px);
}
.logo-item svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: filter var(--transition);
}
.logo-item:hover svg {
    filter: drop-shadow(0 0 8px rgba(var(--color-accent-primary-rgb), 0.6));
}
.logo-item span {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 1rem;
    white-space: nowrap;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .logos-track { animation: none; }
}

/* ---------- Generic section ---------- */
.section { padding: 110px 0; position: relative; }
.section-dark { background: var(--bg-2); }
.section-head {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}
.section-lead { font-size: 1.05rem; color: var(--text-dim); }

/* ---------- Services grid ---------- */
/* ── Homepage Service Cards ── */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease,
                background 0.25s ease, box-shadow 0.25s ease;
}

/* Top gradient accent line */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

/* Radial glow from top centre */
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse at top, rgba(var(--color-accent-primary-rgb),0.07) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover {
    background: var(--bg-3);
    border-color: var(--line-active);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px -16px rgba(var(--color-accent-primary-rgb), 0.18);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; }

/* Number badge chip */
.sc-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(var(--color-accent-primary-rgb), 0.12);
    border: 1px solid rgba(var(--color-accent-primary-rgb), 0.45);
    border-radius: 6px;
    padding: 3px 8px;
    letter-spacing: 0.1em;
    line-height: 1.5;
    z-index: 2;
}

/* Illustration panel */
.sc-illus {
    position: relative;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding-top: 34px;
}

.sc-illus-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Card body */
.sc-body {
    padding: 20px 22px 28px;
    position: relative;
    z-index: 1;
}

.sc-body h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.sc-body p {
    font-size: 0.906rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin: 0;
}


/* ---------- Industries ---------- */
.section-industries { position: relative; overflow: hidden; }
.section-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}
.section-industries .container { position: relative; z-index: 1; }

.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.industry-card {
    padding: 24px 24px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Left accent border — slides in on hover */
.industry-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

/* Cursor-following spotlight */
.industry-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 180px at var(--mx, 50%) var(--my, 40%),
        rgba(var(--color-accent-primary-rgb),0.12) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.industry-card:hover,
.industry-card.reveal.visible:hover {
    border-color: var(--line-active);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -14px rgba(var(--color-accent-primary-rgb),0.14);
}

.industry-card:hover::before { opacity: 1; }
.industry-card:hover::after  { opacity: 1; }

/* Category pill */
.ind-pill {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 3px 9px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.industry-card:hover .ind-pill {
    color: var(--accent);
    border-color: rgba(var(--color-accent-primary-rgb),0.5);
    background: rgba(var(--color-accent-primary-rgb),0.08);
}

.industry-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.industry-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}

/* ---------- Industry stats strip ---------- */
.ind-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 64px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.ind-stat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    border-right: 1px solid var(--line);
    text-align: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: background 0.25s ease;
}

.ind-stat-cell:last-child {
    border-right: none;
}

/* Cursor-following spotlight */
.ind-stat-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 120px at var(--mx, 50%) var(--my, 50%),
        rgba(var(--color-accent-primary-rgb),0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ind-stat-cell:hover {
    background: rgba(var(--color-accent-primary-rgb),0.04);
}

.ind-stat-cell:hover::after {
    opacity: 1;
}

.ind-stat-val {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.ind-stat-cell:hover .ind-stat-val {
    color: var(--accent-hover);
    text-shadow: 0 0 20px rgba(var(--color-accent-primary-rgb),0.4);
}

.ind-stat-lbl {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    transition: color 0.25s ease;
}

.ind-stat-cell:hover .ind-stat-lbl {
    color: var(--text);
}

/* ---------- Process ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    perspective: 1600px;
    padding: 20px 0 0;
}
.process-card {
    position: relative;
    padding: 42px 28px 34px;
    background:
        linear-gradient(160deg, rgba(var(--color-bg-elevated-rgb), 0.95) 0%, rgba(var(--color-bg-surface-rgb), 0.6) 100%);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    isolation: isolate;
    transform-style: preserve-3d;
    transform: translateY(0) rotateX(0);
    transition:
        transform 0.6s cubic-bezier(0.2, 0.85, 0.25, 1),
        border-color 0.4s ease,
        box-shadow 0.5s ease;
}
/* All cards sit at the same level — no zig-zag */

/* Diagonal light sweep across the card on hover */
.process-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(var(--color-accent-secondary-rgb), 0.15) 48%,
        rgba(var(--color-accent-primary-rgb), 0.20) 52%,
        transparent 70%);
    transform: translateX(-110%);
    transition: transform 0.9s cubic-bezier(0.2, 0.85, 0.25, 1);
    pointer-events: none;
    z-index: 1;
}
.process-card:hover::before { transform: translateX(110%); }

/* Subtle dotted pattern behind the content */
.process-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.process-card:hover {
    transform: translateY(-10px) rotateX(4deg);
    border-color: rgba(var(--color-accent-primary-rgb), 0.5);
    box-shadow:
        0 30px 60px -28px rgba(var(--color-accent-primary-rgb), 0.55),
        0 0 0 1px rgba(var(--color-accent-primary-rgb), 0.25);
}
.process-card:nth-child(even):hover {
    transform: translateY(-10px) rotateX(4deg);
}

/* Giant translucent step-number watermark */
.process-watermark {
    position: absolute;
    top: -18px;
    right: -8px;
    font-family: var(--font-display);
    font-size: 9rem;
    font-weight: 800;
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: 1;
    transition: -webkit-text-stroke-color 0.5s ease, transform 0.6s ease;
}
.process-card:hover .process-watermark {
    -webkit-text-stroke-color: rgba(var(--color-accent-primary-rgb), 0.45);
    transform: translate(-4px, 4px);
}

/* Icon badge with a rotating ring */
.process-icon {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
    background: linear-gradient(135deg, rgba(var(--color-accent-primary-rgb), 0.18), rgba(var(--color-accent-secondary-rgb), 0.18));
    border: 1px solid rgba(var(--color-accent-primary-rgb), 0.4);
    color: var(--accent);
    z-index: 2;
    transition:
        transform 0.6s cubic-bezier(0.2, 0.85, 0.25, 1),
        box-shadow 0.5s ease,
        background 0.5s ease;
}
.process-icon svg {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 2;
    transition: stroke 0.4s ease, transform 0.6s ease;
}
.process-icon-ring {
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    border: 1.5px dashed rgba(var(--color-accent-primary-rgb), 0.35);
    opacity: 0;
    animation: spin 14s linear infinite;
    transition: opacity 0.4s ease;
}
.process-card:hover .process-icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow:
        0 14px 34px -14px rgba(var(--color-accent-primary-rgb), 0.7),
        inset 0 0 20px rgba(var(--color-accent-secondary-rgb), 0.18);
    background: linear-gradient(135deg, rgba(var(--color-accent-primary-rgb), 0.3), rgba(var(--color-accent-secondary-rgb), 0.3));
}
.process-card:hover .process-icon svg {
    transform: scale(1.08);
}
.process-card:hover .process-icon-ring {
    opacity: 1;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Phase pill */
.process-pill {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(var(--color-accent-primary-rgb), 0.08);
    border: 1px solid rgba(var(--color-accent-primary-rgb), 0.3);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}
.process-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

/* Active / current phase card */
.process-card--active {
    border-color: rgba(var(--color-accent-primary-rgb), 0.6);
    box-shadow:
        0 0 0 1px rgba(var(--color-accent-primary-rgb), 0.25),
        0 20px 50px -20px rgba(var(--color-accent-primary-rgb), 0.35);
}
.process-card--active h3 {
    color: var(--accent);
}
.process-card p {
    font-size: 0.92rem;
    margin-bottom: 26px;
    position: relative;
    z-index: 2;
}

/* Progress bar — cursor-driven via JS (scaleX tracks mouse X across the card) */
.process-bar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    z-index: 2;
}
.process-bar span {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left center;
    /* transition is set inline by JS for enter/leave vs tracking */
}

@media (max-width: 960px) {
    .process-card:nth-child(even):hover { transform: translateY(-10px) rotateX(4deg); }
}
@media (prefers-reduced-motion: reduce) {
    .process-card,
    .process-card::before,
    .process-icon,
    .process-icon svg,
    .process-bar span,
    .process-watermark { transition: none; }
    .process-icon-ring { animation: none; }
}

/* ---------- Process tracker ---------- */
/*
 * 4-col grid. Column centres: 12.5% | 37.5% | 62.5% | 87.5%
 * One ::before on the container draws the full line left: 12.5%, right: 12.5%
 * A linear-gradient switches from teal (completed: node1→node2)
 * to muted (pending: node2→end) at exactly 33.33% of the line length
 * (node2 = 25% into the 75%-wide line → 25/75 = 33.33%).
 * Pending node bg matches section bg so the circle "cuts" through the line.
 */
.process-tracker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    margin-top: 48px;
    padding: 18px 0 6px;
}

/* Base muted connector line — full width, always visible */
.process-tracker::before {
    content: '';
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: var(--line-subtle);
    z-index: 1;
}

/* Animated teal fill — width driven by JS based on hovered card */
.tracker-fill-line {
    position: absolute;
    left: 12.5%;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    width: 25%; /* default: node 1 → node 2 (37.5% - 12.5% = 25% of container) */
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2; /* above the muted base line, below nodes */
    pointer-events: none;
}

.tracker-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

/* Pending node — hollow circle, bg matches section so it "cuts" the line */
.tracker-node {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--line-subtle);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
}
.tracker-node svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* By default show number, hide check */
.tracker-check { display: none; }
.tracker-num   { display: block; }

/* When node is done: show check, hide number */
.tracker-done .tracker-check { display: block; }
.tracker-done .tracker-num   { display: none; }

/* Completed node — teal filled with glow */
.tracker-done .tracker-node {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
    box-shadow:
        0 0 0 6px rgba(var(--color-accent-primary-rgb), 0.15),
        0 0 24px rgba(var(--color-accent-primary-rgb), 0.45);
}

@media (max-width: 960px) {
    .process-tracker { display: none; }
}

/* ---------- Case studies ---------- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.case-card {
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-3);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--color-accent-primary-rgb),0.45);
    box-shadow: 0 20px 50px -16px rgba(0,0,0,0.5);
}
.case-card-img {
    width: calc(100% - 24px);
    height: 200px;
    overflow: hidden;
    margin: 12px 12px 0;
    border-radius: 0;
}
.case-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.case-card:hover .case-card-img img { transform: scale(1.06); }
.case-card-body {
    padding: 32px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.case-card-body p { flex: 1; }
.case-card-body .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    transition: color var(--transition), transform var(--transition);
}
.case-card-body .card-link:hover {
    color: var(--accent-hover);
    transform: translateX(3px);
}
.case-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 4px 12px;
    border: 1px solid rgba(var(--color-accent-primary-rgb),0.35);
    border-radius: 999px;
    margin-bottom: 18px;
    align-self: flex-start;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-points { margin-top: 20px; }
.about-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    color: var(--text-dim);
    border-bottom: 1px solid var(--line);
}
.about-points li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 8px;
}
.about-points li:last-child { border-bottom: 0; }
.about-points strong { color: var(--text); }

.about-visual { position: relative; }
.about-img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.about-card {
    padding: 6px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.about-card-inner {
    background: var(--bg-3);
    border-radius: calc(var(--radius-lg) - 6px);
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.about-metric {
    font-size: 0.88rem;
    color: var(--text-dim);
}
.about-metric span {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}

/* ---------- CTA / contact ---------- */
.cta-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at top, #0d2035 0%, var(--bg) 60%);
    border-top: 1px solid var(--line);
}
.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.cta-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.cta-form {
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.cta-form label {
    display: block;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}
.cta-form input,
.cta-form textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}
.cta-form input:focus,
.cta-form textarea:focus {
    outline: none;
    border-color: var(--line-active);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-primary-rgb), 0.2);
}
.cta-form input::placeholder,
.cta-form textarea::placeholder {
    color: var(--muted);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-success {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(61, 220, 151, 0.12);
    border: 1px solid rgba(61, 220, 151, 0.4);
    color: var(--success);
    font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 80px 0 30px;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--line);
}
.footer-brand p { margin-top: 16px; max-width: 320px; font-size: 0.92rem; }
.footer-col h4 {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}
.footer-col ul li {
    margin-bottom: 10px;
    color: var(--text-dim);
    font-size: 0.92rem;
}
.footer-col ul li a { transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Contact decoration ---------- */
.contact-decoration {
    position: absolute;
    right: -60px;
    bottom: -40px;
    width: 420px;
    opacity: 0.12;
    pointer-events: none;
    filter: blur(1px);
}

/* ---------- Trust accreditation ---------- */
.trust-accreditation {
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--muted);
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ---------- Footer extras ---------- */
.footer-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
    opacity: 0.7;
}
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}
.footer-social:hover { color: var(--accent); }
.footer-certs {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Button extras ---------- */
.btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
}
.btn-full {
    width: 100%;
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .service-grid,
    .industry-grid,
    .case-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .ind-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .ind-stat-cell:nth-child(2) { border-right: none; }
    .ind-stat-cell:nth-child(3) { border-right: 1px solid var(--line); }
    .ind-stat-cell:nth-child(1),
    .ind-stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .about-grid,
    .cta-inner { grid-template-columns: 1fr; }
    .about-visual { margin-top: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-decoration { width: 280px; right: -40px; bottom: -20px; }
}

@media (max-width: 720px) {
    .main-nav {
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: var(--bg-2);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        transform: translateY(-120%);
        transition: transform var(--transition);
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav a {
        width: 100%;
        padding: 14px 24px;
        border-bottom: 1px solid var(--line);
    }
    .main-nav a.nav-cta { margin: 12px 24px; text-align: center; }
    .nav-toggle { display: flex; }

    .hero { padding: 130px 0 80px; }
    .section { padding: 80px 0; }
    .service-grid,
    .industry-grid,
    .case-grid,
    .process-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .about-card-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-certs { gap: 16px; font-size: 0.75rem; }
    .logos-row { justify-content: center; gap: 20px; }
    .contact-decoration { display: none; }
    .case-card-img { height: 160px; }
}

/* ===== NAV DROPDOWN ===== */

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 72px;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.94rem;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
    transition: color var(--transition);
    line-height: 1;
}

.nav-dropdown-trigger:hover { color: var(--text); }

.dd-chevron { transition: transform var(--transition); flex-shrink: 0; }

.nav-dropdown:hover .dd-chevron,
.nav-dropdown.open .dd-chevron { transform: rotate(180deg); }

/* ---- Full-width mega menu panel ---- */
.nav-dropdown-panel {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0;
    background: var(--bg-2);
    border: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 200;
    box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.65);
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.open .nav-dropdown-panel {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.nav-dropdown-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 36px 48px;
    text-decoration: none;
    color: var(--text);
    transition: background var(--transition);
    border-radius: 0;
}

.nav-dropdown-item:hover { background: rgba(var(--color-accent-primary-rgb), 0.05); }

.nav-dropdown-item + .nav-dropdown-item {
    border-left: 1px solid var(--line);
}

.ddi-icon {
    width: 40px;
    height: 40px;
    background: var(--state-ghost);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.ddi-icon svg {
    width: 22px;
    height: 22px;
}

.ddi-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.ddi-sub {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 240px;
}

/* ===== SERVICE DETAIL PAGES ===== */

.svc-hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: var(--bg);
}

.svc-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.svc-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.svc-hero-text {
    min-width: 0;
}

/* ── Hero Visual Dashboard Card ── */
.svc-hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-vis-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    box-shadow:
        0 32px 80px -24px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(var(--color-accent-primary-rgb), 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: hvc-float 6s ease-in-out infinite;
}

@keyframes hvc-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* Top bar */
.hvc-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-3);
}

.hvc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hvc-dot--r { background: #FF5F57; }
.hvc-dot--y { background: #FEBC2E; }
.hvc-dot--g { background: #28C840; }

.hvc-bar-label {
    margin-left: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0.55;
    letter-spacing: 0.03em;
    flex: 1;
}

.hvc-live {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: #28C840;
    letter-spacing: 0.05em;
    margin-left: auto;
}

/* Diagram area */
.hvc-diagram {
    padding: 20px 24px 16px;
}

.hvc-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Animated dashed connection lines */
@keyframes hvc-dash {
    to { stroke-dashoffset: -36; }
}
.hvc-line        { animation: hvc-dash 2s linear infinite; }
.hvc-line--2     { animation-delay: -0.67s; }
.hvc-line--3     { animation-delay: -1.33s; }

/* Pulsing outer ring on orchestrator node */
.hvc-node-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: hvc-node-pulse 2.6s ease-in-out infinite;
}
@keyframes hvc-node-pulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(1.18); }
}

/* Metrics row */
.hvc-metrics {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--line);
}

.hvc-metric {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hvc-sep {
    width: 1px;
    height: 52px;
    background: var(--line);
    flex-shrink: 0;
}

.hvc-metric-val {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.hvc-metric-lbl {
    font-size: 0.6rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    opacity: 0.45;
    margin-top: 3px;
    text-transform: uppercase;
}

.hvc-metric-delta {
    font-size: 0.72rem;
    color: var(--accent);
    margin-top: 2px;
}

.svc-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin: 12px 0 22px;
    letter-spacing: -0.02em;
}

.svc-hero-title .accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.svc-hero-sub {
    font-size: 1.08rem;
    color: var(--text-dim);
    max-width: 640px;
    line-height: 1.75;
    margin-bottom: 36px;
}

/* What We Do grid */

/* ── Capabilities Grid ── */
.svc-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.svc-detail-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                border-color 0.25s ease, background 0.25s ease;
}

/* Top gradient accent line (fades in on hover) */
.svc-detail-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

/* Radial glow from top centre */
.svc-detail-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse at top, rgba(var(--color-accent-primary-rgb),0.07) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.svc-detail-card:hover {
    background: var(--bg-3);
    border-color: var(--line-active);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px -16px rgba(var(--color-accent-primary-rgb), 0.18);
}

.svc-detail-card:hover::before { opacity: 1; }
.svc-detail-card:hover::after  { opacity: 1; }

/* Illustration panel */
.sdc-illus {
    position: relative;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.sdc-illus-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Small number badge top-left of illustration */
.sdc-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(var(--color-accent-primary-rgb), 0.07);
    border: 1px solid rgba(var(--color-accent-primary-rgb), 0.28);
    border-radius: 4px;
    padding: 2px 7px;
    letter-spacing: 0.08em;
    z-index: 2;
    line-height: 1.6;
}

/* Card body */
.sdc-body {
    padding: 20px 22px 28px;
    position: relative;
    z-index: 1;
}

.sdc-body h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.sdc-body p {
    font-size: 0.906rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin: 0;
}

/* Icon chip (kept for compatibility) */
.sdc-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 14px;
    transition: background 0.2s, border-color 0.2s;
}

.svc-detail-card:hover .sdc-icon {
    background: rgba(var(--color-accent-primary-rgb), 0.1);
    border-color: var(--accent);
}

.sdc-icon svg { width: 20px; height: 20px; }

/* Why Venturiq + Business Impact */

.why-impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 80px;
    align-items: start;
}

.why-block h2,
.impact-block h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin: 12px 0 28px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.why-intro {
    font-size: 0.93rem;
    color: var(--text-dim);
    margin-bottom: 16px;
    font-style: italic;
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.why-list li::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    background-color: var(--state-ghost);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' stroke='%231AB0D0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='2,6.5 4.5,9 10,3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
}

/* ===== Responsive — service pages & dropdown ===== */

@media (max-width: 960px) {
    .svc-detail-grid { grid-template-columns: repeat(2, 1fr); }
    .sdc-body h3 { font-size: 0.95rem; }
    .why-impact-grid { grid-template-columns: 1fr; gap: 48px; }
    .svc-hero-inner  { grid-template-columns: 1fr; gap: 48px; }
    .svc-hero-visual { justify-content: center; }
    .hero-vis-card   { max-width: 420px; }
}

@media (max-width: 640px) {
    .svc-hero-visual { display: none; }
}

@media (max-width: 720px) {
    .svc-hero { padding: 120px 0 72px; }
    .svc-detail-grid { grid-template-columns: 1fr; }

    .nav-dropdown {
        height: auto;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-dropdown-trigger {
        width: 100%;
        padding: 14px 24px;
        border-bottom: 1px solid var(--line);
        justify-content: space-between;
        font-size: 1rem;
    }

    /* Mobile: panel stacks inline (not fixed), compact row layout */
    .nav-dropdown-panel {
        position: static;
        transform: none !important;
        flex-direction: column;
        width: auto;
        gap: 0;
        border: none;
        border-top: none;
        border-bottom: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: opacity var(--transition), max-height 0.3s ease;
        pointer-events: none;
    }

    .nav-dropdown.open .nav-dropdown-panel {
        opacity: 1;
        max-height: 500px;
        pointer-events: all;
    }

    .nav-dropdown-item {
        flex: none;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 14px 24px;
        border-radius: 0;
        border-left: none !important;
        border-top: 1px solid var(--line);
    }

    .nav-dropdown-item + .nav-dropdown-item { border-top: 1px solid var(--line); }

    .ddi-icon { width: 32px; height: 32px; }

    .ddi-sub { display: none; }
}

/* ===================================================
   SERVICE PAGES — DESIGN ENHANCEMENTS
   =================================================== */

/* --- Hero eyebrow badge --- */
.svc-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--color-accent-primary-rgb), 0.08);
    border: 1px solid rgba(var(--color-accent-primary-rgb), 0.35);
    border-radius: 100px;
    padding: 7px 16px 7px 12px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.svc-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    animation: svc-pulse 2.4s ease-in-out infinite;
}

@keyframes svc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.6); }
}

/* Two-tone hero title — .accent already has gradient via existing rule */

.svc-hero-sub2 {
    font-size: 0.97rem;
    opacity: 0.72;
    margin-top: -10px;
    margin-bottom: 0;
}

.svc-hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 38px;
}

.svc-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* --- Capability cards: numbered watermark + left-border reveal --- */

/* Staggered reveal */
.svc-detail-card.reveal {
    transition-delay: calc(var(--card-i, 0) * 0.055s);
}

/* Ghost numeral bottom-right */
.sdc-num {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.05;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    letter-spacing: -0.05em;
    transition: opacity var(--transition);
    z-index: 0;
}

.svc-detail-card:hover .sdc-num { opacity: 0.1; }

/* --- Why Venturiq + Business Impact feature rows --- */

.svc-why-wrap {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 72px;
    align-items: start;
}

.svc-why-sep {
    background: var(--line);
    align-self: stretch;
    margin-top: 16px;
}

.svc-why-header { margin-bottom: 36px; }

.svc-why-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 700;
    color: var(--text);
    margin: 10px 0 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.svc-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.svc-feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.94rem;
    color: var(--text-dim);
    line-height: 1.65;
    transition: color var(--transition), padding-left var(--transition);
}

.svc-feature-item:first-child { border-top: 1px solid var(--line); }

.svc-feature-item:hover {
    color: var(--text);
    padding-left: 4px;
}

.sfi-check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(var(--color-accent-primary-rgb), 0.08);
    border: 1px solid rgba(var(--color-accent-primary-rgb), 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-top: 1px;
}

.sfi-impact {
    background: rgba(61, 220, 151, 0.07);
    border-color: rgba(61, 220, 151, 0.28);
    color: var(--success);
}

.svc-impact-intro {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0;
    padding-bottom: 4px;
}

/* --- Responsive overrides --- */

@media (max-width: 960px) {
    .svc-why-wrap { grid-template-columns: 1fr; gap: 52px; }
    .svc-why-sep { display: none; }
}

@media (max-width: 720px) {
    .svc-hero-actions { gap: 10px; }
    .svc-hero-actions .btn-ghost { font-size: 0.85rem; }
    .svc-why-header h2 { font-size: 1.6rem; }
    .sdc-num { font-size: 2rem; }
}

/* Default state mein error message chupa rahega */
.error-text {
    display: none;
    color: #ef4444; /* Professional Red color */
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

/* Invalid class aane par red border aur shadow */
.validate-input.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Invalid class hone par uske niche wala error text dikhne lagega */
.validate-input.is-invalid + .error-text {
    display: block;
}
/* Container ko top-right fix karna */
.custom-toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Toast ka base design */
.custom-toast {
    background: #ffffff;
    color: #1e293b;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    cursor: pointer;
    border-left: 6px solid #10b981; /* Default Green for success */
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Error toast ke liye red border */
.custom-toast.toast-error {
    border-left-color: #ef4444; 
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    margin-left: 15px;
    line-height: 1;
}

.custom-toast:hover .toast-close {
    color: #0f172a;
}

/* Slide in animation */
@keyframes slideInRight {
    0% { transform: translateX(120%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Fade out animation (JS ke liye) */
.toast-fade-out {
    transform: translateX(120%);
    opacity: 0;
}