:root {
    --bg-color: #050b14;
    /* Deep, near-black space blue */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --chat-bg: #0a0f1d;
    /* Slightly lighter deep blue for contrast */
    --chat-border: rgba(0, 229, 255, 0.2);
    /* Cyan tint border */
    --accent-cyan: #00e5ff;
    --accent-blue: #2563eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    /* Prevent scrolling, everything fits on screen */
    display: flex;
    flex-direction: column;
    /* Subtle background gradient for depth */
    background-image: radial-gradient(circle at center, rgba(10, 20, 40, 0.8) 0%, var(--bg-color) 100%);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    /* Extra dimming */
    opacity: 0.6;
}

/* Top Navigation */
.top-nav {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-center {
    display: flex;
    justify-content: center;
    flex: 1;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.logo-text {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.nav-right .nav-btn {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--accent-cyan);
    border-radius: 999px;
    transition: all 0.2s;
}

.nav-right .nav-btn:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* Main Content (Huge Branding) */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-brand {
    font-size: 25vw;
    font-weight: 600;
    letter-spacing: -0.05em;
    margin-right: -0.05em;
    /* Counter the trailing letter-spacing */
    background: linear-gradient(180deg, #ffffff 0%, rgba(0, 229, 255, 0.2) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
    user-select: none;
    line-height: 1;
    text-shadow: 0 0 40px rgba(0, 229, 255, 0.1);
}

.hero-subtitle {
    margin-top: -2vw;
    font-size: clamp(0.9rem, 1.5vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    margin-right: -0.3em;
    /* Counter the trailing letter-spacing */
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Feature Boxes */
.feature-boxes {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.feature-box {
    flex: 1;
    background-color: var(--chat-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.feature-box h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.action-row {
    margin-top: 0.5rem;
}

.deploy-btn {
    position: relative;
    background: transparent;
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--accent-cyan);
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.deploy-btn span {
    position: relative;
    z-index: 2;
}

.deploy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    z-index: 1;
}

.deploy-btn:hover {
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    border-color: transparent;
}

.deploy-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Bottom Container (Chat & Footer) */
.bottom-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Chat Box */
.gui-badge {
    width: 100%;
    text-align: left;
    margin-bottom: -0.5rem;
    /* Pull it slightly closer to the chat box */
    padding-left: 1rem;
}

.gui-text {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    pointer-events: none;
}

.chat-box,
.chat-box-disabled {
    width: 100%;
    background-color: var(--chat-bg);
    border: 1px solid var(--chat-border);
    border-radius: 24px;
    display: flex;
    padding: 0.5rem;
    align-items: flex-end;
    /* Align button to bottom */
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.chat-box:focus-within {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
    background-color: rgba(10, 15, 29, 0.9);
}

.chat-box-disabled {
    opacity: 0.4;
    pointer-events: none;
}

#contact,
.chat-box-disabled textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 1rem 1.5rem;
    outline: none;
    resize: none;
    /* Prevent manual resize to keep layout intact */
    line-height: 1.5;
}

#contact::placeholder,
.chat-box-disabled textarea::placeholder {
    color: #475569;
}

.send-btn {
    background-color: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--accent-cyan);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: all 0.2s;
}

.send-btn:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* Status Messages */
.status-messages {
    width: 100%;
    text-align: center;
    min-height: 20px;
}

.success-msg {
    color: #4ade80;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    height: 0;
    overflow: hidden;
}

.success-msg.show {
    opacity: 1;
    transform: translateY(0);
    height: auto;
}

.error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    height: 0;
    overflow: hidden;
}

.error-msg.show {
    opacity: 1;
    transform: translateY(0);
    height: auto;
}

/* Footer */
.footer-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-text {
    color: var(--text-secondary);
}

.footer-highlight {
    color: var(--text-primary);
    font-weight: 500;
}

.read-more {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    transition: all 0.2s;
    white-space: nowrap;
}

.read-more:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .top-nav {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-left {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-brand {
        font-size: 30vw;
    }

    .footer-info {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Alpha Overlay Modal */
.alpha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 11, 20, 0.2);
    /* Very light dark tint */
    backdrop-filter: blur(2px);
    /* Very light frosted glass effect */
    -webkit-backdrop-filter: blur(2px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.alpha-modal {
    background: rgba(10, 15, 29, 0.9);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 229, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.refresh-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.refresh-btn:hover {
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.1);
    transform: rotate(45deg);
}

.alpha-logo {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 36px;
    height: 36px;
    z-index: 10;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

.alpha-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.alpha-badge {
    align-self: center;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.alpha-modal h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.alpha-modal p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.alpha-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-container input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-container input:focus {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1);
}

.request-btn {
    background: var(--accent-cyan);
    color: var(--bg-color);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.request-btn:hover {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

.request-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.x-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    margin-top: -0.25rem;
    transition: color 0.2s ease;
}

.x-link:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.signin-link {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.signin-link:hover {
    color: var(--accent-cyan);
}

.modal-msgs {
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    width: 100%;
    margin-top: 0;
}

.success-msg, .error-msg {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.success-msg {
    color: #10b981; /* emerald-500 */
}

.error-msg {
    color: #ef4444; /* red-500 */
}

.success-msg.show, .error-msg.show {
    opacity: 1;
    visibility: visible;
}