/* Reset and Base Styles */
:root {
    --bg-color: #030712;
    --card-bg: rgba(17, 25, 40, 0.75);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    
    /* Palette */
    --tech-blue: #3b82f6;
    --tech-purple: #8b5cf6;
    --tech-cyan: #06b6d4; 
    
    --border-color: rgba(255, 255, 255, 0.08);
    --glow-blue: 0 0 25px rgba(59, 130, 246, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--tech-blue), var(--tech-purple));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.2), transparent 70%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1), transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    background-attachment: fixed;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

header h1 {
    font-size: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    width: 100%;
    margin: 0;
    line-height: 60px;
    font-weight: 800;
}

/* Hero Section */
.hero {
    height: auto;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 0 40px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(59, 130, 246, 0.05) 51%, transparent 51%);
    background-size: 100% 4px;
    animation: scanlines 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

.hero-content { position: relative; z-index: 1; width: 100%; }

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--tech-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero .sub-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.quote-box {
    margin: 30px auto;
    max-width: 800px;
    padding: 20px;
    border-left: 4px solid var(--tech-blue);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
    text-align: left;
}

.quote-box p {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 10px;
    font-style: italic;
    line-height: 1.8;
}

.quote-box p:last-child {
    margin-bottom: 0;
    color: var(--tech-cyan);
    font-weight: 600;
}

/* History Scroll */
.history-scroll {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.history-scroll h3 {
    color: var(--tech-blue);
    margin-bottom: 10px;
}

.history-scroll p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Timeline Ticker */
.timeline-ticker {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ticker-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-item span {
    color: var(--tech-blue);
    font-size: 0.75rem;
    font-weight: bold;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Sections Common */
.section {
    padding: 60px 0;
    position: relative;
}

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    margin-top: 10px;
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1rem;
}

/* Ecosystem */
.ecosystem-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.system-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.system-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s;
}

.system-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--tech-blue);
}

.system-box .num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--tech-blue);
    opacity: 0.8;
    min-width: 40px;
    line-height: 1;
}

.system-box h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.system-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tech-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--tech-blue);
    box-shadow: var(--glow-blue);
}

.tech-card .icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: block;
}

.tech-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.highlight-text {
    font-size: 1rem;
    color: var(--tech-blue);
    font-weight: 600;
    margin-bottom: 8px;
}

.sub-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.highlight-card {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px dashed var(--border-color);
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.support-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.support-card h4 { color: var(--tech-purple); margin-bottom: 10px; }
.support-card p { color: #fff; margin-bottom: 5px; font-weight: 600; }
.support-card .note { font-size: 0.8rem; color: var(--text-secondary); }

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.stats-bar .label {
    color: var(--tech-blue);
    font-weight: bold;
    display: block;
}

.stats-bar .num {
    color: #fff;
    font-size: 0.9rem;
}

/* Vision Card */
.vision-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s;
}

.green-card { border-top: 3px solid #10b981; }
.culture-card { border-top: 3px solid #8b5cf6; }

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-header .icon { font-size: 2rem; }
.card-header h3 { font-size: 1.5rem; color: #fff; }

.vision-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    background: rgba(2, 6, 23, 0.8);
    margin-top: 40px;
}

/* Animation */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive Mobile */
@media (max-width: 768px) {
    .hero { min-height: auto; padding-top: 90px; }
    .hero h2 { font-size: 2.2rem; }
    
    .timeline-ticker { flex-direction: column; gap: 10px; width: 100%; }
    .ticker-item { width: 100%; justify-content: center; }

    .ecosystem-layout,
    .tech-grid,
    .support-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 20px;
    }
}
