* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    transition: opacity 1s ease-in-out;
}

.particles.blackout {
    opacity: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00f0ff;
    border-radius: 50%;
    opacity: 0;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Loading Animation */
.loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
}

.loading-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #58a6ff;
    animation: pulse 1.5s infinite;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: #21262d;
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #58a6ff, #79c0ff);
    border-radius: 2px;
    animation: loading 3s ease-in-out forwards;
}

@keyframes loading {
    to { width: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Terminal Styles */
#terminal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    min-width: 320px;
    background: rgba(22, 27, 34, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(48, 54, 61, 0.6);
    animation: terminalSlideIn 0.8s ease-out;
    cursor: pointer;
    transition: all 0.3s ease;
}

#terminal-container:hover:not(.typing) {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(88, 166, 255, 0.4);
}

#terminal-container.typing {
    cursor: default;
}

@keyframes terminalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.terminal-header {
    background: rgba(33, 38, 45, 0.5);
    border-radius: 12px 12px 0 0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(48, 54, 61, 0.6);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

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

.terminal-button.close {
    background: #ff5f56;
}

.terminal-button.minimize {
    background: #ffbd2e;
}

.terminal-button.maximize {
    background: #27ca3f;
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    color: #8b949e;
    font-weight: 500;
}

.terminal-body {
    padding: 20px;
    height: 400px;
    max-height: 60vh;
    min-height: 300px;
    background: rgba(13, 17, 23, 0.3);
    border-radius: 0 0 12px 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #161b22;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

.terminal-line {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.prompt {
    color: #58a6ff;
    font-weight: 500;
}

#typed-content {
    color: #c9d1d9;
    white-space: pre-wrap;
}

.cursor {
    color: #58a6ff;
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.error-text {
    color: #ff7b72;
    font-weight: 500;
}

/* Button Sections */
.button-section {
    margin-top: 30px;
    text-align: center;
}

/* Start hint section */
.start-hint {
    position: absolute;
    bottom: 10px;
    right: 20px;
}

.hint-text {
    color: #6e7681;
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.7;
}

/* Prominent "solve the problem" hint */
.solve-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    animation: solveGlow 2s ease-in-out infinite;
}

.solve-text {
    color: #00f0ff;
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 
        0 0 10px rgba(0, 240, 255, 0.8),
        0 0 20px rgba(0, 240, 255, 0.6),
        0 0 30px rgba(0, 240, 255, 0.4);
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.9));
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes solveGlow {
    0%, 100% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.instruction {
    color: #8b949e;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.terminal-button-action {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.3);
}

.terminal-button-action:hover {
    background: linear-gradient(135deg, #2ea043, #238636);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(35, 134, 54, 0.4);
}

.terminal-button-action:active {
    transform: translateY(0);
}

/* Main Content (Logo + Waitlist) */
#main-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#main-content.fade-in {
    opacity: 1;
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
}

.logo-background {
    width: 600px;
    height: auto;
    opacity: 0.9;
}

.content-overlay {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Keep old logo styles commented for reference */
/* .logo {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00f0ff, #ffffff, #00f0ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.8);
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.6));
} */

.tagline {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.4;
}

.waitlist-button {
    background: linear-gradient(135deg, #00f0ff, #08565b);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
}

.waitlist-button:hover {
    background: linear-gradient(135deg, #08565b, #00f0ff);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 240, 255, 0.6);
}

.waitlist-button:active {
    transform: translateY(0);
}

/* Blur effect */
.blur {
    filter: blur(8px);
    transition: filter 0.8s ease;
}

/* Utility classes */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dramatic error animations */
@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%); }
    10% { transform: translate(-50%, -50%) translate(-5px, -2px); }
    20% { transform: translate(-50%, -50%) translate(5px, 2px); }
    30% { transform: translate(-50%, -50%) translate(-3px, 0px); }
    40% { transform: translate(-50%, -50%) translate(3px, -1px); }
    50% { transform: translate(-50%, -50%) translate(-2px, 2px); }
    60% { transform: translate(-50%, -50%) translate(2px, -2px); }
    70% { transform: translate(-50%, -50%) translate(-1px, 1px); }
    80% { transform: translate(-50%, -50%) translate(1px, -1px); }
    90% { transform: translate(-50%, -50%) translate(-1px, 0px); }
}

@keyframes glitch {
    0% { transform: translate(-50%, -50%); }
    10% { transform: translate(-50%, -50%) translate(-10px, 5px); filter: hue-rotate(180deg); }
    20% { transform: translate(-50%, -50%) translate(10px, -5px); filter: hue-rotate(90deg); }
    30% { transform: translate(-50%, -50%) translate(-5px, 10px); filter: hue-rotate(270deg); }
    40% { transform: translate(-50%, -50%) translate(5px, -10px); filter: hue-rotate(45deg); }
    50% { transform: translate(-50%, -50%) translate(-8px, -3px); filter: hue-rotate(315deg); }
    60% { transform: translate(-50%, -50%) translate(8px, 3px); filter: hue-rotate(135deg); }
    70% { transform: translate(-50%, -50%) translate(-3px, -8px); filter: hue-rotate(225deg); }
    80% { transform: translate(-50%, -50%) translate(3px, 8px); filter: hue-rotate(0deg); }
    90% { transform: translate(-50%, -50%) translate(-1px, -1px); filter: hue-rotate(180deg); }
    100% { transform: translate(-50%, -50%); filter: hue-rotate(360deg); }
}

@keyframes errorFlash {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(255, 0, 0, 0.2); }
}

/* Edge flash effects */
.edge-flash {
    position: fixed;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.edge-flash.top {
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 0, 0, 0.9), rgba(255, 0, 0, 0.3), transparent);
}

.edge-flash.bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(255, 0, 0, 0.9), rgba(255, 0, 0, 0.3), transparent);
}

.edge-flash.left {
    top: 0;
    bottom: 0;
    left: 0;
    width: 30px;
    background: linear-gradient(to right, rgba(255, 0, 0, 0.9), rgba(255, 0, 0, 0.3), transparent);
}

.edge-flash.right {
    top: 0;
    bottom: 0;
    right: 0;
    width: 30px;
    background: linear-gradient(to left, rgba(255, 0, 0, 0.9), rgba(255, 0, 0, 0.3), transparent);
}

.edge-flash.blue {
    background: linear-gradient(to bottom, rgba(0, 100, 255, 0.9), rgba(0, 100, 255, 0.3), transparent);
}

.edge-flash.blue.bottom {
    background: linear-gradient(to top, rgba(0, 100, 255, 0.9), rgba(0, 100, 255, 0.3), transparent);
}

.edge-flash.blue.left {
    background: linear-gradient(to right, rgba(0, 100, 255, 0.9), rgba(0, 100, 255, 0.3), transparent);
}

.edge-flash.blue.right {
    background: linear-gradient(to left, rgba(0, 100, 255, 0.9), rgba(0, 100, 255, 0.3), transparent);
}

/* Responsive Design */

/* Large Desktop/Laptop (1200px+) */
@media (min-width: 1200px) {
    #terminal-container {
        max-width: 1000px;
    }
    
    .terminal-body {
        height: 450px;
        padding: 25px;
    }
    
    .terminal-line {
        font-size: 1rem;
    }
}

/* Standard Laptop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    #terminal-container {
        width: 85%;
        max-width: 900px;
    }
    
    .terminal-body {
        height: 400px;
        padding: 20px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    #terminal-container {
        width: 90%;
        max-width: 750px;
    }
    
    .terminal-body {
        height: 380px;
        padding: 18px;
    }
    
    .terminal-line {
        font-size: 0.9rem;
    }
    
    .terminal-header {
        padding: 10px 14px;
    }
    
    .terminal-title {
        font-size: 0.8rem;
    }
    
    .logo-background {
        width: 450px;
    }
}

/* Large Mobile (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    #terminal-container {
        width: 95%;
        margin: 15px auto;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .terminal-body {
        padding: 15px;
        height: 350px;
        max-height: 50vh;
    }
    
    .terminal-line {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .terminal-header {
        padding: 8px 12px;
    }
    
    .terminal-title {
        font-size: 0.75rem;
    }
    
    .hint-text {
        font-size: 0.7rem;
    }
    
    .solve-text {
        font-size: 1.2rem;
    }
    
    .logo-background {
        width: 400px;
    }
    
    .waitlist-button {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

/* Small Mobile (320px - 575px) */
@media (max-width: 575px) {
    #terminal-container {
        width: 95%;
        margin: 10px auto;
        border-radius: 8px;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .terminal-body {
        padding: 12px;
        height: 320px;
        max-height: 45vh;
        min-height: 280px;
    }
    
    .terminal-header {
        padding: 6px 10px;
        border-radius: 8px 8px 0 0;
    }
    
    .terminal-title {
        font-size: 0.7rem;
    }
    
    .terminal-button {
        width: 10px;
        height: 10px;
    }
    
    .terminal-line {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .start-hint {
        bottom: 8px;
        right: 15px;
    }
    
    .hint-text {
        font-size: 0.65rem;
    }
    
    .solve-text {
        font-size: 1.1rem;
    }
    
    .logo-background {
        width: 350px;
    }
    
    .tagline {
        font-size: 1rem;
        max-width: 280px;
        margin-bottom: 25px;
    }
    
    .content-overlay {
        padding: 0 15px;
        bottom: 50px;
    }
    
    .waitlist-button {
        padding: 12px 20px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
}

/* Very Small Mobile (max 374px) */
@media (max-width: 374px) {
    #terminal-container {
        width: 98%;
        margin: 5px auto;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .terminal-body {
        padding: 10px;
        height: 300px;
        max-height: 40vh;
    }
    
    .terminal-line {
        font-size: 0.75rem;
    }
    
    .logo-background {
        width: 300px;
    }
    
    .tagline {
        font-size: 0.9rem;
        max-width: 250px;
    }
    
    .waitlist-button {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
    
    .solve-text {
        font-size: 1rem;
    }
}

/* Mobile Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    #terminal-container {
        width: 90%;
        margin: 5px auto;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .terminal-body {
        height: 250px;
        max-height: 35vh;
        padding: 10px;
    }
    
    .terminal-header {
        padding: 4px 8px;
    }
    
    .terminal-line {
        font-size: 0.75rem;
        line-height: 1.2;
        margin-bottom: 4px;
    }
    
    .logo-background {
        width: 280px;
    }
    
    .content-overlay {
        bottom: 30px;
    }
    
    .tagline {
        font-size: 0.85rem;
        margin-bottom: 15px;
        max-width: 220px;
    }
    
    .waitlist-button {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .solve-text {
        font-size: 0.8rem;
    }
} 