/* ============================================
   KR-CLI DOMINION - Main Stylesheet
   Hacker/Futuristic Theme
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    /* Colors from logo */
    --black: #000000;
    --black-light: #0a0a0a;
    --black-card: #0d0d0d;
    --white: #ffffff;
    --electric-blue: #0066FF;
    --cyan: #00FFFF;
    --dark-blue: #0044AA;
    --teal: #00CCCC;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--electric-blue), var(--cyan));
    --gradient-dark: linear-gradient(180deg, var(--black) 0%, var(--black-light) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 102, 255, 0.2));

    /* Shadows */
    --shadow-glow: 0 0 30px rgba(0, 255, 255, 0.3);
    --shadow-blue: 0 0 20px rgba(0, 102, 255, 0.5);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--electric-blue);
    text-shadow: 0 0 10px var(--cyan);
}

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

/* ===== Container ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    transition: var(--transition-medium);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.95);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px var(--cyan));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    padding: 10px 20px;
    border-radius: 5px;
    color: var(--black) !important;
    font-weight: 600;
}

.nav-cta:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--cyan);
    transition: var(--transition-fast);
}

/* Terminal Style Header Elements */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s;
}

.window-dot.red {
    background: #ff5f56;
}

.window-dot.yellow {
    background: #ffbd2e;
}

.window-dot.green {
    background: #27ca40;
}

.window-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px currentColor;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: 15px;
    /* Espacio extra seguro */
}

.nav-logo img {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.7));
    display: block;
    /* Asegurar renderizado */
}

.nav-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--secondary), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    letter-spacing: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-time {
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    display: none;
}

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

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

.hero-bg-effects {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(50px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-skull {
    margin-bottom: 30px;
}

.skull-logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 30px var(--cyan));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-title {
    margin-bottom: 20px;
}

.title-main {
    display: block;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.title-sub {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 15px;
    margin-top: 10px;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--cyan);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-description strong {
    color: var(--white);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cyan);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-medium);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--black);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: var(--black);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--cyan);
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-3px);
    color: var(--cyan);
}

.btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    padding: 12px 25px;
}

.btn-outline:hover {
    background: var(--cyan);
    color: var(--black);
}

/* ===== Sections ===== */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.section-subtitle strong {
    color: var(--cyan);
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--black-card);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: var(--shadow-glow);
}

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

.feature-card.featured {
    border-color: var(--electric-blue);
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.1) 0%, var(--black-card) 100%);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--white);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.feature-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--cyan);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-tag.premium {
    background: rgba(0, 102, 255, 0.2);
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

/* ===== Tools Grid ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 15px;
    background: var(--black-card);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition-medium);
}

.tool-card:hover {
    border-color: var(--cyan);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.tool-icon {
    font-size: 1.8rem;
}

.tool-card span:last-child {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Terminal Installation ===== */
.install-terminal {
    max-width: 700px;
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.terminal-header {
    background: #1a1a1a;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

.terminal-dot.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.terminal-body {
    background: #0d0d0d;
    padding: 25px;
}

.terminal-line {
    margin-bottom: 15px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.terminal-prompt {
    color: var(--cyan);
    margin-right: 10px;
}

.terminal-text {
    color: var(--white);
}

.terminal-text.success {
    color: #27c93f;
}

.terminal-text.info {
    color: var(--cyan);
}

.terminal-line.output {
    padding-left: 20px;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--cyan);
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.install-note {
    text-align: center;
    padding: 20px;
    background: rgba(255, 189, 46, 0.1);
    border: 1px solid rgba(255, 189, 46, 0.3);
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.install-note p {
    color: #ffbd2e;
    font-size: 0.95rem;
}

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--black-card);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-medium);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--electric-blue);
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.15) 0%, var(--black-card) 100%);
}

.pricing-card:hover {
    border-color: var(--cyan);
    box-shadow: var(--shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--black);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.pricing-price {
    margin-bottom: 30px;
}

.pricing-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    color: var(--cyan);
}

.pricing-price .amount {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
}

.pricing-price .period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ===== Auth Gate ===== */
.auth-gate {
    background: linear-gradient(180deg, var(--black-light) 0%, var(--black) 100%);
}

.gate-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: var(--black-card);
    border: 2px solid var(--electric-blue);
    border-radius: 20px;
    box-shadow: var(--shadow-blue);
}

.gate-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.gate-card h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 20px;
}

.gate-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.gate-card p strong {
    color: var(--cyan);
}

.gate-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--black-light);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}