/* ===============================
   THE CELL - Landing Page
   Voluntary Incarceration for Extreme Growth
   =============================== */

:root {
    --near-black: #0A0A0A;
    --dark-metal: #1A1A1A;
    --medium-metal: #2A2A2A;
    --light-metal: #333333;
    --bolt-silver: #8A8A8A;

    --dirty-white: #E0E0E0;
    --muted-gray: #B0B0B0;
    --dark-gray: #707070;

    --prison-orange: #FF6B00;
    --prison-orange-glow: rgba(255, 107, 0, 0.4);
    --toxic-green: #00FF41;
    --blood-red: #FF0000;

    --font-primary: 'Rajdhani', sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--near-black);
    color: var(--dirty-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===============================
   OVERLAYS & EFFECTS
   =============================== */

.prison-bars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 80px,
        rgba(20, 20, 20, 0.8) 80px,
        rgba(20, 20, 20, 0.8) 86px,
        rgba(10, 10, 10, 1) 86px,
        rgba(10, 10, 10, 1) 90px,
        rgba(20, 20, 20, 0.8) 90px,
        rgba(20, 20, 20, 0.8) 96px,
        transparent 96px
    );
    opacity: 0.5;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    animation: scanline-flicker 0.1s infinite;
}

@keyframes scanline-flicker {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.06; }
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* ===============================
   CONTAINER
   =============================== */

.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 24px;
    gap: 16px;
}

/* ===============================
   HERO SECTION
   =============================== */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300%;
    height: 300%;
    background: radial-gradient(
        circle at center,
        var(--prison-orange-glow) 0%,
        transparent 50%
    );
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.logo-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px var(--prison-orange-glow));
    animation: logo-float 6s ease-in-out infinite;
}

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

.brand-name {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    letter-spacing: 10px;
    color: var(--dirty-white);
    text-shadow:
        0 0 40px var(--prison-orange-glow),
        0 2px 0 var(--dark-metal);
    margin-top: 4px;
}

.tagline {
    font-size: clamp(0.75rem, 2.5vw, 1rem);
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--prison-orange);
    text-align: center;
    max-width: 500px;
}

/* ===============================
   PHILOSOPHY SECTION
   =============================== */

.philosophy {
    width: 100%;
    max-width: 480px;
    margin: 8px 0;
}

.philosophy-card {
    background: linear-gradient(
        145deg,
        var(--medium-metal) 0%,
        var(--dark-metal) 40%,
        var(--near-black) 100%
    );
    border: 2px solid var(--light-metal);
    border-radius: 4px;
    padding: 20px 20px;
    position: relative;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Corner bolts */
.bolt {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 35% 35%, #aaa, var(--bolt-silver) 40%, #444 100%);
    border-radius: 50%;
    box-shadow:
        inset -1px -1px 2px rgba(0,0,0,0.6),
        0 1px 3px rgba(0,0,0,0.8);
}

.bolt::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 1px;
    background: rgba(0,0,0,0.4);
}

.bolt-tl { top: 10px; left: 10px; }
.bolt-tr { top: 10px; right: 10px; }
.bolt-bl { bottom: 10px; left: 10px; }
.bolt-br { bottom: 10px; right: 10px; }

.philosophy-line {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    font-weight: 500;
    color: var(--muted-gray);
    text-align: center;
    line-height: 1.6;
    letter-spacing: 1px;
}

.philosophy-line.accent {
    color: var(--dirty-white);
    font-weight: 700;
    font-size: clamp(1rem, 4vw, 1.3rem);
}

.divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--prison-orange), transparent);
    margin: 12px auto;
}

.philosophy-welcome {
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    font-weight: 600;
    color: var(--prison-orange);
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ===============================
   CRIMES SECTION
   =============================== */

.crimes {
    text-align: center;
    margin: 4px 0;
}

.crimes-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--dark-gray);
    margin-bottom: 6px;
}

.crimes-carousel {
    height: 24px;
    overflow: hidden;
    position: relative;
}

.crimes-track {
    display: flex;
    flex-direction: column;
    animation: scroll-crimes 14s linear infinite;
}

@keyframes scroll-crimes {
    0%, 13% { transform: translateY(0); }
    14%, 27% { transform: translateY(-24px); }
    28%, 41% { transform: translateY(-48px); }
    42%, 55% { transform: translateY(-72px); }
    56%, 69% { transform: translateY(-96px); }
    70%, 83% { transform: translateY(-120px); }
    84%, 97% { transform: translateY(-144px); }
    100% { transform: translateY(-168px); }
}

.crime {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--blood-red);
    height: 24px;
    line-height: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* ===============================
   CTA SECTION
   =============================== */

.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.cta-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--toxic-green);
    animation: cta-pulse 2s ease-in-out infinite;
}

@keyframes cta-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; text-shadow: 0 0 20px var(--toxic-green); }
}

.form-container {
    width: 100%;
    max-width: 380px;
    padding: 16px;
    background: var(--dark-metal);
    border: 2px solid var(--light-metal);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.tally-embed {
    border: none;
    background: transparent;
}

.fallback-text {
    color: var(--muted-gray);
    font-size: 0.9rem;
    text-align: center;
}

/* ===============================
   SOCIAL LINKS
   =============================== */

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--dark-gray);
    background: transparent;
    border: 2px solid var(--light-metal);
    border-radius: 4px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--prison-orange);
    border-color: var(--prison-orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.social-link:active {
    transform: translateY(-1px) scale(0.98);
}

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

/* ===============================
   FOOTER
   =============================== */

.footer {
    margin-top: auto;
    padding-top: 16px;
}

.footer-text {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--dark-gray);
}

/* ===============================
   ANIMATIONS
   =============================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }
.delay-5 { animation-delay: 0.9s; }
.delay-6 { animation-delay: 1.1s; }

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

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 600px) {
    .container {
        padding: 20px 16px;
        gap: 12px;
    }

    .logo-container {
        width: 80px;
        height: 80px;
    }

    .brand-name {
        font-size: 2rem;
        letter-spacing: 8px;
    }

    .tagline {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .philosophy {
        margin: 6px 0;
    }

    .philosophy-card {
        padding: 16px 14px;
    }

    .philosophy-line {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .philosophy-line.accent {
        font-size: 1rem;
    }

    .divider {
        margin: 10px auto;
    }

    .philosophy-welcome {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .crimes {
        margin: 4px 0;
    }

    .crimes-label {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }

    .crimes-carousel {
        height: 24px;
        overflow: hidden;
    }

    .crimes-track {
        display: flex;
        flex-direction: column;
        animation: scroll-crimes 14s linear infinite;
    }

    .crime {
        font-size: 0.85rem;
        height: 24px;
        line-height: 24px;
        flex-shrink: 0;
    }

    .cta-section {
        gap: 8px;
    }

    .cta-text {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .form-container {
        padding: 12px;
        max-width: 340px;
    }

    .social-links {
        gap: 14px;
        margin-top: 10px;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }

    .social-link svg {
        width: 17px;
        height: 17px;
    }

    .footer {
        padding-top: 12px;
    }

    .footer-text {
        font-size: 0.65rem;
    }

    .prison-bars {
        background: repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 45px,
            rgba(20, 20, 20, 0.8) 45px,
            rgba(20, 20, 20, 0.8) 49px,
            rgba(10, 10, 10, 1) 49px,
            rgba(10, 10, 10, 1) 53px,
            rgba(20, 20, 20, 0.8) 53px,
            rgba(20, 20, 20, 0.8) 57px,
            transparent 57px
        );
    }
}

@media (max-width: 380px) {
    .container {
        padding: 16px 12px;
        gap: 10px;
    }

    .logo-container {
        width: 70px;
        height: 70px;
    }

    .brand-name {
        font-size: 1.7rem;
        letter-spacing: 6px;
    }

    .philosophy-card {
        padding: 14px 12px;
    }

    .philosophy-line {
        font-size: 0.85rem;
    }

    .philosophy-line.accent {
        font-size: 0.95rem;
    }

    .crimes-carousel {
        height: 24px;
        overflow: hidden;
    }

    .crimes-track {
        display: flex;
        flex-direction: column;
        animation: scroll-crimes 14s linear infinite;
    }

    .crime {
        font-size: 0.8rem;
        height: 24px;
        line-height: 24px;
        flex-shrink: 0;
    }
}

/* ===============================
   REDUCED MOTION
   =============================== */

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .logo-glow,
    .logo-img,
    .cta-text,
    .scanlines {
        animation: none;
    }
}

/* ===============================
   SELECTION
   =============================== */

::selection {
    background: var(--prison-orange);
    color: var(--near-black);
}

::-moz-selection {
    background: var(--prison-orange);
    color: var(--near-black);
}
