/* ==========================================================================
   Nexus App Solutions — Dark Tech Theme
   Deep navy + neon cyan/blue, green (growth) & violet accents
   ========================================================================== */
:root {
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --green: #34e39b;
    --violet: #8b5cf6;

    --primary: #22d3ee;
    --primary-2: #3b82f6;
    --gradient: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    --gradient-green: linear-gradient(135deg, #34e39b 0%, #22d3ee 100%);
    --gradient-violet: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);

    --bg: #060913;
    --bg-2: #0a1020;
    --panel: rgba(255, 255, 255, 0.035);
    --panel-2: rgba(255, 255, 255, 0.06);
    --border: rgba(120, 170, 255, 0.14);
    --border-strong: rgba(120, 200, 255, 0.35);

    --heading: #eaf1ff;
    --text: #aeb9d6;
    --muted: #7c88a8;

    --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.35);
    --card-shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.8);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius: 16px;
    --radius-lg: 24px;
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Ambient background glow layer */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.12), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(34, 211, 238, 0.1), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05), transparent 60%),
        var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
p { color: var(--text); }
a { text-decoration: none; color: inherit; transition: color 0.25s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); }

.highlight {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

/* ---------------------------------- Buttons ---------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}
.btn i { transition: transform 0.25s ease; }

.btn-primary {
    background: var(--gradient);
    color: #04121a;
    box-shadow: 0 10px 30px -8px rgba(34, 211, 238, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(34, 211, 238, 0.75); }
.btn-primary:hover i { transform: translateX(4px); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--heading);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }
.btn-ghost:hover i { transform: translateX(4px); }

.btn-light {
    background: #eaf1ff;
    color: #071018;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}
.btn-light:hover { transform: translateY(-3px); }

/* ---------------------------------- Header ---------------------------------- */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(6, 9, 19, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
#header.scrolled {
    padding: 12px 0;
    background: rgba(6, 9, 19, 0.9);
    border-bottom-color: var(--border);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}

.header-container { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo a { display: flex; align-items: center; gap: 12px; }
.logo img { height: 44px; width: auto; filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.4)); }
.logo-text { font-family: var(--font-heading); font-weight: 500; font-size: 1.05rem; color: var(--heading); line-height: 1.1; }
.logo-text strong { display: block; font-weight: 700; color: var(--cyan); }

#navbar ul { display: flex; gap: 34px; }
#navbar a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--text);
    position: relative;
    padding: 4px 0;
}
#navbar a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--cyan);
    transition: width 0.3s ease;
}
#navbar a:hover, #navbar a.active { color: var(--cyan); }
#navbar a:hover::after, #navbar a.active::after { width: 100%; }

.mobile-toggle {
    display: none;
    font-size: 1.7rem;
    color: var(--heading);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

/* ---------------------------------- Hero ---------------------------------- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 90px;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background: url('assets/img/hero-network.jpg') center/cover no-repeat;
    opacity: 0.55;
    animation: slowZoom 24s ease-in-out infinite alternate;
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, var(--bg) 8%, rgba(6, 9, 19, 0.55) 55%, rgba(6, 9, 19, 0.35) 100%),
        linear-gradient(0deg, var(--bg) 2%, transparent 40%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.blob-1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 70%); top: -120px; right: 4%; animation: floatBlob 16s ease-in-out infinite; }
.blob-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%); bottom: -160px; left: -80px; animation: floatBlob 20s ease-in-out infinite reverse; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(120, 180, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 180, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 30% 50%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 30% 50%, #000 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; display: block; max-width: 720px; }
.hero-text h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 6px 0 22px; }
.hero-text > p { font-size: 1.18rem; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 500; color: var(--heading); }
.hero-trust i { color: var(--green); font-size: 1.1rem; }

/* ---------------------------------- Stats ---------------------------------- */
#stats { position: relative; margin-top: -50px; z-index: 5; padding: 0 0 20px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(10, 16, 32, 0.9));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 46px 30px;
    box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}
.stat-item { text-align: center; }
.stat-number, .stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-green);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-item p { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---------------------------------- Section title ---------------------------------- */
.section-title { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-title h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.section-title > p { font-size: 1.08rem; color: var(--muted); }

/* ---------------------------------- Rows (about / features) ---------------------------------- */
.row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.row.reverse .col-text { order: 2; }
.row.reverse .col-img { order: 1; }
.col-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
.col-text > p { margin-bottom: 24px; font-size: 1.05rem; }

/* Framed media (images) with neon glow */
.media-frame {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 8px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.4), rgba(59, 130, 246, 0.1) 50%, rgba(139, 92, 246, 0.3));
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.9);
}
.media-frame img { width: 100%; border-radius: calc(var(--radius-lg) - 6px); display: block; }
.media-frame::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 60px rgba(34, 211, 238, 0.15);
    pointer-events: none;
}
.media-frame--float { animation: floatY 7s ease-in-out infinite; }

.feature-list { margin-bottom: 30px; display: grid; gap: 16px; }
.feature-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 1.02rem; color: var(--text); }
.feature-list i { color: var(--cyan); font-size: 1.25rem; flex-shrink: 0; margin-top: 3px; filter: drop-shadow(0 0 6px rgba(34,211,238,0.5)); }
.feature-list strong { color: var(--heading); }

/* ---------------------------------- Services ---------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 38px 30px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-strong);
    background: var(--panel-2);
    box-shadow: 0 24px 50px -22px rgba(0,0,0,0.9), var(--glow-cyan);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon {
    width: 66px; height: 66px;
    border-radius: 16px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem; color: var(--cyan);
    margin-bottom: 22px;
    transition: all 0.35s ease;
}
.service-card:hover .icon { background: var(--gradient); color: #04121a; transform: scale(1.08) rotate(-4deg); box-shadow: var(--glow-cyan); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { margin-bottom: 0; font-size: 0.98rem; }

/* ---------------------------------- Why / Diferenciais ---------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-bottom: 70px; }
.why-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.why-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: 0 24px 50px -22px rgba(0,0,0,0.9); }
.why-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    color: #04121a; font-size: 2rem;
    box-shadow: var(--glow-cyan);
}
.why-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.why-card p { font-size: 0.95rem; margin-bottom: 0; }

/* Process steps */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
}
.process-num {
    font-family: var(--font-heading);
    font-weight: 800; font-size: 2.2rem;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    display: block; margin-bottom: 8px;
}
.process-step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; margin-bottom: 0; color: var(--muted); }

/* ---------------------------------- CTA band ---------------------------------- */
#cta-band { padding: 20px 0 80px; }
.cta-inner {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 56px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    background:
        linear-gradient(120deg, rgba(6,9,19,0.85), rgba(10,16,32,0.6)),
        url('assets/img/hero-network.jpg') center/cover no-repeat;
    border: 1px solid var(--border-strong);
    box-shadow: 0 30px 60px -25px rgba(0,0,0,0.9), var(--glow-cyan);
    overflow: hidden;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.cta-inner p { color: rgba(234, 241, 255, 0.8); margin-bottom: 0; }

/* ---------------------------------- Contact ---------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(8px);
}
.contact-info {
    position: relative;
    padding: 46px;
    color: #fff;
    background:
        linear-gradient(150deg, rgba(59,130,246,0.28), rgba(34,211,238,0.12) 60%, rgba(139,92,246,0.22)),
        rgba(8, 13, 26, 0.9);
    border-right: 1px solid var(--border);
}
.contact-info .info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-info .info-item i {
    font-size: 1.25rem; color: var(--cyan);
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.25);
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info h4 { color: #fff; font-size: 1.05rem; margin-bottom: 3px; }
.contact-info p { color: rgba(234, 241, 255, 0.78); margin-bottom: 0; font-size: 0.95rem; }
.map-container { margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.map-container iframe { display: block; filter: grayscale(0.3) invert(0.9) hue-rotate(180deg) brightness(0.9); }

.contact-form { padding: 46px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-family: var(--font-heading); font-weight: 500; font-size: 0.9rem; color: var(--heading); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--heading);
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.form-group select option { background: #0a1020; color: var(--heading); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--cyan);
    background: rgba(34, 211, 238, 0.06);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid { border-color: #ff5a72; box-shadow: 0 0 0 4px rgba(255, 90, 114, 0.12); }
.btn-submit { width: 100%; justify-content: center; }
.form-feedback { margin: 16px 0 0; font-size: 0.95rem; font-weight: 500; min-height: 1.2em; }
.form-feedback.success { color: var(--green); }
.form-feedback.error { color: #ff5a72; }

/* ---------------------------------- Footer ---------------------------------- */
#footer {
    background: linear-gradient(180deg, transparent, rgba(3, 6, 14, 0.9)), #04070f;
    border-top: 1px solid var(--border);
    color: var(--text);
    padding: 72px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; filter: drop-shadow(0 0 10px rgba(34,211,238,0.4)); }
.footer-col h3 { color: #fff; font-size: 1.3rem; margin-bottom: 14px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-col p { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; display: flex; gap: 8px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--cyan); }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
    transition: all 0.25s ease;
}
.social a:hover { background: var(--gradient); color: #04121a; transform: translateY(-3px); box-shadow: var(--glow-cyan); }
.copyright { text-align: center; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.9rem; color: var(--muted); }

/* ---------------------------------- Floating buttons ---------------------------------- */
.whatsapp-float {
    position: fixed; bottom: 28px; left: 28px;
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 999; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1) rotate(6deg); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65); }

.back-to-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 48px; height: 48px; border-radius: 50%; border: none;
    background: var(--gradient); color: #04121a; font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px -8px rgba(34, 211, 238, 0.7);
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------------------------------- Animations ---------------------------------- */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floatBlob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 40px) scale(1.08); } }
@keyframes slowZoom { 0% { transform: scale(1); } 100% { transform: scale(1.12); } }

/* ---------------------------------- Responsive ---------------------------------- */
@media (max-width: 992px) {
    .hero-content { max-width: 100%; }
    .hero-bg::after { background: linear-gradient(0deg, var(--bg) 6%, rgba(6,9,19,0.6) 60%, rgba(6,9,19,0.5) 100%); }
    .row { grid-template-columns: 1fr; gap: 40px; }
    .row.reverse .col-text, .row.reverse .col-img { order: initial; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { border-right: none; border-bottom: 1px solid var(--border); }
    .cta-inner { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    #navbar {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(8, 13, 26, 0.98);
        backdrop-filter: blur(14px);
        box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.9);
        padding: 20px 24px; border-top: 1px solid var(--border);
        clip-path: inset(0 0 100% 0); transition: clip-path 0.35s ease;
    }
    #navbar.active { clip-path: inset(0 0 0 0); }
    #navbar ul { flex-direction: column; gap: 6px; }
    #navbar a { display: block; padding: 12px 0; }
    #navbar a::after { display: none; }
    .btn-cta-header { display: none; }
    .mobile-toggle { display: block; }
    .logo-text { display: none; }
    .services-grid, .why-grid, .process, .footer-grid { grid-template-columns: 1fr; }
    .contact-info, .contact-form { padding: 34px 26px; }
    .cta-inner { padding: 40px 28px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; padding: 34px 18px; }
    .hero-text h1 { font-size: 2.1rem; }
}

/* ---------------------------------- Legal pages ---------------------------------- */
.legal-hero {
    position: relative;
    padding: 150px 0 60px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.legal-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url('assets/img/hero-network.jpg') center/cover no-repeat;
    opacity: 0.22;
}
.legal-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6, 9, 19, 0.55) 0%, var(--bg) 95%);
}
.legal-hero .container { position: relative; z-index: 1; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 10px; }
.legal-updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

.legal-content { padding: 56px 0 90px; }
.legal-container { max-width: 920px; }

.legal-note {
    display: flex; gap: 14px; align-items: flex-start;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 40px;
    color: var(--text);
    font-size: 0.95rem;
}
.legal-note i { color: var(--cyan); font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.legal-toc {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 30px;
    margin-bottom: 48px;
}
.legal-toc h2 { font-size: 1.1rem; margin-bottom: 16px; }
.legal-toc ol { list-style: none; counter-reset: toc; columns: 2; column-gap: 36px; }
.legal-toc li { counter-increment: toc; margin-bottom: 10px; break-inside: avoid; }
.legal-toc a { color: var(--text); font-size: 0.95rem; }
.legal-toc a::before { content: counter(toc) '. '; color: var(--cyan); font-weight: 600; }
.legal-toc a:hover { color: var(--cyan); }

.legal-body h2 {
    font-size: 1.35rem;
    margin: 46px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 100px;
}
.legal-body h3 { font-size: 1.08rem; margin: 26px 0 10px; color: var(--heading); }
.legal-body p { margin-bottom: 16px; }
.legal-body ul { list-style: disc; padding-left: 22px; margin: 0 0 18px; }
.legal-body ol { padding-left: 22px; margin: 0 0 18px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--cyan); }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--heading); }
.legal-body .legal-contact {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 14px;
}
.legal-body .legal-contact p { margin-bottom: 6px; }
.legal-back { margin-top: 46px; }

.copyright .legal-links { display: block; margin-top: 8px; }
.copyright .legal-links a { color: var(--muted); }
.copyright .legal-links a:hover { color: var(--cyan); }

@media (max-width: 768px) {
    .legal-toc ol { columns: 1; }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}
