/* ==========================================
   NULLVERSE - Horror Void Minimalism
   ========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --bg: #000000;
    --fg: #ffffff;
    --accent: #ff0022;
    --sub: #ffffff;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    letter-spacing: 0.5px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--sub);
    z-index: 1000;
    padding: 20px 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.header.visible {
    opacity: 0.95;
    pointer-events: auto;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wordmark {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.wordmark:hover {
    opacity: 0.7;
}

.web-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-image {
    height: 32px;
    width: 32px;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
    overflow: hidden;
    display: block;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--sub);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.8s ease, opacity 0.8s ease;
    letter-spacing: 2px;
    opacity: 0.7;
}

.nav-link:hover {
    color: var(--fg);
    opacity: 1;
}

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

.dropdown-toggle {
    cursor: pointer;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 0, 34, 0.3);
    padding: 12px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

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

.dropdown-item {
    display: block;
    color: var(--sub);
    text-decoration: none;
    font-size: 13px;
    padding: 10px 20px;
    transition: color 0.3s ease, background-color 0.3s ease;
    letter-spacing: 2px;
    white-space: nowrap;
    cursor: pointer;
}

.dropdown-item:hover {
    color: var(--fg);
    background-color: rgba(255, 255, 255, 0.05);
}

.connect-wallet-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent);
    color: var(--fg);
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.5s ease, opacity 0.8s ease;
    letter-spacing: 2px;
    opacity: 0.9;
    text-align: center;
}

.connect-wallet-btn:hover {
    transform: scale(1.01);
    opacity: 1;
}

.connect-wallet-btn:active {
    transform: scale(0.99);
}

/* CA Address styling - white background, matches ca-card */
.ca-address {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Rubik', sans-serif;
    letter-spacing: 1px;
    text-align: center;
    border-radius: 4px;
}

/* CA Address Wrapper for inline copy button */
.ca-address-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.ca-copy-btn-inline {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000;
    cursor: pointer;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
    border-radius: 4px;
}

.ca-copy-btn-inline:hover:not(:disabled) {
    transform: scale(1.05);
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
}

.ca-copy-btn-inline:active:not(:disabled) {
    transform: scale(0.95);
}

.ca-copy-btn-inline:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ca-copy-btn-inline svg {
    width: 16px;
    height: 16px;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--fg);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ==========================================
   FULL-SCREEN HERO SPLASH
   ========================================== */
.hero-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 100;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-splash.scrolled {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.hero-splash-content {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 120px;
    max-width: 100%;
    width: 100%;
}

.hero-side-text {
    position: absolute;
    top: 58%;
    transform: translateY(-50%);
    font-size: clamp(18px, 2.5vw, 32px);
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
    text-shadow: 
        0 0 10px rgba(255, 0, 34, 0.8),
        0 0 20px rgba(255, 0, 34, 0.6),
        0 0 30px rgba(255, 0, 34, 0.4),
        0 0 40px rgba(255, 0, 34, 0.2);
    animation: glowPulse 3s ease-in-out infinite;
    opacity: 0.9;
}

.hero-side-text.left {
    left: clamp(15px, 3vw, 50px);
}

.hero-side-text.right {
    right: clamp(15px, 3vw, 50px);
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 0, 34, 0.8),
            0 0 20px rgba(255, 0, 34, 0.6),
            0 0 30px rgba(255, 0, 34, 0.4),
            0 0 40px rgba(255, 0, 34, 0.2);
        opacity: 0.9;
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 0, 34, 1),
            0 0 30px rgba(255, 0, 34, 0.8),
            0 0 45px rgba(255, 0, 34, 0.6),
            0 0 60px rgba(255, 0, 34, 0.4);
        opacity: 1;
    }
}

.hero-character {
    width: min(900px, 120vw);
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 40px;
    animation: fadeInScale 1.5s ease-out, float 6s ease-in-out 1.5s infinite;
    transform-origin: center top;
}

@media (max-width: 768px) {
    .hero-character {
        width: 140vw;
        max-height: 70vh;
    }

    .hero-side-text {
        font-size: clamp(14px, 3.5vw, 20px);
        letter-spacing: 2px;
        top: 60%;
    }

    .hero-side-text.left {
        left: 10px;
    }

    .hero-side-text.right {
        right: 10px;
    }
}

.hero-splash-title {
    font-size: clamp(24px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: clamp(4px, 1.5vw, 12px);
    text-transform: uppercase;
    margin-bottom: 0;
    animation: fadeIn 2s ease-out 0.5s both;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-splash-title {
        font-size: clamp(20px, 6vw, 32px);
        letter-spacing: clamp(2px, 1vw, 8px);
    }
}

.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 2s ease-out 1s both, bounce 2s ease-in-out 2s infinite;
    z-index: 101;
    transition: opacity 0.5s ease;
}

.hero-splash.scrolled .scroll-indicator {
    opacity: 0;
}

.scroll-indicator span {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--sub);
    margin-bottom: 12px;
}

.scroll-arrow {
    font-size: 24px;
    color: var(--accent);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ==========================================
   MAIN CONTENT SECTION
   ========================================== */
.main-content {
    position: relative;
    background: var(--bg);
    margin-top: 100vh;
    min-height: 100vh;
    z-index: 200;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.hero-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
}

.char-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: clamp(32px, 8vw, 68px);
    font-weight: 700;
    letter-spacing: 8px;
    line-height: 1.2;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.char-left-wrapper {
    --scroll-x: -100%;
}

.char-right-wrapper {
    --scroll-x: 100%;
}

.null-char-left,
.null-char-right {
    width: clamp(180px, 25vw, 350px);
    height: auto;
    object-fit: contain;
    will-change: transform;
    position: relative;
    z-index: 1;
}

.null-char-left {
    animation: floatCharLeft 4s ease-in-out infinite;
}

.null-char-right {
    animation: floatCharRight 4s ease-in-out infinite;
}

/* Wrapper positioning based on scroll */
.char-left-wrapper,
.char-right-wrapper {
    transform: translateX(var(--scroll-x));
    transition: transform 0.3s ease-out;
}

/* Floating animation for left character */
@keyframes floatCharLeft {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Floating animation for right character */
@keyframes floatCharRight {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.title-white {
    color: #ffffff;
}

.title-red {
    color: var(--accent);
}

.title-green {
    color: #00ff41;
}

.hero-subtitle {
    font-size: clamp(14px, 2.5vw, 16px);
    color: var(--sub);
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 3px;
    line-height: 1.8;
}

/* CA Card */
.ca-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    max-width: 100%;
}

.ca-label {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 2px;
}

.ca-card .ca-address {
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
    background: transparent;
    padding: 0;
}

.ca-copy-btn {
    background: transparent;
    border: none;
    color: #000000;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.ca-copy-btn:hover:not(:disabled) {
    opacity: 0.6;
}

.ca-copy-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ca-copy-btn svg {
    width: 16px;
    height: 16px;
}

/* Prompt Container */
.prompt-container {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
}

.prompt-input {
    flex: 1;
    min-width: 200px;
    padding: 20px 24px;
    background-color: var(--bg);
    border: 1px solid var(--sub);
    color: var(--fg);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.8s ease, transform 0.3s ease;
    letter-spacing: 2px;
}

.prompt-input:focus {
    border-color: var(--fg);
}

.prompt-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prompt-input::placeholder {
    color: var(--sub);
}

.generation-status {
    margin-top: 20px;
    min-height: 30px;
    font-size: 13px;
    color: var(--sub);
    text-align: center;
    letter-spacing: 2px;
}

.generation-status.generating {
    color: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.generation-status.success {
    color: #00ff00;
}

.generation-status.error {
    color: var(--accent);
}

.generate-btn {
    padding: 20px 40px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.5s ease, opacity 0.8s ease;
    position: relative;
    letter-spacing: 4px;
}

.generate-btn:hover {
    transform: scale(1.01);
    opacity: 0.9;
}

.generate-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.generate-btn.generating {
    opacity: 0.6;
    cursor: wait;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Cursor Line */
.cursor-line {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.blinking-cursor {
    color: var(--accent);
    font-size: 16px;
    animation: blink 1.8s infinite;
    font-family: monospace;
    letter-spacing: 0;
}

@keyframes blink {
    0%, 44% { opacity: 1; }
    45%, 100% { opacity: 0; }
}

/* Void Spacers - Uncomfortable emptiness */
.void-spacer {
    height: 60px;
}

.void-spacer-bottom {
    height: 40px;
}

/* ==========================================
   MEME FEED GRID
   ========================================== */
.meme-feed {
    padding: 60px 20px 200px;
    min-height: 100vh;
}

.meme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.meme-grid.collapsed {
    overflow: hidden;
}

.meme-card {
    background-color: var(--bg);
    border: 1px solid var(--sub);
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.meme-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: var(--bg);
}

.meme-caption {
    padding: 16px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: var(--sub);
    line-height: 1.6;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 80px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.loading-indicator.visible {
    opacity: 1;
}

.loading-text {
    color: var(--sub);
    font-size: 12px;
    letter-spacing: 6px;
    opacity: 0.5;
}

/* Show More Button */
.show-more-container {
    text-align: center;
    padding: 40px 20px 60px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.show-more-btn,
.show-less-btn {
    padding: 16px 40px;
    background-color: transparent;
    color: var(--fg);
    border: 1px solid var(--sub);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.5s ease, background-color 0.5s ease;
    letter-spacing: 2px;
}

.show-more-btn:hover,
.show-less-btn:hover {
    border-color: var(--fg);
    background-color: rgba(255, 255, 255, 0.05);
}

.show-more-btn.hidden,
.show-less-btn.hidden {
    display: none;
}

/* ==========================================
   FOOTER
   ========================================== */
/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 20px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
}

/* Brand Column */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-link {
    display: block;
    transition: opacity 0.2s ease;
}

.footer-logo-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 4px;
}

.footer-logo-link:hover {
    opacity: 0.7;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Nav Column */
.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

.footer-link:hover {
    color: #ffffff;
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Social Column */
.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 50%;
    opacity: 0.8;
}

.footer-social-btn:hover {
    color: #ffffff;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-social-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.footer-social-btn svg {
    width: 20px;
    height: 20px;
}

/* Copyright Row */
.footer-copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    font-size: 12px;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.3px;
    font-weight: 400;
    opacity: 0.7;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
/* ==========================================
   TABLET (iPad) - 1024px and below
   ========================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title-container {
        gap: 30px;
    }

    .null-char-left,
    .null-char-right {
        width: clamp(150px, 20vw, 250px);
    }

    .hero-title {
        font-size: clamp(28px, 7vw, 56px);
    }

    .page-content {
        padding: 120px 30px 60px;
    }

    .content-section {
        padding: 50px 30px;
    }

    /* CA address stays inline on tablet/desktop */
    .ca-address-wrapper {
        display: inline-flex;
        flex-direction: row;
        gap: 8px;
        width: auto;
    }

    .ca-address {
        width: auto;
        display: inline-block;
        background-color: #ffffff;
        color: #000000;
        font-family: 'Rubik', sans-serif;
    }

    .ca-copy-btn-inline {
        width: auto;
        padding: 8px 12px;
        background: #ffffff;
        color: #000000;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* ==========================================
   TABLET/MOBILE - 768px and below
   ========================================== */
@media (max-width: 768px) {
    /* Header Responsive */
    .header {
        padding: 15px 0;
    }

    .header .container {
        position: relative;
    }

    .web-logo {
        height: 35px;
    }

    /* Show Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Navigation - Mobile Menu */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.98);
        border-left: 1px solid rgba(255, 0, 34, 0.3);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 16px 0;
        width: 100%;
        border-bottom: 1px solid rgba(153, 153, 153, 0.1);
        opacity: 1;
        color: var(--fg);
    }

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

    .nav-dropdown {
        position: relative;
        width: 100%;
    }

    .dropdown-toggle {
        padding: 16px 0;
        width: 100%;
        border-bottom: 1px solid rgba(153, 153, 153, 0.1);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        padding: 0 0 0 20px;
        min-width: auto;
        box-shadow: none;
        display: none;
    }

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

    .dropdown-item {
        padding: 12px 0;
        font-size: 13px;
        border-bottom: 1px solid rgba(153, 153, 153, 0.05);
    }
    
    .connect-wallet-btn {
        font-size: 13px;
        padding: 14px 24px;
        width: 100%;
        margin-top: 20px;
    }

    /* CA address full-width on mobile */
    .ca-address {
        font-size: 11px;
        padding: 12px 16px;
        width: 100%;
        display: block;
        word-break: break-all;
        background-color: #ffffff;
        color: #000000;
        font-family: 'Rubik', sans-serif;
        border-radius: 4px;
    }

    .ca-address-wrapper {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .ca-copy-btn-inline {
        width: 100%;
        padding: 12px;
        font-size: 13px;
        background: #ffffff;
        color: #000000;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Hero Section */
    .hero {
        padding: 80px 20px 40px;
    }

    .hero-splash {
        height: 70vh;
    }

    .hero-character {
        max-height: 50vh;
    }

    .hero-title-container {
        gap: 20px;
    }

    .null-char-left,
    .null-char-right {
        width: clamp(100px, 20vw, 150px);
    }

    .hero-title {
        font-size: clamp(24px, 6vw, 48px);
        gap: 6px;
    }

    .hero-subtitle {
        font-size: clamp(12px, 2.5vw, 14px);
        margin-bottom: 30px;
    }

    /* CA Card */
    .ca-card {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 10px;
        justify-content: center;
    }
    
    .ca-card .ca-address {
        max-width: 200px;
        font-size: 11px;
        font-family: 'Rubik', sans-serif;
        background: transparent;
    }

    .ca-label {
        font-size: 11px;
    }

    /* Meme Section */
    .meme-feed {
        padding: 40px 20px;
    }

    .meme-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    /* Footer */
    .footer {
        padding: 50px 20px 30px;
    }

    .footer-main-row {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .footer-nav {
        gap: 12px 16px;
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-copyright {
        padding-top: 24px;
    }

    /* Page Content */
    .page-content {
        padding: 100px 20px 40px;
    }

    .page-title {
        font-size: clamp(28px, 6vw, 48px);
        margin-bottom: 30px;
    }

    .content-section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: clamp(20px, 5vw, 32px);
    }

    .content-section p,
    .content-section ul li {
        font-size: 14px;
    }

    .cta-section {
        padding: 40px 20px;
        margin-top: 50px;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 12px;
    }

    .disclaimer-box {
        padding: 20px;
        margin-top: 40px;
    }

    .roadmap-item {
        padding: 15px;
        margin-bottom: 30px;
    }
}

/* ==========================================
   MOBILE - 480px and below
   ========================================== */
@media (max-width: 480px) {
    /* Header */
    .header {
        padding: 12px 0;
    }

    .web-logo {
        height: 50px;
    }

    /* Hero Section */
    .hero {
        padding: 60px 15px 30px;
    }

    .hero-splash {
        height: 60vh;
    }

    .hero-character {
        width: 100vw;
        max-height: 45vh;
    }

    .scroll-indicator {
        font-size: 11px;
    }

    .hero-title-container {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .null-char-left,
    .null-char-right {
        width: 100px;
    }

    .hero-title {
        font-size: clamp(18px, 4.5vw, 32px);
        gap: 4px;
    }

    .hero-subtitle {
        font-size: 11px;
        margin-bottom: 20px;
    }

    /* CA Card */
    .ca-card {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
        text-align: center;
    }

    .ca-label {
        font-size: 10px;
    }

    .ca-card .ca-address {
        font-size: 10px;
        max-width: 100%;
        word-break: break-all;
        font-family: 'Rubik', sans-serif;
        background: transparent;
    }

    /* Meme Section */
    .meme-feed {
        padding: 30px 15px;
    }

    .meme-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Footer */
    .footer {
        padding: 40px 15px 25px;
    }

    .footer-main-row {
        gap: 24px;
        margin-bottom: 28px;
    }

    .footer-logo {
        height: 50px;
    }

    .footer-nav {
        gap: 10px 12px;
    }

    .footer-link {
        font-size: 12px;
    }

    .footer-social-btn {
        width: 36px;
        height: 36px;
    }

    .footer-social-btn svg {
        width: 18px;
        height: 18px;
    }

    .footer-copyright {
        padding-top: 20px;
    }

    .footer-copyright p {
        font-size: 11px;
    }

    /* Page Content */
    .page-content {
        padding: 80px 15px 30px;
    }

    .page-title {
        font-size: clamp(24px, 5vw, 36px);
        margin-bottom: 20px;
        letter-spacing: 4px;
    }

    .content-section {
        padding: 30px 15px;
    }

    .section-title {
        font-size: clamp(18px, 4vw, 24px);
        margin-bottom: 15px;
    }

    .content-section p,
    .content-section ul li {
        font-size: 13px;
        line-height: 1.6;
    }

    .cta-section {
        padding: 30px 15px;
        margin-top: 40px;
    }

    .cta-section h2 {
        font-size: clamp(20px, 4vw, 28px);
        letter-spacing: 3px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 11px;
        letter-spacing: 2px;
    }

    .disclaimer-box {
        padding: 15px;
        margin-top: 30px;
    }

    .disclaimer-box p {
        font-size: 12px;
    }

    .roadmap-item {
        padding: 12px;
        margin-bottom: 20px;
    }

    .roadmap-item h3 {
        font-size: 16px;
    }
}

/* ==========================================
   LANDSCAPE MOBILE
   ========================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-splash {
        height: 100vh;
    }

    .hero {
        padding: 60px 20px 30px;
    }

    .hero-title-container {
        flex-direction: row;
    }

    .null-char-left,
    .null-char-right {
        width: clamp(80px, 15vw, 120px);
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ==========================================
   PAGE CONTENT (About, Terms, Privacy)
   ========================================== */
.page-content {
    min-height: 100vh;
    padding: 160px 20px 80px;
    background: var(--bg);
}

.page-header {
    text-align: center;
    margin-bottom: 80px;
}

.page-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--fg);
}

.page-subtitle {
    font-size: 13px;
    color: var(--sub);
    letter-spacing: 2px;
    opacity: 0.6;
}

.content-section {
    max-width: 800px;
    margin: 0 auto 60px;
}

.content-section h2 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 24px;
    color: var(--fg);
    text-transform: uppercase;
}

.content-section h3 {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 600;
    letter-spacing: 2px;
    margin: 32px 0 16px;
    color: var(--fg);
}

.content-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--sub);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.content-section ul li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--sub);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    letter-spacing: 1px;
}

.content-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 20px;
}

.roadmap-item {
    margin-bottom: 40px;
    padding: 20px;
    border-left: 2px solid var(--accent);
    background: rgba(255, 255, 255, 0.02);
}

.roadmap-item h3 {
    margin-top: 0;
    color: var(--accent);
}

.cta-section {
    max-width: 800px;
    margin: 80px auto 0;
    text-align: center;
    padding: 60px 40px;
    border: 1px solid var(--accent);
    background: rgba(255, 0, 34, 0.05);
}

.cta-section h2 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--fg);
}

.cta-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--sub);
    margin-bottom: 32px;
}

.cta-button {
    display: inline-block;
    padding: 20px 40px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 4px;
    transition: transform 0.5s ease, opacity 0.8s ease;
    text-transform: uppercase;
}

.cta-button:hover {
    transform: scale(1.01);
    opacity: 0.9;
}

.disclaimer-box {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 30px;
    background: rgba(255, 0, 34, 0.1);
    border: 1px solid var(--accent);
}

.disclaimer-box p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--fg);
    margin: 0;
    letter-spacing: 1px;
}

.disclaimer-box strong {
    color: var(--accent);
}
