/* =============================================================================
   Breakside Landing Page Styles
   ============================================================================= */

:root {
    /* Brand colors */
    --brand-orange: #EB8232;
    --brand-orange-dark: #D4702A;
    --brand-orange-light: #F5A366;
    
    /* Accent colors */
    --accent-teal: #2DD4BF;
    --accent-purple: #8B5CF6;
    
    /* Neutrals */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Functional colors */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--gray-900);
    color: var(--gray-100);
    line-height: 1.6;
    min-height: 100vh;
}

/* =============================================================================
   Navigation
   ============================================================================= */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: inherit;
}

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

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-orange);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--gray-300);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--brand-orange);
}

.nav-btn {
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-1px);
}

/* =============================================================================
   Hero Section
   ============================================================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem var(--space-lg) var(--space-3xl);
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(235, 130, 50, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        var(--gray-900);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-highlight {
    color: var(--brand-orange);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: var(--space-xl);
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.hero-note {
    font-size: 0.875rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.beta-badge {
    background: var(--accent-purple);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, var(--gray-700), var(--gray-800));
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background: var(--brand-orange);
    color: white;
    padding: var(--space-md);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
}

.mockup-vs {
    opacity: 0.7;
    font-size: 0.875rem;
}

.mockup-timer {
    background: var(--gray-200);
    text-align: center;
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

.mockup-players {
    flex: 1;
    padding: var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    align-content: start;
}

.mockup-player {
    background: var(--gray-200);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.mockup-player.active {
    background: var(--brand-orange-light);
    color: var(--gray-800);
    font-weight: 600;
}

.mockup-actions {
    padding: var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.mockup-btn {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.mockup-btn.green {
    background: var(--success);
}

.mockup-btn.red {
    background: var(--error);
}

/* =============================================================================
   Buttons
   ============================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--brand-orange);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(235, 130, 50, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--gray-300);
    border: 2px solid var(--gray-600);
}

.btn-secondary:hover {
    background: var(--gray-800);
    border-color: var(--gray-500);
    color: white;
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--brand-orange);
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
    padding: var(--space-sm);
}

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

.btn-google {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    width: 100%;
}

.btn-google:hover {
    background: var(--gray-100);
}

.google-icon {
    flex-shrink: 0;
}

/* =============================================================================
   Features Section
   ============================================================================= */

.features {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--gray-800);
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--space-3xl);
    color: white;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-400);
    font-size: 1.1rem;
    margin-top: calc(-1 * var(--space-xl));
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: var(--gray-700);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-600);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-orange);
    box-shadow: 0 20px 40px -20px rgba(235, 130, 50, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: white;
}

.feature-card p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

/* =============================================================================
   Install Section
   ============================================================================= */

.install {
    padding: var(--space-3xl) var(--space-lg);
    background: 
        radial-gradient(ellipse at 50% 100%, rgba(235, 130, 50, 0.1) 0%, transparent 50%),
        var(--gray-900);
}

.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.install-card {
    background: var(--gray-800);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-700);
}

.install-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.install-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: white;
}

.install-steps {
    list-style: none;
    counter-reset: step;
}

.install-steps li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--gray-400);
}

.install-steps li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--brand-orange);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.install-steps strong {
    color: var(--gray-200);
}

/* =============================================================================
   Auth Modal
   ============================================================================= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--gray-800);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 420px;
    width: 100%;
    position: relative;
    border: 1px solid var(--gray-700);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-xs);
    line-height: 1;
}

.modal-close:hover {
    color: white;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo {
    height: 60px;
    margin-bottom: var(--space-md);
}

.auth-header h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    color: white;
}

.auth-subtitle {
    color: var(--gray-400);
    font-size: 0.95rem;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    background: var(--gray-700);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
}

.auth-tab {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: none;
    background: transparent;
    color: var(--gray-400);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.auth-tab.active {
    background: var(--brand-orange);
    color: white;
}

/* Auth Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
}

.form-group input {
    padding: var(--space-md);
    border: 1px solid var(--gray-600);
    border-radius: var(--radius-md);
    background: var(--gray-700);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-orange);
}

.form-group input::placeholder {
    color: var(--gray-500);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-600);
}

.auth-info {
    color: var(--gray-400);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: var(--space-md);
}

.auth-message {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-top: var(--space-md);
    text-align: center;
}

.auth-message.hidden {
    display: none;
}

.auth-message.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border: 1px solid var(--error);
}

/* Logged In State */
.logged-in-content {
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto var(--space-md);
}

.logged-in-content h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: var(--space-xs);
}

.user-email {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
}

.logged-in-content .btn {
    margin-bottom: var(--space-sm);
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
    background: var(--gray-800);
    border-top: 1px solid var(--gray-700);
    padding: var(--space-2xl) var(--space-lg);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--gray-300);
}

.footer-logo {
    height: 24px;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--brand-orange);
}

.footer-copy {
    color: var(--gray-600);
    font-size: 0.8rem;
}

/* =============================================================================
   Utilities
   ============================================================================= */

.hidden {
    display: none !important;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-note {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: var(--space-md);
    }
    
    .nav-link {
        display: none;
    }
    
    .hero {
        padding-top: 5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .install-grid {
        grid-template-columns: 1fr;
    }
}

