/* ============================================================
   EagleIQ — POLISH LAYER (additive, loaded after style.css)
   Design pass guided by ui-ux-pro-max: Aurora-style depth,
   accessibility focus rings, refined micro-interactions,
   premium texture & finish. On-brand navy + electric blue.
   ============================================================ */

/* ---------- 1. Accessibility: visible focus rings (skill priority #1) ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.filter:focus-visible,
.tdot:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--blue-400);
    outline-offset: 3px;
    border-radius: 10px;
}
.section--dark a:focus-visible,
.section--dark .btn:focus-visible { outline-color: var(--cyan); }
/* Don't show the ring on mouse click, only keyboard (focus-visible already handles this) */

/* ---------- 2. Selection + scrollbar (premium finish) ---------- */
::selection { background: rgba(30,144,255,.22); color: var(--navy-900); }
html { scrollbar-color: var(--blue-400) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue-400), var(--cyan)); border-radius: 999px; border: 3px solid #fff; }
.section--dark ::-webkit-scrollbar-thumb { border-color: var(--navy-900); }

/* ---------- 3. Aurora depth on the hero ---------- */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(58% 48% at 14% 8%,  rgba(30,144,255,.20), transparent 60%),
        radial-gradient(52% 46% at 88% 12%, rgba(33,212,253,.16), transparent 60%),
        radial-gradient(60% 55% at 65% 96%, rgba(108,188,255,.14), transparent 62%);
    -webkit-mask-image: linear-gradient(#000 70%, transparent);
    mask-image: linear-gradient(#000 70%, transparent);
}

/* Subtle grid lines behind the hero for a technical, "built by engineers" feel */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(13,27,68,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13,27,68,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000, transparent 75%);
    mask-image: radial-gradient(70% 60% at 50% 35%, #000, transparent 75%);
}

/* ---------- 4. Premium fine-grain texture (very subtle) ---------- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 5. Button micro-interactions ---------- */
.btn { will-change: transform; }
.btn:active { transform: translateY(-1px) scale(.985); }
/* Sheen sweep on primary buttons */
.btn--primary { overflow: hidden; }
.btn--primary::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--ease);
}
.btn--primary:hover::after { left: 130%; }

/* ---------- 6. Nav link: animated underline on hover ---------- */
.nav__link { --u: 0; }
.nav__link::before {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 2px;
    background: var(--grad-blue);
    border-radius: 2px;
    transform: scaleX(var(--u));
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav__link:hover { --u: 1; }
.nav__link.active::before { --u: 1; }
@media (max-width: 860px) { .nav__link::before { display: none; } }

/* ---------- 7. Cards: refined glassmorphism, gradient border & cursor-tracking glow ---------- */
.card, .why-card, .tl-item, .pcard, .bcard, .vm-card {
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    /* Inset shadow border prevents overflow:hidden clipping */
    box-shadow: 
        0 0 0 1px rgba(13, 27, 68, 0.065),
        0 4px 30px rgba(0, 0, 0, 0.01), 
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: none;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 0 0 1px transparent,
        0 24px 60px rgba(30, 144, 255, 0.08), 
        0 8px 16px rgba(10, 21, 48, 0.03);
}

/* Spotlight + Grid Overlay */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(33, 212, 253, 0.18) 0%, rgba(30, 144, 255, 0.06) 50%, transparent 100%),
        linear-gradient(rgba(30, 144, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 144, 255, 0.03) 1px, transparent 1px) !important;
    background-size: 100% 100%, 24px 24px, 24px 24px !important;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
    z-index: 0;
}
.card:hover::before {
    opacity: 1;
}

/* Gradient Border tracking cursor */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: radial-gradient(240px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--blue-500) 0%, var(--cyan) 60%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
    z-index: 2;
}
.card:hover::after {
    opacity: 1;
}

/* Card Icon refinement */
.card__ico {
    background: rgba(30, 144, 255, 0.06);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 4px 10px rgba(30, 144, 255, 0.02);
    border: 1px solid rgba(30, 144, 255, 0.1);
    position: relative;
    z-index: 1;
}
.card:hover .card__ico {
    background: var(--grad-blue);
    transform: translateY(-4px) rotate(-6deg) scale(1.08);
    box-shadow: 0 10px 22px rgba(30, 144, 255, 0.32);
    border-color: transparent;
}

/* Inner content layers to stack on top of the z-index */
.card h3, .card p, .card__link {
    position: relative;
    z-index: 1;
}

/* Add subtle background blobs behind sections containing cards */
section:not(.section--dark):has(.card)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: 
        radial-gradient(45% 45% at 80% 20%, rgba(30, 144, 255, 0.05), transparent 80%),
        radial-gradient(45% 45% at 20% 80%, rgba(33, 212, 253, 0.06), transparent 80%);
}

/* ---------- 8. Eyebrow: subtle shine ---------- */
.eyebrow { box-shadow: inset 0 0 0 1px rgba(30,144,255,.12); backdrop-filter: blur(4px); }

/* ---------- 9. Section rhythm: consistent generous spacing ---------- */
.head { margin-bottom: 68px; }
.head h2 { letter-spacing: -.025em; }

/* ---------- 10. Dashboard (hero visual): glass edge + glow ---------- */
.dash { box-shadow: 0 40px 90px rgba(10,21,48,.28), inset 0 1px 0 rgba(255,255,255,.10); }
.dash::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(33,212,253,.6), transparent 40%, rgba(30,144,255,.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ---------- 11. CTA band: aurora glow both corners ---------- */
.cta-band::before {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(33,212,253,.35), transparent 70%);
    bottom: -120px; left: -60px;
    pointer-events: none;
}

/* ---------- 12. Stats section: aurora backdrop ---------- */
.section--dark { position: relative; overflow: hidden; }
.section--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(45% 60% at 12% 20%, rgba(30,144,255,.22), transparent 60%),
        radial-gradient(40% 55% at 90% 80%, rgba(33,212,253,.18), transparent 60%);
}
.section--dark > .container { position: relative; z-index: 1; }

/* ---------- 13. Links get cursor + smooth everywhere ---------- */
a, button, .filter, .card, .pcard, .tdot { cursor: pointer; }

/* ============================================================
   HERO DASHBOARD — enhanced analytics card
   ============================================================ */
@property --ringp { syntax: '<number>'; inherits: false; initial-value: 0; }

/* Window chrome header */
.dash__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.dash__head .dash__bar { margin-bottom: 0; }
.dash__title { font-family: var(--font-head); font-weight: 600; font-size: 12.5px; color: #cdd8f0; letter-spacing: .01em; }
.dash__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 10.5px; font-weight: 600; color: #7ee0a6; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.25); padding: 3px 10px; border-radius: 999px; }
.dash__live i { width: 6px; height: 6px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse 1.8s infinite; }

/* Stat tiles: sparkline + colored delta */
.dash__tile { position: relative; overflow: hidden; }
.dash__delta.up { color: var(--cyan); }
.dash__spark { position: absolute; top: 14px; right: 12px; width: 62px; height: 20px; opacity: .95; }
.dash__spark polyline { fill: none; stroke: var(--cyan); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(33,212,253,.6)); }

/* Chart: gridlines + bars + trend line + scan sweep + axis */
.dash__chart { position: relative; height: 138px; display: block; padding: 0; overflow: hidden; }
.dash__grid { position: absolute; top: 14px; left: 14px; right: 14px; bottom: 28px; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; }
.dash__grid span { height: 1px; background: rgba(255,255,255,.06); }
.dash__bars { position: absolute; top: 14px; left: 14px; right: 14px; bottom: 28px; z-index: 2; display: flex; align-items: flex-end; gap: 8px; }
.dash__trend { position: absolute; top: 14px; left: 14px; right: 14px; bottom: 28px; width: calc(100% - 28px); height: calc(100% - 42px); z-index: 3; overflow: visible; }
.dash__trend polyline { fill: none; stroke: #eaf4ff; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(33,212,253,.85)); stroke-dasharray: 300; stroke-dashoffset: 300; animation: dashdraw 1.8s var(--ease) .8s forwards; }
@keyframes dashdraw { to { stroke-dashoffset: 0; } }
.dash__scan { position: absolute; top: 14px; bottom: 28px; left: 14px; width: 46px; z-index: 4; background: linear-gradient(90deg, transparent, rgba(33,212,253,.20), transparent); pointer-events: none; animation: dashscan 4s ease-in-out infinite; }
@keyframes dashscan { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateX(340px); opacity: 0; } }
.dash__axis { position: absolute; bottom: 9px; left: 14px; right: 14px; z-index: 2; display: flex; justify-content: space-between; }
.dash__axis span { font-family: var(--font-head); font-size: 9px; color: #7f92bd; }

/* Footer: automation donut + label */
.dash__foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; }
.dash__ring { --ringp: 87; width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--cyan) calc(var(--ringp) * 1%), rgba(255,255,255,.12) 0); animation: ringfill 1.6s var(--ease) .6s backwards; }
@keyframes ringfill { from { --ringp: 0; } }
.dash__ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #10203f; }
.dash__ring span { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 15px; }
.dash__ring span i { font-style: normal; font-size: 9px; color: var(--cyan); }
.dash__foot-txt b { display: block; color: #fff; font-family: var(--font-head); font-size: 13.5px; }
.dash__foot-txt small { color: #8fa3cf; font-size: 12px; }

/* ---------- 14. Reduced-motion: kill the added sweeps/animations ---------- */
@media (prefers-reduced-motion: reduce) {
    .btn--primary::after, .card::after, .nav__link::before { transition: none !important; }
    .btn--primary::after, .dash__scan { display: none; }
    .dash__trend polyline { stroke-dashoffset: 0; animation: none; }
    .dash__ring { animation: none; }
}

/* ============================================================
   DESIGNER REFINEMENT PASS
   Grounded in ui-ux-pro-max "Inter precision system":
   disciplined tracking, lighter display weights, layered
   soft shadows, restrained surfaces, generous whitespace.
   ============================================================ */

/* --- Rendering quality --- */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern", "liga", "calt";
}

/* --- Layered, soft premium shadows (replaces the flat single-shadow scale) --- */
:root {
    --shadow-sm: 0 1px 2px rgba(10,21,48,.04), 0 4px 12px rgba(10,21,48,.05);
    --shadow-md: 0 2px 4px rgba(10,21,48,.04), 0 10px 24px rgba(10,21,48,.06), 0 24px 48px rgba(10,21,48,.06);
    --shadow-lg: 0 4px 8px rgba(10,21,48,.05), 0 20px 44px rgba(10,21,48,.08), 0 44px 88px rgba(10,21,48,.10);
}

/* --- Display type: precision tracking + refined (lighter) weights --- */
.hero h1 { font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.phero h1 { font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.head h2, .cta-band h2, .svc-block h2 { font-weight: 700; letter-spacing: -.033em; }
.case__body h3, .vm-card h3 { letter-spacing: -.02em; }
h3 { letter-spacing: -.015em; }

/* --- Labels / eyebrows: uppercase micro-type with wide tracking --- */
.eyebrow { font-weight: 600; font-size: 11.5px; letter-spacing: .16em; padding: 6px 15px; }

/* --- Body copy: calmer color, better measure --- */
.hero__sub { font-size: 18px; line-height: 1.62; color: #56647e; max-width: 540px; }
.head p { color: #59677f; font-size: 16.5px; line-height: 1.6; }
.section--dark .head p { color: #a6b4d2; }

/* --- Surfaces: quieter borders, cleaner white cards --- */
.card, .why-card, .tl-item, .vm-card, .pcard, .bcard, .cform { border-color: rgba(13,27,68,.065); }
.card:hover, .why-card:hover, .tl-item:hover, .vm-card:hover, .pcard:hover, .bcard:hover {
    box-shadow: 0 2px 4px rgba(10,21,48,.04), 0 16px 36px rgba(10,21,48,.08), 0 36px 72px rgba(10,21,48,.07);
}

/* --- Buttons: more refined proportions & optical tracking --- */
.btn { font-size: 14.5px; padding: 13px 24px; letter-spacing: -.006em; }
.hero__cta .btn { padding: 15px 28px; font-size: 15px; }

/* --- Navbar: lighter link weight, tighter tracking --- */
.nav__link { font-size: 14px; font-weight: 500; letter-spacing: -.005em; }

/* --- Whitespace: more breathing room on larger screens (premium rhythm) --- */
.head { margin-bottom: 66px; }
@media (min-width: 1100px) {
    .section { padding: 128px 0; }
    .hero { padding: 190px 0 120px; }
    .container { max-width: 1180px; }
}

/* --- Eyebrow icon sizing stays tidy with smaller label --- */
.eyebrow .ico { width: 14px; height: 14px; }

/* --- Trust marquee: quieter, more like real logos --- */
.marquee__item { font-size: 18px; color: #9aa6c0; font-weight: 600; letter-spacing: -.01em; }

/* --- Testimonial card: lighter, more editorial --- */
.tcard { box-shadow: var(--shadow-lg); border-color: rgba(13,27,68,.05); }
.tcard__quote { font-weight: 500; letter-spacing: -.015em; line-height: 1.5; }

/* --- Footer: refined type --- */
.footer__col ul a, .footer__contact li { font-size: 14px; }
