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

:root {
    --bg:         #08090a;
    --surface:    #0f1117;
    --surface-2:  #141720;
    --border:     #1e2130;
    --accent:     #6366f1;
    --accent-dim: rgba(99, 102, 241, 0.15);
    --text-1:     #f1f5f9;
    --text-2:     #94a3b8;
    --text-3:     #64748b;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── SCROLL REVEAL ────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── NAV ─────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 9, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-slot {
    width: 140px;
    height: 36px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-img  { width: 140px; height: auto; object-fit: contain; }
.logo-text { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.03em; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover { color: var(--text-1); }

.btn-nav {
    background: var(--accent);
    color: #fff;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity .2s, transform .15s;
    flex-shrink: 0;
}
.btn-nav:hover { opacity: .85; transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-1);
    border-radius: 2px;
    transition: transform .22s ease, opacity .22s 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); }

/* ── HERO ─────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 120px 0 96px;
    text-align: center;
    overflow: hidden;
}

.glow {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(99,102,241,.14) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner { position: relative; }

.badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent-dim);
    border: 1px solid rgba(99,102,241,.35);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

.accent { color: var(--accent); }

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-2);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: opacity .2s, transform .15s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    padding: 14px 28px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--text-1); border-color: #334155; }

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 36px;
    gap: 4px;
    flex: 1;
}
.stat-num   { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-label { font-size: 0.72rem; color: var(--text-3); letter-spacing: .01em; text-align: center; }
.stat-divider { width: 1px; height: 48px; background: var(--border); flex-shrink: 0; }

/* ── SECTION SHARED ─────────────────────────────── */
section { padding: 96px 0; border-top: 1px solid var(--border); }

.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 14px;
}

section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.18;
    margin-bottom: 52px;
}

/* ── SERVICES ──────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.service-card {
    background: var(--surface);
    padding: 36px 30px;
    transition: background .2s;
}
.service-card:hover { background: var(--surface-2); }

.service-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-dim);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.service-card p {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* ── HOW WE WORK ────────────────────────────────── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.process-step {
    background: var(--surface);
    padding: 40px 36px;
    transition: background .2s;
}
.process-step:hover { background: var(--surface-2); }

.step-num {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--accent);
    opacity: 0.45;
    margin-bottom: 20px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-1);
}
.process-step p {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.75;
}

/* ── WHY FLUXCORE ───────────────────────────────── */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Metric bars */
.metrics-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-2);
}

.metric-pct {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
}

.metric-track {
    height: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.metric-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #818cf8);
    border-radius: 100px;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.metric.visible .metric-bar { width: var(--pct); }

@media (prefers-reduced-motion: reduce) {
    .metric-bar { width: var(--pct) !important; transition: none !important; }
}

/* Differentiator cards */
.diff-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.diff-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color .2s;
}
.diff-card:hover { border-color: rgba(99,102,241,.4); }

.diff-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: var(--accent-dim);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    margin-top: 1px;
}

.diff-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-1);
}
.diff-card p {
    font-size: 0.84rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* ── CLOUD WASTE ────────────────────────────────── */
.waste-intro {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 640px;
    line-height: 1.75;
    margin-top: -28px;
    margin-bottom: 52px;
}

.waste-callouts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
}

.waste-callout {
    background: var(--surface);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background .2s;
}
.waste-callout:hover { background: var(--surface-2); }

.waste-big {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.waste-desc {
    font-size: 0.84rem;
    color: var(--text-2);
    line-height: 1.6;
    max-width: 200px;
}

/* Breakdown chart */
.waste-breakdown {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
}

.breakdown-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.breakdown-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-1);
}

.breakdown-note {
    font-size: 0.78rem;
    color: var(--text-3);
}

.breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.breakdown-item { display: flex; flex-direction: column; gap: 8px; }

.breakdown-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-2);
}

.breakdown-pct {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-1);
    flex-shrink: 0;
}

.breakdown-track {
    height: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.breakdown-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #f97316, #ef4444);
    border-radius: 100px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0.1s);
}

.waste-breakdown.visible .breakdown-bar { width: var(--pct); }

@media (prefers-reduced-motion: reduce) {
    .breakdown-bar { width: var(--pct) !important; transition: none !important; }
}

.breakdown-source {
    margin-top: 24px;
    font-size: 0.75rem;
    color: var(--text-3);
}

/* ── WHO WE HELP ────────────────────────────────── */
.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.who-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: border-color .2s;
}
.who-card:hover { border-color: rgba(99,102,241,.4); }

.who-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--accent-dim);
    color: #a5b4fc;
    border-radius: 6px;
    padding: 4px 10px;
    margin-bottom: 14px;
}
.who-card p {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* ── CLIENTS ────────────────────────────────────── */
.clients { text-align: center; }

.clients-sub {
    color: var(--text-2);
    font-size: 0.95rem;
    margin-bottom: 52px;
}

.clients-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 56px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .5;
    transition: opacity .25s;
    filter: brightness(0) invert(1);
}
.client-logo:hover { opacity: 1; }
.client-logo img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

/* ── FAQ ─────────────────────────────────────────── */
.faq-inner {
    max-width: 760px;
    margin: 0 auto;
}

.faq-list { margin-top: -8px; }

.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }

.faq-q {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-1);
    user-select: none;
    transition: color .2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; }
.faq-item:hover .faq-q { color: var(--text-1); }

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-3);
    transition: transform .25s ease, color .2s;
}
.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-a {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.8;
    padding-bottom: 24px;
}

/* ── CONTACT ────────────────────────────────────── */
.contact { text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; }

.contact-sub {
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.75;
    margin-top: -28px;
    margin-bottom: 40px;
}

.contact-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── FOOTER ─────────────────────────────────────── */
footer { border-top: 1px solid var(--border); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 52px;
}

.footer-brand {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--text-3);
    font-size: 0.85rem;
    line-height: 1.65;
    max-width: 240px;
}

.footer-email {
    display: inline-block;
    margin-top: 16px;
    color: var(--text-2);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color .2s;
}
.footer-email:hover { color: var(--text-1); }

.footer-heading {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-3);
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.footer-links a {
    color: var(--text-2);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color .2s;
}
.footer-links a:hover { color: var(--text-1); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    padding-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-copy { color: var(--text-3); font-size: 0.8rem; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand-col { grid-column: 1 / -1; }
    .footer-tagline { max-width: 100%; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .btn-nav    { display: none; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(8, 9, 10, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px 24px 24px;
        gap: 0;
        z-index: 99;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 12px 0;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a:last-child { border-bottom: none; }

    .hero   { padding: 80px 0 64px; }
    section { padding: 72px 0; }

    .process-grid    { grid-template-columns: 1fr; }
    .why-us-grid     { grid-template-columns: 1fr; gap: 36px; }
    .waste-callouts  { grid-template-columns: 1fr; }

    .stat      { padding: 18px 20px; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .hero h1      { font-size: 2.4rem; }
    .hero-stats   { flex-direction: column; }
    .stat-divider { width: 80%; height: 1px; }

    .services-grid { grid-template-columns: 1fr; }
    .process-grid  { grid-template-columns: 1fr; }
}
