/* ===== NOXIS — PREMIUM SAAS LANDING (Optimized) ===== */

/* === Keyframes (lightweight only) === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}

/* === Base === */
#landingScreen {
    width: 100%;
    min-height: 100vh;
    background: #0a0a0a;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow-x: hidden;
}

body.light-mode #landingScreen {
    background: #fafafa;
    color: #1e293b;
}

/* Static mesh orbs (no animation, GPU-friendly) */
.landing-mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    will-change: auto;
}

.mesh-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4f46e5, transparent);
    top: -150px;
    left: -100px;
    filter: blur(80px);
}

.mesh-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7c3aed, transparent);
    top: 40%;
    right: -100px;
    filter: blur(80px);
}

.mesh-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #6366f1, transparent);
    bottom: -80px;
    left: 25%;
    filter: blur(80px);
}

body.light-mode .mesh-orb {
    opacity: 0.05;
}

/* Grid overlay (static, no mask for perf) */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

body.light-mode .grid-overlay {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

/* Remove beam for performance */
.hero-beam {
    display: none;
}

/* === Navigation === */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

body.light-mode .landing-nav {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
}

.l-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

body.light-mode .l-brand {
    color: #0f172a;
}

.l-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.l-links {
    display: flex;
    gap: 28px;
}

.l-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.l-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

body.light-mode .l-links a {
    color: #94a3b8;
}

body.light-mode .l-links a:hover {
    color: #0f172a;
}

.l-btn-icon {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}

body.light-mode .l-btn-icon {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #64748b;
}

.l-btn-icon:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.2);
}

.l-btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.2s;
}

body.light-mode .l-btn-outline {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1e293b;
}

.l-btn-outline:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

body.light-mode .l-btn-outline:hover {
    background: rgba(99, 102, 241, 0.05);
    color: #4f46e5;
}

/* === Hero Section === */
.hero-section {
    padding: 160px 40px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 250px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12), transparent 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

body.light-mode .hero-glow {
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.06), transparent 70%);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

body.light-mode .hero-badge {
    background: rgba(99, 102, 241, 0.05);
    color: #6366f1;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6366f1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 40%, #94a3b8 60%, #f8fafc 100%);
    background-size: 300% 300%;
    animation: gradientText 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .hero-title {
    background: linear-gradient(135deg, #0f172a 0%, #334155 40%, #6366f1 60%, #0f172a 100%);
    background-size: 300% 300%;
    animation: gradientText 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto 36px;
}

body.light-mode .hero-sub {
    color: #64748b;
}

.l-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 16px 40px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.25);
    animation: ctaPulse 3s ease-in-out infinite;
}

.l-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(79, 70, 229, 0.35);
    animation: none;
}

/* === Features Bento Grid === */
.features-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: white;
}

body.light-mode .section-title {
    color: #0f172a;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    margin-bottom: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

body.light-mode .section-subtitle {
    color: #64748b;
}

.features-grid.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bento-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: default;
    position: relative;
}

body.light-mode .bento-card {
    background: #fff;
    border-color: #e5e7eb;
}

.bento-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

body.light-mode .bento-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.15);
}

.span-2 {
    grid-column: span 2;
}

.span-full {
    grid-column: span 3;
    flex-direction: row;
    align-items: center;
    gap: 28px;
}

.f-icon {
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.06);
    color: #818cf8;
    border-radius: 12px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bento-card h3 {
    font-size: 1.15rem;
    margin: 14px 0 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

body.light-mode .bento-card h3 {
    color: #0f172a;
}

.bento-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.65;
}

body.light-mode .bento-card p {
    color: #64748b;
}

.f-content {
    position: relative;
    z-index: 1;
}

/* === Device Showcase === */
.device-showcase-section {
    padding: 100px 40px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.device-stack-wrapper {
    position: relative;
    max-width: 900px;
    height: 520px;
    margin: 0 auto;
}

.device-stack-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

/* MacBook */
.device-macbook {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.macbook-screen {
    width: 560px;
    background: #1a1a2e;
    border: 3px solid #2a2a3e;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 8px 8px 0;
}

body.light-mode .macbook-screen {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.macbook-notch {
    width: 60px;
    height: 6px;
    background: #2a2a3e;
    border-radius: 0 0 8px 8px;
    margin: 0 auto 6px;
}

body.light-mode .macbook-notch {
    background: #d1d5db;
}

.macbook-screen img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.macbook-base {
    width: 620px;
    height: 16px;
    background: linear-gradient(to bottom, #2a2a3e, #1e1e30);
    border-radius: 0 0 8px 8px;
    margin: 0 auto;
}

body.light-mode .macbook-base {
    background: linear-gradient(to bottom, #d1d5db, #c7ccd2);
}

.macbook-touchpad {
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin: 6px auto 0;
}

/* iPad */
.device-ipad {
    position: absolute;
    bottom: 30px;
    left: 20px;
    z-index: 2;
    transform: rotate(-4deg);
}

.ipad-screen {
    width: 200px;
    background: #1a1a2e;
    border: 4px solid #2a2a3e;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

body.light-mode .ipad-screen {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.ipad-screen img {
    width: 100%;
    border-radius: 6px;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top left;
}

/* iPhone */
.device-iphone {
    position: absolute;
    bottom: 40px;
    right: 60px;
    z-index: 3;
    transform: rotate(3deg);
}

.iphone-notch {
    width: 50px;
    height: 5px;
    background: #2a2a3e;
    border-radius: 3px;
    margin: 0 auto 4px;
}

body.light-mode .iphone-notch {
    background: #d1d5db;
}

.iphone-screen {
    width: 130px;
    background: #1a1a2e;
    border: 3px solid #2a2a3e;
    border-radius: 20px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

body.light-mode .iphone-screen {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.iphone-screen img {
    width: 100%;
    border-radius: 14px;
    display: block;
    aspect-ratio: 9/19;
    object-fit: cover;
    object-position: top left;
}

/* === Pricing === */
.pricing-section {
    padding: 100px 40px;
    position: relative;
    z-index: 1;
}

.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.toggle-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s;
    cursor: pointer;
}

.toggle-label.active {
    color: white;
}

body.light-mode .toggle-label {
    color: #94a3b8;
}

body.light-mode .toggle-label.active {
    color: #0f172a;
}

.pricing-toggle-btn {
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    padding: 0;
}

body.light-mode .pricing-toggle-btn {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.pricing-toggle-btn.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-color: transparent;
}

.pricing-toggle-knob {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: transform 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pricing-toggle-btn.active .pricing-toggle-knob {
    transform: translateX(24px);
}

.save-badge {
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #34d399;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s;
}

.save-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.price-amount {
    display: inline-block;
    transition: opacity 0.2s, transform 0.2s;
}

.price-amount.changing {
    opacity: 0;
    transform: translateY(-6px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

body.light-mode .pricing-card {
    background: #fff;
    border-color: #e5e7eb;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.pricing-card.popular {
    background: rgba(99, 102, 241, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.05);
}

body.light-mode .pricing-card.popular {
    background: linear-gradient(160deg, #eef2ff, #fff);
    border: 2px solid #6366f1;
}

.pricing-card.popular:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p-header {
    text-align: center;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 24px;
}

body.light-mode .p-header {
    border-color: #f1f5f9;
}

.pricing-card h3 {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 14px;
    font-weight: 700;
}

body.light-mode .pricing-card h3 {
    color: #0f172a;
}

.price {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

body.light-mode .price {
    color: #0f172a;
}

.price span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

body.light-mode .price span {
    color: #94a3b8;
}

.p-desc {
    color: rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    font-size: 0.85rem;
}

body.light-mode .p-desc {
    color: #64748b;
}

.p-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-grow: 1;
}

.p-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
}

body.light-mode .p-features li {
    color: #475569;
}

.p-features li.disabled {
    color: rgba(255, 255, 255, 0.15);
    text-decoration: line-through;
}

body.light-mode .p-features li.disabled {
    color: #cbd5e1;
}

.p-features i {
    color: #10b981;
    font-size: 0.95rem;
}

.p-features li.disabled i {
    color: rgba(255, 255, 255, 0.15);
}

body.light-mode .p-features li.disabled i {
    color: #cbd5e1;
}

.pricing-card.premium .p-features i.fa-flask {
    color: #f59e0b;
}

.l-btn-outline.full,
.l-btn-primary.full {
    width: 100%;
    display: block;
    text-align: center;
}

/* === About === */
.about-section {
    padding: 100px 40px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body.light-mode .about-section {
    border-color: #e5e7eb;
}

.about-container {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.85;
    margin-bottom: 20px;
}

body.light-mode .about-text {
    color: #64748b;
}

/* === Footer === */
.landing-footer {
    padding: 24px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

body.light-mode .landing-footer {
    border-color: #e5e7eb;
    color: #94a3b8;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.f-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.f-brand p {
    margin: 0;
}

.f-social {
    display: flex;
    gap: 16px;
    font-size: 1.1rem;
}

.f-social i {
    cursor: pointer;
    transition: color 0.2s;
}

.f-social i:hover {
    color: #a5b4fc;
}

body.light-mode .f-social i:hover {
    color: #6366f1;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 900px) {
    .features-grid.bento-grid {
        grid-template-columns: 1fr;
    }

    .span-2,
    .span-full {
        grid-column: span 1;
        flex-direction: column;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: -2px;
    }

    .landing-nav {
        padding: 12px 16px;
        top: 8px;
        width: calc(100% - 16px);
        border-radius: 14px;
    }

    .hero-section {
        padding: 140px 20px 60px;
    }

    .hero-glow {
        width: 300px;
        height: 150px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .features-section,
    .pricing-section,
    .about-section,
    .device-showcase-section {
        padding: 60px 20px;
    }

    .landing-footer {
        padding: 20px;
    }

    .device-stack-wrapper {
        height: 380px;
    }

    .macbook-screen {
        width: 360px;
    }

    .macbook-base {
        width: 400px;
    }

    .device-ipad {
        left: 0;
        bottom: 20px;
    }

    .ipad-screen {
        width: 140px;
    }

    .device-iphone {
        right: 20px;
        bottom: 20px;
    }

    .iphone-screen {
        width: 100px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.4rem;
        letter-spacing: -1.5px;
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .l-btn-primary {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .device-ipad {
        display: none;
    }

    .device-stack-wrapper {
        height: 300px;
    }

    .macbook-screen {
        width: 280px;
    }

    .macbook-base {
        width: 310px;
    }

    .iphone-screen {
        width: 90px;
    }

    .device-iphone {
        right: 10px;
    }
}

.desktop-only {
    display: flex;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}