:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --shadow: #7c2d12;
    --bg: #000000;
    --text: #ffffff;
    --card-bg: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Permanent Marker', cursive;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.4;
}

/* Background Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 2px solid var(--primary);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--primary);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.buy-btn {
    background: var(--primary);
    color: black;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    border: 3px solid black;
    box-shadow: 4px 4px 0px black;
    transition: all 0.2s;
}

.buy-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px black;
    color: black;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-logo {
    width: 250px;
    height: 250px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px var(--primary));
}

.main-title {
    font-size: 8rem;
    color: var(--primary);
    letter-spacing: 5px;
    margin-bottom: -1rem;
    text-shadow: 5px 5px 0px var(--shadow), 0 0 20px var(--primary);
}

.sub-title {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.ca-container {
    margin-bottom: 2rem;
}

.ca-box {
    background: var(--bg);
    border: 4px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 8px 8px 0px var(--shadow);
}

#ca-text {
    font-size: 1.2rem;
    color: var(--primary);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.2s;
}

.copy-btn:hover {
    transform: scale(1.2);
}

.pump-btn {
    background: var(--primary);
    color: black;
    font-size: 2rem;
    padding: 1rem 3rem;
    border: 4px solid black;
    border-radius: 15px;
    box-shadow: 10px 10px 0px black;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.pump-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 13px 13px 0px black;
}

/* Common Branding */
.section-title {
    color: var(--primary);
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0px var(--shadow);
}

.tagline {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Cards */
.brutal-card {
    background: var(--card-bg);
    border: 4px solid var(--primary);
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    box-shadow: 12px 12px 0px var(--shadow);
    margin-bottom: 5rem;
}

/* Story Section */
.story-card {
    text-align: center;
}

.story-text {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.story-text.small {
    font-size: 1.2rem;
    opacity: 0.8;
}

.highlight {
    color: var(--primary);
}

.divider {
    border: none;
    border-top: 2px solid var(--primary);
    margin: 2rem 0;
    opacity: 0.3;
}

.story-quote {
    font-size: 2.2rem;
    color: var(--primary);
}

/* Meme Lab */
.meme-section .section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.meme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

textarea,
input[type="text"] {
    width: 100%;
    background: black;
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: white;
    padding: 1rem;
    font-size: 1rem;
    outline: none;
}

textarea {
    height: 120px;
    resize: none;
}

.button-row {
    display: flex;
    gap: 1rem;
}

.brutal-btn {
    flex: 1;
    padding: 1rem;
    border: 3px solid black;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.brutal-btn.primary {
    background: var(--primary);
    color: black;
    box-shadow: 5px 5px 0px black;
}

.brutal-btn.secondary {
    background: black;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 5px 5px 0px var(--shadow);
}

.brutal-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px black;
}

.preview-box {
    border: 3px dashed var(--primary);
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.caption-overlay {
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: 10px;
    text-align: center;
    color: white;
    font-size: 2rem;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    pointer-events: none;
    display: none;
}

.placeholder-text {
    color: var(--primary);
    opacity: 0.5;
}

/* Draw Section */
.draw-card {
    padding: 1.5rem;
}

.draw-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.tool-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tool-btn.active {
    background: var(--primary);
    color: black;
}

.tool-btn.danger {
    border-color: #ef4444;
    color: #ef4444;
}

.tool-btn.success {
    border-color: #22c55e;
    color: #22c55e;
}

.canvas-container {
    background: black;
    border: 2px solid var(--primary);
    width: 100%;
    aspect-ratio: 16/9;
}

canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* Instructions Grid */
.instructions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 5rem;
}

.instruction-card {
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icon-box {
    background: var(--primary);
    color: black;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid black;
    box-shadow: 3px 3px 0px black;
    margin-bottom: 0.5rem;
}

.instruction-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
}

.instruction-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Chart Section */
.chart-card {
    max-width: 1000px;
    padding: 1rem;
}

.chart-box {
    background: #000;
    border: 2px solid var(--primary);
    height: 600px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ticker Footer */
.ticker {
    background: var(--primary);
    color: black;
    padding: 1rem 0;
    position: relative;
    /* Changed from fixed to flow with content */
    margin-top: 5rem;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
    border-top: 4px solid black;
    border-bottom: 4px solid black;
}


.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 15s linear infinite;
    font-size: 1.5rem;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Animations */
.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Main Footer */
.main-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    background: black;
    gap: 2rem;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.social-link {
    color: var(--primary);
    transition: transform 0.2s;
}

.social-link i {
    width: 40px;
    height: 40px;
}

.social-link:hover {
    transform: scale(1.2);
}

.disclaimer {
    color: var(--primary);
    font-size: 1.1rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 4rem;
    }

    .meme-grid {
        grid-template-columns: 1fr;
    }

    nav {
        display: none;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }
}