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

:root {
    --bg-obsidian: #050608;
    --text-alabaster: #F4F6F9;
    --text-muted: #8F9CAE;
    --accent-emerald: #00F5A0;
    --accent-emerald-glow: rgba(0, 245, 160, 0.25);
    --steel-gray: #131720;
    --border-color: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(13, 16, 23, 0.75);
    --glass-blur: blur(24px);
    --glow-violet: rgba(139, 92, 246, 0.15);
    --glow-blue: rgba(59, 130, 246, 0.15);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Luxury Dot Grid Background */
body {
    background-color: var(--bg-obsidian);
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 0),
        radial-gradient(rgba(0, 245, 160, 0.006) 1.5px, transparent 0);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    color: var(--text-alabaster);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.font-syne {
    font-family: 'Syne', sans-serif;
}

.text-gradient {
    color: #FFFFFF;
    background: none;
    -webkit-text-fill-color: #FFFFFF;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.35), 0 2px 10px rgba(255, 255, 255, 0.2);
}

.text-emerald {
    color: var(--accent-emerald);
    text-shadow: 0 0 12px rgba(0, 245, 160, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(20px);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-alabaster);
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: translateY(-1px);
}

/* DESIGN CONCEPT 23 INTEGRATION: Mobile Outline with pulse hover */
.logo-icon {
    width: 24px;
    height: 42px;
    border: 2px solid #fff;
    border-radius: 7px;
    position: relative;
    padding: 3px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-smooth);
    background: transparent;
}

/* Screen */
.logo-icon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 12px);
    background: rgba(255,255,255,0.03);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* Central touch button / Pulse */
.logo-icon::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

/* Screen and dot hover reactive glow */
.logo:hover .logo-icon {
    transform: scale(1.08) translateY(-1px);
    border-color: #3B82F6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.logo:hover .logo-icon::before {
    background: rgba(0, 245, 160, 0.08);
}

.logo:hover .logo-icon::after {
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    transform: translateX(-50%) scale(1.5);
}

.logo-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 18px;
    letter-spacing: 0.18em;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.logo-text span {
    font-weight: 300;
    color: var(--accent-emerald);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--text-alabaster);
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-emerald);
    border-radius: 2px;
}

/* Hero Section with HIGHLY VISIBLE Luxury Photorealistic Backdrop */
.hero {
    padding: 160px 0 100px 0;
    text-align: center;
    position: relative;
}

.hero-bg-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, rgba(5, 6, 8, 0.4) 0%, rgba(5, 6, 8, 0.95) 100%),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=1469&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    opacity: 0.45;
    pointer-events: none;
    z-index: -2;
}

.glow-backdrop-1 {
    position: absolute;
    top: -10%;
    left: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 245, 160, 0.1) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: -1;
}

.glow-backdrop-2 {
    position: absolute;
    top: 30%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-violet) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 100px;
}

.hero-tag span {
    width: 6px;
    height: 6px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.05;
    margin-bottom: 28px;
    text-shadow: 0 4px 32px rgba(0,0,0,0.95), 0 0 40px rgba(5,6,8,0.8);
}

.hero p {
    font-size: clamp(16px, 2.2vw, 19px);
    color: var(--text-muted);
    max-width: 740px;
    margin: 0 auto 48px auto;
    text-shadow: 0 2px 12px rgba(0,0,0,0.95);
}

/* Beautiful Interactive CSS Device Mockup */
.mockup-container {
    max-width: 960px;
    margin: 80px auto 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(19, 23, 32, 0.8) 0%, rgba(7, 9, 12, 0.95) 100%);
    padding: 12px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.65), 0 0 60px rgba(0, 245, 160, 0.03);
    position: relative;
    overflow: hidden;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 14px 14px 0 0;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
}

.mockup-dot.green {
    background-color: var(--accent-emerald);
}

.mockup-screen {
    background: #0B0D11;
    height: 460px;
    border-radius: 0 0 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Showcase Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.portfolio-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 160, 0.35);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.portfolio-preview {
    height: 280px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-preview-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: grayscale(40%) blur(1px);
    transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-preview-bg {
    opacity: 0.25;
    filter: grayscale(0%) blur(0px);
    transform: scale(1.05);
}

.portfolio-content {
    padding: 32px;
}

.portfolio-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.portfolio-link {
    color: var(--accent-emerald);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    transition: var(--transition-smooth);
}

.portfolio-link:hover {
    gap: 10px;
    text-shadow: 0 0 10px var(--accent-emerald-glow);
}

/* Pricing Grid & Tabs Switcher */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    gap: 20px;
}

.pricing-label {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.pricing-label.active {
    color: var(--text-alabaster);
    text-shadow: 0 0 10px rgba(255,255,255,0.15);
}

.switch-btn {
    width: 68px;
    height: 38px;
    border-radius: 100px;
    background: var(--steel-gray);
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.switch-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    position: absolute;
    top: 3px;
    left: 3px;
    transition: var(--transition-smooth);
    box-shadow: 0 0 12px rgba(0, 245, 160, 0.6);
}

.switch-btn.active .switch-circle {
    left: 33px;
}

.pricing-tab-content {
    display: none;
}

.pricing-tab-content.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Bento Cards Design */
.bento-section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: clamp(32px, 5vw, 44px);
    margin-bottom: 20px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 17px;
}

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

.bento-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 160, 0.4);
    box-shadow: 0 30px 60px rgba(0,0,0,0.55), 0 0 40px rgba(0, 245, 160, 0.05);
}

.bento-card.col-2 {
    grid-column: span 2;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--accent-emerald);
    font-size: 22px;
}

.bento-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    min-height: 290px;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 160, 0.4);
    box-shadow: 0 30px 60px rgba(0,0,0,0.65), 0 0 40px rgba(0, 245, 160, 0.05);
}

.bento-card.col-2 {
    grid-column: span 2;
}

.bento-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.16;
    z-index: 1;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-bg-img {
    opacity: 0.35;
    transform: scale(1.06);
}

.bento-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}
.comparatif-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 60px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

th, td {
    padding: 24px 32px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

th {
    background: rgba(19, 23, 32, 0.95);
    font-weight: 800;
    color: #FFFFFF;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

th:not(:last-child), td:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

tr:last-child td {
    border-bottom: none;
}

.highlight-row {
    background: rgba(0, 245, 160, 0.02);
}

.highlight-text {
    color: var(--accent-emerald);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #3B82F6 100%);
    color: var(--bg-obsidian);
    box-shadow: 0 4px 25px rgba(0, 245, 160, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 245, 160, 0.55);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-alabaster);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-alabaster);
    background-color: rgba(255, 255, 255, 0.03);
}

/* --- Responsive Rules (Pixel-Perfect & Mobile First) --- */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-container table {
    margin-top: 0;
    width: 100%;
    min-width: 700px; /* Forces smooth scroll on mobile rather than squishing columns */
}

/* Hide overflowing glows on HTML root level to prevent side scroll bugs */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
}

@media (max-width: 900px) {
    .bento-grid, .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .bento-card.col-2 {
        grid-column: span 1;
    }
    .pricing-tab-content.active {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .nav-links {
        display: none;
    }
    .container {
        padding: 0 20px;
    }
    .glow-backdrop-1, .glow-backdrop-2 {
        display: none; /* Strip heavy background glows on mobile to avoid overflow and performance bugs */
    }
}

@media (max-width: 768px) {
    header {
        padding: 16px 0;
    }
    .hero {
        padding: 120px 0 60px 0;
    }
    .hero h1 {
        font-size: 38px;
        margin-bottom: 20px;
    }
    .hero p {
        font-size: 15px;
        margin-bottom: 32px;
    }
    .hero .btn {
        width: 100%;
        margin-bottom: 12px;
    }
    .hero .btn:last-child {
        margin-bottom: 0;
    }
    .bento-card {
        padding: 28px;
        min-height: 240px;
    }
    .portfolio-content {
        padding: 24px;
    }
    .portfolio-preview {
        height: 200px;
    }
    .pricing-toggle-container {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
    }
    .pricing-label {
        font-size: 14px;
    }
    form {
        padding: 24px !important;
    }
    
    /* Force table to fit vertically on portrait mobile screens */
    .table-container {
        border-radius: 14px;
        margin-top: 30px;
    }
    .table-container table {
        min-width: 100% !important; /* Allow the columns to scale down and fit the screen */
    }
    th, td {
        padding: 10px 6px !important; /* Compact padding for small screens */
        font-size: 10.5px !important; /* Readable but tight typography */
        line-height: 1.3;
    }
    th {
        font-size: 9px !important;
        letter-spacing: 0.05em;
    }
    
    footer {
        padding: 40px 0;
    }
    footer div[style*="flex"] {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}
