/* Cloudflare-inspired marketing layer */

.marketing-body { overflow-x: hidden; }

.cf-header { border-bottom-color: rgba(255,255,255,.06); }

/* Mega menu */
.nav-item { position: relative; }
.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: none;
    border: none;
    color: var(--muted);
    font-weight: 500;
    font-size: .95rem;
    cursor: pointer;
    padding: .4rem 0;
    font-family: inherit;
    transition: color .2s;
}
.nav-trigger:hover, .nav-item.open .nav-trigger { color: var(--text); }
.nav-active { color: var(--text) !important; font-weight: 600; }
.nav-auth {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: .5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

.mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 720px;
    background: rgba(10, 14, 24, .97);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 200;
}
.mega-menu-sm { min-width: 480px; }
.nav-item.open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 200px;
    gap: 1rem;
}
.mega-grid-2 { grid-template-columns: 1fr 1fr; }
.mega-label {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: .6rem;
    padding: 0 .5rem;
}
.mega-link {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .65rem .5rem;
    border-radius: 12px;
    transition: background .15s;
}
.mega-link:hover { background: rgba(255,255,255,.04); }
.mega-link strong { display: block; font-size: .92rem; margin-bottom: .15rem; }
.mega-link small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.mega-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    display: grid;
    place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.mega-promo-card {
    background: linear-gradient(145deg, rgba(249,115,22,.12), rgba(59,130,246,.1));
    border: 1px solid rgba(249,115,22,.2);
    border-radius: 16px;
    padding: 1rem;
    height: 100%;
}
.mega-promo-card strong { display: block; margin-bottom: .4rem; }
.mega-promo-card p { color: var(--muted); font-size: .82rem; margin: 0 0 .8rem; line-height: 1.45; }

/* Hero */
.cf-hero {
    position: relative;
    padding: 5.5rem 0 4rem;
    overflow: hidden;
}
.cf-hero-home { padding-bottom: 3rem; }
.cf-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.cf-hero-mesh {
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59,130,246,.18), transparent),
        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(249,115,22,.12), transparent),
        radial-gradient(ellipse 40% 30% at 10% 60%, rgba(59,130,246,.08), transparent);
}
.cf-hero-inner, .cf-hero .container { position: relative; z-index: 2; }
.cf-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.cf-hero-content h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -.04em;
    margin: 0 0 1.2rem;
    max-width: none;
}
.cf-hero-product .cf-hero-content h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

/* Globe */
.cf-globe {
    position: absolute;
    right: -8%;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    pointer-events: none;
    opacity: .35;
}
.cf-globe-core {
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(59,130,246,.25), rgba(249,115,22,.08) 60%, transparent);
    border: 1px solid rgba(255,255,255,.06);
}
.cf-globe-ring {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    border: 1px solid rgba(59,130,246,.2);
    animation: globeSpin 24s linear infinite;
}
.cf-globe-ring-2 {
    inset: 0;
    border-color: rgba(249,115,22,.15);
    animation-duration: 36s;
    animation-direction: reverse;
}
@keyframes globeSpin { to { transform: rotate(360deg); } }

/* Hero tabs */
.cf-hero-panel {
    background: rgba(12,16,25,.85);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 1rem;
    backdrop-filter: blur(12px);
}
.cf-tab-bar {
    display: flex;
    gap: .35rem;
    margin-bottom: 1rem;
    padding: .25rem;
    background: rgba(255,255,255,.03);
    border-radius: 12px;
}
.cf-tab {
    flex: 1;
    padding: .55rem .5rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s;
}
.cf-tab:hover { color: var(--text); }
.cf-tab.active {
    background: rgba(249,115,22,.15);
    color: var(--text);
}
.cf-tab-panel { display: none; }
.cf-tab-panel.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* Logo strip */
.cf-logo-strip {
    border-block: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: 1.25rem 0;
    overflow: hidden;
}
.cf-logo-label {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: .82rem;
    margin-bottom: .85rem;
}
.cf-logo-marquee {
    display: flex;
    gap: 3rem;
    animation: marquee 28s linear infinite;
    width: max-content;
}
.cf-logo-marquee span {
    color: rgba(255,255,255,.25);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -.02em;
    white-space: nowrap;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Product cards */
.cf-product-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.cf-product-card {
    display: flex;
    flex-direction: column;
    padding: 1.4rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(17,24,39,.7), rgba(12,16,25,.9));
    transition: border-color .2s, transform .2s, box-shadow .2s;
    min-height: 220px;
}
.cf-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(249,115,22,.3);
    box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.cf-product-card-icon { font-size: 1.6rem; margin-bottom: .8rem; }
.cf-product-card-tag {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: .4rem;
}
.cf-product-card h3 { margin: 0 0 .5rem; font-size: 1rem; }
.cf-product-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; flex: 1; }
.cf-link-arrow {
    margin-top: 1rem;
    font-size: .84rem;
    font-weight: 700;
    color: var(--primary);
}
.cf-accent-orange:hover { border-color: rgba(249,115,22,.35); }
.cf-accent-blue:hover { border-color: rgba(59,130,246,.35); }
.cf-accent-green:hover { border-color: rgba(34,197,94,.35); }

/* Architecture */
.cf-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.cf-check-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
}
.cf-check-list li {
    padding: .45rem 0;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .55rem;
}
.cf-check-list li::before {
    content: '✓';
    color: var(--green);
    font-weight: 800;
}
.cf-arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 2rem;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.cf-arch-node {
    padding: 1rem 1.5rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(17,24,39,.8);
    text-align: center;
    font-weight: 700;
    min-width: 200px;
}
.cf-arch-edge {
    border-color: rgba(249,115,22,.35);
    background: rgba(249,115,22,.08);
    box-shadow: 0 0 40px rgba(249,115,22,.1);
}
.cf-arch-sub { font-size: .75rem; color: var(--muted); font-weight: 500; margin-top: .3rem; }
.cf-arch-line {
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, var(--border-strong), rgba(249,115,22,.4));
}

/* Solutions */
.cf-solution-card {
    display: flex;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.02);
    transition: border-color .2s, transform .2s;
}
.cf-solution-card:hover {
    border-color: rgba(59,130,246,.3);
    transform: translateY(-2px);
}
.cf-solution-icon { font-size: 1.8rem; }
.cf-solution-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.cf-solution-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Dev banner */
.cf-dev-banner {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(17,24,39,.9));
}
.cf-dev-code {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: #070b12;
    border: 1px solid var(--border);
    font-family: ui-monospace, monospace;
    font-size: .82rem;
    color: #93c5fd;
    line-height: 1.6;
}

/* Product page */
.cf-product-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}
.cf-product-icon { font-size: 4rem; }
.cf-stat-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.cf-stat-pill {
    text-align: center;
    padding: .75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    min-width: 100px;
}
.cf-stat-pill strong { display: block; font-size: 1.1rem; }
.cf-stat-pill span { font-size: .72rem; color: var(--muted); }

.cf-feature-grid { gap: 1rem; }
.cf-feature-tile {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.02);
}
.cf-feature-tile-icon { font-size: 1.5rem; flex-shrink: 0; }
.cf-feature-tile h3 { margin: 0 0 .35rem; font-size: 1rem; }
.cf-feature-tile p { margin: 0; color: var(--muted); font-size: .88rem; }

.cf-use-cases { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }
.cf-use-case {
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    font-size: .88rem;
    color: var(--muted);
}

.cf-product-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.cf-product-link {
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color .2s;
}
.cf-product-link:hover { border-color: rgba(249,115,22,.3); }
.cf-product-link span:first-child { font-size: 1.4rem; display: block; margin-bottom: .5rem; }
.cf-product-link strong { display: block; margin-bottom: .3rem; }
.cf-product-link small { color: var(--muted); font-size: .8rem; line-height: 1.35; }

/* Responsive */
@media (max-width: 1100px) {
    .cf-product-cards { grid-template-columns: repeat(3, 1fr); }
    .cf-product-links { grid-template-columns: repeat(2, 1fr); }
    .mega-grid { grid-template-columns: 1fr 1fr; }
    .mega-promo { grid-column: 1 / -1; }
    .cf-globe { display: none; }
}

@media (max-width: 980px) {
    .cf-hero-grid, .cf-split, .cf-dev-banner { grid-template-columns: 1fr; }
    .cf-product-cards { grid-template-columns: 1fr 1fr; }
    .nav-auth {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: .5rem;
        border-top: 1px solid var(--border);
        width: 100%;
        justify-content: center;
    }
    .mega-menu {
        position: static;
        transform: none;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        margin-top: .5rem;
        box-shadow: none;
    }
    .nav-item.open .mega-menu { display: block; }
    .mega-grid, .mega-grid-2 { grid-template-columns: 1fr; }
    .nav-item { width: 100%; }
    .nav-trigger { width: 100%; justify-content: space-between; }
}

@media (max-width: 600px) {
    .cf-product-cards, .cf-product-links { grid-template-columns: 1fr; }
    .cf-tab { font-size: .72rem; padding: .45rem .3rem; }
}
