/* ============================================
   STAGEBOOK SPLASH PAGE
   Matches main app design: gray-900 bg, sky accents
   ============================================ */

:root {
    /* STAGEBOOK LIGHT THEME - Clean, Modern, Professional */
    
    /* Light backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    
    /* Text colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Borders */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    /* Primary brand color - Teal/Emerald */
    --primary-600: #0d9488;
    --primary-500: #14b8a6;
    --primary-400: #2dd4bf;
    --primary-100: #ccfbf1;
    
    /* Accent color - Amber/Gold */
    --accent-600: #d97706;
    --accent-500: #f59e0b;
    --accent-400: #fbbf24;
    --accent-100: #fef3c7;
    
    --white: #ffffff;
    --black: #0f172a;
    
    /* Legacy aliases for compatibility */
    --gray-900: var(--text-primary);
    --gray-800: var(--bg-tertiary);
    --gray-700: var(--border-medium);
    --gray-600: var(--text-muted);
    --gray-500: var(--text-light);
    --gray-400: var(--text-muted);
    --gray-300: var(--text-secondary);
    --sky-500: var(--primary-500);
    --sky-400: var(--primary-400);
    --sky-600: var(--primary-600);
    --orange-500: var(--accent-500);
    --orange-400: var(--accent-400);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-500);
}

.nav-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    background: var(--primary-100);
    border: 1px solid var(--primary-400);
    border-radius: 9999px;
    color: var(--primary-600);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--primary-100) 100%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: pulse-slow 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(20, 184, 166, 0.15);
    top: 10%;
    left: 20%;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(245, 158, 11, 0.12);
    bottom: 10%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: var(--primary-500);
}

.hero-badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Form */
.hero-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 0.75rem;
    padding: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
}

.form-row input::placeholder {
    color: var(--text-light);
}

.form-row:focus-within {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.3);
}

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

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Success Message */
.success-message {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
}

.success-message.show {
    display: flex;
}

.success-message svg {
    width: 24px;
    height: 24px;
    color: #22c55e;
    flex-shrink: 0;
}

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

/* Features Section */
.features {
    padding: 5rem 1.5rem;
    background: var(--bg-secondary);
}

.features-container {
    max-width: 1024px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    background: var(--bg-card);
}

.feature-card-sky {
    border-left: 4px solid var(--primary-500);
}

.feature-card-sky:hover {
    border-color: var(--primary-400);
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.1);
}

.feature-card-orange {
    border-left: 4px solid var(--accent-500);
}

.feature-card-orange:hover {
    border-color: var(--accent-400);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-card-sky .feature-icon {
    background: var(--primary-100);
}

.feature-card-orange .feature-icon {
    background: var(--accent-100);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card-sky .feature-icon svg {
    color: var(--primary-600);
}

.feature-card-orange .feature-icon svg {
    color: var(--accent-600);
}

.feature-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card > p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.feature-list li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-card-sky .feature-list li svg {
    color: var(--primary-500);
}

.feature-card-orange .feature-list li svg {
    color: var(--accent-500);
}

/* How It Works */
.how-it-works {
    padding: 5rem 1.5rem;
    background: var(--bg-primary);
}

.how-container {
    max-width: 900px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-100);
    border: 2px solid var(--primary-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-600);
    margin: 0 auto 1.25rem;
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* CTA Section */
.cta {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-100), var(--bg-secondary));
}

.cta-container {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta > .cta-container > p:first-of-type {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-container > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Footer */
.footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-primary);
}

.footer-container {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-logo svg {
    width: 20px;
    height: 20px;
    color: var(--primary-500);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: var(--white);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-badges {
        gap: 0.75rem;
    }
    
    .trust-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Links for SEO */
.text-link {
    color: var(--primary-600);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-400);
    transition: all 0.2s;
}

.text-link:hover {
    color: var(--primary-500);
    border-bottom-color: var(--primary-500);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.trust-badge svg {
    width: 16px;
    height: 16px;
    color: var(--primary-500);
}

/* Stats Section */
.stats-section {
    padding: 3rem 1.5rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats-container {
    max-width: 1024px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.stat-link {
    color: var(--primary-600);
    text-decoration: none;
}

.stat-link:hover {
    text-decoration: underline;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 9999px;
    color: var(--text-muted);
}

/* Use Cases Section */
.use-cases {
    padding: 5rem 1.5rem;
    background: var(--bg-secondary);
}

.use-cases-container {
    max-width: 1024px;
    margin: 0 auto;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.use-case {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.use-case:hover {
    border-color: var(--primary-400);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.use-case h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.use-case p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 1.5rem;
    background: var(--bg-primary);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.faq-item {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.faq-item p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Selection */
::selection {
    background: var(--primary-500);
    color: var(--white);
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
