/* Base Variables */
:root {
    --bg-dark: #020617;
    --bg-alt: #010411;
    --blue: #3b82f6;
    --blue-hover: #2563eb;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --white: #ffffff;
    --red: #ef4444;
    --green: #22c55e;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container.narrow { max-width: 800px; }
.bg-alt { background-color: var(--bg-alt); }
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-slate { color: var(--slate-500); }
.hidden { display: none !important; }
.mb-12 { margin-bottom: 3rem; }

/* Header */
.main-header {
    height: 5rem;
    position: sticky;
    top: 0;
    background-color: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(12px);
    z-index: 40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--blue);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; }

.nav-links { display: none; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { text-decoration: none; color: var(--slate-400); font-size: 0.875rem; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 9999px;
}

.status-text { font-size: 0.625rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.05em; }
.dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background-color: var(--green); }

/* Hero */
.hero-section {
    padding: 6rem 1.5rem 4rem;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
                radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
}

.hero-flex { display: flex; flex-direction: column; align-items: center; gap: 4rem; }
@media (min-width: 1024px) { .hero-flex { flex-direction: row; text-align: left; } }

.hero-content { flex: 1; text-align: center; }
@media (min-width: 1024px) { .hero-content { text-align: left; } }

.online-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 9999px;
    margin-bottom: 2rem;
}

.pill-text { font-size: 0.75rem; font-weight: 800; color: #60a5fa; text-transform: uppercase; letter-spacing: 0.1em; }

.main-title { font-size: 3.25rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 2rem; }
@media (min-width: 768px) { .main-title { font-size: 4.5rem; } }

.gradient-text {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc { font-size: 1.125rem; color: var(--slate-400); max-width: 42rem; margin: 0 auto 2.5rem; }
@media (min-width: 1024px) { .hero-desc { margin: 0 0 2.5rem; } }

.start-box { max-width: 28rem; margin: 0 auto; }
@media (min-width: 1024px) { .start-box { margin: 0; } }

.protocol-card {
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.protocol-card.agreed { border-color: rgba(59, 130, 246, 0.4); background-color: rgba(59, 130, 246, 0.05); }
.protocol-card.error { border-color: rgba(239, 68, 68, 0.6); background-color: rgba(239, 68, 68, 0.08); box-shadow: 0 0 20px rgba(239, 68, 68, 0.1); }

.checkbox-container { display: flex; align-items: flex-start; gap: 1rem; cursor: pointer; }
.checkbox-container input { display: none; }
.checkmark {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e293b;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-container input:checked + .checkmark { background-color: var(--blue); border-color: var(--blue); }
.checkmark svg { width: 1rem; height: 1rem; stroke: white; fill: none; stroke-width: 3; display: none; }
.checkbox-container input:checked + .checkmark svg { display: block; }

.label-title { font-size: 0.875rem; font-weight: 700; color: #e2e8f0; margin-bottom: 0.25rem; }
.label-desc { font-size: 0.75rem; color: var(--slate-500); line-height: 1.4; }
.label-desc a { color: var(--blue); text-decoration: none; }

.error-msg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}
.error-icon { width: 1rem; height: 1rem; fill: currentColor; }

.btn-primary {
    width: 100%;
    padding: 1.25rem;
    background-color: var(--blue);
    border: none;
    border-radius: 1.25rem;
    color: white;
    font-weight: 800;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 15px 30px -10px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover { background-color: var(--blue-hover); transform: translateY(-2px); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* Sections */
.section { padding: 8rem 1.5rem; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.section-header p { color: var(--slate-400); font-size: 1.125rem; max-width: 40rem; margin: 0 auto; }

/* Steps Grid */
.steps-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { text-align: center; }
.step-num { font-size: 3rem; font-weight: 900; color: rgba(59, 130, 246, 0.1); margin-bottom: -1.5rem; }
.step-card h4 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; position: relative; }
.step-card p { color: var(--slate-400); }

/* Features Grid */
.features-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    padding: 2.5rem;
    border-radius: 2rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}
.feature-card:hover { border-color: var(--blue); transform: translateY(-5px); background-color: rgba(255, 255, 255, 0.06); }
.feature-tag { font-size: 0.65rem; font-weight: 900; color: var(--blue); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.feature-card p { font-size: 0.95rem; color: var(--slate-400); line-height: 1.7; }

/* Safety Banner */
.safety-banner { background: linear-gradient(135deg, #1e3a8a, #000000); padding: 4rem 1.5rem; }
.safety-content { text-align: center; max-width: 50rem; margin: 0 auto; }
.safety-content h3 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.safety-content p { color: var(--slate-300); font-size: 1.125rem; font-weight: 500; }

/* Comparison Table */
.table-wrap { background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 2.5rem; overflow: hidden; }
.comparison-table { width: 100%; border-collapse: collapse; text-align: left; }
.comparison-table th, .comparison-table td { padding: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.comparison-table thead th { font-size: 0.75rem; font-weight: 900; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.1em; background-color: rgba(255, 255, 255, 0.03); }
.comparison-table th.highlight { color: var(--blue); }
.comparison-table td.label { font-weight: 700; color: var(--slate-300); }
.comparison-table td.highlight { color: #60a5fa; font-weight: 600; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { padding: 1.5rem; border-radius: 1.25rem; background-color: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); cursor: pointer; transition: all 0.2s; }
.faq-item:hover { border-color: var(--blue); }
.faq-item summary { list-style: none; font-size: 1.125rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.faq-item .icon { color: var(--blue); transition: transform 0.2s; }
.faq-item[open] .icon { transform: rotate(45deg); }
.faq-item p { margin-top: 1rem; color: var(--slate-400); line-height: 1.6; }

/* Footer */
.main-footer { padding: 4rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.05); background-color: var(--bg-alt); }
.footer-content { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2rem; }
@media (min-width: 768px) { .footer-content { flex-direction: row; } }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.footer-links a { font-size: 0.75rem; font-weight: 700; color: var(--slate-500); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links a:hover { color: white; }
.copyright { font-size: 0.65rem; font-family: monospace; color: var(--slate-600); text-transform: uppercase; letter-spacing: 0.1em; }

/* Chat Overlay */
.chat-overlay { position: fixed; inset: 0; z-index: 100; background-color: black; display: flex; flex-direction: column; }
.overlay-header { height: 4.5rem; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.1); background-color: #000; }
.overlay-logo { display: flex; align-items: center; gap: 1rem; }
.overlay-status { display: none; }
@media (min-width: 640px) { .overlay-status { display: block; } }
.status-title { font-size: 0.75rem; font-weight: 900; color: var(--blue); text-transform: uppercase; }
.status-sub { font-size: 0.6rem; color: var(--slate-600); font-family: monospace; }
.btn-exit { padding: 0.625rem 1.5rem; background-color: rgba(239, 68, 68, 0.1); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 9999px; font-size: 0.75rem; font-weight: 800; cursor: pointer; text-transform: uppercase; }
.btn-exit:hover { background-color: var(--red); color: white; }
.iframe-container { flex: 1; background-color: #000; position: relative; }

/* User Grid / User Wall (Masonry Style) */
.hero-image-wrap { 
    display: none; 
    position: relative;
    width: 100%;
    max-width: 42rem;
}
@media (min-width: 1024px) { .hero-image-wrap { display: block; } }

.user-live-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 150px);
    gap: 12px;
}

.user-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255,255,255,0.05);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-card .inner-wrap {
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.user-card.tall { grid-row: span 2; }
.user-card.wide { grid-column: span 2; }

/* Card specifically when refreshing */
.user-card.refreshing {
    opacity: 0.3;
}
.user-card.refreshing .inner-wrap {
    transform: scale(0.92) translateY(5px);
}

.card-badge-online {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.card-badge-online .status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.card-badge-online span {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.05em;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 10;
}

.card-info .name-age {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-info .flag {
    width: 18px;
    height: 12px;
    object-fit: contain;
    border-radius: 2px;
}

.wall-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
    pointer-events: none;
    z-index: 15;
}

/* Animations */
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.animate-shake { animation: shake 0.2s ease-in-out 0s 2; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.pulse { animation: pulse 2s infinite; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.ping { position: absolute; animation: ping 1.5s infinite; }
