:root {
    --bg: #181A1F;
    --container: #282C34;
    --heading: #E5E3DB;
    --text: #D1D5DB;
    --cta: #8A7654;
    --cta-hover: #9C8763;
    --line: rgba(209, 213, 219, 0.1);
    /* El terminal siempre mantiene un estilo oscuro/hacker */
    --prompt-bg: #0D0E12;
    --prompt-header-bg: #282C34;
    --prompt-heading: #E5E3DB;
    --prompt-text: #D1D5DB;
    --prompt-border: rgba(229, 227, 219, 0.1);
    --prompt-shadow: rgba(0, 0, 0, 0.4);
    
    /* Navbar */
    --nav-bg: rgba(24, 26, 31, 0.65);
    --nav-border: rgba(229, 227, 219, 0.05);
}

body.light-mode {
    --bg: #FFFFFF; /* Blanco puro, nada de grises cutres */
    --container: #F3F4F6; /* Gris muy clarito solo para las tarjetas */
    --heading: #111827; /* Texto principal casi negro */
    --text: #374151; /* Texto secundario oscuro y legible */
    --cta: #6E5C3F;
    --cta-hover: #544630;
    --line: rgba(17, 24, 39, 0.1);
    /* Sombras más suaves en modo claro, pero el terminal sigue siendo oscuro */
    --prompt-shadow: rgba(0, 0, 0, 0.15);
    
    /* Navbar en modo claro */
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-border: rgba(17, 24, 39, 0.05);
}

* {
    box-sizing: border-box;
}

::selection {
    background: var(--cta);
    color: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--heading);
    margin: 0;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(48px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 600;
    margin-bottom: 16px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6vw;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nav-border);
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 80px; /* Un poco más de altura para que respire */
}

.logo-lockup {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--heading);
    font-size: 16px; /* Nombre de la empresa discreto */
    letter-spacing: 0.05em;
    text-decoration: none;
}

.nav-inner .nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.theme-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.theme-btn:hover {
    color: var(--heading);
}

.btn-primary {
    background: var(--cta);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--cta-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(210, 125, 86, 0.3);
}

/* Split Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
}

.hero-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    max-width: 500px;
}

.hero-kicker {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--cta);
    margin-bottom: 16px;
    font-weight: 600;
}

.hero-content p {
    font-size: 18px;
    color: #A0A5B0;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Prompt Window Visual */
.hero-visual {
    width: 100%;
    max-width: 700px;
    flex: 1 1 500px; /* Permite que se encoja en pantallas medianas sin aplastar el texto */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.prompt-window {
    background: var(--prompt-bg);
    border: 1px solid var(--prompt-border);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    height: 240px;
    margin-left: auto;
    box-shadow: 0 20px 40px var(--prompt-shadow);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.prompt-header {
    background: var(--prompt-header-bg);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--prompt-border);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--prompt-heading);
    flex-shrink: 0;
}

.prompt-body {
    padding: 32px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: var(--prompt-text);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.prompt-prefix {
    color: var(--cta);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    margin-top: 2px;
}

.prompt-text {
    color: #E5E3DB;
}

.cursor {
    display: inline-block;
    color: var(--cta);
    font-weight: 300;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: var(--bg);
}

.features-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 80px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--container);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 40px 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(209, 213, 219, 0.25);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(210, 125, 86, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--cta);
}

.feature-card p {
    font-size: 15px;
    margin-bottom: 0;
    color: var(--text);
}

/* Footer */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--container);
    background: var(--bg);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(209, 213, 219, 0.5);
    letter-spacing: 0.05em;
}

@media (min-width: 1200px) {
    .hero-visual {
        margin-right: -40px; /* Empujón muy sutil en portátiles para que respire */
    }
}

@media (min-width: 1440px) {
    .hero-visual {
        margin-right: -160px; /* Pantallas muy grandes (macbooks grandes, etc) */
    }
    .prompt-window {
        max-width: 700px; /* La caja se hace más ancha solo en pantallas grandes */
    }
}

@media (min-width: 1800px) {
    .hero-visual {
        margin-right: -350px; /* Pantallas gigantes (Monitores externos ultrawide) */
    }
}

@media (max-width: 1100px) {
    .hero-split {
        flex-direction: column;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-visual {
        justify-content: center;
        max-width: 100%;
        width: 100%;
        flex: auto;
        margin-right: 0;
    }

    .hero-btns {
        justify-content: center;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    h1 {
        font-size: 40px;
    }
}

/* Early Access Page Styles */
.early-access-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg);
}

.ea-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.ea-logo {
    justify-self: auto;
}

.ea-card {
    background: var(--container);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

body.light-mode .ea-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.ea-card h1 {
    font-size: 24px;
    margin-bottom: 12px;
    margin-top: 0;
}

.ea-card p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 32px;
    margin-top: 0;
}

.ea-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--heading);
}

.form-group input {
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    border-color: var(--cta);
}

.ea-back {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ea-back:hover {
    color: var(--heading);
}