/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0e1a;
    --bg-darker: #050810;
    --text-primary: #e0f4ff;
    --text-bright: #ffffff;
    --accent-cyan: #00d4ff;
    --accent-blue: #4a9eff;
    --terminal-green: #00ff88;
    --terminal-yellow: #ffcc00;
    --border-color: #1a3a5c;
    --glow-cyan: rgba(0, 212, 255, 0.3);
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Fluid Canvas */
#fluidCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 70%;
    z-index: 2;
}

/* Gradient Overlay to fade the simulation - behind canvas so it only affects edges */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 70%;
    background: linear-gradient(
        to right,
        transparent 20%,
        rgba(10, 14, 26, 0.3) 50%,
        rgba(10, 14, 26, 0.7) 70%,
        var(--bg-dark) 90%
    );
    z-index: 1;
    pointer-events: none;
}

/* Main Content Layout */
.content {
    position: relative;
    z-index: 3;
    display: flex;
    height: calc(100vh - 100px);
    padding: 40px 60px;
}

.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-left: 40px;
    padding-top: 80px;
}

/* Pitch */
.pitch {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 25px;
    max-width: 560px;
}

/* Selling Points */
.selling-points {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    max-width: 560px;
}

.selling-points li {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.selling-points li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.selling-points .highlight {
    color: var(--text-bright);
    font-weight: 700;
}

/* Stats */
.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 560px;
}

.stat-box {
    border: 2px solid var(--border-color);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    background: rgba(10, 14, 26, 0.8);
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.stat-value {
    font-family: 'VT323', monospace;
    font-size: 28px;
    color: var(--text-bright);
    font-weight: 700;
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.8;
    margin-top: 5px;
}

/* Terminal */
.terminal {
    width: 100%;
    max-width: 560px;
    background: rgba(5, 8, 16, 0.95);
    border: 2px solid var(--border-color);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 212, 255, 0.1);
}

.terminal-header {
    background: rgba(26, 58, 92, 0.5);
    padding: 8px 15px;
    border-bottom: 1px solid var(--border-color);
}

.terminal-title {
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.8;
}

.terminal-body {
    padding: 15px 15px 20px 15px;
    font-size: 13px;
    line-height: 1.6;
    min-height: 180px;
}

.terminal-line {
    margin-bottom: 5px;
}

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

.command {
    color: var(--text-bright);
    word-break: break-all;
}

.cursor {
    color: var(--text-bright);
    animation: blink 1s step-end infinite;
}

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

.terminal-output {
    margin-top: 10px;
}

.output-line {
    margin: 3px 0;
}

.output-line.info {
    color: var(--accent-cyan);
}

.output-line.success {
    color: var(--terminal-green);
}

/* CTA Container */
.cta-container {
    margin-top: 40px;
}

.cta-button {
    font-family: 'VT323', monospace;
    font-size: 22px;
    color: var(--text-bright);
    background: transparent;
    border: 2px solid var(--accent-cyan);
    padding: 15px 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-button:hover {
    background: rgba(184, 107, 51, 0.15);
    border-color: rgb(184, 107, 51);
    box-shadow: 
        0 0 30px rgba(184, 107, 51, 0.4),
        inset 0 0 20px rgba(184, 107, 51, 0.1);
    transform: scale(1.02);
}

.cta-button:hover .cta-arrow {
    color: rgb(184, 107, 51);
}

.cta-arrow {
    color: var(--accent-cyan);
}

/* Contact Info Footer */
.contact-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-primary);
    opacity: 0.7;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-divider {
    color: var(--border-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 16, 0.9);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-darker);
    border: 2px solid var(--accent-cyan);
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px var(--glow-cyan);
}

.modal-content h2 {
    font-family: 'VT323', monospace;
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-bright);
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 12px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.modal-content select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23e0f4ff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.modal-content select option {
    background: var(--bg-darker);
    color: var(--text-primary);
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}

.modal-content button {
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: var(--text-bright);
    background: transparent;
    border: 2px solid var(--accent-cyan);
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content button:hover {
    background: rgba(0, 212, 255, 0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-primary);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.close-btn:hover {
    opacity: 1;
}

.modal-content {
    position: relative;
}

/* ===========================================
   RESPONSIVE: Two layouts only
   - Desktop: > 1024px (side-by-side layout)
   - Mobile/Tablet: ≤ 1024px (stacked layout)
   =========================================== */

/* Mobile & Tablet Layout (≤1024px) */
@media (max-width: 1024px) {
    html, body {
        overflow: auto;
        overflow-x: hidden;
        height: auto;
    }
    
    .container {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    
    .content {
        flex-direction: column;
        padding: 20px;
        padding-top: 28vh;
        height: auto;
        min-height: calc(100vh - 60px);
    }
    
    .left-section {
        display: none;
    }
    
    .right-section {
        flex: none;
        align-items: center;
        text-align: center;
        padding: 0 20px 80px 20px;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .pitch {
        text-align: center;
        font-size: 15px;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .selling-points {
        text-align: left;
        max-width: 100%;
        margin-bottom: 25px;
        padding-left: 10px;
    }
    
    .selling-points li {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .stats {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 15px;
        max-width: 100%;
        width: 100%;
    }
    
    .stat-box {
        flex: 1;
        min-width: 0;
        padding: 15px 12px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .terminal {
        max-width: 100%;
        width: 100%;
        text-align: left;
    }
    
    .terminal-body {
        height: auto;
        min-height: 180px;
        font-size: 12px;
        padding: 12px;
        overflow-y: visible;
    }
    
    .command {
        font-size: 12px;
    }
    
    .cta-container {
        margin-top: 25px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .cta-button {
        font-size: 18px;
        padding: 14px 40px;
    }
    
    #fluidCanvas {
        width: 100%;
        height: 30vh;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .gradient-overlay {
        width: 100%;
        height: 30vh;
        background: linear-gradient(
            to bottom,
            transparent 20%,
            rgba(10, 14, 26, 0.4) 50%,
            var(--bg-dark) 100%
        );
    }
    
    .contact-info {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        padding: 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-divider {
        display: none;
    }
    
    .modal-content {
        padding: 30px 25px;
        width: 90%;
        max-width: 400px;
    }
}

/* Small phones - minor adjustments only */
@media (max-width: 480px) {
    .content {
        padding: 15px;
        padding-top: 25vh;
    }
    
    .right-section {
        padding: 0 10px 60px 10px;
    }
    
    .pitch {
        font-size: 13px;
    }
    
    .selling-points li {
        font-size: 11px;
    }
    
    .stats {
        gap: 10px;
    }
    
    .stat-box {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .terminal-body {
        min-height: 160px;
        font-size: 10px;
        overflow-y: visible;
    }
    
    .command {
        font-size: 10px;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 12px 30px;
        width: 100%;
        max-width: 280px;
    }
    
    .modal-content {
        padding: 25px 20px;
        width: 95%;
    }
    
    .modal-content input,
    .modal-content select {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .contact-info {
        font-size: 11px;
    }
}

/* Fix for iOS Safari viewport height */
@supports (-webkit-touch-callout: none) {
    .container {
        min-height: -webkit-fill-available;
    }
}
