/* ===================================
   OCCULT.TOOLS - CUSTOM STYLES
   Modern mystical design system
   =================================== */

/* === CSS VARIABLES === */
:root {
    /* Colors - Mystical Palette */
    --amber-dark: #b8a3e8;
    --violet-dark: #9e84d4;
    --violet-light: #c4b0f0;
    --amber-primary: #cc9029;
    --amber-dark: rgb(232, 150, 56);

    /* Neutrals */
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;

    /* Typography */
    --font-brand: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 5rem 0;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* 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-violet: 0 0 30px rgba(255, 140, 0, 0.3);
}

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #0f0f0f;
    color: var(--stone-100);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-brand);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 640px) {
    img {
        margin: 0 auto;
    }
}

/* === NAVIGATION === */
.nav-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    transition: var(--transition-smooth);
}

.nav-scrolled {
    box-shadow: var(--shadow-md);
}

.nav-logo {
    font-family: var(--font-brand);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--amber-dark);
    text-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.nav-link {
    color: var(--stone-300);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--amber-dark);
}

.nav-link.active {
    color: var(--amber-dark);
    font-weight: 600;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 1rem;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--stone-300);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 140, 0, 0.1);
    color: var(--amber-dark);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--violet-light);
    transition: var(--transition-smooth);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-dropdown {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 140, 0, 0.3);
    margin-top: 0.5rem;
}

.mobile-dropdown a {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Breakpoint intermédiaire pour tablettes et petits desktops */
@media (max-width: 1280px) and (min-width: 1025px) {
    .desktop-menu {
        gap: 1rem;
        /* Réduire l'espace entre les éléments */
    }

    .desktop-menu .btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Masquer le menu desktop et afficher le menu mobile sur tablettes et mobiles */
@media (max-width: 1024px) {
    .desktop-menu {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--amber-dark);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--amber-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--stone-800);
    border: 3px solid var(--stone-600);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--amber-dark);
    color: var(--amber-dark);
    transform: translateY(-2px);
    border-width: 3px;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.btn-outline:hover {
    background: transparent;
    color: var(white);
    border-width: 3px;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1c1917 0%, #292524 50%, #44403c 100%);
    padding-top: 64px;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 2rem;
    color: var(--amber-dark);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--violet-light), var(--amber-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--stone-200);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

/* === CARDS === */
.card {
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.9) 0%, rgba(41, 37, 36, 0.9) 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.3);
    border-color: rgba(255, 140, 0, 0.5);
}

.tool-card {
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--amber-dark), var(--amber-primary));
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.tool-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* === SECTIONS === */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--amber-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--stone-300);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* === TOKEN GRID === */
.token-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .token-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* === RESPONSIVE GRID UTILITIES === */
.grid-1-md-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-1-md-2 {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.grid-1-md-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-1-md-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.grid-1-md-2-lg-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-1-md-2-lg-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .grid-1-md-2-lg-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-1-md-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-1-md-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.grid-1-lg-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .grid-1-lg-2 {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.grid-1-md-2-lg-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-1-md-2-lg-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .grid-1-md-2-lg-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-footer {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

.grid-2-lg-5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .grid-2-lg-5 {
        grid-template-columns: 2fr 3fr;
        gap: 3rem;
    }
}

/* === ORDER UTILITIES === */
@media (min-width: 1024px) {
    .order-lg-1 {
        order: 1;
    }

    .order-lg-2 {
        order: 2;
    }
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--stone-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--amber-dark);
}

/* === BADGE === */
.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-violet {
    background: rgba(255, 140, 0, 0.1);
    color: var(--amber-dark);
}

.badge-amber {
    background: rgba(217, 119, 6, 0.1);
    color: var(--amber-primary);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--amber-dark);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--amber-dark);
    border: 4px solid var(--stone-50);
    border-radius: 50%;
    z-index: 10;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

/* === FOOTER === */
.footer {
    background: var(--stone-900);
    color: var(--stone-200);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-link {
    display: block;
    color: var(--stone-400);
    padding: 0.375rem 0;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--amber-dark);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--stone-800);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--stone-500);
    font-size: 0.875rem;
}

/* === LOADING STATES === */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 140, 0, 0.2);
    border-top-color: var(--amber-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === UTILITY CLASSES === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Responsive padding utilities */
.p-responsive {
    padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
    .p-responsive {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .p-responsive {
        padding: 2.5rem;
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    :root {
        --section-padding: 3rem 0;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 2.5rem 0;
    }

    .hero-section {
        min-height: 70vh;
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 2rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: 60vh;
        padding-top: 70px;
    }

    .hero-title {
        font-size: clamp(1.875rem, 8vw, 2.5rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.125rem);
    }

    .card {
        padding: 1.25rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }
}

/* === MOBILE-SPECIFIC IMPROVEMENTS === */
@media (max-width: 640px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .footer-title {
        font-size: 1rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* === TABLE RESPONSIVE === */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .table-wrapper {
        margin: 0;
        padding: 0;
    }
}

.table-wrapper table {
    width: 100%;
    min-width: 700px;
}

@media (max-width: 640px) {
    .table-wrapper::after {
        content: '← Swipe to see more →';
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: var(--stone-500);
        margin-top: 0.5rem;
        opacity: 0.7;
    }
}

/* === FLEX UTILITIES === */
.flex-wrap-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .flex-wrap-mobile {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* === RESPONSIVE SPACING === */
.section-mobile-compact {
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .section-mobile-compact {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .section-mobile-compact {
        padding: 5rem 0;
    }
}

/* === RESPONSIVE TEXT === */
.text-responsive {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .text-responsive {
        line-height: 1.8;
    }
}

/* === BUTTON GROUP RESPONSIVE === */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .btn-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* === PRICING CARD IMPROVEMENTS === */
.pricing-card {
    position: relative;
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.9) 0%, rgba(41, 37, 36, 0.9) 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .pricing-card {
        padding: 2.5rem;
    }
}

/* === GRID AUTO-FIT IMPROVEMENTS === */
.grid-auto-fit {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 480px) {
    .grid-auto-fit {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (min-width: 768px) {
    .grid-auto-fit {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

/* === MOBILE TOUCH IMPROVEMENTS === */
@media (max-width: 768px) {

    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* === OVERFLOW HANDLING === */
@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }

    .container {
        overflow-x: hidden;
    }
}

/* === FOOTER RESPONSIVE === */
@media (max-width: 640px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }
}