:root {
    --bg-main: #0a0b10;
    --bg-card: rgba(16, 20, 31, 0.6);
    --bg-card-hover: rgba(22, 28, 45, 0.8);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-violet: #8b5cf6;
    --border-color: rgba(59, 130, 246, 0.15);
    --border-hover: rgba(6, 182, 212, 0.4);
    --glow-cyan: rgba(6, 182, 212, 0.2);
    --glow-violet: rgba(139, 92, 246, 0.2);
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background & Noise */
canvas#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    pointer-events: none;
}
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    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');
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.4rem; font-weight: 800;
}
.logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 15px var(--glow-cyan);
}
.logo-text {
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.main-nav {
    display: flex; align-items: center; gap: 2rem;
}
.nav-link {
    color: var(--text-secondary); text-decoration: none;
    font-weight: 500; font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-link:hover { color: #fff; }
.nav-cta {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 8px 20px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    transition: all 0.3s;
}
.nav-cta:hover {
    background: var(--accent-cyan); color: #fff;
    box-shadow: 0 0 15px var(--glow-cyan);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 5;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}
.hero-content {
    max-width: 600px;
}
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border-color);
    padding: 6px 16px; border-radius: 20px;
    color: var(--accent-cyan); font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1.5rem;
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 30%, #94a3b8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}
.lead {
    color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2.5rem;
}
.hero-actions {
    display: flex; gap: 1rem;
}
.btn {
    padding: 12px 28px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 1rem;
    transition: all 0.3s;
}
.btn-primary {
    background: var(--accent-blue); color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    background: #2563eb; transform: translateY(-2px);
}
.btn-secondary {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2);
}

/* Terminal */
.hero-terminal {
    background: #0f141e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    display: flex; flex-direction: column;
    height: 400px;
}
.term-header {
    background: #1a1f2e; padding: 12px 16px;
    display: flex; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.term-dots {
    display: flex; gap: 6px; margin-right: 16px;
}
.term-dots span {
    width: 12px; height: 12px; border-radius: 50%;
}
.term-dots span:nth-child(1) { background: #ef4444; }
.term-dots span:nth-child(2) { background: #eab308; }
.term-dots span:nth-child(3) { background: #22c55e; }
.term-title {
    color: #64748b; font-size: 0.85rem; font-family: var(--font-mono);
}
.term-body {
    padding: 16px; font-family: var(--font-mono); font-size: 0.9rem;
    color: #cbd5e1; flex: 1; overflow-y: auto;
}
.term-line { margin-bottom: 6px; }
.term-prompt { color: var(--accent-cyan); margin-right: 8px; }
.term-cmd { color: #f8fafc; }
.term-out { color: #94a3b8; margin-bottom: 6px; white-space: pre-wrap; }
.term-out.success { color: #34d399; }
.term-out.error { color: #ef4444; }
.term-input-line {
    padding: 0 16px 16px 16px; display: flex; align-items: center;
    font-family: var(--font-mono); font-size: 0.9rem;
}
#term-input {
    background: transparent; border: none; color: #f8fafc;
    font-family: var(--font-mono); font-size: 0.9rem;
    flex: 1; outline: none;
}

/* Stats */
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 6rem;
}
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 2rem; border-radius: 16px;
    backdrop-filter: blur(10px); text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
    border-color: var(--border-hover);
}
.stat-icon { font-size: 2rem; margin-bottom: 1rem; }
.stat-num {
    font-size: 1.8rem; font-weight: 800; color: var(--accent-cyan); margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* Sections */
.section-title {
    font-size: 2.2rem; font-weight: 800; margin-bottom: 3rem;
    text-align: center; letter-spacing: -0.02em;
}

/* Core Practices */
.practices-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 6rem;
}
.practice-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 2.5rem; border-radius: 20px;
    backdrop-filter: blur(10px); transition: all 0.3s;
}
.practice-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.08);
}
.practice-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 1.5rem;
}
.practice-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.practice-card h3 { font-size: 1.3rem; font-weight: 700; color: #fff; }
.practice-card p {
    color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem;
}
.tech-stack {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.tech-stack span {
    font-size: 0.8rem; padding: 4px 10px; border-radius: 6px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    color: #cbd5e1; font-weight: 500;
}

/* Blueprint Viewer */
.blueprint-container {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 20px; overflow: hidden; backdrop-filter: blur(10px);
    margin-bottom: 6rem;
}
.blueprint-nav {
    display: flex; border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}
.bp-btn {
    flex: 1; padding: 1.2rem; background: transparent; border: none;
    color: var(--text-secondary); font-family: var(--font-sans);
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
    border-bottom: 2px solid transparent;
}
.bp-btn:hover { color: #fff; background: rgba(255,255,255,0.02); }
.bp-btn.active {
    color: var(--accent-cyan); border-bottom-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
}
.blueprint-content { padding: 3rem; }
.bp-pane { display: none; animation: fadeIn 0.4s ease; }
.bp-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.bp-pane h3 { font-size: 1.6rem; margin-bottom: 1rem; color: #fff; }
.bp-pane p { color: var(--text-secondary); margin-bottom: 2rem; max-width: 800px; }
.bp-visual {
    background: #0f141e; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 1.5rem; overflow-x: auto;
}
.bp-visual code {
    font-family: var(--font-mono); font-size: 0.9rem; color: #a5b4fc;
    white-space: pre;
}

/* International Team */
.team-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 4rem;
}
.team-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(30, 58, 138, 0.1) 100%);
    border: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem; border-radius: 16px;
    backdrop-filter: blur(10px); text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
    border-color: var(--border-hover);
}
.team-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.team-card h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.team-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Footer */
footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 3rem 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; padding: 0 2rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.footer-text { color: var(--text-secondary); font-size: 0.85rem; text-align: right; }

/* Responsive */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .practices-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .practices-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .blueprint-nav { flex-direction: column; }
    .main-nav { display: none; }
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-text { text-align: center; }
}
