:root {
    --primary: #a71c1c;
    --primary-dark: #7c1515;
    --primary-light: #e23c3c;
    --howitworks-accent: #a71c1c;
    --howitworks-heading: #a71c1c;
    --howitworks-bg: #f9fbfd;
}

body {
    background: #f5f6fa;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.hero-bg {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
}

.navbar {
    background: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 4px 24px 0 rgba(167, 28, 28, 0.08);
    border-radius: 1.5rem;
    backdrop-filter: blur(8px);
}

.navbar-brand span {
    color: #fff;
    letter-spacing: -1px;
}

.btn-primary,
.btn-primary:focus {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 12px #a71c1c33;
}

.btn-primary:hover,
.btn-primary:active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.badge-primary,
.badge.bg-primary {
    background: var(--primary) !important;
    color: #fff !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.13);
    border-radius: 2rem;
    box-shadow: 0 8px 32px 0 rgba(167, 28, 28, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(167, 28, 28, 0.08);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.usecase-card {
    border: 1px solid #ececec;
    border-radius: 1rem;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-link:hover {
    text-decoration: underline;
}

.hero-badge {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    border-radius: 1rem;
    box-shadow: 0 2px 8px #a71c1c22;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    display: inline-block;
}

.bg-glass-gradient {
    background: linear-gradient(90deg, #fff 60%, #fbeaea 100%);
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 2px 8px #a71c1c22;
}

.section-title {
    color: var(--primary);
    letter-spacing: -0.5px;
}

.contact-card {
    max-width: 500px;
}

.contact-link {
    color: var(--primary);
    text-decoration: underline;
}

.contact-link:hover {
    color: var(--primary-dark);
}

.contact-desc {
    color: #3a2323;
    opacity: 0.92;
}

.bg-footer {
    background: #fff;
    z-index: 2;
}

.copyright-text {
    color: var(--primary);
    font-weight: 600;
}

/* Hero Section */
.hero-section-min-height {
    min-height: 520px;
}

.hero-title {
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 2px 12px #a71c1c33;
}

.hero-lead {
    color: #fff;
    opacity: 0.85;
}

.hero-desc {
    color: #fff;
    opacity: 0.95;
}

.hero-card-inline {
    display: inline-block;
}

.hero-img {
    max-height: 100%;
    height: 100%;
    min-height: 340px;
    background: #fff;
    padding: 12px;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(167, 28, 28, 0.12);
    border: 2px solid #fff;
    object-fit: contain;
    width: 100%;
    display: flex;
    align-items: stretch;
}

.hero-overlay {
    pointer-events: none;
    background: radial-gradient(ellipse at 80% 10%, #a71c1c22 0%, transparent 70%), radial-gradient(ellipse at 10% 90%, #e23c3c22 0%, transparent 70%);
}

/* Sneat-style hero gradient */
.hero-bg-sneat {
    background: linear-gradient(90deg, #7367f0 0%, #9f8cff 100%);
    color: #fff;
    position: relative;
}

.hero-overlay-sneat {
    pointer-events: none;
    background: radial-gradient(ellipse at 80% 10%, #a71c1c22 0%, transparent 70%), radial-gradient(ellipse at 10% 90%, #e23c3c22 0%, transparent 70%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* About Section */
.about-section-bg {
    background: linear-gradient(90deg, #fff 60%, #fbeaea 100%);
}

.about-section-bg-sneat {
    background: #f8f9fa;
}

.about-card-max {
    max-width: 700px;
}

.about-icon {
    background: #fff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #a71c1c22;
}

.about-title {
    color: #a71c1c;
    letter-spacing: -0.5px;
}

.about-desc {
    color: #3a2323;
    opacity: 0.92;
}

/* Core Features & How It Works Section */
.section-bg {
    background: linear-gradient(90deg, #fff 60%, #fbeaea 100%);
}

.section-icon-bg {
    background: #fff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #a71c1c22;
}

.section-title {
    color: #a71c1c;
    letter-spacing: -0.5px;
}

.section-muted {
    color: #6c757d;
}

/* Remove inline icon color, use .step-icon */

/* Remove all inline paddings, use .p-4, .p-5, etc. from Bootstrap */

/* Responsive image */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* --- How It Works Timeline (Sneat + Custom Colors) --- */
.howitworks-section-bg {
    background: var(--howitworks-bg);
}

.howitworks-title {
    color: var(--howitworks-heading);
    letter-spacing: -0.5px;
}

.howitworks-subtitle {
    color: #5a5a7c;
    font-size: 1.15rem;
}

.howitworks-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a71c1c 0%, #a71c1c 100%);
    color: #fff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 2px 12px #a71c1c33;
    font-size: 2.2rem;
}

.howitworks-timeline-wrapper {
    /* max-width: 700px; */
    margin: 0 auto;
    position: relative;
}

.howitworks-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 0;
    width: 100%;
}

.howitworks-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--howitworks-accent);
    border-radius: 2px;
    z-index: 0;
}

.howitworks-timeline-step {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 2.5rem;
    z-index: 1;
}

.howitworks-timeline-step:last-child {
    margin-bottom: 0;
}

.howitworks-timeline-badge {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--howitworks-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px #a71c1c33;
    border: 4px solid #fff;
    position: relative;
    z-index: 2;
    margin-right: 1.5rem;
    margin-top: 0.2rem;
    margin-left: 1.5rem;
}

.howitworks-timeline-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1.5rem;
    box-shadow: 0 4px 32px 0 #a71c1c22;
    border: 1.5px solid #a71c1c22;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    min-width: 0;
    flex: 1 1 0;
    position: relative;
    transition: transform 0.18s, box-shadow 0.18s;
    z-index: 2;
}

.howitworks-timeline-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px 0 #a71c1c55, 0 0 0 4px #a71c1c22;
}

.howitworks-timeline-icon {
    font-size: 2.2rem;
    color: var(--howitworks-accent);
    background: #fbeaea;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px #a71c1c22;
}

/* Alternating timeline layout */
.howitworks-timeline-step {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 2.5rem;
    z-index: 1;
    width: 50%;
}

.howitworks-timeline-step.howitworks-timeline-step-left {
    left: 50%;
}

.howitworks-right {
    flex-direction: row-reverse;
}

.howitworks-right .howitworks-timeline-badge {
    margin-left: 1.5rem;
    margin-right: 0;
}

.howitworks-left {
    flex-direction: row;
}

.howitworks-left .howitworks-timeline-badge {
    margin-right: 1.5rem;
    margin-left: 0;
}

@media (max-width: 991.98px) {

    .howitworks-timeline-step,
    .howitworks-right,
    .howitworks-left {
        flex-direction: row !important;
    }

    .howitworks-timeline-badge {
        margin-right: 1rem;
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .howitworks-timeline {
        flex-direction: column;
    }

    .howitworks-timeline-step {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 2rem;
    }

    .howitworks-timeline::before {
        left: 20px;
        width: 2px;
        border-radius: 1px;
        background: repeating-linear-gradient(to bottom,
                var(--howitworks-accent),
                var(--howitworks-accent) 8px,
                transparent 8px,
                transparent 16px);
    }

    .howitworks-timeline-badge {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }

    .howitworks-timeline-card {
        padding: 1.2rem 0.8rem 0.8rem 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .howitworks-timeline-wrapper {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .howitworks-timeline-step {
        margin-bottom: 1.5rem;
    }
}

/* Feature card hover effect */
.feature-hover {
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-hover:hover {
    box-shadow: 0 8px 32px 0 rgba(115, 103, 240, 0.18), 0 2px 12px #a71c1c33;
    transform: translateY(-4px) scale(1.03);
}

.feature-hover .step-icon {
    transition: color 0.2s;
}

.feature-hover:hover .step-icon {
    color: #7c1515;
}

/* Step badges for How It Works */
.step-badge {
    display: inline-block;
    background: #7367f0;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px #7367f022;
}

.step-card {
    position: relative;
}

/* Use case icon backgrounds */
.usecase-icon {
    background: #f1f2f6;
    border-radius: 1rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 2px 8px #7367f022;
}

.usecase-bg {
    background: #f8f9fa;
}

/* Contact section */
.contact-bg {
    background: #f8f9fa;
}

.contact-info-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px 0 rgba(167, 28, 28, 0.08);
    min-height: 420px;
    border-left: 6px solid #a71c1c;
}

.contact-icon {
    background: #a71c1c;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px #a71c1c22;
    transition: background 0.2s, color 0.2s;
}

.contact-info-card a.contact-link {
    color: #a71c1c;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info-card a.contact-link:hover {
    color: #7c1515;
    text-decoration: underline;
}

.contact-social {
    transition: color 0.2s, transform 0.2s;
    color: #a71c1c !important;
}

.contact-social:hover {
    color: #7c1515 !important;
    transform: translateY(-2px) scale(1.1);
}

.contact-form {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px 0 rgba(167, 28, 28, 0.08);
    border-top: 6px solid #a71c1c;
}

.contact-form .form-control:focus {
    border-color: #a71c1c;
    box-shadow: 0 0 0 0.2rem rgba(167, 28, 28, 0.10);
}

.contact-form .btn-primary {
    background: #a71c1c;
    border-color: #a71c1c;
    box-shadow: 0 2px 12px #a71c1c33;
}

.contact-form .btn-primary:hover {
    background: #7c1515;
    border-color: #7c1515;
}

.feature-card,
.usecase-card {
    transition: transform 0.18s, box-shadow 0.18s;
}

.feature-card:hover,
.usecase-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px 0 #a71c1c55, 0 0 0 4px #a71c1c22;
}

/* Animate.css custom delays for up to 7s */
.animate__delay-6s {
    animation-delay: 6s !important;
}

.animate__delay-7s {
    animation-delay: 7s !important;
}

@media (min-width: 992px) {
    .hero-section-min-height {
        min-height: 520px;
    }

    .hero-img {
        height: 100%;
        min-height: 420px;
        max-height: 520px;
        display: flex;
        align-items: stretch;
    }

    .hero-card-inline {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .row.align-items-center.mt-4.flex-lg-row.flex-column-reverse {
        align-items: stretch !important;
    }
}