/* ============================================================
   RBC Enterprise | Landing Page
   Liquid Glass + Cinematic Film Strip Background
   ============================================================ */

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

:root {
    --bg: #060a10;
    --glass: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.08);
    --glass-hi: rgba(255,255,255,0.12);
    --text-1: #eef0f4;
    --text-2: rgba(230,234,242,0.6);
    --text-3: rgba(230,234,242,0.3);
    --blue: #2d8cf0;
    --cyan: #22b8cf;
    --amber: #e0a030;
    --steel: #4a7c9b;
    --r: 14px;
    --t: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-1);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* =============== CINEMATIC BACKGROUND =============== */
.cinematic-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#filmCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }

.film-grain {
    position: absolute; inset: -50%; width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.04; animation: grain 0.5s steps(6) infinite;
}
@keyframes grain {
    0%,100%{transform:translate(0)} 20%{transform:translate(-2%,3%)}
    40%{transform:translate(3%,-1%)} 60%{transform:translate(-1%,-3%)} 80%{transform:translate(2%,2%)}
}

.film-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.6) 100%); }

.gradient-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.14; animation: orb 22s ease-in-out infinite; }
.orb-a { width: 550px; height: 550px; background: radial-gradient(circle, var(--blue), transparent 70%); top: -8%; left: 8%; }
.orb-b { width: 500px; height: 500px; background: radial-gradient(circle, var(--cyan), transparent 70%); top: 45%; right: -5%; animation-delay: -7s; }
.orb-c { width: 400px; height: 400px; background: radial-gradient(circle, var(--amber), transparent 70%); bottom: -5%; left: 40%; animation-delay: -14s; }
@keyframes orb {
    0%,100%{transform:translate(0) scale(1)} 25%{transform:translate(30px,-40px) scale(1.05)}
    50%{transform:translate(-20px,20px) scale(0.95)} 75%{transform:translate(15px,30px) scale(1.02)}
}

/* =============== LIQUID GLASS =============== */
.glass-card {
    background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r);
    backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
    box-shadow: 0 4px 24px rgba(0,0,0,0.22), inset 0 1px 0 var(--glass-hi);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    position: relative;
}
.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); pointer-events: none;
}
.glass-card:hover {
    border-color: rgba(255,255,255,0.14); transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* =============== NOTCH NAVBAR =============== */
.notch-nav {
    position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
    z-index: 1000; width: auto; max-width: calc(100% - 32px);
}

.notch-inner {
    display: flex; align-items: center; gap: 6px;
    padding: 9px 12px 9px 16px;
    background: rgba(8, 14, 22, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    box-shadow: 0 4px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: background 0.4s, box-shadow 0.4s;
}

.notch-nav.scrolled .notch-inner {
    background: rgba(8, 14, 22, 0.88);
    box-shadow: 0 8px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.07);
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text-1);
    padding-right: 12px; border-right: 1px solid var(--glass-border);
    margin-right: 4px;
}

.brand-logo {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    object-fit: contain;
    filter: brightness(1.1);
}

.brand-mark {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; color: #fff;
    box-shadow: 0 3px 12px rgba(45,140,240,0.3);
}

.nav-brand span {
    font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.92rem;
    white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 2px; }

.nav-links a {
    text-decoration: none; color: var(--text-2); font-size: 0.88rem; font-weight: 500;
    padding: 8px 16px; border-radius: 50px; transition: var(--t); white-space: nowrap;
}
.nav-links a:hover { color: var(--text-1); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: #fff; background: rgba(45,140,240,0.18); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px; margin-left: 4px;
}
.nav-toggle span {
    display: block; width: 20px; height: 2px; background: var(--text-2);
    border-radius: 2px; transition: var(--t);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* =============== HERO =============== */
.hero {
    position: relative; z-index: 1;
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    gap: 56px; padding: 130px 28px 90px;
    max-width: 1180px; margin: 0 auto;
}

.hero-content { flex: 1; }

.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--cyan); margin-bottom: 22px;
}
.hero-tag i { font-size: 0.42rem; }

.hero h1 {
    font-family: 'Space Grotesk', sans-serif; font-size: 3.8rem; font-weight: 700;
    line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p { font-size: 1.15rem; line-height: 1.7; color: var(--text-2); max-width: 500px; margin-bottom: 36px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 50px; font-size: 0.95rem; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer; transition: var(--t);
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff; box-shadow: 0 4px 20px rgba(45,140,240,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(45,140,240,0.45); transform: translateY(-1px); }

.btn-ghost {
    background: var(--glass); color: var(--text-1);
    border: 1px solid var(--glass-border);
}
.btn-ghost:hover { background: var(--glass-hi); border-color: rgba(255,255,255,0.16); }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.hero-visual { flex-shrink: 0; z-index: 1; }

/* Liquid Sphere */
.liquid-sphere { width: 280px; height: 280px; position: relative; display: flex; align-items: center; justify-content: center; }

.sphere-inner {
    width: 100px; height: 100px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(45,140,240,0.18), rgba(34,184,207,0.18));
    border: 1px solid rgba(45,140,240,0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--blue);
    box-shadow: 0 0 44px rgba(45,140,240,0.16), inset 0 0 22px rgba(45,140,240,0.07);
    animation: pulse 4s ease-in-out infinite;
    overflow: hidden;
}

.sphere-logo {
    width: 70px; height: 70px; object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(45,140,240,0.3));
}
@keyframes pulse {
    0%,100%{box-shadow:0 0 44px rgba(45,140,240,0.16),inset 0 0 22px rgba(45,140,240,0.07)}
    50%{box-shadow:0 0 64px rgba(45,140,240,0.24),inset 0 0 30px rgba(45,140,240,0.12)}
}

.sphere-orbit { position: absolute; border: 1px solid rgba(255,255,255,0.05); border-radius: 50%; animation: spin linear infinite; }
.orbit-1 { width: 160px; height: 160px; animation-duration: 12s; }
.orbit-2 { width: 215px; height: 215px; animation-duration: 18s; animation-direction: reverse; border-color: rgba(34,184,207,0.08); }
.orbit-3 { width: 280px; height: 280px; animation-duration: 25s; border-color: rgba(224,160,48,0.06); }

.sphere-orbit::after {
    content: ''; position: absolute; width: 6px; height: 6px;
    background: var(--blue); border-radius: 50%; top: -3px; left: 50%; transform: translateX(-50%);
    box-shadow: 0 0 10px var(--blue);
}
.orbit-2::after { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.orbit-3::after { background: var(--amber); box-shadow: 0 0 10px var(--amber); width: 5px; height: 5px; top: -2.5px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =============== ABOUT STRIP =============== */
.about-strip { position: relative; z-index: 1; padding: 0 0 90px; }

.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.about-card { padding: 28px 22px; text-align: center; }

.about-icon {
    width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 16px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.1rem;
}

.about-card h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.about-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.55; }

/* =============== MISSION =============== */
.mission-section { position: relative; z-index: 1; padding-bottom: 90px; }

.mission {
    display: flex; align-items: center; gap: 20px; padding: 28px 32px;
    background: linear-gradient(135deg, rgba(45,140,240,0.06), rgba(34,184,207,0.04), var(--glass));
    border-color: rgba(45,140,240,0.1);
}
.mission i { font-size: 1.2rem; color: var(--blue); flex-shrink: 0; }
.mission p { font-size: 1.05rem; color: var(--text-2); line-height: 1.65; }

/* =============== SECTIONS =============== */
.competencies-section,
.approach-section,
.sectors-section,
.vision-section,
.cta-section {
    position: relative; z-index: 1; padding-bottom: 90px;
}

.section-head { margin-bottom: 32px; }

.section-tag {
    display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 8px;
}

.section-head h2 {
    font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em;
}

/* =============== COMPETENCIES =============== */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }

.comp-card { padding: 30px; }
.comp-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(45,140,240,0.05), rgba(34,184,207,0.03), var(--glass));
    border-color: rgba(45,140,240,0.12);
}

.comp-icon {
    width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
    background: rgba(45,140,240,0.1); border: 1px solid rgba(45,140,240,0.16);
    display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 1.05rem;
}

.comp-card:nth-child(3) .comp-icon { background: rgba(34,184,207,0.1); border-color: rgba(34,184,207,0.16); color: var(--cyan); }
.comp-card:nth-child(4) .comp-icon { background: rgba(224,160,48,0.1); border-color: rgba(224,160,48,0.16); color: var(--amber); }
.comp-card:nth-child(5) .comp-icon { background: rgba(74,124,155,0.12); border-color: rgba(74,124,155,0.2); color: var(--steel); }
.comp-card:nth-child(6) .comp-icon { background: rgba(34,184,207,0.1); border-color: rgba(34,184,207,0.16); color: var(--cyan); }
.comp-card:nth-child(7) .comp-icon { background: rgba(224,160,48,0.1); border-color: rgba(224,160,48,0.16); color: var(--amber); }

.comp-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; line-height: 1.3; }

.comp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.comp-tags span {
    padding: 5px 12px; border-radius: 7px; font-size: 0.78rem; font-weight: 500;
    background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-2);
}

/* =============== APPROACH =============== */
.approach-steps { display: flex; align-items: center; gap: 0; }

.step { padding: 28px 20px; text-align: center; flex: 1; min-width: 0; }

.step-num {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700;
    color: var(--blue); opacity: 0.35; display: block; margin-bottom: 10px;
}
.step h4 { font-size: 0.92rem; font-weight: 600; line-height: 1.35; }

.step-connector { width: 36px; height: 1px; background: var(--glass-border); flex-shrink: 0; }

/* =============== SECTORS =============== */
.sector-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.sector { padding: 32px 20px; text-align: center; cursor: default; }
.sector i { font-size: 1.7rem; color: var(--steel); display: block; margin-bottom: 14px; opacity: 0.6; }
.sector span { font-size: 0.95rem; font-weight: 600; }

/* =============== MARQUEE =============== */
.marquee {
    position: relative; z-index: 1; overflow: hidden; padding: 22px 0; margin-bottom: 90px;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-inner {
    display: flex; align-items: center; gap: 22px; width: max-content;
    animation: scroll 30s linear infinite;
}
.marquee-inner span { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.marquee-inner .dot { width: 4px; height: 4px; background: var(--text-3); border-radius: 50%; opacity: 0.4; flex-shrink: 0; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* =============== VISION =============== */
.vision {
    text-align: center; padding: 52px 40px; overflow: hidden;
    background: linear-gradient(135deg, rgba(45,140,240,0.05), rgba(34,184,207,0.03), rgba(224,160,48,0.02));
    border-color: rgba(45,140,240,0.1);
}
.vision-icon {
    width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 20px;
    background: rgba(45,140,240,0.1); border: 1px solid rgba(45,140,240,0.18);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--blue);
}
.vision h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.vision p { font-size: 1.05rem; color: var(--text-2); line-height: 1.65; max-width: 560px; margin: 0 auto; }

/* =============== CTA =============== */
.cta { text-align: center; padding: 70px 28px; }
.cta h2 { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta p { font-size: 1.08rem; color: var(--text-2); margin-bottom: 32px; }

/* =============== FOOTER =============== */
.site-footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--glass-border); padding: 30px 0;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; }

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; filter: brightness(1.1); }
.footer-brand .brand-mark { width: 30px; height: 30px; font-size: 0.85rem; border-radius: 8px; }
.footer-brand span { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 600; }
.footer-inner p { font-size: 0.8rem; color: var(--text-3); }

/* =============== REVEAL =============== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============== SCROLLBAR =============== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 3px; }
::selection { background: rgba(45,140,240,0.3); color: #fff; }

/* =============== RESPONSIVE =============== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .approach-steps { flex-wrap: wrap; gap: 12px; }
    .step-connector { display: none; }
    .step { flex: 0 0 calc(33.333% - 10px); }
    .sector-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: calc(100% + 10px); left: 0; right: 0;
        background: rgba(8,14,22,0.92); border: 1px solid var(--glass-border);
        border-radius: 18px; padding: 12px;
        backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 18px; border-radius: 10px; }
    .nav-toggle { display: flex; }
    .nav-brand span { display: none; }
    .nav-brand { border: none; margin: 0; padding: 0; }

    .hero { flex-direction: column; text-align: center; padding: 130px 22px 60px; gap: 40px; min-height: auto; }
    .hero h1 { font-size: 2.3rem; }
    .hero p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .liquid-sphere { width: 200px; height: 200px; }
    .sphere-inner { width: 72px; height: 72px; font-size: 1.5rem; }
    .orbit-1 { width: 120px; height: 120px; }
    .orbit-2 { width: 160px; height: 160px; }
    .orbit-3 { width: 200px; height: 200px; }

    .section-head h2 { font-size: 1.9rem; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .comp-grid { grid-template-columns: 1fr; }
    .comp-card.featured { grid-column: auto; }
    .step { flex: 0 0 calc(50% - 8px); }
    .sector-row { grid-template-columns: 1fr 1fr; }
    .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
    .mission { flex-direction: column; text-align: center; }
    .cta h2 { font-size: 1.9rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .section-head h2 { font-size: 1.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .step { flex: 0 0 100%; }
    .sector-row { grid-template-columns: 1fr; }
    .cta h2 { font-size: 1.5rem; }
}
