/* Oxfai — Premium SaaS landing (neon dark + glass) */

:root {
    --void: #030712;
    --void-pure: #000000;
    --neon-violet: #8b5cf6;
    --neon-cyan: #22d3ee;
    --neon-blue: #3b82f6;
    --glass-neon: rgba(139, 92, 246, 0.06);
    --glass-border-neon: rgba(34, 211, 238, 0.18);
    --gradient-hero: linear-gradient(125deg, #c4b5fd 0%, #8b5cf6 28%, #22d3ee 62%, #67e8f9 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.35), transparent 70%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --purple-glow: #7c3aed;
    --cyan-glow: #06b6d4;
}

body.future-home {
    background: var(--void-pure);
}

body.future-home .canvas-bg {
    background:
        radial-gradient(ellipse 90% 60% at 15% -5%, rgba(139, 92, 246, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 10%, rgba(34, 211, 238, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        var(--void-pure);
}

body.future-home .grid-overlay {
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
}

body.future-home .gold-beam {
    background: linear-gradient(180deg, transparent, var(--neon-violet), var(--neon-cyan), transparent);
    opacity: 0.2;
    width: 3px;
}

body.future-home nav {
    background: rgba(0, 0, 0, 0.55);
    border-bottom-color: var(--glass-border-neon);
}

body.future-home .nav-link:hover,
body.future-home .nav-link.active { color: var(--neon-cyan); }

body.future-home .nav-cta {
    border-color: rgba(139, 92, 246, 0.45);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(34, 211, 238, 0.08));
    color: #e0f2fe;
}

/* ── Hero premium ── */
.hero-premium h1 {
    font-family: var(--sans);
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 22px;
}

.hero-premium .eyebrow {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.08);
    color: var(--neon-cyan);
}

.hero-premium .eyebrow-dot {
    background: var(--neon-cyan);
    box-shadow: 0 0 14px var(--neon-cyan);
}

/* Futuristic animated CTA */
.btn-futuriste {
    position: relative;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #000000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.btn-futuriste::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, var(--purple-glow, #7c3aed), var(--cyan-glow, #06b6d4), var(--purple-glow, #7c3aed));
    background-size: 50% 50%;
    animation: rotationDegrade 4s linear infinite;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.btn-futuriste span {
    position: relative;
    z-index: 2;
    font-family: var(--sans), system-ui, -apple-system, sans-serif;
    letter-spacing: 0.5px;
}

.btn-futuriste:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.6);
}

.btn-futuriste:hover::before {
    opacity: 1;
}

.btn-futuriste:active {
    transform: translateY(1px);
}

@keyframes rotationDegrade {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating iPhone + scan */
.phone-hero-wrap {
    position: relative;
    animation: phoneLevitate 6s ease-in-out infinite;
    filter: drop-shadow(0 40px 80px rgba(139, 92, 246, 0.25));
}

@keyframes phoneLevitate {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-18px) rotate(1deg); }
}

.phone-hero-wrap .phone {
    width: 280px;
    border-radius: 40px;
    padding: 14px;
    background: linear-gradient(165deg, #1e1b4b 0%, #0f172a 40%, #020617 100%);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.scan-screen {
    position: relative;
    min-height: 440px !important;
    background: linear-gradient(180deg, #0a0a12 0%, #030712 100%) !important;
    overflow: hidden;
}

.scan-rays {
    position: absolute;
    inset: 0;
    background:
        conic-gradient(from 200deg at 50% 80%, transparent 0deg, rgba(34, 211, 238, 0.12) 40deg, transparent 80deg),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(139, 92, 246, 0.2), transparent 70%);
    pointer-events: none;
    animation: rayPulse 3s ease-in-out infinite;
}

@keyframes rayPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.scan-line {
    position: absolute;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-violet), transparent);
    box-shadow: 0 0 20px var(--neon-cyan);
    animation: scanSweep 2.8s ease-in-out infinite;
    z-index: 3;
}

@keyframes scanSweep {
    0% { top: 18%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 78%; opacity: 0; }
}

.scan-doc {
    margin: 20px 14px 0;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(34, 211, 238, 0.12);
    position: relative;
    z-index: 2;
}

.scan-doc-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
}

.scan-doc-bar:nth-child(1) { width: 92%; }
.scan-doc-bar:nth-child(2) { width: 78%; }
.scan-doc-bar:nth-child(3) { width: 85%; }
.scan-doc-bar:nth-child(4) { width: 60%; }

.scan-chat {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.scan-chat .bubble {
    font-size: 0.62rem;
    animation: fadeChat 4s ease-in-out infinite;
}

.scan-chat .bubble.ai {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.25);
}

.scan-chat .bubble.ai .cite {
    display: block;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(34, 211, 238, 0.12);
    border-left: 2px solid var(--neon-cyan);
    font-family: var(--mono);
    font-size: 0.5rem;
    color: var(--neon-cyan);
}

@keyframes fadeChat {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.hero-premium .phone-float { display: none; }
.hero-premium .device-ring {
    border-color: rgba(139, 92, 246, 0.12);
    width: 380px;
    height: 380px;
}

.hero-premium .device-ring::before {
    border-top-color: rgba(34, 211, 238, 0.4);
}

/* ── Constellation ── */
.constellation-section {
    position: relative;
    padding: 100px clamp(20px, 5vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.constellation-section h2 {
    font-family: var(--sans);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #e9d5ff, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.constellation-section .sub {
    text-align: center;
    color: rgba(235, 230, 217, 0.45);
    max-width: 560px;
    margin: 0 auto 48px;
    font-size: 0.95rem;
}

.constellation-stage {
    position: relative;
    height: min(420px, 70vw);
    max-height: 420px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border-neon);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.constellation-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.constellation-line {
    stroke: rgba(34, 211, 238, 0.15);
    stroke-width: 1;
    fill: none;
}

.constellation-line-glow {
    stroke: url(#lineGrad);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.5;
    animation: lineShimmer 4s ease-in-out infinite;
}

@keyframes lineShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.constellation-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.15));
    border: 1px solid rgba(34, 211, 238, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.35);
    z-index: 5;
}

.constellation-core img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

.orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    animation: orbitSpin var(--dur, 40s) linear infinite;
}

.orbit-item {
    position: absolute;
    left: var(--r, 140px);
    top: 0;
    transform: translate(-50%, -50%);
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: rgba(224, 242, 254, 0.9);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(8px);
    transition: border-color 0.25s, transform 0.25s;
}

.orbit-item:hover {
    border-color: var(--neon-cyan);
    transform: translate(-50%, -50%) scale(1.05);
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit:nth-child(odd) { animation-direction: reverse; }

/* ── Bento Grid ── */
.bento-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 clamp(20px, 5vw, 40px) 80px;
    color: #ffffff;
}

.bento-title {
    text-align: center;
    font-family: var(--sans);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.bento-container .bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-container .bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.1);
}

.bento-container .card-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), var(--card-bg));
}

.bento-container .card-large:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.1);
}

.bento-container .card-medium {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-container .card-medium2 {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-container .card-small {
    grid-column: span 1;
    grid-row: span 1;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), var(--card-bg));
}

.bento-container .card-content h3 {
    font-family: var(--sans);
    font-size: 1.5rem;
    margin: 10px 0;
    font-weight: 600;
    color: #fff;
}

.bento-container .card-content p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 52ch;
}

.bento-container .card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c084fc;
}

.bento-container .card-large .card-badge {
    color: var(--neon-cyan);
}

.bento-container .card-content {
    position: relative;
    z-index: 2;
    max-width: 54%;
}

.bento-container .card-medium .card-content,
.bento-container .card-medium2 .card-content {
    max-width: 100%;
}

.bento-container .card-preview {
    position: absolute;
    bottom: 0;
    right: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-top-left-radius: 16px;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    z-index: 1;
}

.bento-container .card-preview--chat {
    width: 46%;
    height: 72%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bento-container .card-preview--library {
    width: 52%;
    height: 58%;
    padding: 10px 12px;
}

.bento-container .card-preview--cursus {
    width: 44%;
    height: 62%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 10px;
}

.bento-container .chat-preview-ui {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.bento-container .chat-preview-q {
    align-self: flex-end;
    max-width: 95%;
    padding: 7px 9px;
    border-radius: 10px 10px 4px 10px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    font-size: 0.58rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.85);
}

.bento-container .chat-preview-a {
    align-self: flex-start;
    max-width: 98%;
    padding: 7px 9px;
    border-radius: 4px 10px 10px 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(34, 211, 238, 0.2);
    font-size: 0.54rem;
    line-height: 1.4;
    color: rgba(235, 230, 217, 0.75);
}

.bento-container .chat-preview-a mark {
    background: rgba(34, 211, 238, 0.15);
    color: var(--neon-cyan);
    padding: 1px 3px;
    border-radius: 3px;
    font-style: normal;
}

.bento-container .chat-preview-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bento-container .chat-preview-sources span {
    font-family: var(--mono);
    font-size: 0.42rem;
    letter-spacing: 0.04em;
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: var(--neon-cyan);
}

.bento-container .card-preview-shot {
    flex: 1;
    min-height: 0;
    margin-top: auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.bento-container .card-preview-shot--sm {
    position: absolute;
    bottom: 8px;
    right: 10px;
    width: 42%;
    height: 52%;
    margin-top: 0;
}

.bento-container .card-preview-img,
.bento-container .card-preview-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.bento-container .card-preview-video {
    display: none;
}

.bento-container .card-preview-shot.has-video .card-preview-video {
    display: block;
}

.bento-container .card-preview-shot.has-video .card-preview-img {
    display: none;
}

.bento-container .library-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    max-width: 52%;
    align-content: start;
}

.bento-container .library-preview-grid span {
    font-family: var(--mono);
    font-size: 0.46rem;
    letter-spacing: 0.04em;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.22);
    color: rgba(196, 181, 253, 0.9);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bento-container .cursus-shelf {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    padding-bottom: 6px;
    width: 100%;
    max-width: 48%;
}

.bento-container .shelf-book {
    width: 22px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, var(--neon-violet), #4c1d95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.bento-container .shelf-book:nth-child(1) { height: 44px; background: linear-gradient(180deg, #8b5cf6, #5b21b6); }
.bento-container .shelf-book:nth-child(2) { height: 54px; background: linear-gradient(180deg, #22d3ee, #0891b2); }
.bento-container .shelf-book:nth-child(3) { height: 38px; }
.bento-container .shelf-book:nth-child(4) { height: 58px; background: linear-gradient(180deg, #6366f1, #4338ca); }
.bento-container .shelf-book:nth-child(5) { height: 48px; background: linear-gradient(180deg, #22d3ee, #0284c7); }

.bento-container .shelf-base {
    width: 46%;
    height: 3px;
    margin-bottom: 6px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.4), transparent);
}

.bento-container .bento-card:hover .card-preview-img {
    transform: scale(1.03);
    transition: transform 0.4s ease;
}

.bento-container .freemium-preview {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.bento-container .freemium-tier {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
}

.bento-container .freemium-tier--free {
    border-color: rgba(255, 255, 255, 0.12);
}

.bento-container .freemium-tier--prestige {
    border-color: rgba(124, 58, 237, 0.35);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(0, 0, 0, 0.25));
}

.bento-container .freemium-tier-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.bento-container .freemium-tier--prestige .freemium-tier-label {
    color: #c4b5fd;
}

.bento-container .freemium-tier-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.bento-container .freemium-tier--prestige .freemium-tier-dot {
    background: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

@media (max-width: 900px) {
    .bento-container .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .bento-container .bento-card {
        grid-column: auto !important;
        grid-row: auto !important;
        height: auto;
        min-height: 200px;
    }

    .bento-container .card-content {
        max-width: 100%;
    }

    .bento-container .card-preview--chat,
    .bento-container .card-preview--library,
    .bento-container .card-preview--cursus {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 180px;
        margin-top: 16px;
        border-radius: 14px;
    }

    .bento-container .card-preview-shot--sm {
        position: relative;
        width: 55%;
        height: 140px;
        margin: 12px auto 0;
        right: auto;
        bottom: auto;
    }

    .bento-container .library-preview-grid {
        max-width: 100%;
    }

    .bento-container .cursus-shelf {
        max-width: 100%;
    }

    .constellation-stage { height: 360px; }
    .orbit-item { font-size: 0.48rem; padding: 6px 10px; }
}
