/* Core CSS Reset & Design Tokens */
:root {
    --bg-dark: #070a13;
    --bg-darker: #03050a;
    --bg-card: rgba(15, 23, 42, 0.55);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary: #10b981; /* Emerald green (rgpd safety / sovereignty) */
    --primary-glow: rgba(16, 185, 129, 0.2);
    --secondary: #3b82f6; /* Electric blue */
    --secondary-glow: rgba(59, 130, 246, 0.2);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.15);
    --accent-gold: #f59e0b;
    --accent-gold-glow: rgba(245, 158, 11, 0.15);
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

p {
    color: var(--text-muted);
}

strong {
    color: var(--text-main);
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-green {
    color: var(--primary);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--secondary-glow);
}

.btn-secondary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.btn-block {
    display: block;
    text-align: center;
    width: 100%;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-family: var(--font-heading);
}

.badge-alt {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-family: var(--font-heading);
}

/* Glow Orbs */
.glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
}

.top-left {
    top: -100px;
    left: -100px;
    background-color: var(--primary);
}

.bottom-right {
    bottom: 10%,;
    right: -100px;
    background-color: var(--secondary);
}

.center-right {
    top: 50%;
    right: -150px;
    background-color: var(--accent-purple);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(7, 10, 19, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.6rem 0;
    background-color: rgba(3, 5, 10, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-main);
}

.nav-logo .highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 9rem 0 6rem 0;
    overflow: hidden;
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
}

.bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8rem;
}

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

/* Terminal Widget (Slide 1 Concept) */
.terminal-widget {
    background-color: #0c0f19;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    height: 380px;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background-color: #080a10;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #e2e8f0;
    flex-grow: 1;
    overflow-y: auto;
    line-height: 1.7;
}

.terminal-body p {
    color: #cbd5e1;
    margin-bottom: 0.6rem;
}

.terminal-body .prompt {
    color: var(--secondary);
    margin-right: 0.5rem;
}

.terminal-body .highlight-red {
    color: #f87171;
    font-weight: bold;
}

.terminal-body .cursor {
    animation: blink 0.8s infinite;
    color: var(--primary);
    font-weight: bold;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Section Common */
section {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 4 Pilares */
.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pilar-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.2rem;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.pilar-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(15, 23, 42, 0.85);
}

.pilar-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.pilar-icon {
    width: 24px;
    height: 24px;
}

.blue-glow {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
}

.green-glow {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.purple-glow {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple-glow);
}

.gold-glow {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

.pm2-logo-sim {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 0.95rem;
}

.pilar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

/* Orquestacion Section */
.orquestacion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.feature-detail h4 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

/* Dashboard Mockup (Slide 4 Concept) */
.dashboard-mockup {
    background-color: #080c14;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: var(--font-sans);
}

.dash-header {
    background-color: #04060b;
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.dash-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dash-status {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.dash-body {
    padding: 1.5rem;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.dash-graph {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.graph-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.graph-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 80px;
    padding-top: 10px;
}

.bar {
    width: 10%;
    background: linear-gradient(to top, var(--secondary), var(--primary));
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.dash-console {
    background-color: #03050a;
    border-radius: 6px;
    padding: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.console-prompt {
    color: var(--primary);
    margin-right: 0.5rem;
}

.console-output {
    color: #cbd5e1;
    display: block;
    margin-top: 0.2rem;
}

/* Swarms Node Network (Slide 5 Concept) */
.swarm-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.swarm-network {
    position: relative;
    height: 320px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.swarm-node {
    position: absolute;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.swarm-node:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.node-icon {
    font-size: 1.1rem;
}

.node-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.main-node {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--primary);
    background-color: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 20px var(--primary-glow);
    z-index: 10;
}

.main-node:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.node-1 { top: 15%; left: 20%; }
.node-2 { top: 20%; right: 20%; }
.node-3 { bottom: 20%; left: 15%; }
.node-4 { bottom: 15%; right: 15%; }
.node-5 { top: 55%; right: 10%; }

.swarm-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.swarm-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.8rem;
}

.swarm-card h3 {
    margin-bottom: 0.6rem;
    color: var(--primary);
    font-size: 1.2rem;
}

/* Comparison Section (Slide 6 Concept) */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.comparison-card {
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--border-color);
}

.comparison-card.traditional {
    background-color: rgba(239, 68, 68, 0.02);
}

.comparison-card.sovereign-advantage {
    background-color: rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.card-status {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
}

.status-bad {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-good {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--primary);
}

.comparison-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.comparison-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.traditional .comparison-list li::before {
    color: #ef4444;
}

.sovereign-advantage .comparison-list li::before {
    color: var(--primary);
}

/* Interview Section (Slide 7 Concept) */
.section-interview {
    background-color: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.interview-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 3.5rem;
    backdrop-filter: blur(12px);
}

.quote-header {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1.8rem;
    font-weight: 600;
}

.interview-quote {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 2rem;
    position: relative;
}

.interview-quote::before, .interview-quote::after {
    font-size: 4rem;
    color: rgba(16, 185, 129, 0.15);
    position: absolute;
    z-index: -1;
}

.interview-quote::before {
    content: "“";
    top: -2.5rem;
    left: 0;
}

.interview-quote::after {
    content: "”";
    bottom: -4.5rem;
    right: 0;
}

.interview-question {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.interview-subtext {
    font-size: 0.95rem;
}

/* Pricing Section (Slide 8 Concept) */
.pricing-header h2 {
    font-size: 2.8rem;
}

.pricing-card-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pricing-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(10, 15, 30, 0.8) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.05);
    border-radius: 24px;
    padding: 3rem;
    max-width: 550px;
    width: 100%;
    text-align: center;
    position: relative;
    backdrop-filter: blur(12px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--text-main);
    font-weight: 600;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--primary);
    transition: .4s;
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: var(--secondary);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.price-display {
    margin-bottom: 2rem;
}

.price-symbol {
    font-size: 1.8rem;
    font-weight: 700;
    vertical-align: top;
    position: relative;
    top: 5px;
}

.price-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-period {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-left: 0.3rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.pricing-features li span {
    color: var(--primary);
    font-weight: bold;
}

.pricing-limits {
    margin-top: 1.2rem;
    font-size: 0.8rem;
}

/* Footer */
.main-footer {
    background-color: var(--bg-darker);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .hero-grid, .orquestacion-grid, .swarm-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual, .orquestacion-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .nav-links {
        display: none; /* simple responsive representation for static page */
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .interview-box {
        padding: 2rem;
    }
    
    .interview-quote {
        font-size: 1.25rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
}
