/* ========================================
   DriveGuard V3 - Bold Gradient Theme
   ======================================== */

:root {
    --primary: #012C50;
    --primary-light: #034175;
    --secondary: #F93803;
    --accent: #F93803;
    --success: #F93803;
    --dark: #F8FAFC;
    --dark-card: #FFFFFF;
    --text: #012C50;
    --text-muted: #4A6580;
    --gradient-1: linear-gradient(135deg, #012C50 0%, #F93803 90%);
    --gradient-2: linear-gradient(135deg, #012C50 0%, #034175 90%);
    --gradient-3: linear-gradient(135deg, #F93803 0%, #E03A0A 90%);
    --glass: #FFFFFF;
    --glass-border: rgba(1, 44, 80, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

.brand-font {
    font-family: 'Orbitron', sans-serif !important;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text) !important;
}

.btn-cta {
    background: var(--gradient-1);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: 0.3s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(1, 44, 80, 0.3);
    color: white;
}

.navbar-toggler {
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation: float1 15s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation: float2 12s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 40%;
    animation: float3 10s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, 50px) scale(1.1);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -40px) scale(1.05);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }
}

/* Road Animation */
.road-wrapper {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 80px;
    transform: translateX(-50%);
    opacity: 0.15;
}

.road-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(1, 44, 80, 0.05) 20%, rgba(1, 44, 80, 0.1) 50%, rgba(1, 44, 80, 0.05) 80%, transparent);
}

.dashed-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 6px;
    transform: translateX(-50%);
}

.dashed-line span {
    position: absolute;
    left: 0;
    width: 6px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(249, 56, 3, 0.5);
    animation: roadScroll 2s linear infinite;
    opacity: 0;
}

.dashed-line span:nth-child(1) {
    animation-delay: 0s;
}

.dashed-line span:nth-child(2) {
    animation-delay: 0.25s;
}

.dashed-line span:nth-child(3) {
    animation-delay: 0.5s;
}

.dashed-line span:nth-child(4) {
    animation-delay: 0.75s;
}

.dashed-line span:nth-child(5) {
    animation-delay: 1.0s;
}

.dashed-line span:nth-child(6) {
    animation-delay: 1.25s;
}

.dashed-line span:nth-child(7) {
    animation-delay: 1.5s;
}

.dashed-line span:nth-child(8) {
    animation-delay: 1.75s;
}

@keyframes roadScroll {
    0% {
        top: -80px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.pill-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 0.9rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(1, 44, 80, 0.3);
}

.btn-glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 0.9rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-glass:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

/* Hero Metrics */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.metric {
    text-align: center;
}

.metric strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.main-card {
    width: 280px;
    animation: cardFloat 4s ease-in-out infinite;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.active {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.card-body {
    padding: 2rem;
    text-align: center;
}

.shield-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 30px rgba(249, 56, 3, 0.25);
}

.card-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seat-status {
    display: flex;
    gap: 0.5rem;
}

.seat {
    width: 32px;
    height: 32px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.seat.active {
    background: rgba(249, 56, 3, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.start-btn {
    background: var(--gradient-2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.floating-badge i {
    color: var(--primary-light);
}

.badge-1 {
    top: 10%;
    right: 5%;
    animation: badgeFloat 3s ease-in-out infinite;
}

.badge-2 {
    bottom: 15%;
    left: 5%;
    animation: badgeFloat 3.5s ease-in-out infinite reverse;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   Sections Common
   ======================================== */
section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.tag {
    display: inline-block;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ========================================
   Product Section
   ======================================== */
.product-section {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-card) 100%);
}

.product-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.product-card.highlight {
    border-color: var(--primary);
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.05), var(--glass));
}

.ribbon {
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--gradient-1);
    color: white;
    padding: 0.25rem 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.gradient-1 {
    background: var(--gradient-1);
}

.gradient-2 {
    background: var(--gradient-2);
}

.gradient-3 {
    background: var(--gradient-3);
}

.product-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    background: var(--dark-card);
}

.feature-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    padding: 2rem;
}

.screen-mockup {
    width: 250px;
    height: 350px;
    background: #F8FAFC;
    border-radius: 24px;
    border: 3px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-content {
    text-align: center;
}

.app-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.status-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
}

.status-ring.active {
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 30px rgba(249, 56, 3, 0.15);
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(249, 56, 3, 0.15);
    }

    50% {
        box-shadow: 0 0 40px rgba(249, 56, 3, 0.5);
    }
}

.status-label {
    font-weight: 600;
    color: var(--success);
}

.feature-content .tag {
    margin-bottom: 1rem;
}

.feature-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-content>p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.check {
    width: 28px;
    height: 28px;
    background: var(--gradient-2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.feature-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   Partners Section
   ======================================== */
.partners-section {
    background: var(--dark);
}

.partner-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: 0.4s;
}

.partner-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.partner-logo {
    margin-bottom: 1rem;
}

.partner-logo img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    filter: none;
    transition: 0.3s;
}

.partner-card:hover .partner-logo img {
    filter: none;
}

.partner-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(1, 44, 80, 0.08);
    border: 1px solid rgba(1, 44, 80, 0.15);
    color: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: var(--dark-card);
    padding: 4rem 0;
}

.cta-card {
    background: var(--gradient-1);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.cta-content p {
    opacity: 0.9;
    margin: 0;
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 0.9rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    transition: 0.3s;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--dark);
    border-top: 1px solid var(--glass-border);
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

footer>.container>.row>div>p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--gradient-1);
    border-color: transparent;
}

footer h6 {
    font-weight: 600;
    margin-bottom: 1.25rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

footer ul a:hover {
    color: var(--text);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.contact-list i {
    color: var(--primary-light);
}

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

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

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

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991.98px) {
    .road-wrapper {
        display: none;
    }

    .navbar-collapse {
        background: #FFFFFF;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        padding: 1rem;
        margin-top: 1rem;
        border: 1px solid var(--glass-border);
    }

    .hero-visual {
        margin-top: 3rem;
        min-height: 350px;
    }

    .floating-badge {
        display: none;
    }

    .cta-card {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .cta-group {
        flex-direction: column;
    }

    .cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-metrics {
        justify-content: center;
    }

    .divider {
        display: none;
    }

    .metric {
        flex: 1 1 30%;
    }

    .main-card {
        width: 260px;
    }

    section {
        padding: 4rem 0;
    }

    .cta-card {
        padding: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .main-card {
        width: 240px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }
}

/* Copied Visual from index.html */
.flagship-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.flagship-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 56, 3, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: flagshipPulse 4s ease-in-out infinite;
}

@keyframes flagshipPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.flagship-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    /* light mode shadow */
}

.flagship-seatbelt-icon {
    width: 120px;
    height: 120px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 20px 40px rgba(1, 44, 80, 0.2);
    animation: flagshipIconFloat 3s ease-in-out infinite;
}

@keyframes flagshipIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.flagship-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(249, 56, 3, 0.1);
    border: 1px solid rgba(249, 56, 3, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
}

.flagship-status-indicator.active {
    color: var(--success);
}

.flagship-status-indicator.active i {
    animation: flagshipCheckPulse 2s ease-in-out infinite;
}

@keyframes flagshipCheckPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}