/* style.css */
:root {
    --bg: #0c051e;
    --cyan: #10fff0;
    --violet: #8b5cf6;
    --yellow: #fbbf24;
    --text: #ffffff;
    --text-dim: #94A3B8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(16, 255, 240, 0.1);
    --radius: 24px;
    --radius-pulse: 40px 4px 40px 4px;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(16, 255, 240, 0.05) 0%, transparent 40%);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

.hidden { display: none !important; }

/* Canvas Background */
#connection-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

/* Glassmorphism & Neon Pulse */
.neon-glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px 4px 40px 4px; /* Leaf-shaped Glassmorphism */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
}

.neon-glass:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 40px rgba(16, 255, 240, 0.15);
    transform: translateY(-8px);
}

.pulse-border {
    animation: pulse-border-anim 3s infinite alternate;
}

@keyframes pulse-border-anim {
    0% { border-color: rgba(16, 255, 240, 0.1); box-shadow: 0 0 5px rgba(16, 255, 240, 0.05); }
    100% { border-color: rgba(16, 255, 240, 0.4); box-shadow: 0 0 20px rgba(16, 255, 240, 0.2); }
}

/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(12, 5, 30, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 900;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -1px;
}

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

.online-pill {
    background: rgba(16, 255, 240, 0.08);
    border: 1px solid rgba(16, 255, 240, 0.15);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
}

.pulse-glow {
    animation: glow-soft 2s infinite alternate;
}

@keyframes glow-soft {
    from { box-shadow: 0 0 5px rgba(16, 255, 240, 0.2); }
    to { box-shadow: 0 0 20px rgba(16, 255, 240, 0.4); }
}

/* Hero Section */
.hero-section {
    padding: clamp(60px, 12vh, 120px) 0;
    text-align: center;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 8vw, 82px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-desc {
    font-size: clamp(16px, 3vw, 22px);
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 48px;
}

.gatekeeper-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    border: 2px solid var(--violet);
}

.gatekeeper-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.check-box-ui {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

.check-box-ui input { display: none; }

.custom-mark {
    min-width: 20px;
    height: 20px;
    border: 2px solid var(--violet);
    border-radius: 6px;
    position: relative;
    margin-top: 3px;
}

.check-box-ui input:checked + .custom-mark {
    background: var(--cyan);
    border-color: var(--cyan);
}

.check-box-ui input:checked + .custom-mark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg);
    font-weight: 900;
    font-size: 14px;
}

.text-sm { font-size: 14px; color: var(--text-dim); line-height: 1.4; }
.text-sm a { color: var(--violet); text-decoration: none; }

.hint-msg {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 700;
    margin-top: -10px;
    text-align: left;
    display: none;
}

.glow-btn {
    background: linear-gradient(135deg, var(--violet), #b291ff);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 16px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.hyper-shimmer::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: rotate(45deg);
    animation: sweep 3s infinite;
}

@keyframes sweep {
    0% { left: -150%; }
    100% { left: 150%; }
}

.glow-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.6);
}

.shake {
    animation: shake-anim 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.jiggle-pulse {
    animation: jiggle-kf 0.5s ease-in-out, pulse-text-kf 1s infinite alternate;
}

@keyframes jiggle-kf {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-2px); }
}

@keyframes pulse-text-kf {
    0% { color: var(--text-dim); }
    100% { color: #fbf119; text-shadow: 0 0 15px rgba(251, 241, 25, 0.8); } /* Neon Yellow Pulse */
}

@keyframes shake-anim {
    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); }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.section-gap { padding: 80px 0; }

.pulse-card { padding: 32px; }
.bubble-icon { font-size: 44px; margin-bottom: 24px; }
.pulse-card h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 12px; }
.violet-glow { color: var(--violet); }
.cyan-glow { color: var(--cyan); }
.pulse-card p { font-size: 15px; color: var(--text-dim); }

/* Authority Article */
.article-box { padding: 60px; text-align: left; }
.article-box h2 { font-size: clamp(24px, 5vw, 36px); margin-bottom: 32px; }
.article-box h3 { font-size: 24px; margin-top: 40px; margin-bottom: 16px; color: var(--cyan); }
.article-box p { margin-bottom: 24px; color: var(--text-dim); font-size: 17px; line-height: 1.8; }
.article-box strong { color: white; }

/* Comparison Table */
.section-title { font-family: var(--font-display); font-size: clamp(28px, 6vw, 42px); text-align: center; margin-bottom: 48px; }

.table-container { overflow-x: auto; border: 1px solid var(--glass-border); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th, .data-table td { padding: 24px; text-align: left; border-bottom: 1px solid var(--glass-border); }
.data-table th { font-family: var(--font-display); color: var(--cyan); font-size: 18px; text-transform: uppercase; letter-spacing: 1px; }
.highlight-txt { color: var(--violet); font-weight: 800; font-size: 18px; }

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.faq-card { padding: 32px; }
.faq-card h4 { color: var(--cyan); margin-bottom: 16px; font-size: 18px; }
.faq-card p { color: var(--text-dim); font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--glass-border); padding: 80px 0 40px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.f-brand p { margin-top: 20px; color: var(--text-dim); max-width: 320px; }
.f-links h4 { color: var(--cyan); margin-bottom: 24px; font-size: 18px; }
.f-links ul { list-style: none; }
.f-links li { margin-bottom: 12px; }
.f-links a { text-decoration: none; color: var(--text-dim); transition: 0.3s; }
.f-links a:hover { color: var(--cyan); }
.footer-bottom { text-align: center; border-top: 1px solid var(--glass-border); padding-top: 32px; font-size: 14px; color: var(--text-dim); }

/* Chat View */
#chat-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.control-nav {
    height: 64px;
    background: var(--bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--glass-border);
}

.logo-mini { font-family: var(--font-display); font-weight: 900; font-size: 22px; }
.logo-mini span { color: var(--cyan); }

.exit-btn {
    background: var(--violet);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
}

#video-habitat {
    flex: 1;
    background: radial-gradient(circle at center, #1a103a 0%, #0c051e 100%);
    position: relative;
    padding: 0;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (min-width: 1024px) {
    #video-habitat { padding: 40px; }
    iframe {
        max-width: 1240px;
        max-height: 840px;
        margin: 0 auto;
        display: block;
        border-radius: 32px;
        box-shadow: 0 30px 100px rgba(0,0,0,0.8);
    }
}

@media (max-width: 768px) {
    .article-box { padding: 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .features-grid { grid-template-columns: 1fr; }
}
