/* ============================================== */
/* zotbien.com - Design System & Shared Styles   */
/* ============================================== */

:root {
    /* Colors */
    --color-gold: #d4af37;
    --color-gold-light: #f5e8b6;
    --color-gold-dark: #956923;
    --color-slate-950: #020617;
    --color-slate-900: #0f172a;
    --color-neural: #6366f1;
    --color-emerald: #10b981;
    --color-red: #ef4444;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #f5e8b6 0%, #d4af37 50%, #956923 100%);

    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 2.5rem;
    --radius-3xl: 3rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 10px 30px -10px rgba(212, 175, 55, 0.5);
    --shadow-gold-hover: 0 20px 40px -10px rgba(212, 175, 55, 0.7);
}

/* ============================================== */
/* Base Styles                                    */
/* ============================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-slate-950);
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================== */
/* Utility Classes                                */
/* ============================================== */

.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gold-shimmer {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gold {
    background: var(--gradient-gold);
    box-shadow: var(--shadow-gold);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--color-slate-950);
    font-weight: 700;
}

.btn-gold:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--shadow-gold-hover);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================== */
/* Animations                                     */
/* ============================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* ============================================== */
/* Navigation                                     */
/* ============================================== */

.nav-link {
    color: rgba(156, 163, 175, 1);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: rgba(156, 163, 175, 1);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-gold);
}

/* ============================================== */
/* Cards & Containers                             */
/* ============================================== */

.card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    transition: all 0.5s ease;
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.card-neural:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.card-emerald:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

/* ============================================== */
/* Pricing Cards                                  */
/* ============================================== */

.pricing-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-3xl);
    padding: var(--space-2xl);
    transition: all 0.5s ease;
}

.pricing-card.featured {
    border-color: var(--color-gold);
    box-shadow: 0 0 60px -20px rgba(212, 175, 55, 0.3);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

/* ============================================== */
/* Mobile Menu                                    */
/* ============================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-slate-950);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2xl);
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 200;
}

.mobile-menu.open {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 199;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ============================================== */
/* Global Lead Modal                              */
/* ============================================== */

.lead-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    /* Fix: Ensure it's ALWAYS on top of sticky nav (z-100) and mobile menu */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    padding-top: max(var(--space-md), env(safe-area-inset-top));
    /* Mobile Notch Safety */
}

.lead-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.lead-modal-container {
    width: 100%;
    max-width: 600px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-3xl);
    padding: var(--space-2xl);
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.lead-modal-overlay.open .lead-modal-container {
    transform: scale(1) translateY(0);
}

.lead-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    color: rgba(156, 163, 175, 1);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.lead-modal-close:hover {
    color: var(--color-gold);
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    color: white;
    transition: all 0.3s ease;
    font-size: 16px;
    /* Prevent iOS Zoom */
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================ */
/* FOMO Top Bar & Special Offer                 */
/* ============================================ */
.fomo-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #956923 0%, #d4af37 50%, #956923 100%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #020617;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.fomo-top-bar:hover {
    height: 45px;
    font-size: 12px;
}

.fomo-badge {
    background: #020617;
    color: #d4af37;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.special-offer-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Adjust navigation for top bar */
body.has-fomo-bar {
    padding-top: 40px;
}

body.has-fomo-bar #main-nav {
    top: 40px;
}

/* ============================================ */
/* Custom Selection Pills                       */
/* ============================================ */
.pill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.pill-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
}

.pill-option:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    color: white;
    transform: translateY(-2px);
}

.pill-option.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

/* ============================================== */
/* Lucide Icon System                            */
/* ============================================== */

.icon-lucide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-lucide svg,
[data-lucide] {
    width: 1em;
    height: 1em;
    stroke-width: 1.5;
    vertical-align: middle;
}

.nav-dropdown-item [data-lucide],
.nav-dropdown-item-mobile [data-lucide] {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5em;
    opacity: 0.8;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box [data-lucide] {
    width: 1.75em;
    height: 1.75em;
    stroke-width: 1.5;
}

.icon-glow-gold [data-lucide] {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.icon-glow-neural [data-lucide] {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.icon-glow-emerald [data-lucide] {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

/* Feature list check/x icons */
.feature-check [data-lucide] {
    width: 1.1em;
    height: 1.1em;
    stroke-width: 2.5;
}

/* ============================================== */
/* Device Mockups (Realism)                       */
/* ============================================== */

/* MacBook Browser Frame */
.device-browser {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.5s ease;
}

.device-browser:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.2);
}

.device-browser-header {
    height: 40px;
    background: rgba(2, 6, 23, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.device-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.device-dot.red {
    background: #ef4444;
}

.device-dot.yellow {
    background: #eab308;
}

.device-dot.green {
    background: #22c55e;
}

.device-browser-content {
    background: rgba(2, 6, 23, 0.4);
    position: relative;
}

/* iPhone Frame */
.device-iphone {
    position: relative;
    background: #000;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 8px #1e293b;
    padding: 12px;
    /* Bezel */
    max-width: 320px;
    margin: 0 auto;
}

.device-iphone-screen {
    background: #020617;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9/19;
}

.device-iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1e293b;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 20;
}