:root {
    --color-bg: var(--dynamic-bg-color, #0A0D14);
    --color-text: #F8FAFC;       /* Off-white */
    --color-accent: var(--dynamic-glow-color, #4F73DE);
    --color-accent-hover: #FFFFFF;
    --color-metal: rgba(248, 250, 252, 0.7); /* Lighter metal for better contrast */
    
    --font-heading: 'Pathway Gothic One', sans-serif;
    --font-body: 'Pathway Gothic One', sans-serif;
    
    --z-webgl: -1;
    --z-content: 10;
    --z-header: 100;
}

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

body.dark-futurist-theme {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--base-font-size, 18px);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5em;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* WEBGL CONTAINER */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-webgl);
    pointer-events: none; /* Let clicks pass through to content */
    opacity: 0.8;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-header);
}

.site-header .logo h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0;
    letter-spacing: 0.1em;
}

.site-navigation ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.site-navigation a {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    position: relative;
}

.site-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.site-navigation a:hover::after {
    width: 100%;
}

/* SECTIONS */
.vh-100 {
    min-height: 100vh;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: var(--z-content);
    width: 100%;
}

.content-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* HERO */
.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(6rem, 10vw, 12rem);
    line-height: 0.9;
    margin-bottom: 0.2em;
    color: #fff;
    filter: drop-shadow(0 0 20px rgba(224, 242, 254, 0.4));
}
.hero-logo {
    max-width: 100%;
    max-height: 55vh; /* Keep it constrained within the viewport */
    width: auto;
    margin: 0 auto 3rem auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(224, 242, 254, 0.4));
    animation: drift 10s infinite alternate ease-in-out;
}

@keyframes drift {
    0% { transform: translateY(0) scale(0.98); }
    100% { transform: translateY(-15px) scale(1.02); }
}

.hero-content .subtitle {
    font-size: clamp(2rem, 3vw, 4rem);
    color: var(--color-accent);
    letter-spacing: 0.2em;
    margin-bottom: 1em;
}

.hero-content .intro-desc {
    font-size: 1.5rem;
    font-family: monospace; /* Contrast with Gothic */
    color: var(--color-metal);
    margin-bottom: 3em;
    letter-spacing: 0.05em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-futurist {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-futurist:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 0 30px rgba(224, 242, 254, 0.6);
}

/* MANIFESTO */
.manifesto-section {
    padding: 15rem 0;
    width: 100%;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5rem;
    width: 100%;
}

.manifesto-item {
    text-align: left;
}

.manifesto-item h3 {
    font-size: 4rem;
    color: var(--color-accent);
    border-bottom: 1px solid rgba(224, 242, 254, 0.3);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.manifesto-item p {
    font-size: 1.6rem;
    color: var(--color-metal);
    line-height: 1.6;
}

/* ACCESS FORM */
.access-section {
    width: 100%;
    padding: 10rem 0;
}

.access-container {
    max-width: var(--form-max-width, 600px);
    margin: 0 auto;
}

.access-container .section-title {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 0.5em;
}

.access-desc {
    text-align: center;
    font-family: monospace;
    font-size: 1.3rem;
    color: var(--color-metal);
    margin-bottom: 4rem;
}

.futurist-form {
    width: 100%;
}

.futurist-form .form-group {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
}

.futurist-form input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--color-metal) !important;
    padding: 1.5rem 0;
    color: var(--color-text) !important;
    font-size: 1.8rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.futurist-form input:focus {
    outline: none !important;
    border-bottom-color: var(--color-accent) !important;
    background: transparent !important;
}

/* Chrome autofill override */
.futurist-form input:-webkit-autofill,
.futurist-form input:-webkit-autofill:hover, 
.futurist-form input:-webkit-autofill:focus, 
.futurist-form input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: var(--color-text) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.futurist-form input::placeholder {
    color: transparent;
}

.futurist-form label {
    position: absolute;
    top: 1.5rem;
    left: 0;
    font-size: 1.8rem;
    color: var(--color-metal);
    transition: all 0.3s ease;
    pointer-events: none;
}

.futurist-form input:focus ~ label,
.futurist-form input:not(:placeholder-shown) ~ label {
    top: -1.5rem;
    font-size: 1.2rem;
    color: var(--color-accent);
}

.btn-submit {
    width: 100%;
    padding: 2rem;
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    font-size: 2rem;
    font-family: var(--font-heading);
    letter-spacing: 0.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-submit:hover {
    background: var(--color-accent);
    color: #fff;
}

.form-response {
    margin-top: 2rem;
    font-family: monospace;
    text-align: center;
    font-size: 1.2rem;
}

.form-response.success {
    color: #00FF41;
}

.form-response.error {
    color: var(--color-accent);
}

/* FOOTER */
.site-footer {
    padding: 4rem;
    text-align: center;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--color-metal);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-content h1 { font-size: 5rem; }
    .hero-content .subtitle { font-size: 1.5rem; }
    .manifesto-grid { grid-template-columns: 1fr; gap: 3rem; }
    .site-header { flex-direction: column; gap: 1rem; padding: 1rem 2rem; }
}

/* GLITCH EFFECT */
.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

.glitch::before {
    left: 3px;
    text-shadow: -2px 0 #E0F2FE;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -3px;
    text-shadow: -2px 0 #94A3B8;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(6px, 9999px, 86px, 0); }
    20% { clip: rect(4px, 9999px, 12px, 0); }
    40% { clip: rect(88px, 9999px, 15px, 0); }
    60% { clip: rect(100px, 9999px, 10px, 0); }
    80% { clip: rect(20px, 9999px, 80px, 0); }
    100% { clip: rect(60px, 9999px, 50px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(32px, 9999px, 90px, 0); }
    20% { clip: rect(19px, 9999px, 60px, 0); }
    40% { clip: rect(72px, 9999px, 30px, 0); }
    60% { clip: rect(81px, 9999px, 4px, 0); }
    80% { clip: rect(10px, 9999px, 90px, 0); }
    100% { clip: rect(55px, 9999px, 20px, 0); }
}
