:root {
    --color-bg: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-secondary: #555555;
    --color-green-light: #E8F8F5;
    --color-blue-light: #EAF2FF;
    --color-red-light: #FDECEC;
    --color-accent: #2D3436;
    --color-primary: #000000;
    --font-family: 'Outfit', sans-serif;
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Three.js Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    /* Let clicks pass through */
}

/* App Container */
.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* Main Layout */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Text wider than image */
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-content {
    max-width: 100%;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-green-light);
    color: #006644;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 0px;
}

/* App Showcase (Phone Mockup) */
.app-showcase {
    position: relative;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    max-width: 320px;
    /* Removed fake bezel/border styles */
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
    /* Drop shadow on the image itself */
}

.app-showcase:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.app-screenshot {
    display: block;
    width: 100%;
    height: auto;
    /* Removed border-radius as image should dictate shape or be a cutout */
}

/* Waitlist Card */
.waitlist-card {
    background: rgba(255, 255, 255, 0.6);
    /* More transparent to blend */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid #eee;
    transition: transform 0.2s ease;
}

.feature-item.blue {
    background-color: var(--color-blue-light);
    border-color: transparent;
    color: #2c3e50;
}

.feature-item.red {
    background-color: var(--color-red-light);
    border-color: transparent;
    color: #c0392b;
}

.feature-item.green {
    background-color: var(--color-green-light);
    border-color: transparent;
    color: #006644;
}

.feature-item:hover {
    transform: translateY(-2px);
}

.feature-item svg {
    opacity: 0.8;
}

/* Form Styling */
.waitlist-form {
    margin-top: 1.5rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

input[type="email"] {
    flex: 1;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid #e0e0e0;
    font-family: var(--font-family);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
    background: white;
}

input[type="email"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

button {
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background: #333;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.helper-text {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.75rem;
    margin-left: 0.5rem;
}

.message {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.message.error {
    background: var(--color-red-light);
    color: #D63031;
}

.message.success {
    background: var(--color-green-light);
    color: #00B894;
}

/* Loading Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success View */
.success-view {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    color: #999;
    font-size: 0.8rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    h1 {
        font-size: 2.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}