/* ═══════════════════════════════════════
   GLOBAL NEXUS — Design System v2
   Style: Editorial Dark / Premium Tech
   ═══════════════════════════════════════ */

/* ─── Tokens ─── */
:root {
    --blue-500: #2979FF;
    --blue-400: #448AFF;
    --blue-600: #2962FF;
    --blue-900: #1A237E;
    --blue-glow: rgba(41, 121, 255, 0.15);

    --surface-0: #06060A;
    --surface-1: #0C0C12;
    --surface-2: #12121A;
    --surface-3: #1A1A24;
    --surface-4: #22222E;

    --text-100: #FFFFFF;
    --text-200: #E0E0E8;
    --text-300: #A0A0B0;
    --text-400: #707080;

    --gradient-brand: linear-gradient(135deg, var(--blue-500), var(--blue-900));
    --gradient-surface: linear-gradient(180deg, var(--surface-0) 0%, var(--surface-1) 100%);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.6s;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--surface-0);
    color: var(--text-200);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-100);
    font-weight: 700;
    line-height: 1.1;
}

h1 { font-size: clamp(2.8rem, 7vw, 5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.01em; }

em {
    font-style: normal;
    color: var(--blue-500);
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-500);
    margin-bottom: 16px;
}

.text-center { text-align: center; }

/* ─── Scroll Progress ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--gradient-brand);
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s var(--ease);
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background: var(--blue-500);
    color: white;
    box-shadow: 0 0 0 0 var(--blue-glow);
}

.btn--primary:hover {
    background: var(--blue-600);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--blue-glow);
}

.btn--ghost {
    color: var(--text-300);
    border: 1px solid var(--surface-4);
    background: transparent;
}

.btn--ghost:hover {
    color: var(--text-100);
    border-color: var(--text-400);
    transform: translateY(-3px);
}

.btn--large {
    padding: 20px 40px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

/* ─── Header / Nav ─── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(6, 6, 10, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.nav__logo:hover { opacity: 0.8; }

.nav__logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transform: scale(2);
    transform-origin: left center;
}

.nav__menu {
    display: flex;
    gap: 36px;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-400);
    transition: color 0.3s;
}

.nav__link:hover { color: var(--text-100); }

.nav__cta {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--blue-500);
    padding: 10px 20px;
    border: 1px solid rgba(41, 121, 255, 0.3);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease);
}

.nav__cta:hover {
    background: rgba(41, 121, 255, 0.1);
    border-color: var(--blue-500);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-100);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

/* ─── Mobile Overlay ─── */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--surface-0);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu {
    text-align: center;
}

.mobile-menu li { margin-bottom: 32px; }

.mobile-menu a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-100);
    transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--blue-500); }

.mobile-menu__cta {
    color: var(--blue-500) !important;
    font-size: 1.5rem !important;
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 160px 0 120px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.hero__orb--1 {
    width: 600px;
    height: 600px;
    background: var(--blue-900);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: var(--blue-500);
    bottom: -100px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.hero__grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__symbol {
    width: 100%;
    max-width: 420px;
    height: auto;
    opacity: 0.12;
    filter: brightness(1.8);
    animation: float 20s ease-in-out infinite;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(41, 121, 255, 0.06);
    border: 1px solid rgba(41, 121, 255, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue-400);
    margin-bottom: 40px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--blue-500);
    border-radius: 50%;
    animation: blink 2s infinite;
}

.hero__title {
    margin-bottom: 28px;
    max-width: 900px;
}

.hero__sub {
    font-size: 1.15rem;
    color: var(--text-300);
    max-width: 680px;
    margin-bottom: 48px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.hero__metrics {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 32px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 80px;
}

.metric__value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-100);
    letter-spacing: -0.02em;
}

.metric__suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blue-500);
}

.metric__label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-400);
    margin-top: 4px;
}

.metric__divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.08);
}

/* ─── Manifesto ─── */
.manifesto {
    padding: 160px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.manifesto__grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 80px;
    align-items: start;
}

.manifesto__title {
    margin-bottom: 32px;
}

.manifesto__text {
    font-size: 1.15rem;
    color: var(--text-300);
    max-width: 700px;
    line-height: 1.8;
}

/* ─── Problems (Bento Grid) ─── */
.problems {
    padding: 160px 0;
}

.section-header {
    margin-bottom: 64px;
}

.section-header h2 {
    max-width: 600px;
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento__card {
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}

.bento__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.5s;
}

.bento__card:hover {
    transform: translateY(-8px);
    border-color: rgba(41, 121, 255, 0.15);
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.bento__card:hover::before { opacity: 1; }

.bento__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 121, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--blue-500);
    margin-bottom: 32px;
}

.bento__card h3 {
    margin-bottom: 16px;
}

.bento__card p {
    color: var(--text-400);
    font-size: 0.95rem;
}

/* ─── Services ─── */
.services {
    padding: 160px 0;
    background: var(--surface-1);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    transition: all 0.5s var(--ease);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(41, 121, 255, 0.12);
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.service-card--featured {
    background: linear-gradient(180deg, rgba(41, 121, 255, 0.08) 0%, var(--surface-2) 100%);
    border-color: rgba(41, 121, 255, 0.2);
}

.service-card__number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: var(--surface-3);
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
    pointer-events: none;
}

.service-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    color: var(--blue-500);
}

.service-card__header h3 {
    color: var(--text-100);
}

.service-card__tagline {
    font-size: 0.85rem;
    color: var(--blue-400);
    font-weight: 600;
    margin-bottom: 20px;
}

.service-card p {
    color: var(--text-400);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-card__features {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
}

.service-card__features li {
    font-size: 0.875rem;
    color: var(--text-300);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.service-card__features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--blue-500);
    font-weight: 700;
}

/* ─── Method ─── */
.method {
    padding: 160px 0;
}

.method__layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 100px;
    align-items: start;
}

.method__sticky h2 {
    margin-bottom: 24px;
}

.method__sticky p {
    color: var(--text-400);
    font-size: 1.05rem;
}

.method__steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.method__step {
    display: flex;
    gap: 32px;
    padding: 40px;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--radius-lg);
    transition: all 0.5s var(--ease);
}

.method__step:hover {
    border-color: rgba(41, 121, 255, 0.15);
    transform: translateX(8px);
}

.method__step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--blue-500);
    opacity: 0.2;
    line-height: 1;
    flex-shrink: 0;
}

.method__step h3 {
    margin-bottom: 12px;
}

.method__step p {
    color: var(--text-400);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.method__step-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue-400);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ─── Leader ─── */
.leader {
    padding: 160px 0;
    background: var(--surface-1);
}

.leader__layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
}

.leader__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.leader__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: relative;
    z-index: 3;
    border-radius: var(--radius-xl);
}

.leader__photo-frame {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(41,121,255,0.2);
    border-radius: var(--radius-xl);
    z-index: 4;
    pointer-events: none;
}

.leader__photo-glow {
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 80%, var(--blue-glow) 0%, transparent 50%);
    z-index: 1;
}

.leader__content .tag { margin-bottom: 12px; }

.leader__content h2 {
    margin-bottom: 8px;
}

.leader__role {
    display: block;
    color: var(--blue-400);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.leader__content p {
    color: var(--text-300);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* ─── FAQ ─── */
.faq {
    padding: 160px 0;
}

.faq__layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: start;
}

.faq__item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 28px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-200);
    cursor: pointer;
    transition: color 0.3s;
    list-style: none;
}

.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { display: none; content: ''; }

.faq__question:hover { color: var(--text-100); }

.faq__icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    background: var(--text-300);
    transition: transform 0.4s var(--ease);
}

.faq__icon::before {
    width: 16px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq__icon::after {
    width: 2px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

details[open] .faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq__answer {
    padding-bottom: 28px;
    color: var(--text-400);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 680px;
    animation: fadeDown 0.4s var(--ease);
}

/* ─── CTA ─── */
.cta {
    padding: 200px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--surface-1);
}

.cta__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(41,121,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 2;
}

.cta__alert {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FF6B6B;
    margin-bottom: 32px;
}

.cta__title {
    margin-bottom: 24px;
}

.cta__sub {
    font-size: 1.15rem;
    color: var(--text-400);
    margin-bottom: 48px;
    line-height: 1.8;
}

/* ─── Footer ─── */
.footer {
    padding: 80px 0 48px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 64px;
    gap: 48px;
}

.footer__brand {
    max-width: 340px;
}

.footer__brand p {
    margin-top: 16px;
    color: var(--text-400);
    font-size: 0.9rem;
}

.footer__links {
    display: flex;
    gap: 80px;
}

.footer__col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-100);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer__col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-400);
    padding: 6px 0;
    transition: color 0.3s;
}

.footer__col a:hover { color: var(--text-100); }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 32px;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--text-400);
    margin-bottom: 4px;
}

.footer__bottom a { color: var(--blue-400); }

/* ─── Animations ─── */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(10px, 10px) scale(1.02); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .manifesto__grid { grid-template-columns: 1fr; gap: 24px; }
    .bento { grid-template-columns: 1fr; }
    .services__grid { grid-template-columns: 1fr; }
    .method__layout { grid-template-columns: 1fr; gap: 48px; }
    .leader__layout { grid-template-columns: 1fr; gap: 48px; }
    .leader__photo { max-width: 360px; margin: 0 auto; }
    .faq__layout { grid-template-columns: 1fr; gap: 32px; }
    .hero__metrics { gap: 32px; }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { display: none; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav__menu, .nav__cta { display: none; }
    .nav__toggle { display: flex; }

    .hero { padding: 140px 0 80px; }
    .hero__sub br { display: none; }
    .hero__metrics { 
        flex-direction: row; 
        align-items: center; 
        gap: 16px; 
        justify-content: space-between;
    }
    .metric__divider { 
        width: 1px; 
        height: 32px; 
    }
    .metric__value, .metric__suffix {
        font-size: 1.8rem;
    }
    .metric__label {
        font-size: 0.75rem;
    }

    section { padding: 100px 0 !important; }

    .footer__top { flex-direction: column; }
    .method__step { flex-direction: column; gap: 16px; padding: 28px; }
}
