:root {
    --violet: #8B5CF6;
    --amber: #F59E0B;
    --black: #050505;
    --white: #ffffff;
    --gray-500: rgba(255, 255, 255, 0.5);
    --gray-100: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.5;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Luxury Background System */
.luxury-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #0d061f 0%, #000 100%);
    background-color: var(--black);
}

#neural-canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
}

.digital-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.12;
    pointer-events: none;
    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");
}

/* Header System */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 50;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
}

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

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    font-style: italic;
}

.accent-violet { color: var(--violet); }
.faint { color: rgba(255, 255, 255, 0.2); }

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--amber);
    border-radius: 50%;
}

.pulse-amber {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
    animation: pulse-amber 2s infinite;
}

@keyframes pulse-amber {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.stats-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.node-badge {
    text-align: right;
}

.node-label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: var(--gray-500);
    letter-spacing: 0.2em;
}

.node-value {
    font-family: monospace;
    font-weight: 700;
    color: var(--violet);
    font-size: 0.9rem;
}

.live-badge {
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 900;
    color: var(--amber);
    letter-spacing: 0.1em;
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 950;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin-bottom: 40px;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--violet) 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.hero-subtext {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--gray-500);
    max-width: 650px;
    margin: 0 auto 60px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Gatekeeper Card */
.gatekeeper-card {
    max-width: 550px;
    margin: 0 auto 80px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid var(--gray-100);
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.access-controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.custom-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    user-select: none;
}

.custom-checkbox-container input {
    display: none;
}

.checkmark {
    min-width: 24px;
    height: 24px;
    border: 2px solid var(--gray-100);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-checkbox-container input:checked ~ .checkmark {
    background: var(--violet);
    border-color: var(--violet);
}

.checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-weight: 900;
    font-size: 16px;
    left: 4.5px;
    top: -1px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}

.custom-checkbox-container input:checked ~ .checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.highlight-amber { color: var(--amber); }

.btn-discovery {
    width: 100%;
    padding: 24px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
    color: white;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(109, 40, 217, 0.3);
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-discovery::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--violet), var(--amber));
    opacity: 0;
    transition: opacity 0.4s;
}

.btn-discovery:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.5);
}

.btn-discovery:hover::before {
    opacity: 1;
}

.btn-discovery span, .btn-discovery { position: relative; z-index: 1; }

/* Hero Badges */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 60px;
    opacity: 0.5;
    transition: opacity 0.5s;
}

.hero-badges:hover { opacity: 1; }

.hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.badge-sub {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--violet);
    margin-top: 4px;
}

/* Ecosystem Section */
.ecosystem-section {
    padding: 120px 0;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    position: relative;
    z-index: 10;
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-style: italic;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--violet), var(--amber));
    margin: 20px auto;
    border-radius: 100px;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.eco-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gray-100);
    border-radius: 40px;
    padding: 50px;
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.eco-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-10px);
}

.eco-icon {
    font-size: 40px;
    margin-bottom: 30px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
}

.eco-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.eco-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.7;
}

/* SEO Content */
.seo-articles {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.seo-section {
    margin-bottom: 120px;
}

.seo-title {
    font-size: 3rem;
    font-weight: 950;
    margin-bottom: 40px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.seo-prose {
    font-size: 1.25rem;
    color: var(--gray-500);
    line-height: 1.8;
    font-weight: 500;
}

.seo-prose p {
    margin-bottom: 40px;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-100);
}

.faq-btn {
    width: 100%;
    padding: 30px 0;
    background: none;
    border: none;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
}

.faq-btn:hover { color: var(--violet); }

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s;
    color: var(--gray-500);
    font-weight: 500;
}

.faq-item.active .faq-content {
    max-height: 300px;
    padding-bottom: 30px;
}

/* Footer */
.footer {
    padding: 100px 0 40px;
    background-color: #020202;
    border-top: 1px solid var(--gray-100);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 24px;
}

.footer-text {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.2em;
}

.footer-heading {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.3em;
    margin-bottom: 30px;
}

.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 16px;
}

.link-list a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s;
}

.link-list a:hover { color: var(--violet); }

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--gray-100);
    padding-top: 40px;
}

.footer-bottom p {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,0.1);
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

/* Overlays */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.geo-loader {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top-color: var(--violet);
    border-radius: 20px;
    margin: 0 auto 40px;
    animation: spin-geo 1.5s cubic-bezier(0.7, -0.4, 0.3, 1.4) infinite;
}

@keyframes spin-geo {
    0% { transform: rotate(0deg) scale(1); border-radius: 20px; }
    50% { transform: rotate(180deg) scale(1.3); border-radius: 50%; border-color: var(--amber); }
    100% { transform: rotate(360deg) scale(1); border-radius: 20px; }
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.05em;
    margin-bottom: 12px;
}

.loader-subtext {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.3em;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Discovery View */
.discovery-viewport {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: black;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s;
}

.discovery-header {
    height: 80px;
    background: #000;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.discovery-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    font-weight: 900;
    color: var(--violet);
    letter-spacing: 0.3em;
    font-style: italic;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--violet);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--violet);
}

.btn-disconnect {
    background: var(--gray-100);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-disconnect:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.iframe-shell {
    height: calc(100vh - 80px);
    padding: 40px;
    background: #020202;
}

.iframe-shell iframe {
    width: 100%;
    height: 100%;
    border: 1px solid var(--gray-100);
    border-radius: 30px;
    background: #000;
    box-shadow: 0 50px 150px rgba(0,0,0,1);
}

/* Shake Animation */
.shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

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

.border-error {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2) !important;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 4rem; }
    .seo-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .header-container { padding: 0 20px; }
    .hero-title { font-size: 3rem; }
    .hero-badges { flex-direction: column; gap: 30px; }
    .ecosystem-grid { grid-template-columns: 1fr; }
    .iframe-shell { padding: 10px; }
    .header .stats-group { display: none; }
}