/* CSS Rules corresponding to the new Landing Page Redesign */

:root {
    --color-bg: #0B0E14;
    /* Deep, tech-focused dark background */
    --color-surface-bg: #151A24;
    --color-text: #E2E8F0;
    --color-text-secondary: #94A3B8;
    --color-accent: #3B82F6;
    /* Modern Blue */
    --color-accent-hover: #2563EB;
    --color-border: #334155;
    --color-card-bg: rgba(30, 41, 59, 0.6);
    /* Glassmorphic base */
    --color-badge-live: #10B981;
    --color-badge-soon: #F59E0B;
    --color-gradient-start: #60A5FA;
    --color-gradient-end: #A78BFA;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* Basic scrollbar styling for modern feel */
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) var(--color-bg);
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Base utility classes for widths and responsiveness */
.w-full {
    width: 100%;
}

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

ul {
    list-style: none;
}

main {
    flex: 1;
    width: 100%;
}

/* Header & Nav */
.global-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 14, 20, 0.85);
    /* Frost effect */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-weight: 500;
}

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

.nav-btn {
    padding: 0.5rem 1rem !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover:not(.btn-disabled) {
    border-color: var(--color-text-secondary);
    background-color: rgba(255, 255, 255, 0.05);
    /* Slight highlight */
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Sections Structure */
section {
    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 1rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subhead {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Trust Banner */
.trust-banner {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background-color: rgba(21, 26, 36, 0.4);
    max-width: 100%;
}

.trust-banner p {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* How It Works Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.step-card {
    text-align: center;
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--color-text-secondary);
}

/* Product Cards */
.products {
    background-color: var(--color-surface-bg);
    border-radius: 24px;
    padding: 6rem 2rem;
    max-width: 100%;
    /* Spans more widely than default container */
}

.products .section-header {
    max-width: 1200px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.premium-card {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.05);
    /* Slight inner/outer glow hint */
}

/* Waitlist visual state */
.disabled-card {
    opacity: 0.85;
}

.disabled-card:hover {
    border-color: var(--color-border);
    transform: none;
    box-shadow: none;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-live {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-badge-live);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-soon {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--color-badge-soon);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-description {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
    /* Pushes footer down */
}

/* Trust Promise List */
.trust-promise {
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, transparent 70%);
}

.promise-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.promise-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.promise-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 1.5rem;
}

.promise-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--color-text-secondary);
}

.promise-list li::before {
    content: "•";
    color: var(--color-accent);
    font-size: 1.5rem;
    position: absolute;
    left: -1rem;
    top: -5px;
}

.promise-list strong {
    color: var(--color-text);
}


/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 4rem 1.5rem;
    background-color: rgba(11, 14, 20, 0.5);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-left {
    max-width: 300px;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-copyright {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h4 {
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.footer-column a:hover {
    color: var(--color-text);
}

/* Responsiveness */
@media (max-width: 768px) {
    .nav-links a:not(.btn) {
        display: none;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-large {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ========================================= */
/* LAUNCHPAD SPECIFIC STYLES                 */
/* ========================================= */

.launchpad-page {
    background-color: var(--color-bg);
}

.launchpad-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 100px);
    /* Fill screen minus header */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.launchpad-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0;
}

.launchpad-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.launchpad-hero p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

.lp-card {
    background: var(--color-surface-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hidden {
    display: none !important;
}

/* Form Styles */
.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.input-group input {
    width: 100%;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 1.125rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.helper-text {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Loading & Polling States */
#lp-loading-container {
    text-align: center;
    border-color: rgba(59, 130, 246, 0.4);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-left-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.activity-log {
    margin-top: 2rem;
    background: var(--color-bg);
    border-radius: 8px;
    padding: 1.5rem;
    height: 150px;
    overflow-y: auto;
    text-align: left;
    font-family: monospace;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
}

.log-entry {
    color: var(--color-badge-live);
    margin-bottom: 0.5rem;
}

/* Result Gating State */
.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.result-content {
    margin-bottom: 2rem;
}

.output-block {
    background: rgba(16, 185, 129, 0.05);
    /* Very slight green hint */
    border-left: 4px solid var(--color-badge-live);
    padding: 1.5rem;
    border-radius: 4px 8px 8px 4px;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.teasers h3 {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.teaser-block {
    background: var(--color-bg);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px dashed var(--color-border);
}

/* The "Gated" Blur Effect */
.blur-text {
    color: transparent;
    text-shadow: 0 0 8px rgba(226, 232, 240, 0.5);
    /* Blurs the text fallback */
    user-select: none;
    background-image: linear-gradient(90deg, var(--color-text-secondary) 0%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.result-gating {
    background: linear-gradient(to top, var(--color-surface-bg) 0%, transparent 100%);
    text-align: center;
    padding-top: 1rem;
    margin-top: -3rem;
    /* overlap slightly for effect */
    position: relative;
    z-index: 10;
}

.result-gating p {
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Error State */
.error-card {
    border-color: rgba(239, 68, 68, 0.4);
    text-align: center;
}

.error-card h2 {
    color: #F87171;
    /* Warning Red */
    margin-bottom: 1rem;
}

.error-card p {
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
}