/* REAPR Pods - Professional Enterprise Design */
/* φ = 1.618033988749895 */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --accent: #0ea5e9;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --border: #e2e8f0;
    --code-bg: #1e293b;
    --code-text: #e2e8f0;
    --success: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

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

code, pre {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

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

.brand-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    padding: 0.5rem 1.25rem;
    background: var(--primary);
    color: white !important;
    border-radius: 0.375rem;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-secondary);
}

.btn-tertiary:hover {
    color: var(--primary);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Sections */
.section {
    padding: 6rem 2rem;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Architecture Grid */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

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

.arch-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-4px);
}

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

.arch-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.arch-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.tech-list li {
    padding: 0.5rem 0;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}

.tech-list li:last-child {
    border-bottom: none;
}

/* Architecture Diagram */
.architecture-diagram {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.architecture-diagram h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.flow-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.flow-box {
    flex: 1;
    min-width: 180px;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    text-align: center;
}

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

.flow-detail {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.flow-box code {
    display: block;
    padding: 0.5rem;
    background: var(--code-bg);
    color: var(--code-text);
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

/* Mathematics Section */
.math-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.math-card {
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.math-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.math-formula {
    padding: 1.5rem;
    background: var(--code-bg);
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.math-formula code {
    display: block;
    color: var(--code-text);
    font-size: 0.875rem;
    line-height: 2;
}

.math-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Proof Section */
.proof-section {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-primary);
    border: 2px solid var(--primary);
    border-radius: 1rem;
}

.proof-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.proof-intro {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.proof-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.proof-step {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    border-radius: 0.5rem;
}

.proof-step strong {
    color: var(--primary);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    padding: 2.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 1rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.price-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.price-card-featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.price-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.price-tier {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
}

.price-amount span {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

.price-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.price-features {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.price-features li svg {
    flex-shrink: 0;
    color: var(--success);
}

.price-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.price-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.price-btn-featured {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.price-btn-featured:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    padding: 4rem 2rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-equation {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-size: 0.875rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-tertiary);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 6rem 1rem 4rem;
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flow-container {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .price-card-featured {
        transform: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
