/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --bg-dark: #0a0f1d;
    --bg-darker: #060913;
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.4);
    
    --secondary: #0ea5e9;
    --secondary-glow: rgba(14, 165, 233, 0.3);
    
    --accent: #8b5cf6;
    
    --surface: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-hover: rgba(255, 255, 255, 0.06);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   Background Effects (Modern Glassmorphism)
   ========================================================================== */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* ==========================================================================
   Layout & Reusables
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.glass-card, .glass-panel {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 30px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: rgba(255,255,255,0.2);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    background: rgba(10, 15, 29, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.logo i {
    color: var(--secondary);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-text h1 span {
    background: linear-gradient(to right, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Mockup */
.mockup-panel {
    padding: 0;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    box-shadow: -20px 20px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--surface-border);
}

.mockup-header {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--surface-border);
}

.dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4b5563;
    margin-right: 6px;
}

.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.url-bar {
    margin-left: 20px;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.mockup-body {
    padding: 3rem 2rem;
    text-align: center;
}

.mockup-icon i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.mockup-body h3 {
    margin-bottom: 2rem;
}

.mockup-progress {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 1px solid var(--surface-border);
}

.step.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.mockup-skeleton .line {
    height: 12px;
    background: var(--surface-border);
    border-radius: 6px;
    margin-bottom: 1rem;
}
.mockup-skeleton .line.short { width: 60%; margin: 0 auto 1rem; }

/* ==========================================================================
   Sections & Grids
   ========================================================================== */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.vision-grid, .tech-grid, .use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.use-cases-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.mermaid-container {
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.01);
    overflow-x: auto;
    padding: 2rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: var(--secondary);
}

/* ==========================================================================
   Timeline (Fases)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    height: 100%;
    width: 2px;
    background: var(--surface-border);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 3rem;
}

.timeline-number {
    position: absolute;
    left: 20px;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    z-index: 2;
}

.phase-subtitle {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.feature-list i {
    color: var(--secondary);
}

/* ==========================================================================
   Tech Section & Footer
   ========================================================================== */
.tech-card {
    text-align: center;
}

.tech-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

footer {
    border-top: 1px solid var(--surface-border);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-container .logo {
    font-size: 1.25rem;
}

.footer-container p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text h1 { font-size: 3rem; }
    .hero-text p { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    .vision-grid, .tech-grid { grid-template-columns: 1fr; }
    
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 60px; }
    .timeline-number { left: 0; width: 32px; height: 32px; font-size: 1rem; }
}
