@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Courier+Prime:wght@400;700&display=swap');

:root {
    --bg-color: #080a0f;
    --bg-card: hsla(222, 25%, 10%, 0.7);
    --accent-color: #3b82f6; /* Blu App */
    --accent-premium: #F59E0B; /* Oro/Ambra App */
    --accent-purple: #8B5CF6; /* Viola App */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-raw: 'Courier Prime', monospace;
    --border-style: 1px solid hsla(217, 33%, 17%, 0.5);
    --font-main: 'Inter', sans-serif;
    --font-title: 'Cinzel', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 0% 0%, hsla(217, 91%, 60%, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, hsla(0, 84%, 60%, 0.03) 0%, transparent 40%);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

.divider {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent-premium) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 0;
    font-family: var(--text-raw);
    padding: 20px 40px;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
}

.btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px var(--accent-color);
}

/* Phone Frame for Premium Screenshots */
.phone-frame {
    border: 12px solid #1a1a1c;
    border-radius: 36px;
    background: #000;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 20px rgba(255, 95, 31, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 320px;
    margin: 0 auto;
}

.phone-frame img {
    width: 100%;
    display: block;
    border-radius: 24px;
}

/* Progressive Performance: Disable animations on slow devices or prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal, .scanner, body::after {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Decisive Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.2, 0, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
}

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

.scroll-indicator span {
    font-family: var(--text-raw);
    font-size: 0.7rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

/* Insider / Raw Aesthetics */
.highlight {
    background: var(--accent-premium);
    color: #000;
    padding: 0 5px;
}

/* Hypnotic / Scanner Effect */
.mono {
    font-family: var(--text-raw);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    background: rgba(255, 77, 0, 0.05);
    padding: 2px 8px;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.evidence-block {
    background: #000;
    border: 1px dashed #444;
    padding: 40px;
    position: relative;
    margin: 40px 0;
}

.evidence-block::before {
    content: "SECRET_REPORT";
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-color);
    color: #000;
    font-family: var(--text-raw);
    font-size: 0.7rem;
    padding: 2px 10px;
}

.manifesto-text {
    font-family: var(--font-main);
    font-weight: 300;
    border-left: 2px solid var(--accent-color);
    padding-left: 25px;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 800px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    border: var(--border-style);
    border-left: 3px solid var(--accent-color);
    border-radius: 0;
    padding: 35px;
    transition: all 0.2s ease;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.glass-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Tape Effect for "Reperti" */
.tape-effect {
    position: relative;
    display: inline-block;
    padding: 15px;
    background: #151515;
    border: 1px solid #222;
    transform: rotate(-1deg);
}

.tape-effect::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 90px;
    height: 25px;
    background: rgba(255, 255, 200, 0.05);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(1px);
    z-index: 10;
}

.evidence-photo {
    width: 100%;
    filter: grayscale(20%) contrast(110%);
    display: block;
}

.glass-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 15px 15px 0px rgba(255, 77, 0, 0.1);
    border-color: #444;
}

@media (max-width: 768px) {
    h1 { font-size: clamp(2rem, 8vw, 2.8rem) !important; }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.2rem !important; }
    .section-padding { padding: 80px 0 !important; }
    .glass-card { padding: 25px; }
    .manifesto-text { font-size: 1.1rem !important; padding-left: 15px; }
    .grid-mobile-stack {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 480px) {
    .section-padding { padding: 60px 0 !important; }
    .btn { width: 100%; padding: 18px 20px; font-size: 0.9rem !important; }
    header { text-align: center; }
    header .manifesto-text { border-left: none; padding-left: 0; }
    
    /* Fix logo watermark on mobile */
    .watermark-mobile-fix {
        position: relative !important;
        right: 0 !important;
        bottom: 0 !important;
        margin-top: 15px !important;
        display: inline-block !important;
        transform: none !important;
        font-size: 0.5rem !important;
    }
}
