/* ==========================================================================
   SoftCode Enterprise Software House - Scaleway Dark Theme (Mobile UX & Single-Page Edition)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-dark: #0b0914;
    --bg-surface: #0d0b1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    
    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(139, 92, 246, 0.5);

    --text-white: #ffffff;
    --text-slate: #cbd5e1;
    --text-muted: #94a3b8;

    --brand-purple: #8b5cf6;
    --brand-violet: #7c3aed;
    --brand-cyan: #06b6d4;
    --brand-emerald: #10b981;

    --shadow-purple: 0 10px 30px -5px rgba(124, 58, 237, 0.45);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: #f8fafc;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #090812;
}
::-webkit-scrollbar-thumb {
    background: #1e1b34;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
::-webkit-scrollbar-thumb:hover {
    background: #332d59;
}

/* Scaleway Ambient Backdrop */
.scaleway-ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    background: 
        radial-gradient(circle at 18% 18%, rgba(124, 58, 237, 0.25), transparent 45%),
        radial-gradient(circle at 82% 40%, rgba(6, 182, 212, 0.18), transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(99, 102, 241, 0.16), transparent 50%),
        #0b0914;
    pointer-events: none;
}

.scaleway-grid-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    pointer-events: none;
    mask-image: radial-gradient(circle at 50% 40%, black 50%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, black 50%, transparent 90%);
}

/* Animations */
@keyframes float-smooth {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes pulse-glow-purple {
    0%, 100% { opacity: 0.4; filter: blur(30px); }
    50% { opacity: 0.75; filter: blur(45px); }
}

.animate-float-3d {
    animation: float-smooth 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow-purple 6s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scaleway Cards */
.scaleway-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scaleway-card-hover {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scaleway-card-hover:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-purple);
}

/* Typography Gradients */
.text-gradient-purple {
    background: linear-gradient(135deg, #ffffff 0%, #c084fc 60%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* New Omnichannel Futuristic Pill Style */
.omnichannel-pill-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(37, 99, 235, 0.15) 50%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
    backdrop-filter: blur(12px);
    color: #34d399;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.omnichannel-pill-new:hover {
    transform: scale(1.03);
    border-color: rgba(52, 211, 153, 0.7);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

/* Buttons */
.btn-purple-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.45);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}
.btn-purple-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 35px rgba(124, 58, 237, 0.65);
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.btn-secondary-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}
.btn-secondary-outline:hover {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Nav Links */
.nav-link {
    position: relative;
    color: #cbd5e1;
    font-weight: 600;
    transition: color 0.2s ease;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2.5px;
    background: linear-gradient(90deg, #8b5cf6, #38bdf8);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #ffffff;
    font-weight: 800;
}

/* View System */
.page-view {
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}

.page-view.active-view {
    display: block;
    opacity: 1;
}

/* Brand Logo */
.brand-logo-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(139, 92, 246, 0.5));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-container:hover .brand-logo-icon {
    transform: scale(1.08) rotate(-2deg);
}

/* ERP Mobile Touch Tabs Scroll */
.erp-tabs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.erp-tabs-scroll::-webkit-scrollbar {
    display: none;
}

/* Scaleway Footer */
.scaleway-footer {
    background: #06050e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3.5rem 1.5rem 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.scaleway-footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.scaleway-footer-social-icon {
    color: #cbd5e1;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.scaleway-footer-social-icon:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.scaleway-footer-social-icon.fb:hover { background: #1877f2; border-color: #1877f2; }
.scaleway-footer-social-icon.in:hover { background: #0a66c2; border-color: #0a66c2; }
.scaleway-footer-social-icon.ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #dc2743; }
.scaleway-footer-social-icon.tt:hover { background: #000000; border-color: #ffffff; }
.scaleway-footer-social-icon.wa:hover { background: #25d366; border-color: #25d366; }

.scaleway-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.scaleway-footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.scaleway-footer-links a:hover {
    color: #c084fc;
}

.scaleway-footer-divider {
    color: rgba(255, 255, 255, 0.2);
}

.scaleway-footer-copyright {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Feature Icon Boxes */
.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Social Card Items */
.social-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.4);
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile UX Overrides */
@media (max-width: 768px) {
    .brand-logo-icon {
        height: 32px;
    }
    .scaleway-card {
        border-radius: 1rem;
        padding: 1.25rem !important;
    }
    .btn-purple-primary, .btn-secondary-outline {
        padding: 0.65rem 1.25rem;
        font-size: 0.8rem;
    }
}
