/* Frontend / general styles */

/* Prevent flash of unstyled content */
html {
    visibility: visible;
}

body {
    background-color: #000000;
}

.logo {
    display: block;
    width: 123.5%;
    max-width: none;
    height: auto;
    margin: -12.6% 0 calc(-17.1% + 0.025em);
    margin-left: -11.75%;
}

#header {
    margin: 0;
}

#footer {
    text-align: center;
    position: relative;
    z-index: 1;
}

#content {
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-row {
    margin: 8px auto;
    text-align: center;
}

.form-row label {
    display: inline-block;
    font-weight: bold;
    text-align: right;
    width: 20%;
    margin-right: 12px;
    vertical-align: middle;
}

.form-row input {
    width: 35%;
    margin: 0px 8px;
}

.form-row select {
    width: 35%;
    margin: 0px 8px;
}

.ui-selectmenu-button {
    vertical-align: middle;
    margin-top: 8px;
    margin-bottom: 0;
}


/* Login Screen */

#login-page #content, #register-page #content, #pilot-page #content {
    width: 70%;
    max-width: 900px;
}

#login-dialog, #register-dialog, #pilot-dialog {
    margin: 0.5em 0 1em;
}

#login-dialog .message {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: auto;
    width: auto;
}

/* --- Homepage Info Sections --- */

.info-sections {
    max-width: 900px;
    margin: 1em auto 0;
    position: relative;
    z-index: 1;
    padding: 0 1.5em;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

.info-sections h1, .info-sections h2, .info-sections h3, .info-sections h4 {
    color: #fff;
}

/* Tagline */
.info-tagline {
    text-align: center;
    margin-bottom: 3em;
    padding: 1em 1em;
    border-top: 1px solid #2a1a5e;
}

.info-tagline h1 {
    font-size: 2em;
    margin-bottom: 0.4em;
    background: linear-gradient(135deg, #7c6ae8, #4a4ae0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-tagline p {
    font-size: 1.15em;
    color: #b0b0c0;
    max-width: 640px;
    margin: 0 auto;
}

/* Three Pillars Grid */
.pillars-grid {
    display: flex;
    gap: 1.5em;
    margin-bottom: 3em;
}

.pillar {
    flex: 1;
    background: rgba(26, 10, 62, 0.85);
    border: 1px solid #3525a0;
    border-radius: 10px;
    padding: 1.5em;
    text-align: center;
}

.pillar-icon {
    font-size: 2.5em;
    margin-bottom: 0.3em;
}

.pillar h3 {
    font-size: 1.15em;
    margin-bottom: 0.4em;
}

.pillar p {
    font-size: 0.9em;
    color: #b0b0c0;
    margin-bottom: 0.8em;
}

.pillar ul {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 0.85em;
    color: #c0c0d0;
}

.pillar ul li {
    padding: 0.25em 0;
    padding-left: 1.2em;
    position: relative;
}

.pillar ul li::before {
    content: "\25B8";
    position: absolute;
    left: 0;
    color: #4a4ae0;
}

/* AI Comparison */
.ai-compare {
    text-align: center;
    margin-bottom: 3em;
    padding: 2em 0;
    border-top: 1px solid #2a1a5e;
}

.ai-compare h2 {
    font-size: 1.6em;
    margin-bottom: 0.3em;
}

.ai-compare-sub {
    color: #b0b0c0;
    max-width: 640px;
    margin: 0 auto 1.5em;
    font-size: 1em;
}

.ai-cards {
    display: flex;
    gap: 1.5em;
}

.ai-card {
    flex: 1;
    border-radius: 10px;
    padding: 1.5em;
    text-align: left;
}

.ai-card-without {
    background: rgba(120, 40, 80, 0.55);
    border: 1px solid rgba(160, 80, 130, 0.55);
}

.ai-card-with {
    background: rgba(26, 10, 62, 0.85);
    border: 1px solid #3525a0;
}

.ai-card-badge {
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5em;
    color: #b0b0c0;
}

.ai-card h4 {
    font-size: 1.1em;
    margin-bottom: 0.4em;
}

.ai-card p {
    font-size: 0.9em;
    color: #c0c0d0;
    line-height: 1.5;
}

/* Outcomes Grid */
.outcomes {
    text-align: center;
    margin-bottom: 3em;
    padding: 2em 0;
    border-top: 1px solid #2a1a5e;
}

.outcomes h2 {
    font-size: 1.6em;
    margin-bottom: 1em;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5em;
}

.outcome {
    background: rgba(26, 10, 62, 0.75);
    border: 1px solid #2a1a5e;
    border-radius: 10px;
    padding: 1.2em;
}

.outcome-icon {
    font-size: 2em;
    margin-bottom: 0.3em;
}

.outcome h4 {
    font-size: 1em;
    margin-bottom: 0.3em;
}

.outcome p {
    font-size: 0.85em;
    color: #b0b0c0;
}

/* Team Play Section */
.team-play-section {
    text-align: center;
    margin-bottom: 3em;
    padding: 2em 0;
    border-top: 1px solid #2a1a5e;
}

.team-play-section h2 {
    font-size: 1.6em;
    margin-bottom: 0.3em;
}

.team-play-sub {
    color: #b0b0c0;
    max-width: 640px;
    margin: 0 auto 2em;
    font-size: 1em;
}

.match-structure {
    display: flex;
    gap: 1.5em;
    margin-bottom: 2em;
}

.match-phase {
    flex: 1;
    background: rgba(26, 10, 62, 0.85);
    border: 1px solid #3525a0;
    border-radius: 10px;
    padding: 1.5em;
    text-align: center;
}

.match-phase-time {
    font-size: 2em;
    font-weight: bold;
    color: #4dd0e1;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.3em;
}

.match-phase h4 {
    font-size: 1.05em;
    margin-bottom: 0.5em;
}

.match-phase p {
    font-size: 0.85em;
    color: #b0b0c0;
    text-align: left;
    line-height: 1.5;
}

.team-play-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2em;
}

.team-benefit {
    background: rgba(26, 10, 62, 0.6);
    border: 1px solid #2a1a5e;
    border-radius: 8px;
    padding: 1.2em;
    text-align: left;
}

.team-benefit h4 {
    font-size: 1em;
    margin-bottom: 0.3em;
    color: #4dd0e1;
}

.team-benefit p {
    font-size: 0.85em;
    color: #b0b0c0;
    line-height: 1.5;
}

/* Founder */
.founder {
    display: flex;
    align-items: flex-start;
    gap: 1.5em;
    margin-bottom: 3em;
    padding: 2em;
    border-top: 1px solid #2a1a5e;
    border-bottom: 1px solid #2a1a5e;
}

.founder-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3525a0, #4a4ae0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3em;
    color: #fff;
}

.founder-text h3 {
    font-size: 1.15em;
    margin-bottom: 0.4em;
}

.founder-text p {
    font-size: 0.9em;
    color: #b0b0c0;
    margin-bottom: 0.8em;
}

.founder-creds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.founder-cred {
    font-size: 0.75em;
    padding: 0.3em 0.7em;
    background: rgba(53, 37, 160, 0.3);
    border: 1px solid #3525a0;
    border-radius: 20px;
    color: #c0c0d0;
}

/* CTA */
.info-cta {
    text-align: center;
    padding: 2.5em 1em;
    margin-bottom: 2em;
}

.info-cta h2 {
    font-size: 1.6em;
    margin-bottom: 0.3em;
}

.info-cta > p {
    color: #b0b0c0;
    max-width: 560px;
    margin: 0 auto 1.2em;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-bottom: 1em;
}

.cta-btn {
    display: inline-block;
    padding: 0.7em 1.8em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background 0.2s, transform 0.1s;
}

.cta-btn:hover {
    transform: translateY(-1px);
}

.cta-btn-primary {
    background: linear-gradient(135deg, #3525a0, #4a4ae0);
    color: #fff;
    border: none;
}

.cta-btn-primary:hover {
    background: linear-gradient(135deg, #4535b0, #5a5af0);
}

.cta-btn-secondary {
    background: transparent;
    color: #7c6ae8;
    border: 1px solid #4a4ae0;
}

.cta-btn-secondary:hover {
    background: rgba(74, 74, 224, 0.1);
}

.cta-note {
    font-size: 0.85em;
    color: #808090;
}

/* Responsive: stack columns on smaller screens */
@media (max-width: 768px) {
    .logo {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    #login-page #content, #register-page #content, #pilot-page #content {
        width: 90%;
    }
    .form-row label {
        display: block;
        width: auto;
        text-align: center;
        margin-right: 0;
        margin-bottom: 4px;
    }
    .form-row input, .form-row select, .form-row textarea {
        width: 70%;
    }
    .ui-selectmenu-button {
        width: 70% !important;
    }
    .pillars-grid {
        flex-direction: column;
    }
    .ai-cards {
        flex-direction: column;
    }
    .match-structure {
        flex-direction: column;
    }
    .team-play-benefits {
        grid-template-columns: 1fr;
    }
    .outcomes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .founder {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .founder-creds {
        justify-content: center;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .info-sections {
        padding: 0 1em;
    }
}

@media (max-width: 480px) {
    #login-page #content, #register-page #content, #pilot-page #content {
        width: 95%;
    }
    .form-row input, .form-row select, .form-row textarea {
        width: 80%;
    }
    .ui-selectmenu-button {
        width: 80% !important;
    }
    .outcomes-grid {
        grid-template-columns: 1fr;
    }
    .info-tagline h1 {
        font-size: 1.5em;
    }
    .ai-compare h2, .outcomes h2, .info-cta h2 {
        font-size: 1.3em;
    }
}

/* Pilot Request Page */

#pilot-page #content {
    width: 70%;
}

#pilot-dialog {
    margin: 1em 0 2em;
}

.pilot-heading {
    text-align: center;
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 0.3em;
}

.pilot-sub {
    text-align: center;
    color: #b0b0c0;
    margin-bottom: 1.5em;
    font-size: 0.95em;
}

.form-row textarea {
    width: 35%;
    margin: 0px 8px;
    resize: vertical;
    font-family: inherit;
    background: #1a0a3e;
    color: #e0e0e0;
    border: 1px solid #3525a0;
    padding: 4px 6px;
    vertical-align: middle;
}

#pilot-success {
    text-align: center;
    padding: 2em;
}

.pilot-thanks {
    font-size: 1.3em;
    color: #7c6ae8;
    margin-bottom: 1em;
}

.pilot-back {
    color: #4a4ae0;
    text-decoration: none;
}

.pilot-back:hover {
    text-decoration: underline;
}

/* Game specific styles */