/* ===================================================================
   ALPS Marketing Site — Stylesheet
   Corporate design matching ALPS application colors
   =================================================================== */

/* --- CSS Variables --- */
:root {
    --navy: #1e3a5f;
    --navy-deep: #0f172a;
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --blue-pale: #eff6ff;
    --blue-wash: #dbeafe;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --green: #16a34a;
    --red: #dc2626;
    --white: #ffffff;
    --gradient-brand: linear-gradient(135deg, var(--navy), var(--blue));
    --gradient-hero: linear-gradient(135deg, rgba(15,23,42,.78) 0%, rgba(30,58,95,.65) 50%, rgba(37,99,235,.35) 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--slate-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--slate-900); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p  { font-size: 1.05rem; color: var(--slate-600); }
a  { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: #1d4ed8; }

/* --- Layout --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-compact { padding: 72px 0; }
.text-center { text-align: center; }
.text-white, .text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white p,
.text-white li, .text-white span { color: var(--white); }

/* grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,.95); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,.05);
    transition: box-shadow .3s, background .3s;
}
.navbar.scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,.08);
    background: rgba(255,255,255,.98);
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.navbar-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.navbar-brand img {
    height: 44px; width: auto;
}
.navbar-brand-text {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em;
    color: var(--slate-900);
}
/* Fallback text logo when no image */
.navbar-logo {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em;
    color: var(--slate-900); display: flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.navbar-logo .logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; background: var(--gradient-brand);
    border-radius: var(--radius-sm); color: var(--white); font-size: .82rem; font-weight: 700;
}
.navbar-links { display: flex; gap: 28px; align-items: center; }
.navbar-links a { font-size: .9rem; font-weight: 500; color: var(--slate-600); }
.navbar-links a:hover { color: var(--slate-900); }
.navbar-links a.active { color: var(--slate-900); font-weight: 600; }
.navbar-links a.btn-primary { color: var(--white); }
.navbar-links a.btn-primary:hover { color: var(--white); }

/* --- Navbar dropdowns --- */
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 4px; }
.nav-item > a .nav-caret {
    display: inline-block; width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 4px solid currentColor; margin-top: 1px;
    transition: transform .2s;
}
.nav-dropdown {
    display: none; position: absolute; top: calc(100% + 12px); left: 50%;
    transform: translateX(-50%);
    background: var(--white); border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm); padding: 8px 0;
    min-width: 220px; box-shadow: var(--shadow-lg);
    z-index: 100;
}
.nav-dropdown::before {
    content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-item:hover > a .nav-caret { transform: rotate(180deg); }
.nav-dropdown a {
    display: block; padding: 8px 20px; font-size: .86rem !important;
    font-weight: 500 !important; color: var(--slate-600) !important;
    white-space: nowrap; transition: background .15s, color .15s;
}
.nav-dropdown a:hover {
    background: var(--slate-50); color: var(--slate-900) !important;
}

/* hamburger */
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.navbar-toggle span { display: block; width: 22px; height: 2px; background: var(--slate-900); margin: 5px 0; border-radius: 1px; transition: .3s; }

/* --- Buttons (Bootstrap 5.3 aligned) --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .375rem .75rem; border-radius: .375rem; font-size: .92rem;
    font-weight: 600; cursor: pointer; border: 1px solid transparent;
    transition: color .15s ease-in-out, background-color .15s ease-in-out,
                border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    text-decoration: none; letter-spacing: .01em; line-height: 1.5;
}
.btn-lg {
    padding: .5rem 1rem; font-size: 1.05rem; border-radius: .5rem;
}
.btn-primary {
    background: var(--blue); color: var(--white);
    border-color: var(--blue);
}
.btn-primary:hover {
    background: #1d4ed8; border-color: #1d4ed8; color: var(--white);
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-outline-primary {
    background: transparent; color: var(--blue);
    border: 1px solid var(--blue);
}
.btn-outline-primary:hover {
    background: var(--blue); color: var(--white);
}
.btn-secondary {
    background: transparent; color: var(--navy);
    border: 1px solid var(--slate-300);
}
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-white {
    background: var(--white); color: var(--navy);
    border-color: var(--white);
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.btn-white:hover { box-shadow: 0 6px 24px rgba(0,0,0,.15); color: var(--navy); }
.btn-ghost-white {
    background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost-white:hover { border-color: var(--white); color: var(--white); }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Hero (homepage) --- */
.hero {
    position: relative;
    min-height: 70vh; display: flex; align-items: center;
    overflow: hidden; padding-top: 64px;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    height: 140%; width: 100%;
    background-size: cover; background-position: center center;
    will-change: transform;
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: var(--gradient-hero);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 760px; }
.hero-logo {
    height: 80px; width: auto; margin-bottom: 32px;
    filter: brightness(0) invert(1);
}
.hero-content h1 {
    font-size: clamp(3.4rem, 7.5vw, 5.5rem);
    font-weight: 900; letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.08;
    opacity: .55;
}
.hero-tagline {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 500; opacity: .9;
    margin-bottom: 12px;
    color: rgba(255,255,255,.95) !important;
}
.hero-desc {
    font-size: 1.05rem; margin-bottom: 36px; opacity: .78;
    max-width: 560px;
}
.type-option {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    text-align: center; padding: 9px 12px;
    border: 1px solid var(--slate-300); border-radius: var(--radius-sm);
    font-size: .78rem; font-weight: 500; color: var(--slate-600);
    transition: all .2s ease; background: var(--white);
}
.type-option svg { width: 14px; height: 14px; flex-shrink: 0; }
.type-option:hover { border-color: var(--blue); color: var(--blue); }
input[type="radio"]:checked + .type-option {
    background: var(--blue); color: var(--white); border-color: var(--blue);
}
.hero-trust-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 16px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.75);
    letter-spacing: .01em;
}
.hero-trust-badge svg { flex-shrink: 0; opacity: .85; }
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 30px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    margin-bottom: 20px; color: rgba(255,255,255,.8);
}

/* sub-page hero */
.hero-sub {
    min-height: 44vh; padding-top: 64px;
    display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-sub .hero-bg::after {
    background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(30,58,95,.75) 100%);
}
.hero-sub.hero-sky .hero-bg {
    background-position: right 20%;
    filter: saturate(.4) brightness(1.35);
}
.hero-sub.hero-sky .hero-bg::after {
    background: linear-gradient(to bottom, rgba(30,58,95,.15) 0%, rgba(30,58,95,.55) 50%, rgba(15,23,42,.75) 100%);
}
.hero-sub .hero-content { max-width: 700px; }
.hero-sub .hero-content h1 { margin-bottom: 16px; }
.hero-sub .hero-content p { font-size: 1.15rem; opacity: .88; }

/* --- Stats bar --- */
.stats-bar {
    background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200);
    padding: 48px 0;
}
.stat-item { text-align: center; padding: 16px 0; }
.stat-number {
    font-size: 2.4rem; font-weight: 800; color: var(--navy);
    line-height: 1;
}
.stat-label { font-size: .85rem; color: var(--slate-500); font-weight: 500; margin-top: 6px; }

/* --- Pain / problem cards --- */
.pain-card {
    padding: 28px 24px; border-radius: var(--radius-md);
    background: var(--white); border: 1px solid var(--slate-200);
    border-left: 4px solid var(--red);
}
.pain-card h4 { font-size: .95rem; margin-bottom: 6px; color: var(--slate-900); }
.pain-card p { font-size: .9rem; color: var(--slate-600); }

/* --- Feature cards --- */
.feature-card {
    padding: 32px 28px; border-radius: var(--radius-md);
    background: var(--white); border: 1px solid var(--slate-200);
    transition: box-shadow .3s, transform .3s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon {
    width: 48px; height: 48px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--blue-pale), var(--blue-wash)); color: var(--blue);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon-dark {
    width: 48px; height: 48px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    background: var(--navy); color: var(--white);
}
.feature-icon-dark svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: .93rem; }

/* larger card variant */
.feature-card-lg {
    padding: 40px 36px; border-radius: 14px;
    background: var(--slate-50); border: 1px solid var(--slate-200);
}
.feature-card-lg h3 { margin-bottom: 12px; }
.feature-card-lg ul { list-style: none; padding: 0; margin-top: 12px; }
.feature-card-lg ul li {
    position: relative; padding-left: 22px; margin-bottom: 8px;
    font-size: .95rem; color: var(--slate-600);
}
.feature-card-lg ul li::before {
    content: ''; position: absolute; left: 0; top: 10px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--blue);
}

/* --- Workflow steps --- */
.workflow-step { text-align: center; position: relative; }
.workflow-step::after {
    content: ''; position: absolute; top: 28px; right: -12px;
    width: 0; height: 0; border-top: 7px solid transparent;
    border-bottom: 7px solid transparent; border-left: 10px solid var(--blue);
}
.workflow-step:last-child::after { display: none; }
.workflow-dot {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-brand); color: var(--white);
    font-size: 1.15rem; font-weight: 700;
}
.workflow-step h4 { font-size: .88rem; font-weight: 600; color: var(--slate-700); }

/* --- Industry cards --- */
.industry-card {
    padding: 28px 24px; border-radius: var(--radius-md);
    background: var(--white); border: 1px solid var(--slate-200);
    text-align: center; transition: box-shadow .3s, transform .3s;
}
.industry-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.industry-icon { font-size: 2.2rem; margin-bottom: 10px; }
.industry-card h4 { font-size: .95rem; margin-bottom: 4px; }
.industry-card p { font-size: .85rem; }

/* --- Industry strip (homepage compact) --- */
.industry-strip {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.industry-strip-item {
    text-align: center; min-width: 100px;
}
.industry-strip-item .icon { font-size: 2rem; margin-bottom: 6px; display: block; }
.industry-strip-item span { font-size: .82rem; font-weight: 600; color: var(--slate-600); text-transform: uppercase; letter-spacing: .04em; }

/* --- Pricing cards --- */
.pricing-card {
    padding: 44px 36px; border-radius: var(--radius-lg); background: var(--white);
    border: 2px solid var(--slate-200); text-align: center;
    transition: box-shadow .3s, transform .3s;
}
.pricing-card.featured {
    border-color: var(--blue); box-shadow: 0 12px 40px rgba(37,99,235,.12);
    position: relative;
}
.pricing-card.featured::before {
    content: 'Recommended'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    padding: 4px 18px; background: var(--blue); color: var(--white); border-radius: 20px;
    font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.pricing-card h3 { margin-bottom: 6px; }
.pricing-label { font-size: .88rem; color: var(--slate-500); margin-bottom: 20px; }
.pricing-list { list-style: none; padding: 0; margin: 20px 0 28px; text-align: left; }
.pricing-list li {
    padding: 7px 0; font-size: .91rem; color: var(--slate-600);
    border-bottom: 1px solid var(--slate-100); display: flex; align-items: center; gap: 10px;
}
.pricing-list li::before { content: '\2713'; color: var(--green); font-weight: 700; font-size: .82rem; }

/* --- Trust badges --- */
.trust-item { text-align: center; padding: 20px 16px; }
.trust-icon { font-size: 1.8rem; margin-bottom: 8px; color: var(--blue-light); }
.trust-item h4 { margin-bottom: 4px; font-size: .95rem; }
.trust-item p { font-size: .85rem; }

/* --- CTA banner --- */
.cta-banner {
    background: var(--gradient-brand);
    border-radius: var(--radius-xl); padding: 68px 56px; text-align: center;
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 500px; height: 500px; border-radius: 50%;
    background: rgba(37,99,235,.12); filter: blur(80px);
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { margin-bottom: 28px; max-width: 540px; margin-left: auto; margin-right: auto; opacity: .82; }

/* --- Split image --- */
.split-img { border-radius: 14px; width: 100%; height: auto; box-shadow: var(--shadow-xl); }

/* --- Photo divider --- */
.photo-divider {
    height: 340px; background-size: cover; background-position: center;
    background-attachment: fixed; position: relative;
}
.photo-divider::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(15,23,42,.25), rgba(15,23,42,.45));
}

/* --- Blockquote --- */
.quote-block {
    border-left: 4px solid var(--blue); padding: 20px 28px;
    background: var(--slate-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
}
.quote-block p { font-size: 1.05rem; font-style: italic; color: var(--slate-700); }

/* --- Pill tags --- */
.pill {
    display: inline-block; padding: 5px 14px; border-radius: 20px;
    font-size: .78rem; font-weight: 600; background: var(--blue-pale); color: var(--blue);
    letter-spacing: .02em;
}
.pill-dark {
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.75);
}

/* --- Checklist (get-started) --- */
.check-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 0; border-bottom: 1px solid var(--slate-200);
}
.check-item:last-child { border-bottom: none; }
.check-icon { color: var(--green); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.check-text { font-weight: 600; color: var(--slate-900); font-size: .95rem; }

/* --- Problem-Solution cards --- */
.ps-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border: 1px solid var(--slate-200); border-radius: var(--radius-md);
    overflow: hidden; transition: box-shadow .3s;
}
.ps-card:hover { box-shadow: var(--shadow-md); }
.ps-problem {
    padding: 24px 28px; background: var(--white);
    border-right: 1px solid var(--slate-200);
    display: flex; gap: 14px; align-items: flex-start;
}
.ps-solution {
    padding: 24px 28px; background: var(--blue-pale);
    display: flex; gap: 14px; align-items: flex-start;
}
.ps-icon {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}
.ps-icon svg { width: 16px; height: 16px; }
.ps-icon-red { background: #fef2f2; color: var(--red); }
.ps-icon-blue { background: var(--blue-wash); color: var(--blue); }
.ps-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ps-label-red { color: var(--red); }
.ps-label-blue { color: var(--blue); }
.ps-text { font-size: .9rem; color: var(--slate-700); line-height: 1.5; }

/* --- Source reference citations --- */
.source-ref {
    font-size: .78rem;
    color: var(--slate-400);
    font-style: italic;
}
.source-ref a {
    color: var(--slate-400);
    text-decoration: none;
    transition: color .2s;
}
.source-ref a:hover {
    color: var(--blue-light);
}
@media (max-width: 600px) {
    .ps-card { grid-template-columns: 1fr; }
    .ps-problem { border-right: none; border-bottom: 1px solid var(--slate-200); }
}

/* --- Question marquee --- */
.q-section { overflow: hidden; }
.q-marquee {
    position: relative;
    padding: 4px 0;
}
.q-marquee::before,
.q-marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.q-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--navy-deep), transparent);
}
.q-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--navy-deep), transparent);
}
.q-row { padding: 7px 0; }
.q-track {
    display: flex;
    gap: 14px;
    width: max-content;
    will-change: transform;
}
.q-track.scroll-right { animation: marqueeRight 80s linear infinite; }
.q-track.scroll-left  { animation: marqueeLeft  80s linear infinite; }
.q-row:hover .q-track  { animation-play-state: paused; }
.q-card {
    flex-shrink: 0;
    width: 420px;
    padding: 20px 26px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    border-left: 2px solid rgba(37,99,235,.4);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 500;
    color: rgba(255,255,255,.68);
    line-height: 1.55;
    transition: background .3s, color .3s, border-color .3s;
}
.q-card:hover {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.92);
    border-left-color: var(--blue-light);
}
@keyframes marqueeLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes marqueeRight {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .q-track { animation-play-state: paused !important; }
}

/* --- Background helpers --- */
.bg-dark { background: var(--navy-deep); }
.bg-navy { background: var(--navy); }
.bg-slate { background: var(--slate-50); }
.bg-blue-wash { background: var(--blue-pale); }
.bg-photo {
    position: relative;
    background-size: cover;
    background-position: center;
}
.bg-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .78);
}
.bg-photo > .container {
    position: relative;
    z-index: 1;
}

/* --- Scroll animations (two-way, ease-out-expo) --- */
.fade-in, .fade-in-left, .fade-in-right {
    will-change: opacity, transform;
}
.fade-in {
    opacity: 0; transform: translateY(40px) scale(.98);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0) scale(1); }
.fade-in-left {
    opacity: 0; transform: translateX(-60px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
    opacity: 0; transform: translateX(60px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: .12s; }
.stagger > *:nth-child(3) { transition-delay: .24s; }
.stagger > *:nth-child(4) { transition-delay: .36s; }
.stagger > *:nth-child(5) { transition-delay: .48s; }
.stagger > *:nth-child(6) { transition-delay: .6s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in, .fade-in-left, .fade-in-right {
        opacity: 1 !important; transform: none !important;
        transition: none !important;
    }
}

/* counter animation */
.counter { display: inline-block; }

/* --- Footer --- */
.footer {
    background: var(--navy-deep); color: var(--slate-400); padding: 60px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer h4 { color: var(--slate-200); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer a { color: var(--slate-400); font-size: .88rem; }
.footer a:hover { color: var(--slate-200); }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 8px; }
.footer-brand { font-size: .92rem; line-height: 1.7; }
.footer-brand .navbar-logo { margin-bottom: 10px; }
.footer-brand img { height: 28px; width: auto; filter: brightness(0) invert(1); margin-bottom: 10px; }
.footer-bottom {
    margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--slate-800);
    display: flex; justify-content: space-between; font-size: .8rem;
}

/* --- Scroll-snap removed — sections flow naturally on all screens --- */

/* --- Scrollspy dots --- */
.scrollspy {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}
/* Light background (default) */
.scrollspy-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--slate-600);
    cursor: pointer;
    transition: background .3s, transform .3s, border-color .3s;
    position: relative;
    border: 2px solid transparent;
    padding: 0;
}
.scrollspy-dot:hover,
.scrollspy-dot.active {
    background: var(--blue);
    transform: scale(1.3);
}
.scrollspy-label {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy-deep);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.scrollspy-label::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid var(--navy-deep);
}
.scrollspy-dot:hover .scrollspy-label,
.scrollspy-label.flash {
    opacity: 1;
}

/* Scrollspy nav arrows */
.scrollspy-arrow {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
    transition: color .2s;
    padding: 0;
}
.scrollspy-arrow:hover {
    color: var(--blue);
}
.scrollspy-arrow svg {
    width: 14px;
    height: 14px;
}
.scrollspy.on-dark .scrollspy-arrow {
    color: rgba(255,255,255,.4);
}
.scrollspy.on-dark .scrollspy-arrow:hover {
    color: var(--blue);
}

/* Dark background — all dots and labels switch together */
.scrollspy.on-dark .scrollspy-dot {
    background: rgba(255,255,255,.4);
}
.scrollspy.on-dark .scrollspy-dot:hover,
.scrollspy.on-dark .scrollspy-dot.active {
    background: var(--blue);
    border-color: var(--white);
}
.scrollspy.on-dark .scrollspy-label {
    background: var(--white);
    color: var(--navy-deep);
}
.scrollspy.on-dark .scrollspy-label::after {
    border-left-color: var(--white);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .workflow-step::after { display: none; }
}

@media (max-width: 960px) {
    .grid-2 { grid-template-columns: 1fr; gap: 32px; }
    .grid-3 { grid-template-columns: 1fr; gap: 20px; }
    .grid-4 { grid-template-columns: 1fr 1fr; gap: 20px; }
    .grid-5 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .navbar-links {
        display: none; flex-direction: column; position: absolute;
        top: 64px; left: 0; right: 0; background: rgba(255,255,255,.98);
        padding: 20px 24px; border-bottom: 1px solid var(--slate-200);
        box-shadow: 0 8px 30px rgba(0,0,0,.1); gap: 16px;
    }
    .navbar-links.open { display: flex; }
    .navbar-toggle { display: block; }
    .nav-dropdown { position: static; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; min-width: auto; }
    .nav-item:hover .nav-dropdown { display: none; }
    .nav-item.open .nav-dropdown { display: block; }
    .cta-banner { padding: 44px 24px; }
    .photo-divider { background-attachment: scroll; height: 240px; }
    .hero { min-height: 85vh; }
    .hero-content h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
    .industry-strip { gap: 24px; }
    .scrollspy { right: 14px; gap: 10px; }
    .scrollspy-dot { width: 11px; height: 11px; }
    .scrollspy-arrow { width: 11px; height: 11px; }
    .scrollspy-arrow svg { width: 11px; height: 11px; }
}

@media (max-width: 600px) {
    .grid-4 { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: 1fr 1fr; }
    .grid-6 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .section-compact { padding: 48px 0; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .btn-group { flex-direction: column; align-items: stretch; }
    .stats-bar .grid-4 { grid-template-columns: 1fr 1fr; }
    .scrollspy { right: 10px; gap: 8px; }
    .scrollspy-dot { width: 9px; height: 9px; }
    .scrollspy-arrow { width: 9px; height: 9px; }
    .scrollspy-arrow svg { width: 9px; height: 9px; }
    .scrollspy-label { display: none; }
    .q-card { width: 320px; font-size: .88rem; padding: 16px 20px; }
    .q-marquee::before, .q-marquee::after { width: 40px; }
}
