/* 
    Design System: Antigravity Modern Aesthetic
    Keywords: Dark mode, glassmorphism, neon accents, sleek
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors - Dark Mode First */
    --c-bg: #050505;
    --c-surface: rgba(255, 255, 255, 0.03);
    --c-surface-alt: rgba(255, 255, 255, 0.05);
    
    --c-text: #F0F0F0;
    --c-text-muted: #A0A0A0;
    
    /* Gradients & Accents */
    --c-accent: #6366f1; /* Indigo */
    --c-accent-hover: #818cf8;
    --c-accent-gradient: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    
    --c-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing System */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 2rem;     /* 32px */
    --space-lg: 4rem;     /* 64px */
    --space-xl: 8rem;     /* 128px */

    /* Layout */
    --max-width: 1200px;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Interactive Canvas Background */
.network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--c-accent-hover);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: var(--space-md);
    background: var(--c-accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
    color: #FFFFFF;
}

h3 {
    font-size: 1.5rem;
    color: #EEEEEE;
}

p {
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
    color: var(--c-text-muted);
}

p:last-child {
    margin-bottom: 0;
}

.kicker {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: var(--c-accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-sm);
    display: inline-block;
}

/* Layout Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

.section-bg-surface {
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    border-bottom: 1px solid var(--c-border);
}

.section-bg-alt {
    background: rgba(255,255,255,0.01);
}

.section-dark {
    background: var(--c-surface-alt);
    border-top: 1px solid var(--c-border);
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 9999px; /* Pill shape for modern look */
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--c-accent-gradient);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    border-color: var(--c-border);
    color: var(--c-text);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--c-accent);
    color: #FFFFFF;
    background: rgba(99, 102, 241, 0.1);
}

/* Header & Nav */
.site-header {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background: var(--c-accent-gradient);
    border-radius: 50%;
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links > a, .dropdown > a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--c-text);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links > a::after, .dropdown > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-accent-gradient);
    transition: width 0.3s ease;
}

.nav-links > a:hover::after, .dropdown:hover > a::after {
    width: 100%;
}

/* Dropdown basics with Glassmorphism */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    min-width: 250px;
    padding: var(--space-xs);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: var(--space-sm);
    color: var(--c-text);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    transform: translateX(4px);
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--c-text);
}

@media (min-width: 768px) {
    .menu-toggle { display: none; }
}

/* Mobile Menu Active State */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-md);
    border-bottom: 1px solid var(--c-border);
    align-items: flex-start;
}

.nav-links.active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 var(--space-sm);
    min-width: 100%;
}

/* Glassmorphism Cards */
.card {
    background: var(--c-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: var(--space-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(99, 102, 241, 0.1);
    border-color: rgba(255,255,255,0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-accent-hover);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.card-link {
    margin-top: auto;
    padding-top: var(--space-sm);
    color: var(--c-accent-hover);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.card:hover .card-link::after {
    transform: translateX(6px);
}

/* Special Elements */
.logo-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    align-items: center;
    margin-top: var(--space-md);
    opacity: 0.5;
}

.logo-bar span {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.abstract-diagram {
    background: var(--c-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

.abstract-diagram::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.diagram-svg {
    width: 100%;
    height: 100%;
    stroke: var(--c-accent);
    fill: none;
    stroke-width: 1.5;
    opacity: 0.6;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

/* Timeline Layout */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--c-accent), rgba(255,255,255,0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-lg);
}

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

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-bg);
    border: 2px solid var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--c-accent-hover);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--c-border);
    padding: var(--space-md) 0;
}

.faq-item:first-child { border-top: 1px solid var(--c-border); }

.faq-question {
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    align-items: center;
    color: #FFFFFF;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--c-accent-hover);
}

.faq-answer {
    margin-top: var(--space-sm);
    color: var(--c-text-muted);
    display: none;
    animation: fadeIn 0.3s ease;
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question { color: var(--c-accent-hover); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Styles */
.form-group { margin-bottom: var(--space-md); }

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    font-size: 0.9375rem;
    color: #DDDDDD;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    font-family: inherit;
    font-size: 1rem;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(20, 20, 20, 0.8);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.site-footer {
    background: #020202;
    border-top: 1px solid var(--c-border);
    color: var(--c-text-muted);
    padding: var(--space-lg) 0;
}

.site-footer a { color: var(--c-text-muted); }
.site-footer a:hover { color: #FFFFFF; }

.footer-bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}
