/* style.css - Monkey's Cam: High Performance UI */
:root {
    --monkey-purple: #644af1;
    --monkey-neon-blue: #00f3ff;
    --monkey-pink: #ff00ff;
    --bg-dark: #080112;
    --text-white: #ffffff;
    --text-lavender: #a5b4fc;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 1. Background Visuals */
#studio-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #170d35 0%, #080112 100%);
}

.film-grain {
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 50;
    animation: grain-dance 8s steps(10) infinite;
}

@keyframes grain-dance {
    0%, 100% { transform: translate(0,0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-10%, 5%); }
    40% { transform: translate(5%, 10%); }
}

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

/* 2. Components: Glass & Branding */
.glass {
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
}

header {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
}

.logo span span { color: var(--monkey-purple); }

.online-pill {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--monkey-neon-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.online-dot {
    width: 6px; height: 6px;
    background: var(--monkey-neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--monkey-neon-blue);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* 3. Hero & Animations */
.hero {
    padding: 80px 0;
    text-align: center;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 7vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
}

.pulse-h1 {
    animation: text-pulse 4s ease-in-out infinite;
}

@keyframes text-pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.01); filter: brightness(1.15); }
}

.shimmer-h1 {
    background: linear-gradient(90deg, #fff 0%, #a5b4fc 45%, #fff 50%, #644af1 55%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: h1-shimmer 6s linear infinite;
}

@keyframes h1-shimmer {
    to { background-position: 200% center; }
}

.gradient-text {
    background: linear-gradient(135deg, var(--monkey-purple), var(--monkey-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-lavender);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
    opacity: 0.8;
}

/* 4. Gatekeeper & Custom Checkbox */
.gatekeeper-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 45px;
    border-radius: 36px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.error-msg {
    color: #ff4d4d;
    font-weight: 700;
    margin-bottom: 20px;
    display: none;
    text-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
}

.custom-check-container {
    margin-bottom: 30px;
}

.check-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    position: relative;
    text-align: left;
    padding: 12px;
    border-radius: 16px;
    transition: background 0.3s;
}

.check-wrapper:hover { background: rgba(255,255,255,0.03); }

/* Hide default checkbox */
.check-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
}

/* Custom indicator */
.checkmark {
    min-width: 24px;
    height: 24px;
    background: var(--glass);
    border: 2px solid var(--glass-border);
    border-radius: 6px;
    display: inline-block;
    position: relative;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2px;
}

/* On checked */
.check-wrapper input:checked ~ .checkmark {
    background: var(--monkey-purple);
    border-color: var(--monkey-purple);
}

/* Checkmark tick */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.check-wrapper input:checked ~ .checkmark:after {
    display: block;
}

.checkmark:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.label-text {
    font-size: 0.95rem;
    color: var(--text-lavender);
    line-height: 1.4;
}

.label-text a {
    color: var(--monkey-neon-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.label-text a:hover { border-color: var(--monkey-neon-blue); }

/* Shimmer Button */
.btn-cta {
    width: 100%;
    padding: 22px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, var(--monkey-purple), var(--monkey-pink));
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    font-family: 'Outfit';
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(100, 74, 241, 0.4);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(100, 74, 241, 0.6);
}

.btn-cta::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: rotate(45deg);
    animation: btn-scan 3s infinite;
}

@keyframes btn-scan {
    0% { transform: translateX(-150%) rotate(45deg); }
    100% { transform: translateX(150%) rotate(45deg); }
}

.shake { animation: shake-kb 0.5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake-kb {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* 5. Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px;
    border-radius: 28px;
    transition: 0.4s;
    border: 1px solid var(--glass-border);
}

.feature-card:hover { transform: translateY(-10px); border-color: var(--monkey-purple); }
.feature-card .icon { font-size: 2.5rem; margin-bottom: 20px; }
.feature-card h3 { font-family: 'Outfit'; color: var(--monkey-neon-blue); margin-bottom: 15px; }
.feature-card p { color: var(--text-lavender); line-height: 1.6; font-size: 0.95rem; }

/* 6. Content Section */
.authority-article { margin: 120px 0; }
.article-inner { padding: 60px; border-radius: 40px; }
.article-inner h2 { font-family: 'Outfit'; font-size: 2.4rem; color: #fff; margin-bottom: 40px; line-height: 1.2; }
.article-inner article p { margin-bottom: 25px; line-height: 1.8; color: var(--text-lavender); font-size: 1.1rem; }
.article-inner article strong { color: white; }

.table-container { margin-top: 50px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { text-align: left; padding: 20px; border-bottom: 1px solid var(--glass-border); }
th { color: var(--monkey-purple); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; }

/* 7. FAQ */
.faq-section { padding-bottom: 120px; }
.section-title { text-align: center; font-family: 'Outfit'; font-size: 2.8rem; margin-bottom: 60px; }
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-item { padding: 30px; border-radius: 24px; cursor: pointer; transition: 0.3s; }
.faq-item h4 { display: flex; justify-content: space-between; align-items: center; color: var(--monkey-neon-blue); font-size: 1.15rem; }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.4s ease-out; }
.faq-item.active .faq-answer { max-height: 200px; padding-top: 20px; }
.faq-answer p { color: var(--text-lavender); line-height: 1.7; font-size: 1rem; }

/* 8. Footer */
footer { border-top: 1px solid var(--glass-border); padding: 80px 0; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; margin-bottom: 50px; }
.f-brand { font-family: 'Outfit'; font-size: 1.8rem; font-weight: 900; }
.f-links { display: flex; gap: 40px; flex-wrap: wrap; }
.f-links a { color: var(--text-lavender); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.f-links a:hover { color: #fff; }
.copy { text-align: center; color: rgba(255,255,255,0.25); font-size: 0.8rem; }

/* 9. Production View (Chat) */
#view-chat {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 2000;
    display: none;
}

.chat-header-bar {
    height: 70px;
    background: #0d021f;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.chat-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

.btn-exit {
    padding: 10px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--monkey-neon-blue), var(--monkey-purple));
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    transition: 0.3s;
}

.btn-exit:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.6);
}

.iframe-wrap {
    width: 100%;
    height: calc(100% - 70px);
    overflow: hidden;
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero { padding: 40px 0; }
    .gatekeeper-card { padding: 30px 20px; }
    .article-inner { padding: 40px 20px; }
    .footer-top { justify-content: center; text-align: center; }
    .chat-header-bar { padding: 0 15px; }
    .chat-logo { font-size: 1rem; }
}
