/* Kevala - Marketing Website Styles */

:root {
    --primary: #0E7C6B;
    --primary-dark: #0A5F53;
    --primary-light: #2A9A88;
    --secondary: #7a7268;
    --success: #5a8a5c;
    --warning: #c4943a;
    --danger: #b84c3c;
    --dark: #2c2825;
    --light: #faf8f5;
    --border: #e8e3dd;
    --text: #2c2825;
    --text-muted: #a39e96;
    --radius: 10px;
    --radius-sm: 6px;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    font-feature-settings: 'cv01', 'cv02';
}

/* Typography */
.text-gradient {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    background: none;
}

/* Navigation */
.navbar {
    background: rgba(44, 40, 37, 0.96);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(44, 40, 37, 0.12);
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

/* Hero Section */
.hero-section {
    background: var(--light);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    padding-top: 80px;
    min-height: 100vh;
    overflow: hidden;
}

.hero-image-wrapper {
    position: relative;
}

.dashboard-preview {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(44, 40, 37, 0.1);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.preview-header {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.preview-dots span:first-child { background: var(--danger); }
.preview-dots span:nth-child(2) { background: var(--warning); }
.preview-dots span:last-child { background: var(--success); }

.preview-title {
    font-size: 0.8125rem;
    color: var(--secondary);
    font-weight: 500;
}

.preview-content {
    padding: 24px;
}

.preview-stat-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.preview-stat {
    flex: 1;
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
}

.preview-stat.green { background: rgba(90, 138, 92, 0.1); }
.preview-stat.blue { background: rgba(14, 124, 107, 0.08); }
.preview-stat.orange { background: rgba(196, 148, 58, 0.1); }

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--secondary);
}

.preview-frameworks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.framework-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.framework-bar span {
    font-size: 0.875rem;
    font-weight: 500;
    width: 80px;
    color: var(--secondary);
}

.framework-bar .progress {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

.framework-bar .progress-bar {
    border-radius: 4px;
}

/* Trust Badges */
.trust-badge {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: none;
}

/* Sections */
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Problem Cards */
.problem-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 32px;
    height: 100%;
    box-shadow: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.problem-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 40, 37, 0.08);
}

.problem-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    margin-bottom: 24px;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 32px;
    height: 100%;
    transition: all 0.2s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: white;
    margin-bottom: 24px;
}

.feature-card h4 {
    margin-bottom: 16px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.feature-list li i {
    color: var(--success);
}

/* Brand-tinted soft badge used on Technical Edge tech-spec lists */
.badge.bg-brand-subtle {
    background-color: rgba(14, 124, 107, 0.10) !important;
    color: var(--primary-dark) !important;
    font-weight: 500;
}

/* Technical Section */
.tech-spec h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Code Preview */
.code-preview {
    background: var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(44, 40, 37, 0.15);
}

.code-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dot.red { background: var(--danger); }
.code-dot.yellow { background: var(--warning); }
.code-dot.green { background: var(--success); }

.code-title {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-left: 12px;
}

.code-content {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
}

.code-content code {
    color: #e2e0dc;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
}

/* Framework Cards */
.framework-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 32px;
    height: 100%;
    box-shadow: none;
    transition: all 0.2s ease;
}

.framework-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 124, 107, 0.1);
}

.framework-card.featured {
    border-color: var(--primary);
    background: rgba(14, 124, 107, 0.03);
}

.framework-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.framework-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.framework-domains {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.domain-tag {
    background: var(--light);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: none;
}

.comparison-table th,
.comparison-table td {
    padding: 20px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--secondary);
}

.comparison-table th.highlight {
    background: var(--primary);
    color: white;
}

.comparison-table td.highlight {
    background: rgba(14, 124, 107, 0.04);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table i {
    font-size: 1.25rem;
}

/* Steps */
.step-card {
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 40px 32px;
    height: 100%;
    box-shadow: none;
    position: relative;
    transition: all 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 40, 37, 0.08);
}

.pricing-card.featured {
    border-color: var(--primary);
    border-width: 2px;
}

.pricing-card.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(14, 124, 107, 0.12);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h4 {
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price .currency {
    font-size: 1.5rem;
    color: var(--secondary);
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
}

.price .period {
    font-size: 1rem;
    color: var(--secondary);
}

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

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--success);
    font-size: 1.1rem;
}

.pricing-features li.disabled {
    color: var(--text-muted);
}

.pricing-features li.disabled i {
    color: var(--border);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 124, 107, 0.25);
}

.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-dark {
    border: 1.5px solid var(--dark);
    color: var(--dark);
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.btn-outline-light {
    border: 1.5px solid white;
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: white !important;
}

/* CTA Section - override bg-primary */
.bg-primary {
    background-color: var(--primary) !important;
}

/* Badge overrides for marketing site */
.badge.bg-primary {
    background-color: var(--primary) !important;
}

/* Dark sections */
.bg-dark {
    background-color: var(--dark) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

/* Text colors */
.text-primary {
    color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-section .row {
        min-height: auto;
        padding: 40px 0;
    }

    .dashboard-preview {
        transform: none;
        margin-top: 40px;
    }

    .py-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .preview-stat-row {
        flex-direction: column;
    }

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

    .comparison-table th,
    .comparison-table td {
        padding: 12px 16px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1,
.hero-section p,
.hero-section .btn {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-section p { animation-delay: 0.15s; }
.hero-section .btn { animation-delay: 0.3s; }

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Screenshot Gallery */
.screenshot-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.screenshot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(44, 40, 37, 0.1);
}

.screenshot-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--light);
}

.screenshot-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.screenshot-img {
    width: 100%;
    display: block;
}

/* Language Switcher */
