:root {
    --bg: #050505;
    --card-bg: #0a0a0a;
    --primary: #ff0000;
    --primary-dim: #4d0000;
    --text: #f2f2f2;
    --text-dim: #555;
    --border: #1a1a1a;
    
    /* Terminal Colors */
    --term-r1: #ff0000; /* Bright Red */
    --term-r2: #cc0000; /* Slightly darker red */
    --term-r3: #f2f2f2; /* White */
    --term-dim: #888888;
    --term-d2: #444444;
    --grid-color: rgba(255, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    cursor: default;
    user-select: none;
}

::selection {
    background-color: var(--primary);
    color: #ffffff;
}

::-moz-selection {
    background-color: var(--primary);
    color: #ffffff;
}

a, button, .btn-primary, .btn-outline, .terminal-prompt, [onclick] {
    cursor: pointer;
}

input, textarea, .terminal-output {
    cursor: text;
    user-select: text;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Grid Background Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Apply to all text and password inputs */
input[type="text"], input[type="password"] {
    border: 2px solid #2c2f33; /* Your default dark border */
    outline: none;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #ff0000; /* Smoothly transitions to red (or your preferred color) */
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.2);
}


nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg), transparent);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    letter-spacing: -1.5px;
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
}

.logo span {
    color: var(--primary);
}

.links a {
    text-decoration: none;
    color: var(--text-dim);
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: 0.3s;
}

.links a:hover {
    color: var(--primary);
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: -5px;
    margin-bottom: 1rem;
}

header p {
    color: var(--text-dim);
    max-width: 500px;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.version-tag {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-size: 0.75rem;
    letter-spacing: 2px;
    border: 1px solid var(--primary-dim);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    background: rgba(255, 0, 0, 0.05);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.2s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
}

/* Ensure Login button text turns black on hover */
a.btn-primary:hover {
    color: #000 !important;
}

.btn-outline {
    border: 1px solid var(--text-dim);
    color: var(--text);
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 1rem;
    transition: 0.2s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-block;
}

.btn-outline:hover {
    background: #ccc;
    color: #000;
    border-color: #ccc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

#features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 10rem 2rem;
}

/* Terminal Simulation Styles */
#terminal-features {
    padding: 5rem 2rem 10rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.terminal-window {
    background-color: #000;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text);
    white-space: pre; /* Preserve whitespace and line breaks */
}

.terminal-output {
    margin: 0;
    padding: 0;
}

/* Terminal Color Classes */
.r1 { color: var(--term-r1); font-weight: bold; }
.r2 { color: var(--term-r2); }
.r3 { color: var(--term-r3); }
.dim { color: var(--term-dim); }
.wht { color: var(--text); font-weight: bold; }
.d2 { color: var(--term-d2); }
.b { font-weight: bold; }

.terminal-prompt {
    cursor: pointer;
    display: inline-block;
}
.terminal-prompt:hover {
    text-decoration: underline;
}

#terminal-cursor {
    animation: blink-cursor 0.7s infinite;
}

@keyframes blink-cursor {
    0%, 100% {
        opacity: 1;
    }
    50% { opacity: 0; }
}


h2 {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    letter-spacing: 4px;
    margin-bottom: 3rem;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid #111;
    padding: 2.5rem;
    border-radius: 2px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--primary);
    background: #0d0d0d;
    transition:  0.1s ease, border-color 0.25s ease;
}

.card-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--primary-dim);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.card p {
    color: #777;
    font-size: 0.85rem;
    line-height: 1.5;
}

.feature-footer {
    margin-top: 4rem;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-content {
    color: #444;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

.pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #19b319;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #00ff00;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@media (max-width: 768px) {
    .btn-outline { margin-left: 0; margin-top: 1rem; display: block; }
    .btn-primary { display: block; }
}