:root {
    --bg-color: #121212;
    --card-bg: #1E1E1E;
    --text-primary: #E0E0E0;
    --text-secondary: #A0A0A0;
    --accent-color: #C87533;
    --accent-glow: rgba(200, 117, 51, 0.3);
    --error-color: #FF3333;
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    height: 100vh;
    /* Remove flex centering from body to let container handle it */
    overflow-x: hidden;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    opacity: 0;
    animation: none;
    margin: 0 auto;

    /* New Layout: Nav at top, content fills rest */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    width: 100%;
}

/* Typography */
header {
    text-align: center;
    margin-bottom: 3rem;
    /* Nav is no longer inside, so this margin pushes title down from Nav */
    margin-top: 2rem;
}

h1 {
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #A0A0A0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #FFFFFF 0%, #A0A0A0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.offer-section {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.offer-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 0.5rem;
}

label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-speed);
}

.optional {
    font-weight: 300;
    opacity: 0.7;
    font-size: 0.7rem;
}

input,
select,
textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 0.8rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition-speed);
    border-radius: 0;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    cursor: pointer;
}

select option {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
    box-shadow: 0 1px 0 0 var(--accent-glow);
}

input::placeholder,
textarea::placeholder {
    color: transparent;
}

/* Button */
button {
    margin-top: 1rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-speed);
}

button:hover {
    background: var(--accent-glow);
    box-shadow: 0 0 20px var(--accent-glow);
    color: #fff;
    border-color: #fff;
}

button:active {
    transform: scale(0.98);
}

.btn-glare {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

button:hover .btn-glare {
    left: 150%;
    transition: 0.7s ease-in-out;
}

/* Success Message */
.hidden {
    display: none;
}

.hidden-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible-section {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.8s ease-out forwards;
}

#initial-signup-btn {
    margin-top: 2rem;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

#initial-signup-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

#success-message {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--accent-color);
    background: rgba(0, 240, 255, 0.05);
    margin-top: 2rem;
    animation: slideUp 0.5s ease-out;
}

#success-message h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
footer {
    margin-top: 4rem;
    text-align: center;
    font-size: 0.75rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Sliding Animations */
/* Sliding Animations */
.container.sliding {
    position: fixed;
    /* JS will set top/left/width */
}

@keyframes slideOutToLeft {
    to {
        transform: translateX(-150%);
        opacity: 0;
    }
}

@keyframes slideOutToRight {
    to {
        transform: translateX(150%);
        opacity: 0;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(150%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-150%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-out-left {
    animation: slideOutToLeft 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

.slide-out-right {
    animation: slideOutToRight 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

.slide-in-right {
    animation: slideInFromRight 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

.slide-in-left {
    animation: slideInFromLeft 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sequential Fallback Animations (for file:// protocol) */
@keyframes slideOutSeqLeft {
    to {
        transform: translateX(-50px);
        opacity: 0;
    }
}

@keyframes slideOutSeqRight {
    to {
        transform: translateX(50px);
        opacity: 0;
    }
}

@keyframes slideInSeqRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInSeqLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.seq-slide-out-left {
    animation: slideOutSeqLeft 0.4s ease-in forwards !important;
}

.seq-slide-out-right {
    animation: slideOutSeqRight 0.4s ease-in forwards !important;
}

.seq-slide-in-right {
    animation: slideInSeqRight 0.4s ease-out forwards !important;
}

.seq-slide-in-left {
    animation: slideInSeqLeft 0.4s ease-out forwards !important;
}

/* Responsive */
@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .container {
        padding: 1.5rem;
    }
}

/* Navigation */
nav {
    margin-bottom: 2rem;
    text-align: center;
    /* Ensure it is centered */
    width: 100%;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

nav a.active {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

/* Content Section (Mission) */
.content-section {
    text-align: left;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.content-section h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    text-transform: uppercase;
}

.content-section p {
    margin-bottom: 1.5rem;
}

/* Contact List */
.contact-list {
    list-style: none;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.contact-item:hover {
    border-color: var(--accent-color);
    background: rgba(200, 117, 51, 0.05);
    transform: translateY(-5px);
}

.contact-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.contact-email {
    display: block;
    color: var(--text-primary);
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 600;
}

.contact-email:hover {
    color: var(--accent-color);
}