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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 9999;
    pointer-events: none;
}

.gate {
    width: 50%;
    height: 100%;
    background-color: #000000;
}

.gate.left {
    animation: openLeft 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 0.5s;
}

.gate.right {
    animation: openRight 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes openLeft { to { transform: translateX(-100%); } }
@keyframes openRight { to { transform: translateX(100%); } }

.navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    z-index: 100;
}

.nav-item {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    opacity: 1;
    text-shadow: 0 0 10px #fff;
    transform: translateY(-2px);
}

.nav-icon { margin-right: 10px; display: flex; align-items: center; }

.page-content {
    display: block;
}
.page-content.hidden {
    display: none;
}

.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#webgl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.main-container {
    position: absolute;
    top: 65%; 
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    pointer-events: none; 
}

.logo {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    user-select: none;
    display: flex;
    align-items: center;
}

.cyber { color: #ff2a2a; text-shadow: 0 0 25px rgba(255, 42, 42, 0.6); }
.ix { color: #ffffff; text-shadow: 0 0 25px rgba(255, 255, 255, 0.6); }
.cursor { font-weight: 300; color: #ff2a2a; margin-left: 5px; animation: blink 0.7s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ff2a2a;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    user-select: none;
}

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid #ff2a2a;
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: #ff2a2a;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.6s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

.dashboard-section {
    background-color: #040408;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    border-top: 1px solid rgba(255, 42, 42, 0.1);
}

.badge-realtime {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 26, 26, 0.1);
    border: 1px solid #ff1a1a;
    color: #ff1a1a;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.dashboard-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    max-width: 900px;
    line-height: 1.2;
    margin-bottom: 60px;
}

.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin-bottom: 60px;
}

.stat-card {
    background-color: #0a0a10;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    flex: 1;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.icon-red { color: #ff1a1a; }
.icon-green { color: #00ff66; }

.stat-number {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label-primary { font-size: 1.1rem; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
.stat-label-secondary { font-size: 0.9rem; font-weight: 500; color: #8a8a98; }

.status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #00ff66;
    border-radius: 50%;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

.status-text { font-size: 0.9rem; color: #a0a0b0; }

.how-it-works-section {
    background-color: #000000;
    width: 100vw;
    min-height: 572px;
    position: relative;
    z-index: 10;
    padding: 60px 0 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.inner-content {
    width: 100%;
    max-width: 953px;
    margin: 0 auto;
    padding-left: 95px;
    padding-right: 95px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.left-arrow-fragment {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #333338;
    font-size: 2rem;
    user-select: none;
    opacity: 0.5;
}

.badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #1c1602;
    border: 1px solid #d4af37;
    padding: 6px 14px;
    border-radius: 50px;
    margin-top: -5px;
    margin-bottom: 20px;
}

.badge-gold svg { color: #ffcc00; }
.badge-gold span { color: #ffcc00; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; }

.section-title-main { font-size: 2.8rem; font-weight: 800; color: #ffffff; line-height: 1.1; }
.section-title-sub { font-size: 2.8rem; font-weight: 800; color: #4a4a52; margin-bottom: 45px; }

.workflow-container {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 760px;
    margin-bottom: 50px;
}

.workflow-card {
    background-color: #050508;
    border-radius: 20px;
    flex: 1;
    padding: 25px;
    position: relative;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-step-1 { border: 1px solid #2b2b5c; }
.card-step-2 { border: 1px solid #402060; }

.workflow-card-icon-box {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: #160a2b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-step-1 .workflow-card-icon-box svg { color: #8fa3ff; }
.card-step-2 .workflow-card-icon-box svg { color: #b57cff; }

.workflow-card-number {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3.5rem;
    font-weight: 900;
    user-select: none;
    line-height: 1;
}

.card-step-1 .workflow-card-number { color: #1c1c24; opacity: 0.8; }
.card-step-2 .workflow-card-number { color: #14141a; }

.workflow-card-title { font-size: 1.15rem; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.workflow-card-desc { font-size: 0.9rem; color: #9a9aa5; line-height: 1.4; }
.workflow-separator-arrow { color: #333338; font-size: 1.2rem; font-weight: bold; user-select: none; }

.bottom-action-container { width: 100%; margin-top: auto; position: relative; }
.btn-start-now {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background-color: #ffffff;
    color: #000000;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: absolute;
    bottom: -20px;
    left: 0;
    box-shadow: 0 -5px 20px rgba(255, 255, 255, 0.05);
}

.api-section {
    background-color: #000000;
    width: 100vw;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.api-grid-container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.code-window {
    background-color: #07070a;
    border: 1px solid #1a1a24;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88rem;
    line-height: 1.5;
}

.code-window-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background-color: #0b0b10;
    border-bottom: 1px solid #1a1a24;
}

.code-window-dots { display: flex; gap: 8px; margin-right: 25px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }
.code-window-filename { color: #7a7a85; font-size: 0.85rem; font-weight: 500; }

.code-window-content { padding: 22px; color: #d4d4d4; overflow-x: auto; white-space: pre; }
.syntax-comment { color: #6a9955; }
.syntax-keyword { color: #c586c0; }
.syntax-string { color: #ce9178; }
.syntax-method { color: #4fc1ff; }
.syntax-property { color: #9cdcfe; }

.api-info-side { display: flex; flex-direction: column; align-items: flex-start; }
.badge-api {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 42, 42, 0.08);
    border: 1px solid rgba(255, 42, 42, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 24px;
}
.badge-api svg { color: #ff4d4d; }
.badge-api span { color: #ff4d4d; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; }

.api-main-title { font-size: 2.8rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 24px; }
.api-main-title span { color: #e0e0e6; }
.api-description { color: #9a9aa5; font-size: 1.05rem; line-height: 1.6; margin-bottom: 35px; }

.api-features-row { display: flex; gap: 16px; width: 100%; margin-bottom: 40px; }
.feature-mini-card { background-color: #06060a; border: 1px solid rgba(255, 255, 255, 0.03); border-radius: 12px; padding: 16px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.feature-icon { font-size: 1.2rem; margin-bottom: 8px; }
.feature-title { font-size: 0.95rem; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
.feature-text { font-size: 0.8rem; color: #7a7a85; }

.btn-view-doc { display: inline-flex; align-items: center; gap: 12px; background-color: #3b1e6d; color: #ffffff; padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: none; cursor: pointer; }
.btn-view-doc svg { color: #ffffff; }

.search-page-container {
    background-color: #020205;
    min-height: 100vh;
    width: 100vw;
    padding: 120px 20px 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-panel-box {
    background-color: #07070c;
    border: 1px solid #1c1c2b;
    border-radius: 20px;
    width: 100%;
    max-width: 1000px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.search-panel-header {
    margin-bottom: 35px;
    border-bottom: 1px solid #131322;
    padding-bottom: 20px;
}

.search-panel-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.search-panel-title svg { color: #ff2a2a; }

.search-panel-subtitle {
    color: #6c6c7d;
    font-size: 0.95rem;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a0a0b0;
    letter-spacing: 0.5px;
}

.label-with-icon svg {
    flex-shrink: 0;
}

.input-group input {
    background-color: #0c0c16;
    border: 1px solid #1e1e33;
    border-radius: 8px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    border-color: #ff2a2a;
    box-shadow: 0 0 10px rgba(255, 42, 42, 0.15);
}

.input-group input::placeholder {
    color: #3e3e52;
}

.search-action-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.btn-submit-search {
    background-color: #ff2a2a;
    color: #ffffff;
    border: none;
    padding: 14px 35px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.3);
    transition: background-color 0.2s, transform 0.2s;
}

.btn-submit-search:hover {
    background-color: #e02222;
    transform: translateY(-1px);
}

.results-preview-box {
    margin-top: 30px;
    background-color: #040407;
    border: 1px dashed #1e1e33;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #525266;
    font-size: 0.95rem;
}

.results-content { text-align: left; }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.results-count { color: #00ff66; font-size: 1rem; font-weight: 600; }
.results-actions { display: flex; gap: 10px; }
.btn-export { display: inline-flex; align-items: center; gap: 8px; background-color: #0c0c16; border: 1px solid #2a2a40; color: #ffffff; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.btn-export:hover { border-color: #ff2a2a; background-color: #141420; }
.result-item { background-color: #08080e; border: 1px solid #1a1a2a; border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; font-size: 0.85rem; line-height: 1.6; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.result-item .field { color: #6c6c7d; }
.result-item .value { color: #ffffff; word-break: break-all; }
.result-item .value.masked { color: #00ff66; }
.result-fullwidth { grid-column: 1 / -1; }
.results-loading { text-align: center; color: #ff2a2a; padding: 30px; }
.results-loading svg { animation: spin 1s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.results-error { color: #ff2a2a; text-align: center; padding: 20px; }

@media (max-width: 900px) {
    .api-grid-container { grid-template-columns: 1fr; gap: 40px; }
    .api-features-row { flex-direction: column; }
    .workflow-container { flex-direction: column; }
    .inner-content { padding-left: 30px; padding-right: 30px; }
    .search-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .search-grid { grid-template-columns: 1fr; }
}