/* ============================================================
   lunatic.dev - Paranoid Encryption
   ============================================================ */

:root {
    --color-bg-dark: #1A1A3E;
    --color-bg-medium: #2A2A4E;
    --color-accent-blue: #4A7DFF;
    --color-accent-purple: #5A5A7E;
    --color-text-primary: #E0D8D0;
    --color-text-secondary: #B0A8A0;
    --color-warning: #FF6B35;

    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #1A1A3E 0%, #2A2A4E 50%, #1A1A3E 100%);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   Section 1: Hero
   ============================================================ */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A1A3E 0%, #2A2A4E 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(74, 125, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(90, 90, 126, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    color: var(--color-accent-blue);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInScale 1s ease-out forwards;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--color-accent-purple);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   Section 2: Floating Cards
   ============================================================ */

.cards-section {
    background: var(--color-bg-dark);
    padding: 4rem 2rem;
    min-height: auto;
    position: relative;
}

.floating-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.card {
    background: linear-gradient(135deg, #2A2A4E 0%, #1A1A3E 100%);
    border: 1px solid rgba(74, 125, 255, 0.2);
    padding: 2.5rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: cardFloat 0.6s ease-out forwards;
    transition: all 0.3s ease;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 125, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    border-color: rgba(74, 125, 255, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(74, 125, 255, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-accent-blue);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

.card-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============================================================
   Section 3: Code Section
   ============================================================ */

.code-section {
    background: var(--color-bg-medium);
    padding: 4rem 2rem;
    border-top: 2px solid rgba(74, 125, 255, 0.2);
}

.code-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--color-accent-blue);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    text-align: center;
}

.code-block {
    background: linear-gradient(135deg, #0A0A1E 0%, #1A1A3E 100%);
    border: 1px solid rgba(74, 125, 255, 0.3);
    border-radius: 8px;
    padding: 2rem;
    overflow-x: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--color-accent-blue);
    line-height: 1.6;
}

.code-block code {
    color: var(--color-accent-blue);
}

/* ============================================================
   Section 4: Closing
   ============================================================ */

.closing-section {
    background: linear-gradient(135deg, #1A1A3E 0%, #2A2A4E 100%);
    padding: 6rem 2rem;
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid rgba(74, 125, 255, 0.2);
}

.closing-content {
    max-width: 800px;
}

.closing-text {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    font-weight: 600;
}

.closing-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--color-accent-purple);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .floating-cards {
        grid-template-columns: 1fr;
    }

    .code-section {
        padding: 2rem 1rem;
    }

    .closing-section {
        padding: 3rem 1rem;
    }
}
