/* Next Generation Networks design system.
 * Extracted from includes/head.php so browsers cache it once instead of
 * re-downloading ~52KB with every page. Served with a 30-day expiry and
 * gzip by nginx; cache-busted by filemtime in head.php.
 */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;
}

html { overflow-x: hidden; max-width: 100%; scroll-behavior: smooth; }

:root {
    --primary:       #58a6ff;
    --primary-rgb:   88, 166, 255;
    --secondary:     #1f6feb;
    --accent:        #39d353;
    --accent-rgb:    57, 211, 83;
    --cyan:          #56d4dd;
    --purple:        #d2a8ff;
    --orange:        #ffa657;
    --red:           #ff7b72;
    --dark-bg:       #0d1117;
    --surface:       #161b22;
    --surface-2:     #1c2128;
    --border:        rgba(88, 166, 255, 0.2);
    --text:          #e6edf3;
    --text-muted:    #8b949e;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

/* ── Canvas background ─────────────────────────────────────── */
#opacity-master {
    background: blue;
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#background-wallpaper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
}

#background-wallpaper::before {
    content: '';
    background: url('/assets/background.jpg') no-repeat center center;
    background-size: cover;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.1; /* Adjust this for background transparency */
    z-index: -1;  /* Keeps the background behind your text */
}

/* ── Navigation ────────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 5%;
    background: rgba(13, 17, 23, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
    overflow: visible;
}

#navbar.scrolled {
    padding: 0.85rem 5%;
    border-bottom-color: var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
    /* max-width: 1400px; */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { flex-shrink: 0; display: flex; align-items: center; padding: 3px 0; }
.logo img { height: 40px; width: auto; max-width: none; transition: transform 0.3s ease; display: block; }
.logo img:hover { transform: scale(1.05); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

.nav-links .nav-login a {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.45rem 1.1rem;
    color: var(--cyan);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-links .nav-login a:hover {
    background: var(--surface-2);
    border-color: var(--cyan);
}
.nav-links .nav-login a::after { display: none; }

/* Services dropdown (desktop: hover/focus; mobile: expand button) */
.nav-dropdown-wrap {
    position: relative;
}
.nav-dropdown-heading {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-dropdown-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-chevron {
    font-size: 0.65rem;
    opacity: 0.75;
    transition: transform 0.25s ease;
}
.nav-dropdown-expand {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -6px -10px -6px 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--cyan);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown-expand:hover {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--text);
}
.nav-dropdown {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    min-width: 16.5rem;
    background: rgba(13, 17, 23, 0.98);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    z-index: 1002;
}
.nav-dropdown li {
    margin: 0;
    border: none;
}
.nav-dropdown a {
    display: block;
    padding: 0.55rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown a::after { display: none !important; }
.nav-dropdown a:hover {
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--text);
}
@media (min-width: 901px) {
    .nav-dropdown-wrap .nav-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }
    .nav-dropdown-wrap:hover .nav-dropdown,
    .nav-dropdown-wrap:focus-within .nav-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-dropdown-wrap:hover .nav-chevron,
    .nav-dropdown-wrap:focus-within .nav-chevron {
        transform: rotate(180deg);
    }
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}
.btn-primary {
    background: var(--accent);
    color: #0d1117;
    box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.32);
}
.btn-primary:hover {
    transform: translateY(-3px);
    background: #4ae168;
    box-shadow: 0 14px 36px rgba(var(--accent-rgb), 0.42);
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: #0d1117;
    transform: translateY(-3px);
}
.btn-outline-cyan {
    background: transparent;
    color: var(--cyan);
    border: 1px solid rgba(86, 212, 221, 0.5);
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}
.btn-outline-cyan:hover {
    background: rgba(86, 212, 221, 0.1);
    border-color: var(--cyan);
}

/* ── Section shared ────────────────────────────────────────── */
section[id] { scroll-margin-top: 100px; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 0.85rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--cyan);
    line-height: 1.2;
}
.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── Home Hero ─────────────────────────────────────────────── */
.home-hero {
    --hero-rhythm: clamp(1.85rem, 3.8vmin, 2.85rem);
    --tech-carousel-gap: clamp(7.5rem, 4vw, 3.25rem);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    /* Push headline below nav; leave foot room for scroll hint */
    padding: clamp(16%, 24vh, 230px) 5% clamp(5rem, 12vh, 7.5rem);
    position: relative;
}
.home-hero-content {
    max-width: 1024px;
    z-index: 1;
    width: 100%;
    flex-shrink: 0;
}
.home-hero h1 {
    font-size: 4.5rem;
    font-weight: 300;
    margin: 0 0 var(--hero-rhythm);
    color: var(--primary);
    text-shadow: 0 0 30px rgba(var(--primary-rgb), 0.2);
    line-height: 1.15;
}
.home-hero .hero-sub {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin: 0 auto var(--hero-rhythm);
    font-weight: 200;
    max-width: 720px;
}
.hero-btns {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

/* Home hero: technology marquee (Simple Icons + FA brands where CDN omits logos) */
.home-hero-tech {
    --tech-carousel-color: #8b949e;
    --tech-caption-tracking: 0.22em;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.tech-carousel-caption-wrap {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}
.home-hero-tech .tech-carousel-caption, #footer-tech-carousel-heading {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: var(--tech-caption-tracking);
    text-transform: uppercase;
    color: var(--tech-carousel-color);
    opacity: 0.9;
    margin: 0 0 clamp(1rem, 2.5vmin, 1.5rem);
    text-align: center;
    /* Letter-spacing adds space after glyphs; pad equally so the line looks centred */
    padding-left: var(--tech-caption-tracking);
    padding-right: var(--tech-caption-tracking);
    box-sizing: border-box;
}
.tech-carousel-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.tech-carousel-mask {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.tech-carousel-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    animation: home-tech-marquee var(--tech-carousel-duration, 82.5s) linear infinite;
}
.tech-carousel-track:hover {
    /* animation-play-state: paused; */
}
.tech-carousel-set {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--tech-carousel-gap, clamp(2rem, 4vw, 3.25rem));
    /* Same gap after last icon as between icons; fixes the loop seam */
    padding-inline-end: var(--tech-carousel-gap, clamp(2rem, 4vw, 3.25rem));
    box-sizing: content-box;
    flex-shrink: 0;
}
.tech-carousel-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.88;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.tech-carousel-item:hover {
    opacity: 1;
    transform: scale(1.06);
}
.tech-carousel-item img {
    width: 80px;
    height: 80px;
    display: block;
    object-fit: contain;
}
.tech-carousel-item .tech-carousel-fa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    font-size: clamp(2.75rem, 5vw, 4.25rem);
    line-height: 1;
    color: var(--tech-carousel-color);
}
.tech-carousel-item .tech-carousel-fa i {
    line-height: inherit;
}
@keyframes home-tech-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .tech-carousel-track {
        animation: none;
        width: 100%;
        max-width: 820px;
        margin: 0 auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem 1.5rem;
    }
    .tech-carousel-set {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 1.25rem 1.5rem;
    }
    .tech-carousel-set + .tech-carousel-set {
        display: none;
    }
    .tech-carousel-mask {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 1.8rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-12px); }
}

/* ── Page Hero (sub-pages) ─────────────────────────────────── */
.page-hero {
    padding: 160px 5% 80px;
    text-align: center;
    position: relative;
}
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--cyan); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb i { font-size: 0.65rem; }
.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.page-hero .page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
}
.page-hero-divider {
    width: 60px;
    height: 3px;
    /* background: linear-gradient(90deg, var(--accent), var(--cyan)); */
    background: var(--accent);
    border-radius: 2px;
    margin: 1.5rem auto 0;
}

/* ── Services overview grid ────────────────────────────────── */
.services-section { padding: 0rem 5%; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    /* max-width: 1400px; */
    margin: 0 auto;
    align-items: stretch;
}
.service-card {
    background: var(--surface);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 18px;
    padding: 2.5rem;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(var(--accent-rgb), 0.07));
    opacity: 0;
    transition: opacity 0.35s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(86, 212, 221, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
}
.service-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    flex: 1;
}
.service-card .card-link {
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}
.service-card .card-link a {
    text-decoration: none;
}
.service-list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}

/* Services catalog page: shorter, even cards; details CTA right */
.services-catalog .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1.5rem;
}
.services-catalog .service-card {
    padding: 1.35rem 1.5rem;
    text-align: left;
}
.services-catalog .service-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
    position: relative;
    z-index: 1;
}
.services-catalog .service-card-head .service-icon {
    font-size: 1.85rem;
    margin-bottom: 0;
    flex-shrink: 0;
    line-height: 1;
}
.services-catalog .service-card-head h3 {
    font-size: 1.15rem;
    margin-bottom: 0;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}
.services-catalog .service-card > p {
    flex: 0 0 auto;
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
    line-height: 1.65;
}
.services-catalog .service-list {
    flex: 1 1 auto;
    margin-top: 0;
    display: block;
    columns: 2;
    column-gap: 1.35rem;
    column-fill: balance;
}
.services-catalog .service-list li {
    break-inside: avoid;
    font-size: 0.8rem;
    line-height: 1.45;
    padding-left: 1.05rem;
    margin-bottom: 0.3rem;
}
.services-catalog .service-list li::before {
    top: 0.48em;
    width: 5px;
    height: 5px;
}
.services-catalog .service-card .card-link {
    margin-top: auto;
    padding-top: 0.85rem;
    margin-bottom: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}
@media (max-width: 720px) {
    .services-catalog .service-list { columns: 1; }
}
.service-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-left: 1.3rem;
    position: relative;
    line-height: 1.6;
}
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* ── Service detail page layout ─────────────────────────────── */
.service-detail { padding: 0rem 5%; }
.detail-intro {
    max-width: 1200px;
    margin: 0 auto 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.detail-intro-text h2 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.detail-intro-text p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}
.detail-highlights h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}
.highlight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.highlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.highlight-list li i {
    color: var(--accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* Capability cards */
.capabilities { padding: 0 5% 5rem; }
.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    /* max-width: 1400px; */
    margin: 0 auto;
}
.cap-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.cap-card:hover {
    border-color: rgba(86, 212, 221, 0.4);
    transform: translateY(-4px);
}
.cap-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
}
.cap-icon.blue   { background: rgba(var(--primary-rgb), 0.12); color: var(--primary); }
.cap-icon.green  { background: rgba(var(--accent-rgb), 0.12);  color: var(--accent); }
.cap-icon.cyan   { background: rgba(86, 212, 221, 0.12);       color: var(--cyan); }
.cap-icon.purple { background: rgba(210, 168, 255, 0.12);      color: var(--purple); }
.cap-icon.orange { background: rgba(255, 166, 87, 0.12);       color: var(--orange); }
.cap-icon.red    { background: rgba(255, 123, 114, 0.12);      color: var(--red); }
.cap-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}
.cap-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Tech tags */
.tech-section { padding: 0 5% 5rem; }
.tech-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.tech-inner h2 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.tech-inner .sub {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}
.tech-tag {
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    color: var(--text-muted);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-family: 'Courier New', monospace;
    transition: all 0.25s ease;
}
.tech-tag:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: var(--accent);
    color: var(--text);
}

/* Software development: languages & technologies (Simple Icons grid) */
.software-dev-tech .tech-inner { max-width: 1100px; }
.sd-tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1.35rem, 3vw, 2rem) clamp(1.5rem, 3.5vw, 2.75rem);
    margin: 0;
    padding: 0.25rem 0 0;
}
.sd-tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    width: clamp(4.25rem, 11vw, 5.5rem);
    flex-shrink: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.sd-tech-item:hover {
    transform: translateY(-3px);
    opacity: 1;
}
.sd-tech-item .sd-tech-icon {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    opacity: 0.92;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
}
.sd-tech-item:hover .sd-tech-icon { opacity: 1; }
.sd-tech-name {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.25;
    max-width: 6.5rem;
    text-wrap: balance;
}

/* ── About section ─────────────────────────────────────────── */
.about-section { padding: 0rem 5%; }
.about-intro {
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}
.about-intro p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1rem;
}
.about-intro p:first-child {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.88);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto 5rem;
}
.about-block h3 {
    font-size: 1.65rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
}
.about-block p {
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 1rem;
    margin-bottom: 0.9rem;
}
/* How-we-work steps */
.steps { display: flex; flex-direction: column; gap: 1.25rem; }
.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: border-color 0.3s ease;
}
.step:hover { border-color: var(--accent); }
.step-num {
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent);
    opacity: 0.4;
    line-height: 1;
    flex-shrink: 0;
    width: 2.5rem;
}
.step h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.step p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 4rem;
}
.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s ease;
}
.value-card:hover { border-color: rgba(86, 212, 221, 0.4); }
.value-card .v-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.value-card h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.value-card p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
/* Industry tags */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}
.industry-tag {
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}
.industry-tag:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: var(--accent);
    color: var(--text);
}

/* ── Stats ─────────────────────────────────────────────────── */
.stats-section {
    padding: 5rem 5%;
    text-align: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 5rem;
    margin-bottom: 5rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.stat-item { padding: 1.5rem; }
.stat-number {
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 0.4rem;
    line-height: 1;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ── Why NGN features ──────────────────────────────────────── */
.why-section { padding: 0rem 5%; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    /* max-width: 1400px; */
    margin: 0 auto;
}
.feature-item { text-align: center; padding: 2.5rem 1.5rem; }
.feature-icon {
    width: 76px;
    height: 76px;
    background: var(--surface);
    border: 1px solid rgba(86, 212, 221, 0.4);
    color: var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.feature-item:hover .feature-icon {
    background: rgba(86, 212, 221, 0.1);
    border-color: var(--cyan);
}
.feature-item h4 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.feature-item p  { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ── CTA band ──────────────────────────────────────────────── */
.cta-band {
    margin-top: 5rem;
    margin-bottom: 5rem;
    padding: 5rem 5%;
    text-align: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(var(--accent-rgb), 0.06));
    border-top: 1px solid var(--border);
}
.cta-band h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text);
}
.cta-band p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Contact section ───────────────────────────────────────── */
.contact-section { padding: 0rem 5%; margin-bottom: 5rem; }
.contact-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1.25rem; }
.contact-icon {
    width: 54px;
    height: 54px;
    background: var(--surface);
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.contact-details h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.contact-details p  { color: var(--text-muted); font-size: 1rem; }
.contact-details a  { color: var(--accent); text-decoration: none; transition: color 0.2s; }
.contact-details a:hover { color: #fff; }
/* Form */
.contact-form-box {
    background: var(--surface);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 20px;
    padding: 2.5rem;
}
.contact-form-box h3 { font-size: 1.75rem; margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.35rem; }
.form-group label { display: block; margin-bottom: 0.45rem; color: var(--text-muted); font-size: 0.9rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(15, 22, 34, 0.8);
    border: 1px solid rgba(var(--primary-rgb), 0.28);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2358a6ff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-group select option { background: #0d1117; color: var(--text); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(86, 212, 221, 0.12);
    background: rgba(17, 26, 40, 0.9);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit-btn { width: 100%; }
.btn-loading { opacity: 0.7; cursor: not-allowed; pointer-events: none; }
.recaptcha-notice {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.recaptcha-notice a { color: var(--accent); text-decoration: none; }
.recaptcha-notice a:hover { text-decoration: underline; }
.form-alert {
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.form-alert-success { background: rgba(0, 212, 100, 0.1); border: 1px solid rgba(0, 212, 100, 0.35); color: #00d464; }
.form-alert-error   { background: rgba(255, 60, 60, 0.1);  border: 1px solid rgba(255, 60, 60, 0.35);  color: #ff6b6b; }
/* Hide reCAPTCHA badge; disclosure text in form replaces it (Google policy) */
.grecaptcha-badge { visibility: hidden !important; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
    padding: 3rem 5%;
    background: rgba(13, 17, 23, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    text-align: center;
    margin-top: auto;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-tech-marquee {
    --tech-carousel-color: #8b949e;
    --tech-caption-tracking: 0.22em;
    --tech-carousel-gap: clamp(5rem, 2.8vw, 2.25rem);
    margin: 0 0 1.75rem;
    padding: 0 0 1.75rem;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
    align-self: stretch;
    width: 100%;
}
/* #footer-tech-carousel-heading {
    text-transform: uppercase;
    color: var(--text-muted);
} */
.footer-tech-marquee .tech-carousel-caption {
    margin-bottom: clamp(0.85rem, 2vmin, 1.15rem);
}
.footer-tech-marquee .tech-carousel-item img,
.footer-tech-marquee .tech-carousel-item .tech-carousel-fa {
    width: 48px;
    height: 48px;
}
.footer-tech-marquee .tech-carousel-item .tech-carousel-fa {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.social-links a {
    width: 46px;
    height: 46px;
    background: var(--surface);
    border: 1px solid rgba(86, 212, 221, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-links a:hover { background: var(--cyan); color: #0d1117; transform: translateY(-4px); }
.footer-copy { color: var(--text-muted); font-size: 0.9rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.35rem; opacity: 0.7; }
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .detail-intro   { grid-template-columns: 1fr; gap: 3rem; }
    .about-grid     { grid-template-columns: 1fr; gap: 3rem; }
    .contact-wrap   { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 900px) {
    nav { padding: 0.75rem 4%; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(13,17,23,0.98); }
    .logo img { height: 32px; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(13, 17, 23, 0.99);
        flex-direction: column;
        padding: 0.5rem 4% 1rem;
        gap: 0;
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links > li { border-bottom: 1px solid rgba(var(--primary-rgb), 0.12); }
    .nav-links a    { display: block; padding: 0.85rem 0; font-size: 1rem; }
    .nav-links a::after { display: none; }
    .nav-links a.active { color: var(--accent); }
    .nav-links .nav-login { border-bottom: none; padding-bottom: 0.5rem; }
    .nav-links .nav-login a { border: none; padding: 0.85rem 0; color: var(--cyan); }

    .nav-dropdown-heading {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    .nav-dropdown-heading > a {
        flex: 1;
        padding: 0.85rem 0;
    }
    .nav-dropdown-heading > a .nav-chevron { display: none; }
    .nav-dropdown-expand {
        display: flex;
        flex-shrink: 0;
        margin: 0;
        width: auto;
        height: auto;
        padding: 0.85rem 0 0.85rem 0.6rem;
        border-radius: 0;
    }
    .nav-dropdown-expand:hover { background: transparent; }
    .nav-dropdown-wrap .nav-dropdown {
        position: static;
        transform: none;
        left: auto;
        min-width: 0;
        width: 100%;
        margin: 0;
        padding: 0 0 0.65rem 0.65rem;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        pointer-events: auto;
        border-left: 2px solid rgba(var(--accent-rgb), 0.35);
        margin-left: 0.25rem;
    }
    .nav-dropdown-wrap.is-open .nav-dropdown { display: block; }
    .nav-dropdown-wrap.is-open .nav-dropdown-expand i {
        transform: rotate(180deg);
    }
    .nav-dropdown-expand i {
        transition: transform 0.25s ease;
    }
    .nav-dropdown a {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
    .nav-dropdown a::before {
        content: '–\00a0';
        color: var(--text-muted);
    }

    .home-hero {
        --tech-carousel-gap: 1.75rem;
        justify-content: space-between;
        padding: clamp(130px, 22vh, 175px) 1.25rem clamp(4.25rem, 11vh, 6rem);
        align-items: flex-start;
    }
    .home-hero h1 { font-size: 2.2rem; }
    .home-hero .hero-sub { font-size: 1rem; }
    .hero-btns { flex-direction: column; align-items: stretch; }

    .home-hero-tech { margin-top: 3rem; }
    .tech-carousel-caption-wrap { padding: 0; }
    .tech-carousel-item img,
    .tech-carousel-item .tech-carousel-fa {
        width: 48px;
        height: 48px;
    }
    .tech-carousel-item .tech-carousel-fa { font-size: clamp(1.85rem, 8vw, 2.65rem); }

    .page-hero { padding: 130px 1.25rem 50px; }
    .page-hero h1 { font-size: 2.2rem; }
    .page-hero .page-subtitle { font-size: 1rem; }

    .section-header h2 { font-size: 2rem; }
    .section-header p  { font-size: 1rem; }

    .services-section,
    .service-detail,
    .capabilities,
    .tech-section,
    .about-section,
    .why-section,
    .contact-section,
    .stats-section,
    .cta-band         { padding-left: 1.25rem; padding-right: 1.25rem; }

    .services-grid    { grid-template-columns: 1fr; }
    .cap-grid         { grid-template-columns: 1fr; }
    .values-grid      { grid-template-columns: repeat(2, 1fr); }
    .features-grid    { grid-template-columns: repeat(2, 1fr); }
    .stats-grid       { grid-template-columns: repeat(2, 1fr); }

    .service-card     { padding: 1.75rem; }
    .services-catalog .service-card { padding: 1.2rem 1.25rem; }
    .contact-form-box { padding: 1.75rem; }
    .stat-number      { font-size: 2.4rem; }
    .cta-band h2      { font-size: 1.85rem; }
    .cta-btns         { flex-direction: column; align-items: center; }

    .sd-tech-grid     { gap: 1.1rem 1.2rem; }
    .sd-tech-item     { width: 3.85rem; }
    .sd-tech-item .sd-tech-icon { width: 40px; height: 40px; }
    .sd-tech-name     { font-size: 0.6rem; max-width: 5.25rem; }

    /* #background-wallpaper { display: none; } */
}

@media (max-height: 800px) {
    .home-hero-tech { margin-top: 3% !important; }
}

.nav-links .nav-login a {
    background: none;
}

@media (max-width: 480px) {
    .home-hero h1   { font-size: 1.8rem; }
    .page-hero h1   { font-size: 1.75rem; }
    .section-header h2 { font-size: 1.65rem; }
    .values-grid    { grid-template-columns: 1fr; }
    .features-grid  { grid-template-columns: 1fr; }
    .stats-grid     { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════
   NEW COMPONENTS: FAQ, Insights/articles, case studies, plans, tools.

   Conventions inherited from the blocks above: sections pad 5% horizontally,
   grids use auto-fit + minmax so they reflow without breakpoint micromanaging,
   and headings sit on --cyan with body copy on --text-muted.

   Fluid type via clamp() keeps these readable from 320px phones through to
   ultrawide without a stack of media queries. Interactive targets are kept at
   44px minimum for touch.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── FAQ accordion ───────────────────────────────────────────────────────── */
.faq-section {
    padding: 5rem 5%;
}
.faq-list {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-item[open] {
    border-color: rgba(var(--accent-rgb), 0.35);
    background: var(--surface-2);
}
.faq-item:hover {
    border-color: rgba(var(--primary-rgb), 0.45);
}
.faq-q {
    /* Safari shows a disclosure triangle on <summary> unless both of these
       are set; Firefox/Chrome honour list-style alone. */
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    min-height: 44px;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ''; }
.faq-q:hover { color: var(--primary); }
.faq-q:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}
.faq-chevron {
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: var(--accent);
    transition: transform 0.25s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(45deg); }
.faq-a {
    padding: 0 1.5rem 1.4rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}
.faq-a p { margin: 0; }
.faq-a a { color: var(--primary); }

/* ── Insights hub ────────────────────────────────────────────────────────── */
.insights-section { padding: 0 5% 4rem; }
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 0 auto;
}
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    /* Long technical terms (Kubernetes, multihoming) must not blow out the card
       on narrow screens. */
    overflow-wrap: anywhere;
}
.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.post-card.is-featured {
    grid-column: 1 / -1;
    border-color: rgba(var(--accent-rgb), 0.4);
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}
.post-cat {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    text-decoration: none;
}
.post-cat:hover { text-decoration: underline; }
.post-meta .dot { opacity: 0.45; }
/* Date and read-time wrap together, so a narrow card breaks between the
   category and the pair rather than splitting the pair itself. */
.post-meta-sub {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.post-card h3,
.post-card h2 {
    font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}
.post-card.is-featured h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
}
.post-card h3 a,
.post-card h2 a {
    color: var(--text);
    text-decoration: none;
}
.post-card:hover h3 a,
.post-card:hover h2 a { color: var(--primary); }
.post-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    flex: 1 1 auto;
}
.post-readmore {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    align-self: flex-start;
}
.post-readmore:hover { text-decoration: underline; }

/* Category filter pills */
.insights-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 3rem;
    padding: 0 0.25rem;
}
.insights-filter a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.insights-filter a:hover,
.insights-filter a.active {
    color: var(--dark-bg);
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

/* ── Article body ────────────────────────────────────────────────────────── */
/* body is display:flex;flex-direction:column, so a direct child with
   `margin: 0 auto` loses its automatic stretch and shrink-to-fits instead,
   which makes it as wide as its widest child (the 480px min-width tables) and
   overflow narrow viewports. Because html sets overflow-x:hidden, that
   overflow is clipped silently rather than scrolled. `width: 100%` restores
   the intended behaviour: full width up to max-width, never wider than the
   viewport. Any future full-width section using margin auto needs this too. */
.article-wrap {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 5% 4rem;
}
.article-hero {
    width: 100%;
    padding: 150px 5% 2.5rem;
    max-width: 880px;
    margin: 0 auto;
    text-align: left;
}
.article-hero h1 {
    font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem);
    font-weight: 400;
    color: var(--primary);
    line-height: 1.18;
    margin: 0.75rem 0 1rem;
}
.article-standfirst {
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.article-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.article-byline strong { color: var(--text); font-weight: 600; }

.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #c9d4e0;
    overflow-wrap: break-word;
}
.article-body > * + * { margin-top: 1.4rem; }
.article-body h2 {
    font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
    font-weight: 500;
    color: var(--cyan);
    line-height: 1.3;
    margin-top: 3rem;
    /* Offset for the fixed navbar when jumping to an anchor from the TOC. */
    scroll-margin-top: 100px;
}
.article-body h3 {
    font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
    font-weight: 600;
    color: var(--text);
    margin-top: 2.25rem;
    scroll-margin-top: 100px;
}
.article-body a { color: var(--primary); }
.article-body strong { color: var(--text); }
.article-body ul,
.article-body ol { padding-left: 1.35rem; }
.article-body li { margin-bottom: 0.7rem; }
.article-body li::marker { color: var(--accent); }
.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.35rem 0 0.35rem 1.35rem;
    color: var(--text);
    font-size: 1.1rem;
    font-style: italic;
}
.article-body code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0.12em 0.4em;
    font-size: 0.88em;
    color: var(--cyan);
}
.article-body pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.88rem;
    line-height: 1.7;
}
.article-body pre code {
    background: none;
    border: 0;
    padding: 0;
    color: var(--text);
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
}
/* Tables scroll horizontally on phones instead of forcing page zoom. */
.article-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 10px;
}
.article-body table {
    border-collapse: collapse;
    width: 100%;
    min-width: 480px;
    font-size: 0.92rem;
}
.article-body th,
.article-body td {
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
}
.article-body th {
    color: var(--cyan);
    font-weight: 600;
    background: var(--surface);
    white-space: nowrap;
}
.article-body tr:last-child td { border-bottom: 0; }

/* Callout box for key takeaways; also what answer engines tend to lift. */
.article-callout {
    background: var(--surface);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 1.35rem 1.5rem;
}
.article-callout h4 {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
}
.article-callout > * + * { margin-top: 0.8rem; }
.article-callout ul { margin-top: 0.8rem; }

/* Table of contents */
.article-toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
}
.article-toc h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}
.article-toc ol {
    list-style: none;
    padding: 0;
    counter-reset: toc;
}
.article-toc li {
    counter-increment: toc;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.article-toc li::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    margin-right: 0.6rem;
}
.article-toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}
.article-toc a:hover { color: var(--primary); }

/* Author box: a named human is a direct E-E-A-T signal. */
.author-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 3.5rem;
}
.author-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    color: var(--accent);
    font-size: 1.35rem;
}
.author-box-text { flex: 1 1 240px; min-width: 0; }
.author-box-text h4 { color: var(--text); font-size: 1rem; margin-bottom: 0.2rem; }
.author-box-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* Related posts + prev/next */
.related-posts { margin-top: 4rem; }
.related-posts > h3 {
    font-size: 1.35rem;
    color: var(--cyan);
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* ── Case studies ────────────────────────────────────────────────────────── */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.case-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-rgb), 0.45);
}
.case-sector {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.85rem;
}
.case-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.85rem;
}
.case-card > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    flex: 1 1 auto;
}
.case-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--border);
}
.case-metric .num {
    font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}
.case-metric .lbl {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
    line-height: 1.4;
}

/* ── Plans / packaged services ───────────────────────────────────────────── */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}
.plan-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.85rem;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.is-featured {
    border-color: var(--accent);
    background: linear-gradient(170deg, var(--surface-2), var(--surface));
}
.plan-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--dark-bg);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
}
.plan-card h3 {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 0.5rem;
}
.plan-for {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    min-height: 3.4em;
}
.plan-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    padding-bottom: 1.35rem;
    margin-bottom: 1.35rem;
    border-bottom: 1px solid var(--border);
}
.plan-price small {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.3rem;
}
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    flex: 1 1 auto;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}
.plan-features i {
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 0.42rem;
    flex: 0 0 auto;
}
.plan-features li.is-off { opacity: 0.45; }
.plan-features li.is-off i { color: var(--text-muted); }
.plan-card .btn { width: 100%; text-align: center; justify-content: center; }

/* Comparison table */
.compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 0 auto;
    max-width: 1000px;
}
.compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.93rem;
}
.compare-table th,
.compare-table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    color: var(--text);
    /* Keep the feature name visible while the tiers scroll on narrow screens. */
    position: sticky;
    left: 0;
    background: var(--dark-bg);
    z-index: 1;
}
.compare-table thead th {
    background: var(--surface);
    color: var(--cyan);
    font-weight: 600;
    white-space: nowrap;
}
.compare-table thead th:first-child { background: var(--surface); }
.compare-table td { color: var(--text-muted); }
.compare-table .yes { color: var(--accent); }
.compare-table .no  { color: #4a5563; }
.compare-table tr:last-child td { border-bottom: 0; }

/* ── Testimonials ────────────────────────────────────────────────────────── */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}
.quote-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
}
.quote-card .fa-quote-left {
    color: var(--accent);
    opacity: 0.4;
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
}
.quote-card blockquote {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    flex: 1 1 auto;
    margin: 0 0 1.25rem;
}
.quote-attr {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.quote-attr strong { display: block; color: var(--text); font-weight: 600; }

/* ── Interactive tools / lead magnets ────────────────────────────────────── */
.tool-shell {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(1.35rem, 1rem + 2vw, 2.5rem);
}
.tool-progress {
    height: 5px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
    margin-bottom: 2rem;
}
.tool-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    transition: width 0.35s ease;
}
.tool-q { margin-bottom: 2rem; }
.tool-q > h3 {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 0.4rem;
}
.tool-q > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.15rem;
}
.tool-options { display: flex; flex-direction: column; gap: 0.7rem; }
.tool-option {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    /* 44px minimum touch target. */
    min-height: 44px;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.tool-option:hover { border-color: rgba(var(--primary-rgb), 0.5); color: var(--text); }
.tool-option input { margin-top: 0.35rem; flex: 0 0 auto; accent-color: var(--accent); }
.tool-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--text);
}
.tool-option:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}
.tool-result { text-align: center; }
.tool-score {
    font-size: clamp(3rem, 2rem + 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}
.tool-score small { font-size: 0.3em; color: var(--text-muted); font-weight: 400; }
.tool-band {
    font-size: 1.3rem;
    color: var(--cyan);
    margin: 0.75rem 0 1rem;
}
.tool-findings {
    text-align: left;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.tool-finding {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    background: var(--surface-2);
    border-left: 3px solid var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.tool-finding.risk-high { border-left-color: var(--red); }
.tool-finding.risk-med  { border-left-color: var(--orange); }
.tool-finding.risk-low  { border-left-color: var(--accent); }
.tool-finding strong { color: var(--text); display: block; margin-bottom: 0.2rem; }

/* ── Shared: pill/eyebrow + section spacing helpers ──────────────────────── */
.section-pad   { padding: 5rem 5%; }
.section-pad-t { padding-top: 5rem; }
.narrow        { max-width: 880px; margin-left: auto; margin-right: auto; }

/* ══ Responsive ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .article-hero { padding-top: 130px; }
    .post-card.is-featured { padding: 1.6rem; }
}

@media (max-width: 720px) {
    .faq-section { padding: 3.5rem 5%; }
    .faq-q { padding: 1.1rem 1.15rem; }
    .faq-a { padding: 0 1.15rem 1.2rem; }
    .post-card { padding: 1.4rem; }
    .case-card, .plan-card { padding: 1.5rem 1.35rem; }
    .article-hero { padding: 120px 5% 2rem; }
    .article-body { font-size: 1rem; }
    .author-box { padding: 1.25rem; gap: 1rem; }
    .tool-actions .btn { width: 100%; text-align: center; }
    /* Featured post drops its oversized treatment on phones. */
    .post-card.is-featured { background: var(--surface); }
}

@media (max-width: 480px) {
    .insights-filter { gap: 0.45rem; }
    .insights-filter a { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
    .case-metrics { grid-template-columns: repeat(2, 1fr); }
    .article-body pre { padding: 0.9rem; font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
    .post-card, .case-card, .plan-card, .faq-item, .faq-chevron,
    .tool-option, .tool-progress span {
        transition: none;
    }
    .post-card:hover, .case-card:hover, .plan-card:hover { transform: none; }
}

/* Print: strip chrome so articles and quotes print cleanly. */
@media print {
    #navbar, footer, .contact-section, .cta-band, .insights-filter,
    #background-wallpaper, .grecaptcha-badge { display: none !important; }
    body { background: #fff; color: #000; }
    .article-body, .article-body h2, .article-body h3 { color: #000; }
    .article-wrap { max-width: none; padding: 0; }
}

/* Visually hidden, still announced by screen readers. The comparison table
   marks inclusion with an icon, which needs a text equivalent. */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
