/* Cloudaen v2 — modern, simple
   ----------------------------------------------------------
   Design tokens + reset + components, fluid and mobile-first.
   No Bootstrap. Single CSS file, no JS dependencies. */

/* --- Tokens --- */
:root {
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --bg-dark: #0a0a0a;
    --bg-dark-alt: #161616;
    --fg: #0a0a0a;
    --fg-muted: #6b7280;
    --fg-on-dark: #f5f5f5;
    --fg-on-dark-muted: #a3a3a3;
    --border: #e5e7eb;
    --border-dark: #2a2a2a;
    --accent: #dc3545;
    --accent-hover: #b02a37;
    --accent-soft: #fef2f3;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

    --container: 1200px;
    --container-narrow: 800px;
    --space-section: clamp(56px, 9vw, 112px);

    --font-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--fg);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--fg); }
p.lead { font-size: 1.125rem; color: var(--fg-muted); line-height: 1.55; }
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* --- Layout primitives --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }
.section { padding: var(--space-section) 0; }
.section-tight { padding: calc(var(--space-section) * 0.6) 0; }
.section.dark { background: var(--bg-dark); color: var(--fg-on-dark); }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section.dark p, .section.dark p.lead { color: var(--fg-on-dark-muted); }
.section.alt { background: var(--bg-alt); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--bg);
    color: var(--fg);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--bg-alt);
    color: var(--fg);
    border-color: #d1d5db;
}
.btn-ghost {
    background: transparent;
    color: var(--fg);
    padding: 12px 0;
}
.btn-ghost:hover { color: var(--accent); }
.section.dark .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #2a2a2a;
}
.section.dark .btn-secondary:hover {
    background: #1f1f1f;
    border-color: #3a3a3a;
}
.btn .arrow {
    transition: transform .15s ease;
    display: inline-block;
}
.btn:hover .arrow { transform: translateX(3px); }

/* --- Header / nav --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, 0.1); }
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.site-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}
.site-header .logo img {
    height: 28px;
    width: auto;
    /* Logo SVG is already white — keep as is */
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.site-nav a {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent); }
.site-header .nav-cta {
    margin-left: 8px;
    color: #fff !important;
}
.site-header .nav-cta:hover { color: #fff !important; }
.nav-toggle { color: #fff; border-color: rgba(255,255,255,0.25); }
.nav-toggle svg { stroke: #fff; }

/* --- Mega menu (Services dropdown with Industries column) --- */
.nav-mega { position: relative; display: inline-flex; align-items: center; }
.nav-mega-trigger {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .15s ease;
}
.nav-mega-trigger:hover { color: var(--accent); }
.nav-mega-trigger .caret { transition: transform .2s ease; }
.nav-mega.is-open .nav-mega-trigger { color: var(--accent); }
.nav-mega.is-open .nav-mega-trigger .caret { transform: rotate(180deg); }
.nav-mega-panel {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.94) 100%),
        url('/assets/img/cloudbgx9.png') center / cover no-repeat;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    box-shadow:
        0 24px 48px -12px rgba(0,0,0,0.22),
        0 0 0 1px rgba(255,255,255,0.4) inset;
    padding: 32px 40px;
    display: grid;
    grid-template-columns: 240px 220px;
    gap: 48px;
    min-width: 580px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
    z-index: 100;
    overflow: hidden;
}
.nav-mega-panel::after {
    /* Decorative red brand bar at the top of the panel */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 50%, var(--accent) 100%);
    z-index: 2;
}
.nav-mega.is-open .nav-mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear 0s;
}
.nav-mega-panel::before {
    /* Invisible hover bridge so cursor moving from trigger to panel doesn't close it */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -20px;
    height: 20px;
}
.nav-mega-panel h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(220,53,69,0.18);
    position: relative;
}
.nav-mega-panel h4::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 32px;
    height: 1px;
    background: var(--accent);
}
.nav-mega-panel .mega-col a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin: 0 -12px;
    color: var(--fg);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease, transform .15s ease;
    position: relative;
}
.nav-mega-panel .mega-col a::before {
    /* Small left indicator */
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(220,53,69,0.35);
    flex-shrink: 0;
    transition: background .15s ease, transform .15s ease;
}
.nav-mega-panel .mega-col a:hover {
    color: var(--accent);
    background: rgba(220,53,69,0.06);
    transform: translateX(3px);
}
.nav-mega-panel .mega-col a:hover::before {
    background: var(--accent);
    transform: scale(1.5);
}

/* Single-column variant (e.g. Success Stories) */
.nav-mega-panel.nav-mega-panel--single {
    grid-template-columns: 280px;
    min-width: 320px;
    padding: 28px 32px;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    align-items: center;
    justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--fg); }

/* --- Hero --- */
.hero {
    padding: clamp(64px, 9vw, 112px) 0 var(--space-section);
    position: relative;
    overflow: hidden;
}
.hero h1 { max-width: 18ch; }
.hero p.lead { max-width: 56ch; font-size: 1.25rem; }
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero-visual {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fafafa, #f3f4f6);
    border: 1px solid var(--border);
    overflow: hidden;
}
.hero-visual::before,
.hero-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.55;
}
.hero-visual::before {
    width: 50%; height: 50%; top: -10%; left: -10%;
    background: radial-gradient(circle, var(--accent), transparent 70%);
}
.hero-visual::after {
    width: 60%; height: 60%; bottom: -15%; right: -15%;
    background: radial-gradient(circle, #1f2937, transparent 70%);
}
.hero-visual svg.dots {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0.4;
}

/* --- Feature cards --- */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p.lead { margin: 0 auto; }

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #d1d5db;
}
.card .icon {
    width: 44px; height: 44px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}
.card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.card p { color: var(--fg-muted); margin: 0; font-size: 0.95rem; }
.card a.card-link {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.card a.card-link:hover .arrow { transform: translateX(3px); }
.card a.card-link .arrow { transition: transform .15s ease; }

/* --- Industry strip --- */
.industries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.industry-card {
    background: var(--bg);
    padding: 36px 28px;
    transition: background .15s ease;
}
.industry-card:hover { background: var(--bg-alt); }
.industry-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.industry-card p { color: var(--fg-muted); margin: 0; font-size: 0.9rem; }

/* --- CTA band --- */
.cta-band {
    background: var(--bg-dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(40px, 6vw, 64px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.cta-band h2 { color: #fff; margin: 0 0 8px; max-width: 24ch; }
.cta-band p { color: var(--fg-on-dark-muted); margin: 0; max-width: 50ch; }
.cta-band .btn-primary {
    background: #fff;
    color: var(--bg-dark);
    border-color: #fff;
}
.cta-band .btn-primary:hover {
    background: #f5f5f5;
    color: var(--bg-dark);
    border-color: #f5f5f5;
}

/* Colored photo variant of the CTA band */
.cta-band.cta-band--photo {
    background:
        linear-gradient(120deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.45) 70%, rgba(10,10,10,0.25) 100%),
        url('/assets/img/cloudbgx9.png') center / cover no-repeat;
}

/* --- Blog teaser --- */
.blog-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.blog-card .thumb {
    aspect-ratio: 16 / 9;
    background: var(--bg-alt);
    overflow: hidden;
}
.blog-card .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s ease;
}
.blog-card:hover .thumb img { transform: scale(1.04); }
.blog-card .body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card .meta {
    font-size: 0.8rem;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--fg);
}
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { color: var(--fg-muted); font-size: 0.9rem; margin: 0 0 16px; flex: 1; }
.blog-card .card-link { margin-top: auto; }

/* --- Footer --- */
.site-footer {
    background: var(--bg-dark);
    color: var(--fg-on-dark);
    padding: 64px 0 32px;
}
.site-footer h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    font-weight: 600;
}
.site-footer a {
    color: var(--fg-on-dark-muted);
    font-size: 0.9rem;
    display: block;
    padding: 4px 0;
}
.site-footer a:hover { color: #fff; }
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
}
.site-footer .brand-col img { height: 32px; margin-bottom: 16px; }
.site-footer .brand-col p { color: var(--fg-on-dark-muted); max-width: 28ch; font-size: 0.9rem; }
.site-footer .footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--fg-on-dark-muted);
    flex-wrap: wrap;
    gap: 12px;
}
.site-footer .footer-bottom .legal-links a {
    display: inline-block;
    margin-left: 18px;
    padding: 0;
}

/* --- Breadcrumb (for inner pages) --- */
.breadcrumbs {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    font-size: 0.85rem;
    color: var(--fg-muted);
}
.breadcrumbs a { color: var(--fg-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

/* --- Page header (inner pages) --- */
.page-hero {
    padding: clamp(64px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.page-hero h1 { max-width: 24ch; }
.page-hero p.lead { max-width: 56ch; }

/* --- Blog post --- */
.post-content {
    max-width: none;
    margin: 0;
}
.post-content h2 { margin-top: 2em; }
.post-content h3 { margin-top: 1.6em; }
.post-content h4 { margin-top: 1.4em; font-size: 1.1rem; }
.post-content p { font-size: 1.05rem; line-height: 1.7; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin: 0 0 1.2em; }
.post-content li { margin-bottom: 0.4em; }
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}
.post-content th, .post-content td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.post-content thead th {
    background: var(--bg-alt);
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}
.post-content tbody tr:hover td { background: var(--bg-alt); }
.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--fg-muted);
    font-size: 1.05rem;
    font-style: italic;
}
.post-content img {
    border-radius: var(--radius);
    margin: 24px 0;
}
.post-meta {
    color: var(--fg-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.post-hero {
    aspect-ratio: 16 / 7;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 0 48px;
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }

/* --- Full-bleed hero with background image --- */
.hero-bleed {
    position: relative;
    color: #fff;
    overflow: hidden;
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: clamp(120px, 14vw, 180px) 0 clamp(80px, 10vw, 140px);
    background: #0a0a0a;
}
.hero-bleed .bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bleed .bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
    filter: grayscale(1) brightness(0.8);
}
.hero-bleed.color-bg .bg img {
    filter: brightness(0.8);
}
.hero-bleed::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(120deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.4) 55%, rgba(10,10,10,0.2) 100%),
        linear-gradient(to bottom, rgba(10,10,10,0.15) 30%, rgba(10,10,10,0.7) 100%);
}
.hero-bleed .container {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-bleed h1 {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    max-width: 18ch;
    margin-bottom: 24px;
}
.hero-bleed .eyebrow { color: #fca5af; }
.hero-bleed p.lead {
    color: rgba(255,255,255,0.85);
    font-size: 1.25rem;
    max-width: 56ch;
}
.hero-bleed .hero-cta {
    margin-top: 40px;
}
.hero-bleed .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
}
.hero-bleed .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.hero-stats {
    position: relative;
    z-index: 2;
    margin-top: clamp(48px, 8vw, 80px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* --- Homepage hero ---
   Content-sized rather than viewport-locked, so it works on any monitor.
   72px header + 24px breathing room above the eyebrow. */
.hero-bleed.hero-fullscreen {
    min-height: 0;
    padding: 96px 0 56px;
    align-items: stretch;
}
.hero-bleed.hero-fullscreen .hero-fullscreen-content {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 6vw, 64px);
}
.hero-bleed.hero-fullscreen .hero-top { padding-top: 0; }
.hero-bleed.hero-fullscreen .hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.hero-bleed.hero-fullscreen .hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hero-bleed.hero-fullscreen .hero-stats { margin-top: 0; }

/* Scroll indicator at the bottom of the fullscreen hero */
.scroll-down {
    align-self: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    margin-top: 12px;
    transition: color .15s ease;
}
.scroll-down:hover { color: #fff; }
.scroll-down svg {
    animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50% { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-down svg { animation: none; }
}
@media (max-width: 768px) {
    .hero-bleed.hero-fullscreen { padding-top: 88px; }
    .hero-bleed.hero-fullscreen .hero-fullscreen-content {
        min-height: calc(100svh - 88px - 32px);
        gap: 32px;
    }
}
.hero-stats .stat .num {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 6px;
}
.hero-stats .stat .label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Client logo strip --- */
.logo-strip {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
}
.logo-strip .strip-label {
    text-align: center;
    color: var(--fg-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
}
.logo-strip .logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}
.logo-strip .logos img {
    max-height: 36px;
    max-width: 140px;
    width: auto;
    opacity: 0.65;
    filter: grayscale(100%);
    transition: opacity .2s ease, filter .2s ease;
}
.logo-strip .logos img:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* --- Industry tiles with photography ---
   One row of four on desktop. 2-up on tablet, 1-up on phone. */
.industry-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1024px) {
    .industry-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .industry-tiles { grid-template-columns: 1fr; }
}
.industry-tile {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    transition: transform .3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .3s ease;
    box-shadow: var(--shadow-sm);
}
.industry-tile:hover {
    transform: translateY(-6px);
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.industry-tile .bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.industry-tile:hover .bg { transform: scale(1.08); }
.industry-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.45) 55%, rgba(10,10,10,0.05) 100%);
    transition: background .3s ease;
}
.industry-tile:hover::after {
    background:
        linear-gradient(to top, rgba(220,53,69,0.55) 0%, rgba(10,10,10,0.5) 55%, rgba(10,10,10,0.1) 100%);
}
.industry-tile .body {
    position: relative;
    z-index: 2;
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.industry-tile .body .eyebrow {
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}
.industry-tile .body h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}
.industry-tile .body p {
    color: rgba(255,255,255,0.85);
    margin: 0 0 16px;
    font-size: 0.92rem;
    line-height: 1.45;
}
.industry-tile .body .more {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
    transition: gap .2s ease, border-color .2s ease;
}
.industry-tile:hover .body .more {
    gap: 12px;
    border-color: rgba(255,255,255,0.5);
}
.industry-tile .body .more .arrow {
    display: inline-block;
    transition: transform .2s ease;
}
.industry-tile:hover .body .more .arrow { transform: translateX(4px); }
.industry-tile .industry-num {
    position: absolute;
    top: 20px;
    left: 24px;
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.15em;
    transition: color .2s ease, transform .3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.industry-tile:hover .industry-num {
    color: #fff;
    transform: translateY(-2px);
}
.industry-tile .body .eyebrow {
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    font-weight: 600;
}

/* --- Featured story / case study --- */
.feature-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.feature-story .visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 5 / 4;
    position: relative;
}
.feature-story .visual img {
    width: 100%; height: 100%; object-fit: cover;
}
.feature-story .body .eyebrow { color: var(--accent); }
.feature-story .visual.regina-visual {
    box-shadow: var(--shadow-lg);
}
.feature-story .visual.regina-visual .location-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--fg);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.feature-story .visual.regina-visual .location-badge svg { color: var(--accent); }

@media (max-width: 768px) {
    .feature-story { grid-template-columns: 1fr !important; gap: 32px; }
}

/* --- Quote / testimonial --- */
.quote-band {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.quote-band blockquote {
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    line-height: 1.4;
    font-weight: 500;
    color: var(--fg);
    margin: 0 0 28px;
    letter-spacing: -0.01em;
}
.quote-band blockquote::before { content: "\201C"; color: var(--accent); margin-right: 4px; }
.quote-band blockquote::after { content: "\201D"; color: var(--accent); margin-left: 4px; }
.quote-band .attribution {
    color: var(--fg-muted);
    font-size: 0.9rem;
}
.quote-band .attribution strong { color: var(--fg); }

/* Hero client logo (placed under the hero headline on success story pages) */
.hero-client-logo {
    display: inline-block;
    margin-top: 24px;
    line-height: 0;
}
.hero-client-logo img {
    height: 80px;
    width: auto;
    transition: opacity .15s ease;
}
.hero-client-logo:hover img { opacity: 0.85; }

/* --- Featured testimonial block (used at the top of success story pages) --- */
.testimonial-feature {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 56px);
    box-shadow: 0 24px 56px -20px rgba(10, 10, 10, 0.18);
    overflow: hidden;
    isolation: isolate;
}
.testimonial-feature::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 6px; height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
    z-index: 0;
}
.testimonial-feature__mark {
    width: 56px;
    height: 44px;
    color: var(--accent);
    opacity: 0.18;
    margin-bottom: 22px;
    display: block;
}
.testimonial-feature__quote {
    position: relative;
    z-index: 1;
}
.testimonial-feature__quote blockquote {
    font-size: clamp(1.05rem, 1.55vw, 1.3rem);
    line-height: 1.6;
    color: var(--fg);
    margin: 0 0 32px;
    font-weight: 400;
    letter-spacing: -0.005em;
    white-space: pre-wrap;
    font-style: normal;
}
.testimonial-feature__quote blockquote::before,
.testimonial-feature__quote blockquote::after { display: none; }
.testimonial-feature__person {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}
.testimonial-feature__photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
    outline: 1px solid var(--border);
}
.testimonial-feature__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-feature__person-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.testimonial-feature__name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.testimonial-feature__title {
    font-size: 0.88rem;
    color: var(--fg-muted);
}
.testimonial-feature__company {
    margin-top: 10px;
    display: flex;
    align-items: center;
}
.testimonial-feature__company img {
    height: 26px;
    width: auto;
    opacity: 0.85;
    transition: opacity .15s ease, transform .15s ease;
}
.testimonial-feature__company a {
    display: inline-flex;
    line-height: 0;
}
.testimonial-feature__company a:hover img {
    opacity: 1;
    transform: translateX(2px);
}
.feature-story .client-logo-link {
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feature-story .client-logo-link:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
@media (max-width: 600px) {
    .testimonial-feature__person { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* --- Background-image section helper --- */
.section-with-bg {
    position: relative;
    color: #fff;
    overflow: hidden;
}
.section-with-bg .bg {
    position: absolute; inset: 0; z-index: 0;
}
.section-with-bg .bg img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.4;
}
.section-with-bg::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(120deg, rgba(10,10,10,0.85), rgba(10,10,10,0.55));
}
.section-with-bg .container { position: relative; z-index: 2; }
.section-with-bg h1, .section-with-bg h2, .section-with-bg h3 { color: #fff; }
.section-with-bg p, .section-with-bg p.lead { color: rgba(255,255,255,0.8); }

/* --- Backward compatibility for legacy blog post markup ---
   Existing blog post PHP files use Bootstrap class names. Map them
   to the new design system so posts render correctly with the new
   header/footer. */
.page-header-section {
    position: relative;
    padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 7vw, 80px);
    color: #fff !important;
    background:
        linear-gradient(120deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.4) 55%, rgba(10,10,10,0.2) 100%),
        linear-gradient(to bottom, rgba(10,10,10,0.15) 30%, rgba(10,10,10,0.7) 100%),
        url('/assets/img/cloudbgx9.png') center / cover no-repeat,
        #0a0a0a !important;
    background-blend-mode: normal, normal, luminosity, normal;
    overflow: hidden;
}
.page-header-section .text-white,
.page-header-section .text-white * { color: #fff !important; }
.page-header-section .page-header-content h1 { color: #fff !important; }
.page-header-section .lead { color: rgba(255,255,255,0.85) !important; }
.page-header-section .container > .row { display: block; }
.page-header-section [class*="col-"] { width: 100%; max-width: 100%; flex: none; padding: 0; }

.breadcrumb-bar {
    background: var(--bg-alt) !important;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    font-size: 0.85rem;
    color: var(--fg-muted);
}
.breadcrumb-bar .breadcrumb { background: transparent; padding: 0; margin: 0; list-style: none; }
.breadcrumb-bar .breadcrumb-item { display: inline; color: var(--fg-muted); }
.breadcrumb-bar .breadcrumb-item a { color: var(--fg-muted); }
.breadcrumb-bar .breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin: 0 8px;
    opacity: 0.5;
}

.module {
    padding: var(--space-section) 0;
}
.module .container { max-width: var(--container); }
.module .row { display: block; margin: 0; }
.module [class*="col-"] { width: 100%; max-width: 1080px; margin: 0 auto; flex: none; padding: 0; }

article.post { max-width: 1080px; margin: 0 auto; }
.post-preview {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 7;
}
.post-preview img { width: 100%; height: 100%; object-fit: cover; }
.post-wrapper { padding: 0; }
.post-header { margin-bottom: 32px; }
.post-header .post-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.post-header .post-meta {
    list-style: none; padding: 0; margin: 0;
    color: var(--fg-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex; gap: 16px;
}
.post-header .post-meta li { display: inline; }
.post-header .post-meta a { color: var(--fg-muted); }
.post-header .post-meta a:hover { color: var(--accent); }

/* --- Post body footer: related docs, author bios, contributors --- */
/* Treat post-content h4/h5 that label these footer sections as proper eyebrow-style headers */
.post-content > h5 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg-muted);
    margin: 48px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.post-content > h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg-muted);
    margin: 56px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Default: inline links inside body copy stay inline */
.post-content a.blog {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(220,53,69,0.4);
    font-weight: 500;
    transition: text-decoration-color .15s ease, color .15s ease;
}
.post-content a.blog:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent);
}

/* When the link is the only content of its <p> wrapper (Related Documentation
   style), promote it to a full-width reference card. The data-card flag is
   set by JS in the header because CSS :only-child ignores text siblings. */
.post-content a.blog[data-card="true"] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--fg);
    font-weight: 500;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.post-content a.blog[data-card="true"]::before {
    content: "";
    flex: 0 0 16px;
    width: 16px; height: 16px;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/><polyline points='15 3 21 3 21 9'/><line x1='10' y1='14' x2='21' y2='3'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/><polyline points='15 3 21 3 21 9'/><line x1='10' y1='14' x2='21' y2='3'/></svg>") no-repeat center / contain;
}
.post-content a.blog[data-card="true"]:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--fg);
    transform: translateX(2px);
    text-decoration: none;
}
.post-content p:has(> a.blog[data-card="true"]) { margin: 0 0 10px; }

/* Author / contributor bio box */
.author-box-container {
    display: flex;
    gap: 28px;
    align-items: center;
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 0 0 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.author-box-container:hover { box-shadow: var(--shadow); border-color: #d1d5db; }
.author-box-container .author-image img {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.author-box-container .author-info {
    flex: 1;
}
.author-box-container .author-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.author-box-container .author-info .job {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
}
.author-box-container .author-info .description {
    color: var(--fg-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 14px;
}
.author-box-container .author-info .social {
    display: flex;
    gap: 10px;
}
.author-box-container .author-info .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563 !important;
    font-size: 1.35rem;
    line-height: 1;
    padding: 4px;
    transition: color .18s ease, transform .18s ease;
}
.author-box-container .author-info .social a:hover {
    color: var(--accent) !important;
    transform: translateY(-2px);
}
.author-box-container .author-info .social a i,
.author-box-container .author-info .social a svg,
.author-box-container .author-info .social a > * {
    color: inherit !important;
    line-height: 1;
}

@media (max-width: 600px) {
    .author-box-container { flex-direction: column; text-align: center; align-items: center; padding: 28px 20px; }
    .author-box-container .author-info .social { justify-content: center; }
}

/* Hide sales include (placeholder until we redesign it). It still loads but is hidden. */
.our-blog-section, .feature-section, .call-to-action.gradient-overlay, .feature-tab-section,
.our-help-center { display: none !important; }

/* --- Mobile --- */
@media (max-width: 768px) {
    h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
    h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
    .container { padding: 0 20px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-visual { aspect-ratio: 4 / 3; }
    .cta-band { grid-template-columns: 1fr; text-align: left; }
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
    .site-footer .footer-bottom .legal-links a { margin: 0 18px 0 0; }

    /* Mobile: header stays dark like desktop. Only the hamburger button
       itself gets a white pill background with a dark icon so it stands
       out on the dark bar. When the menu opens, the button inverts to
       dark on dark so the X icon turns white. */
    .nav-toggle {
        background: #ffffff;
        color: var(--fg);
        border-color: #ffffff;
        transition: background .2s ease, border-color .2s ease, color .2s ease;
    }
    .nav-toggle svg { stroke: var(--fg); transition: stroke .2s ease; }
    .site-header.nav-open .nav-toggle {
        background: transparent;
        color: #fff;
        border-color: rgba(255, 255, 255, 0.3);
    }
    .site-header.nav-open .nav-toggle svg { stroke: #fff; }

    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: #fff; }
    .site-nav a:hover { color: var(--accent); }
    .site-nav a:last-of-type { border-bottom: 0; }
    .site-nav .nav-cta {
        margin: 12px 0 0;
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    .nav-toggle { display: inline-flex; }

    /* Mega menu: collapse to inline accordion on mobile (inside the dark dropdown) */
    .site-nav .nav-mega {
        display: block;
        position: static;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .site-nav .nav-mega-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 12px 0;
        font-size: 1rem;
        color: #fff;
    }
    .site-nav .nav-mega-trigger:hover { color: var(--accent); }
    .site-nav .nav-mega-panel {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: none;
        grid-template-columns: 1fr !important;
        gap: 20px;
        min-width: 0 !important;
        padding: 4px 0 16px 16px;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0;
        overflow: visible !important;
        transition: none !important;
    }
    .site-nav .nav-mega-panel::after,
    .site-nav .nav-mega-panel::before { display: none !important; }
    .site-nav .nav-mega.is-open .nav-mega-panel { display: grid !important; }
    .site-nav .nav-mega-panel h4 {
        margin-bottom: 6px;
        padding-bottom: 6px;
        color: rgba(255, 255, 255, 0.55);
        border-bottom-color: rgba(255, 255, 255, 0.12);
    }
    .site-nav .nav-mega-panel h4::after { display: none; }
    .site-nav .nav-mega-panel .mega-col a {
        padding: 8px 0 !important;
        margin: 0 !important;
        border-bottom: 0;
        color: #fff;
        background: transparent !important;
        border-radius: 0;
    }
    .site-nav .nav-mega-panel .mega-col a::before {
        display: none;
    }
    .site-nav .nav-mega-panel .mega-col a:hover {
        color: var(--accent);
        background: transparent !important;
        transform: none;
    }
}
