/* CSS Loading Test - Remove this line if you see it working */
/* body { background: red !important; } */

/* Font declarations */
@font-face {
    font-family: 'FliegeMonoVF';
    src: url('./public/fonts/FliegeMonoVF.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Root variables */
:root {
    color-scheme: light;
    --bg-primary: #fafafa;
    --bg-secondary: #f0f0f0;
    --bg-window: #c0c0c0;
    --bg-content: #e0e0e0;
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --accent-green: #00ff00;
    --accent-cyan: #00ffff;
    --accent-yellow: #ffff00;
    --border-color: #808080;
    --border-dark: #404040;
    --link-blue: #0000ee;
    --link-visited: #551a8b;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg-primary: #1a1a1a;
        --bg-secondary: #2a2a2a;
        --bg-window: #404040;
        --bg-content: #333333;
        --text-primary: #e0e0e0;
        --text-secondary: #cccccc;
        --link-blue: #6666ff;
        --link-visited: #9999ff;
    }
    
    #ascii-title {
        text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.2);
    }
}

/* Base body styles */
body {
    font-family: 'FliegeMonoVF', "Times New Roman", Times, serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: clamp(5px, 2vw, 15px);
}

/* Container styles */
.container {
    width: 100%;
    max-width: clamp(280px, 95vw, 900px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Window frame styles - removed boxes */
.window-frame {
    width: 100%;
    max-width: 100%;
}

.whitepaper-frame {
    max-width: clamp(350px, 95vw, 1000px);
}

/* ASCII header - simplified */
.ascii-header {
    padding: clamp(5px, 1vw, 8px) clamp(15px, 4vw, 20px);
    text-align: center;
    margin-bottom: clamp(3px, 0.8vw, 6px);
}

#ascii-title {
    color: var(--text-primary);
    font-family: "Courier New", monospace;
    font-size: clamp(4px, 2.5vw, 11px);
    line-height: 1.1;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
    margin: 0;
    width: 100%;
    overflow-x: auto;
    white-space: pre;
    text-align: center;
    transform-origin: center;
}

/* Main content - simplified */
.main-content {
    padding: 0;
}

/* Content window - removed box */
.content-window {
    background: transparent;
}

.content-body {
    padding: clamp(20px, 6vw, 40px);
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Typography */
h1 {
    font-size: clamp(18px, 4vw, 28px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: clamp(15px, 3vw, 20px);
    text-align: center;
}

h2 {
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: clamp(12px, 2vw, 15px);
}

p {
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.6;
    margin-bottom: clamp(15px, 3vw, 20px);
    color: var(--text-primary);
}

/* Tagline */
.tagline {
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: clamp(30px, 6vw, 40px);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Form styles */
.waitlist-form {
    max-width: clamp(280px, 90vw, 500px);
    margin: 0 auto;
    width: 100%;
}

.cf-turnstile {
    margin: 15px auto;
    display: flex;
    justify-content: center;
}

.input-section {
    margin-bottom: clamp(20px, 4vw, 25px);
    text-align: center;
}

.input-label {
    display: block;
    font-family: "Courier New", monospace;
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: clamp(6px, 1.5vw, 8px);
}

.input-group {
    display: flex;
    gap: clamp(10px, 3vw, 15px);
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

#email {
    flex: 1;
    min-width: clamp(180px, 45vw, 250px);
    font-size: clamp(14px, 3vw, 16px);
    padding: clamp(10px, 2.5vw, 12px);
    border: 2px inset var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'FliegeMonoVF', "Times New Roman", Times, serif;
    border-radius: 2px;
    text-align: center;
}

.button-container {
    text-align: center;
    margin-bottom: clamp(15px, 3vw, 20px);
}

.submit-btn, #submit-btn {
    font-size: clamp(14px, 3vw, 16px);
    padding: clamp(10px, 2.5vw, 12px) clamp(16px, 3.5vw, 20px);
    background-color: var(--bg-window);
    border: 2px outset var(--border-color);
    cursor: pointer;
    color: var(--text-primary);
    font-family: 'FliegeMonoVF', "Times New Roman", Times, serif;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.1s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.submit-btn:hover, #submit-btn:hover {
    background-color: var(--bg-secondary);
}

.submit-btn:active, #submit-btn:active {
    border: 2px inset var(--border-color);
}

.submit-btn:disabled, #submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Message styles */
.message {
    font-size: clamp(12px, 2.5vw, 14px);
    margin-top: clamp(12px, 3vw, 15px);
    color: var(--text-primary);
    text-align: center;
}

.message.show {
    display: block;
}

.message.success {
    color: #008000;
}

.message.error {
    color: #ff0000;
}

/* Waitlist counter */
.waitlist-counter {
    font-size: clamp(11px, 2.2vw, 13px);
    margin-top: clamp(8px, 2vw, 12px);
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.8;
}

/* Navigation */
.nav-links {
    margin-top: clamp(25px, 6vw, 35px);
    text-align: center;
}

.nav-link, a {
    color: var(--link-blue);
    text-decoration: underline;
    font-size: clamp(14px, 3vw, 16px);
    transition: color 0.2s ease;
}

.nav-link:visited, a:visited {
    color: var(--link-visited);
}

.nav-link:hover, a:hover {
    opacity: 0.8;
}

/* Whitepaper specific styles */

.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
    max-width: 100%;
    width: 100%;
}

.tier {
    padding: clamp(15px, 3vw, 20px);
    margin-bottom: clamp(15px, 3vw, 20px);
}

.tier h4 {
    color: var(--text-primary);
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
}

.tier p {
    color: var(--text-primary);
    font-size: 16px;
    margin: 10px 0;
}

.tier ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.tier li {
    color: var(--text-secondary);
    margin: 8px 0;
    font-size: 14px;
}

.cta-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
}

.cta-link {
    color: var(--link-blue);
    text-decoration: underline;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s ease;
}

.cta-link:hover {
    opacity: 0.8;
}
.whitepaper-content {
    text-align: left;
    line-height: 1.6;
    max-width: clamp(300px, 95vw, 800px);
    margin: 0 auto;
}

.nav-back {
    margin-bottom: clamp(25px, 5vw, 30px);
    text-align: left;
}

.doc-title {
    text-align: center;
    margin-bottom: clamp(30px, 6vw, 40px);
}

.doc-title h1 {
    font-size: clamp(18px, 4vw, 24px);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.5vw, 2px);
    color: var(--text-primary);
}

.whitepaper-section {
    margin: clamp(25px, 5vw, 35px) 0;
    padding: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.section-header {
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 600;
    margin-bottom: clamp(12px, 2vw, 15px);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-content {
    color: var(--text-secondary);
    font-size: clamp(13px, 2.5vw, 15px);
    line-height: 1.7;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Lists */
.problem-list, .benefit-list, .step-list, .impl-list {
    list-style: none;
    margin: clamp(12px, 3vw, 15px) 0;
    padding: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.problem-item, .benefit-item, .step-item, .impl-item {
    margin: clamp(10px, 2vw, 12px) 0;
    padding-left: clamp(18px, 4vw, 20px);
    position: relative;
}

.bullet {
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-weight: bold;
}

/* Code display - minimal */
.code-display {
    padding: clamp(12px, 3vw, 15px);
    margin: clamp(12px, 3vw, 15px) 0;
    font-family: "Courier New", monospace;
    font-size: clamp(11px, 2.5vw, 13px);
    color: var(--text-secondary);
    overflow-x: auto;
    font-style: italic;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* ASCII diagram - minimal */
.ascii-diagram {
    padding: clamp(15px, 4vw, 20px);
    margin: clamp(15px, 4vw, 20px) 0;
    font-family: "Courier New", monospace;
    font-size: clamp(6px, 2.5vw, 12px);
    color: var(--text-secondary);
    text-align: center;
    white-space: pre;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Conclusion */
.conclusion {
    margin: clamp(30px, 6vw, 40px) 0 clamp(15px, 3vw, 20px) 0;
    padding: clamp(20px, 5vw, 25px) 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: clamp(12px, 2.5vw, 14px);
    line-height: 1.8;
    text-align: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive design for small screens */
@media (max-width: 500px) {
    body {
        padding: clamp(3px, 1.5vw, 8px);
        align-items: center;
        justify-content: center;
    }
    
    .container {
        width: 98vw;
        max-width: 98vw;
    }
    
    #ascii-title {
        font-size: clamp(3px, 3vw, 8px);
        line-height: 1.0;
        transform: scale(0.8);
        transform-origin: center;
    }
    
    .input-group {
        flex-direction: column;
        align-items: center;
        gap: clamp(15px, 4vw, 20px);
        width: 100%;
    }
    
    #email {
        max-width: 80vw;
        width: 80vw;
    }
    
    .submit-btn, #submit-btn {
        min-width: clamp(120px, 50vw, 160px);
        width: auto;
    }
    
    .ascii-diagram {
        font-size: clamp(4px, 3vw, 8px);
        padding: clamp(10px, 3vw, 15px);
        transform: scale(0.9);
        transform-origin: center;
    }
    
    /* Bigger fonts for whitepaper on mobile */
    .whitepaper-content p {
        font-size: clamp(16px, 3.5vw, 18px);
    }
    
    .whitepaper-content .section-content {
        font-size: clamp(15px, 3vw, 17px);
    }
    
    .section-header {
        font-size: clamp(18px, 4vw, 20px);
    }
}

@media (max-width: 350px) {
    #ascii-title {
        font-size: clamp(2px, 3.5vw, 6px);
        transform: scale(0.7);
    }
    
    .container {
        width: 99vw;
        max-width: 99vw;
    }
    
    #email {
        max-width: 85vw;
    }
    
    .submit-btn, #submit-btn {
        min-width: clamp(100px, 50vw, 140px);
        font-size: clamp(12px, 3vw, 14px);
    }
    
    .ascii-diagram {
        font-size: clamp(3px, 3.5vw, 6px);
        transform: scale(0.8);
        transform-origin: center;
    }
    
    /* Even bigger fonts for whitepaper on very small screens */
    .whitepaper-content p {
        font-size: clamp(15px, 4vw, 17px);
    }
    
    .whitepaper-content .section-content {
        font-size: clamp(14px, 3.8vw, 16px);
    }
}

/* Remove old cursor and terminal styles */
.cursor {
    display: none;
}