/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #050A18;
    --bg-secondary: #0A1228;
    --bg-card: #0D1B3A;
    --bg-card-hover: #11244A;
    --cyan: #00D4FF;
    --cyan-dim: rgba(0, 212, 255, 0.15);
    --cyan-glow: rgba(0, 212, 255, 0.4);
    --purple: #7B61FF;
    --purple-dim: rgba(123, 97, 255, 0.15);
    --purple-glow: rgba(123, 97, 255, 0.4);
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: rgba(0, 212, 255, 0.12);
    --border-hover: rgba(0, 212, 255, 0.3);
    --grid-line: rgba(0, 212, 255, 0.035);
    --font-display: 'Orbitron', 'Rajdhani', 'Noto Sans SC', sans-serif;
    --font-body: 'Inter', 'Noto Sans SC', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== GLOBAL GRID OVERLAY ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ===== UTILITY ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
}

/* ===== ANIMATION KEYFRAMES ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dataStream {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100vw); opacity: 0; }
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== SECTION TRANSITION ===== */
.section-transition {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.section-transition::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-dim), var(--cyan), var(--cyan-dim), transparent);
    opacity: 0.6;
}

.section-transition::after {
    content: '';
    position: absolute;
    top: calc(50% - 3px);
    left: -100px;
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    filter: blur(3px);
    animation: dataStream 4s ease-in-out infinite;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 20px 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 10, 24, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.nav-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 0 8px var(--cyan-dim));
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.nav-logo-tagline {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-top: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--cyan);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 10px 24px;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-cta:hover {
    background: var(--cyan-dim);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 10, 24, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        z-index: 999;
        padding: 80px 24px;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        animation: menuItemIn 0.4s ease forwards;
    }
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.18s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.26s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.34s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.42s; }
    .nav-menu a {
        font-size: 22px;
        font-weight: 500;
        letter-spacing: 0.12em;
        color: var(--text-primary);
        padding: 16px 32px;
        display: block;
        position: relative;
        transition: all 0.3s ease;
    }
    .nav-menu a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 2px;
        background: var(--cyan);
        box-shadow: 0 0 12px var(--cyan-glow);
        transition: width 0.3s ease;
    }
    .nav-menu a:hover {
        color: var(--cyan);
        padding-left: 48px;
    }
    .nav-menu a:hover::before {
        width: 32px;
    }
    .nav-menu a::after { display: none; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

@keyframes menuItemIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--border);
}

.page-header-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--cyan);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-header-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.06em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.page-header-desc {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 64px;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--cyan);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--cyan);
    opacity: 0.6;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.section-desc {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 600px;
    line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn-primary {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 16px 36px;
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--cyan-dim);
    box-shadow: 0 0 30px var(--cyan-glow), inset 0 0 20px var(--cyan-dim);
}

.btn-secondary {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 16px 36px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--purple);
    color: var(--purple);
    box-shadow: 0 0 20px var(--purple-dim);
}

/* ===== CARDS ===== */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
}

.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
}

.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
}

@media (max-width: 1024px) {
    .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
}

.content-card {
    background: var(--bg-card);
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.content-card:hover {
    background: var(--bg-card-hover);
}

.content-card:hover::before {
    transform: scaleX(1);
}

.card-num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.content-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--cyan);
}

.card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.card-desc {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.card-features {
    list-style: none;
    margin-top: 24px;
}

.card-features li {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--cyan);
    opacity: 0.6;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

/* ===== FOOTER ===== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.06em;
}

.footer-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--cyan);
    transform: translateX(4px);
}

.footer-contact p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.8;
}

.footer-qr {
    width: 100px;
    height: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.footer-qr span {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.8;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 4px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    background: var(--bg-primary);
}

.timeline-dot.active {
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-glow);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== TABLE ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

.data-table thead {
    border-bottom: 2px solid var(--cyan);
}

.data-table th {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px;
    text-align: left;
}

.data-table td {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: var(--bg-card);
}

/* ===== FORM ELEMENTS ===== */
.form-input {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border);
    padding: 14px 18px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-dim);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.form-group {
    margin-bottom: 24px;
}

/* ===== NAV DOTS ===== */
.nav-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--cyan-dim);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cyan);
    opacity: 0;
    transition: all 0.4s ease;
}

.nav-dot:hover, .nav-dot.active {
    border-color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-glow);
}

.nav-dot.active::before {
    opacity: 1;
}

.nav-dot-label {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    letter-spacing: 0.1em;
}

.nav-dot:hover .nav-dot-label {
    opacity: 1;
    right: 28px;
}

@media (max-width: 1024px) {
    .nav-dots { display: none; }
}
