/* ============================================
   MRWIKD BLACK - CSS VARIABLES & BASE STYLES
   ============================================ */

:root {
    /* Colors - Background */
    --color-bg-primary: #090909;
    --color-bg-secondary: #0d0d0d;
    --color-bg-tertiary: #121212;
    --color-bg-elevated: #161616;
    
    /* Colors - Text */
    --color-text-primary: #e8e8e8;
    --color-text-secondary: rgba(232, 232, 232, 0.6);
    --color-text-tertiary: rgba(232, 232, 232, 0.4);
    --color-text-muted: rgba(232, 232, 232, 0.25);
    
    /* Colors - Border */
    --color-border: rgba(255, 255, 255, 0.07);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    
    /* Colors - Accent */
    --color-accent-warm: #d4a853;
    --color-accent-cool: #7a8b9a;
    --color-accent-glow: rgba(212, 168, 83, 0.15);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    
    /* Transitions */
    --transition-snappy: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-elastic: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Spacing */
    --container-max-width: 1440px;
    --container-padding: 60px;
    --section-padding: 160px;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Noise Texture Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.012;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 20px 40px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-primary {
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent-warm);
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    color: var(--color-bg-primary);
}

.btn-primary:hover::before {
    transform: translateY(0);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border-hover);
    color: var(--color-text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--color-text-primary);
}

.btn-text {
    background: none;
    padding: 0;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-text:hover {
    color: var(--color-text-primary);
}

.btn-text .arrow {
    width: 32px;
    height: 1px;
    background: currentColor;
    position: relative;
    transition: var(--transition-snappy);
}

.btn-text:hover .arrow {
    width: 48px;
}

.btn-text .arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    border-right: 1px solid currentColor;
    border-top: 1px solid currentColor;
    transform: rotate(45deg);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
    align-items: end;
}

.section-header-left {
    position: relative;
}

.section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-accent-warm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--color-accent-warm);
}

.section-title-large {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.section-title-large span {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    display: block;
    color: var(--color-text-secondary);
}

.section-header-right {
    max-width: 400px;
}

.section-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scrollLine {
    0% { left: -20px; }
    100% { left: 100%; }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   RESPONSIVE - BASE
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --container-padding: 32px;
        --section-padding: 100px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
        --section-padding: 80px;
    }

    .btn {
        width: 100%;
    }

    .section-header-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
