/* Reset & Variables */
:root {
    --bg-color: #0a0a0a;
    --text-color: #e5e5e5;
    --text-muted: #a0a0a0;
    --accent-color: #d4af37; /* A muted gold/ochre for a premium feel */
    --card-bg: #161616;
    --border-color: #2a2a2a;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: #fff;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
}

.label {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 750px;
}

/* Header & Nav */
header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-cta {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    border: 1px solid var(--text-color);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
}

.subtitle {
    font-size: 1.4rem;
    margin: 0 auto 2.5rem auto;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

/* Thesis Section */
.thesis {
    padding: 8rem 0;
    background-color: #0f0f0f;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.thesis h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
}

/* How It Works Grid */
.how-it-works {
    padding: 8rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: var(--accent-color);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Roadmap Section */
.roadmap {
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.roadmap-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-teaser {
    background: var(--accent-color);
    padding: 3rem;
    color: #000;
}

.teaser-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    color: #000 !important;
    margin-bottom: 1rem;
}

.teaser-sub {
    font-size: 1rem !important;
    color: rgba(0,0,0,0.8) !important;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    text-align: center;
}

.waitlist-form {
    margin-top: 3rem;
    display: flex;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form input {
    flex: 1;
    padding: 1rem;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 1rem;
}

.waitlist-form button {
    padding: 1rem 2rem;
    background: var(--text-color);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.waitlist-form button:hover {
    background: var(--accent-color);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .roadmap-content {
        grid-template-columns: 1fr;
    }

    .waitlist-form {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-teaser {
        padding: 2rem;
    }
}

/* --- Formspree Waitlist Styles --- */
.waitlist-container {
    max-width: 400px;
    margin: 2rem auto;
}

.input-group {
    margin-bottom: 1rem;
    position: relative;
}

#waitlist-form input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Crucial for padding alignment */
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}

#waitlist-form input:focus {
    border-color: #000;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: 'Inter', sans-serif;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-message, .error-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
    display: none; /* Hidden by default, shown by JS */
}

.success-message {
    background-color: #d4edda;
    color: #155724;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
}

.field-error {
    color: #dc3545;
    font-size: 0.8rem;
    display: block;
    margin-top: 4px;
}
