:root {
    --bg: #050507;
    --surface: #0f0e13;
    --surface-highlight: #1a1923;
    --primary: #7c3aed;
    --primary-glow: #7c3aed88;
    --accent: #a78bfa;
    --text-main: #ffffff;
    --text-sub: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(20, 20, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    height: 100vh; /* Strict height */
    width: 100vw;
    /*overflow: hidden; */
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- Animated Background --- */
.blob-cont {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    filter: blur(100px);
    opacity: 0.15;
    animation: breathe 10s infinite alternate;
}

@keyframes breathe {
    0% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.1); }
}

/* --- Branding Header --- *//* --- Branding Header --- */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    /* Optional: Add a very subtle background blur to the header itself so the logo pops */
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.8), transparent);
}

/* New Logo Container */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none; /* Important if wrapping in an <a> tag */
    cursor: pointer;
}

/* The Icon Box */
.logo-icon-box {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    /* The main glowing gradient background */
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 20px var(--primary-glow);
    overflow: hidden;
}

/* Optional: Adds a reflective shine across the icon box */
.logo-icon-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: iconShine 5s infinite linear;
}

.logo-icon-box i {
    color: white;
    font-size: 1.2rem;
    z-index: 2; /* Keep icon above the shine */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* The Text */
.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
    position: relative;
    /* Layered shadows for realistic neon effect */
    text-shadow: 
        0 0 5px rgba(255,255,255,0.1),
        0 0 10px var(--primary-glow),
        0 0 20px var(--primary-glow);
}

/* The "15" Highlight */
.logo-text span {
    font-weight: 900; /* Makes the number slightly thicker than text */
    font-style: italic; /* Adds dynamic movement */
    padding-left: 2px;
    /* A brighter, contrasting gradient for the number */
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* A fiercer glow specifically for the number */
    filter: drop-shadow(0 0 8px var(--primary));
}

/* Hover Effect for the whole logo block */
.brand-logo:hover .logo-icon-box {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--primary);
    transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    20%, 100% { transform: translateX(100%) rotate(45deg); }
}
/* --- Main Layout Center --- */
main.app-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 80px 20px 60px 20px; /* Space for header and footer */
}

/* --- Cards & Panels --- */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

/* --- Landing Page Grid --- */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    width: 100%;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-sub);
    font-size: 1.1rem;
    line-height: 1.6;
}

.action-grid {
    display: grid;
    gap: 20px;
}

.action-card {
    background: var(--surface-highlight);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: rgba(124, 58, 237, 0.05);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.card-info h3 { color: var(--text-main); margin-bottom: 4px; }
.card-info p { color: var(--text-sub); font-size: 0.85rem; }

/* --- Input & Buttons --- */
.input-field {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    padding: 15px 20px;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.btn-main {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.4);
}

.btn-main:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

/* --- Environment Elements --- */
.code-display {
    text-align: center;
    margin-bottom: 30px;
}

.big-code {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 5px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 30px var(--primary-glow);
}

textarea.secure-input {
    width: 100%;
    height: 200px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    color: white;
    resize: none;
    margin-bottom: 15px;
}

textarea.secure-input:focus { outline: none; border-color: var(--primary); }

/* --- Footer --- */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    color: var(--text-sub);
    font-size: 0.85rem;
    z-index: 100;
}

.app-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: 0.3s;
}

.app-footer a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* --- Mobile Fixes --- */
@media (max-width: 800px) {
    .split-view {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 { font-size: 2.5rem; }
    
    .blob { width: 100vw; height: 100vw; opacity: 0.2; }
    
    .glass-panel { padding: 30px 20px; }
}