/**
 * Landing Page Styles
 * Cacheroo — Anthropic-inspired muted, modern, minimal
 */

:root {
    --primary: #1a1a1a;
    --primary-hover: #2d2d2d;
    --accent: #d4a574;
    --accent-hover: #c4956a;
    --success: #3d9970;
    --warning: #c9943e;
    --danger: #c0392b;
    --info: #7f8c8d;
    --text-primary: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-muted: #9a9a9a;
    --bg-primary: #ffffff;
    --bg-secondary: #faf9f7;
    --bg-tertiary: #f3f1ee;
    --border-color: #e8e4df;
    --border-light: #f0ece7;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 4px 12px -2px rgba(0, 0, 0, 0.06);
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
}

/* Text Gradient — use accent underline instead */
.text-gradient {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    font-weight: 700;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 2px;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    transition: all 0.2s ease;
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    letter-spacing: -0.01em;
}

.navbar-brand i {
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.875rem;
    margin: 0 0.25rem;
    color: var(--text-secondary) !important;
    transition: color 0.15s ease;
}

.navbar-nav .nav-link:hover {
    transform: none;
    color: var(--text-primary) !important;
}

.navbar .btn-outline-light {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.navbar .btn-outline-light:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

.navbar .btn-light {
    background: var(--primary);
    border: none;
    color: white !important;
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.navbar .btn-light:hover {
    background: var(--primary-hover);
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a1a1a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: var(--bg-secondary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: var(--text-primary);
    font-size: 2.75rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero-content .lead {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.hero-stats .stat-item {
    padding: 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    backdrop-filter: none;
    margin-bottom: 0.75rem;
}

.hero-stats h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary) !important;
    font-weight: 700;
}

.hero-stats small {
    color: var(--text-muted) !important;
    font-size: 0.75rem;
}

.hero-actions .btn {
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    font-size: 0.875rem;
}

.hero-actions .btn:hover {
    transform: none;
    box-shadow: none;
}

.hero-actions .btn-primary,
.hero-actions .btn-lg.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.hero-actions .btn-primary:hover {
    background: var(--primary-hover) !important;
}

.hero-actions .btn-outline-primary {
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.hero-actions .btn-outline-primary:hover {
    background: var(--bg-tertiary) !important;
}

.hero-badges .badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    margin-right: 0.375rem;
    margin-bottom: 0.375rem;
    font-weight: 500;
    background: var(--bg-tertiary) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color);
}

/* Dashboard Preview */
.hero-image {
    position: relative;
    z-index: 2;
}

.browser-mockup {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: none;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.browser-mockup:hover {
    transform: none;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

.browser-header {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.browser-buttons {
    display: flex;
    gap: 0.375rem;
    margin-right: 0.75rem;
}

.btn-close-mockup,
.btn-minimize-mockup,
.btn-maximize-mockup {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.btn-close-mockup { background: var(--danger); }
.btn-minimize-mockup { background: var(--warning); }
.btn-maximize-mockup { background: var(--success); }

.browser-url {
    background: var(--bg-primary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.75rem;
    flex: 1;
    border: 1px solid var(--border-light);
}

.browser-content {
    height: 280px;
    background: var(--bg-secondary);
    position: relative;
}

.placeholder-card {
    height: 56px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.375rem;
    opacity: 0.6;
}

.placeholder-chart {
    height: 110px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.features-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: none;
    transition: border-color 0.15s ease;
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.feature-card h4 {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 0.75rem;
}

.feature-list li {
    padding: 0.1875rem 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.feature-list li::before {
    content: '\2713';
    color: var(--success);
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0;
    background: var(--bg-secondary) !important;
}

.pricing-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

.pricing-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    box-shadow: none;
    overflow: hidden;
    transition: border-color 0.15s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.pricing-card:hover {
    transform: none !important;
    box-shadow: none;
    border-color: var(--text-muted);
}

.aws-pricing {
    border: 1px solid var(--border-color);
}

.cacheroo-pricing {
    border: 2px solid var(--primary);
    position: relative;
}

.cacheroo-pricing::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.375rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    letter-spacing: 0.03em;
}

.pricing-header {
    padding: 1.5rem 1.5rem 0.75rem;
    text-align: center;
    position: relative;
}

.pricing-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.pricing-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.1875rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    color: white;
}

.pricing-badge.bg-danger {
    background: var(--danger) !important;
}

.pricing-badge.bg-success {
    background: var(--success) !important;
}

.pricing-body {
    padding: 0 1.5rem 1.5rem;
}

.price-display {
    text-align: center;
    margin-bottom: 0.75rem;
}

.price-display .currency {
    font-size: 1.25rem;
    vertical-align: top;
    color: var(--text-muted);
}

.price-display .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.price-display .period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    padding: 0.375rem 0;
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.pricing-features li i {
    margin-right: 0.625rem;
    font-size: 1rem;
}

.pricing-features li i.text-success {
    color: var(--success) !important;
}

.pricing-features li i.text-danger {
    color: var(--danger) !important;
}

.savings-highlight {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    border: 1px solid var(--border-color);
}

/* Savings Calculator */
.savings-calculator {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.savings-calculator h4 {
    font-size: 1rem;
    font-weight: 600;
}

.savings-result {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.result-item h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.result-item h5.text-success {
    color: var(--success) !important;
}

.result-item h5.text-primary {
    color: var(--text-primary) !important;
}

/* Comparison Table */
.comparison-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.comparison-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.comparison-table {
    background: var(--bg-primary);
    border-radius: var(--radius);
    box-shadow: none;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--primary);
    color: white;
    font-weight: 500;
    border: none;
    padding: 1rem;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-color: var(--border-light);
    font-size: 0.8125rem;
}

.table tbody tr:hover {
    background-color: var(--bg-secondary) !important;
}

.table tbody td .text-success,
.table tbody td.text-success {
    color: var(--success) !important;
}

.table tbody td .text-danger,
.table tbody td.text-danger {
    color: var(--danger) !important;
}

/* CTA Section */
.cta-section {
    background: var(--primary) !important;
    color: white;
    padding: 4rem 0;
}

.cta-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cta-section .lead {
    font-size: 0.9375rem;
    opacity: 0.8;
}

.cta-section .btn {
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    font-size: 0.875rem;
}

.cta-section .btn:hover {
    transform: none;
    box-shadow: none;
}

.cta-section .btn-light {
    background: white;
    color: var(--primary) !important;
}

.cta-section .btn-light:hover {
    background: var(--bg-secondary);
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
}

.footer h5,
.footer h6 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.15s ease;
}

.footer a:hover {
    color: white;
    transform: none;
}

.footer ul li {
    margin-bottom: 0.375rem;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.8125rem;
}

.social-links a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    text-align: center;
    line-height: 32px;
    transition: background 0.15s ease;
    font-size: 0.875rem;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: none;
}

/* Override Bootstrap badge colors */
.badge.bg-success { background: var(--bg-tertiary) !important; color: var(--text-secondary) !important; }
.badge.bg-info { background: var(--bg-tertiary) !important; color: var(--text-secondary) !important; }
.badge.bg-warning { background: var(--bg-tertiary) !important; color: var(--text-secondary) !important; }

/* Override Bootstrap text colors in hero */
.hero-stats .text-primary { color: var(--text-primary) !important; }
.hero-stats .text-success { color: var(--text-primary) !important; }
.hero-stats .text-info { color: var(--text-primary) !important; }

/* Override Bootstrap bg-light */
.bg-light {
    background-color: var(--bg-secondary) !important;
}

/* Input group override */
.input-group .input-group-text {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.input-group .form-control {
    border-color: var(--border-color);
    font-size: 0.875rem;
}

.input-group .form-control:focus {
    border-color: var(--text-secondary);
    box-shadow: none;
}

/* Scroll progress bar */
.scroll-progress {
    background: var(--accent) !important;
    height: 2px !important;
}

/* Social proof */
.social-proof {
    color: var(--text-muted) !important;
}

.social-proof .text-white-50 {
    color: var(--text-muted) !important;
}

.social-proof .text-white {
    color: var(--text-primary) !important;
}

/* Remove ALL animations and flashy effects */
.animate-fade-up,
.animate-fade-left,
.animate-fade-right {
    animation: none;
}

/* AOS override: content must never be hidden — use subtle fade only */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 0.4s ease-out !important;
}
[data-aos].aos-animate {
    opacity: 1 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats .row {
        text-align: center;
    }

    .hero-actions {
        text-align: center;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .browser-mockup {
        margin-top: 2rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }

    .pricing-card {
        margin-bottom: 1rem;
    }

    .price-display .amount {
        font-size: 2rem;
    }

    .comparison-table {
        font-size: 0.8125rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.625rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-stats h3 {
        font-size: 1.25rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon i {
        font-size: 1rem;
    }

    .price-display .amount {
        font-size: 1.75rem;
    }

    .savings-calculator {
        padding: 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print */
@media print {
    .navbar,
    .hero-section,
    .cta-section,
    .footer {
        display: none !important;
    }

    .features-section,
    .pricing-section,
    .comparison-section {
        page-break-inside: avoid;
    }
}
