/* --- System Variables --- */
:root {
    --canvas-bg: #030712;
    --surface-bg: #0b1329;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --interactive-teal: #14b8a6;
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--canvas-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
}

html.entered-session #splash-screen {
    display: none !important;
}

html.entered-session #main-content,
html.entered-session #main-content.hidden {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* --- Fullscreen Splash Layout Engine --- */
.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--canvas-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    cursor: pointer;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-content {
    text-align: center;
}

.splash-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 12px;
    color: #ffffff;
}

.splash-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.click-prompt {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--interactive-teal);
    text-transform: uppercase;
    opacity: 0.6;
    animation: textPulse 2s ease-in-out infinite;
}

/* --- Container Frame --- */
.coming-soon-container {
    text-align: center;
    max-width: 580px;
    background: linear-gradient(180deg, #0b1329, #070d1e);
    padding: 60px 45px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Shared Shield Viewport Structure --- */
.logo-viewport {
    width: 140px;
    height: 140px;
    margin: 0 auto 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-viewport.scale-up {
    width: 180px;
    height: 180px;
}

.shield-vector {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    animation: layoutBreathe 4s ease-in-out infinite;
}

/* --- Functional State Handling --- */
.hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.fade-in {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* --- Animation Systems --- */
@keyframes layoutBreathe {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(20, 184, 166, 0.15)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 22px rgba(20, 184, 166, 0.4)); }
}

@keyframes textPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* --- Document Inner Typography --- */
.brand-header {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 8px;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--interactive-teal);
    margin-bottom: 25px;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.site-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 6px 12px;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
    color: var(--interactive-teal);
    border-color: rgba(20, 184, 166, 0.55);
    background-color: rgba(20, 184, 166, 0.08);
}

.site-nav-link.active {
    color: #e2e8f0;
    border-color: rgba(20, 184, 166, 0.55);
    background-color: rgba(20, 184, 166, 0.12);
}

.launch-badge {
    display: inline-block;
    border: 1px solid rgba(20, 184, 166, 0.3);
    background-color: rgba(20, 184, 166, 0.06);
    color: #2dd4bf;
    padding: 5px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.abstract {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.line-break {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
    margin: 35px 0;
}

.content-stack {
    display: grid;
    gap: 14px;
    margin-top: 8px;
    color: var(--text-secondary);
    text-align: left;
}

.content-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    background: rgba(3, 7, 18, 0.42);
}

.content-card h3 {
    font-size: 0.92rem;
    letter-spacing: 0.8px;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.content-card p {
    font-size: 0.9rem;
    line-height: 1.55;
}

.inline-link {
    color: #dbeafe;
}

.inline-link:hover {
    color: var(--interactive-teal);
}

.contact-form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.contact-form label {
    font-size: 0.83rem;
    letter-spacing: 0.7px;
    color: #cbd5e1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.55);
    color: #f8fafc;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(20, 184, 166, 0.7);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.16);
}

.privacy-note {
    font-size: 0.8rem;
    color: #fbbf24;
    margin-top: 2px;
}

.contact-submit {
    justify-self: start;
    border: 1px solid rgba(20, 184, 166, 0.5);
    background: rgba(20, 184, 166, 0.12);
    color: #ccfbf1;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-submit:hover {
    background: rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.75);
}

.form-status {
    min-height: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.form-status.success {
    color: #2dd4bf;
}

.form-status.error {
    color: #fca5a5;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.secure-comms-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.secure-comms-btn:hover {
    border-color: var(--interactive-teal);
    color: var(--interactive-teal);
    background: rgba(20, 184, 166, 0.02);
}

.site-footer {
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.76rem;
    line-height: 1.5;
    text-align: center;
}