/* ============================================
   JARV LANDING PAGE
   Design: Grokipedia-inspired dark UI
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --border: #2a2a2a;
    --border-light: #333333;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-tertiary: #555555;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --radius-pill: 100px;
    --radius-card: 16px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--text-primary);
}

/* Decorative Sparkles */
.sparkle {
    position: fixed;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

.sparkle-1 { top: 20%; left: 15%; }
.sparkle-2 { top: 35%; right: 20%; }
.sparkle-3 { top: 60%; left: 10%; }
.sparkle-4 { bottom: 30%; right: 15%; }
.sparkle-5 { bottom: 20%; left: 25%; }

/* Main Layout */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 10vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.hero-version {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    margin-bottom: 32px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* Waitlist Container */
.waitlist-container {
    margin-bottom: 16px;
}

/* Request Access Button */
.waitlist-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: var(--font-sans);
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.waitlist-button:hover {
    background: var(--bg-card);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.waitlist-button.hidden {
    display: none;
}

/* Signup Form - Pill Style */
.signup-form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
}

.signup-form.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 6px 6px 6px 24px;
    transition: border-color 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--border-light);
}

.email-input {
    flex: 1;
    padding: 12px 0;
    font-size: 1rem;
    font-family: var(--font-sans);
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
}

.email-input::placeholder {
    color: var(--text-tertiary);
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--border);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.cta-button:hover {
    background: var(--border-light);
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button svg {
    width: 18px;
    height: 18px;
}

/* Exclusivity Text */
.exclusivity {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

/* Value Card */
.value-card {
    width: 100%;
    max-width: 480px;
    margin-bottom: 48px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px 28px;
    text-align: left;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* Pain Section (Version B - No box) */
.pain-section {
    width: 100%;
    max-width: 480px;
    margin-bottom: 48px;
    text-align: center;
}

.pain-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.pain-solution {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.pain-solution strong {
    color: var(--text-primary);
}

/* Value Props */
.value-props {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 40px;
}

.prop {
    text-align: left;
}

.prop-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.prop-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    color: var(--text-tertiary);
    font-size: 0.625rem;
}

.feature-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px 24px 48px;
}

.footer-powered {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.footer-powered a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 2px;
}

.footer-powered a:hover {
    color: var(--text-primary);
    text-decoration-color: var(--text-secondary);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 480px) {
    .main {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .sparkle {
        display: none;
    }
}

/* Selection */
::selection {
    background: var(--text-primary);
    color: var(--bg);
}

/* Success State */
.signup-form.success .input-wrapper {
    border-color: #22c55e;
}

.signup-form.success .cta-button {
    background: #22c55e;
}
