:root {
    --primary: #14B8A6;
    --primary-glow: rgba(20, 184, 166, 0.4);
    --secondary: #7C3AED;
    --secondary-glow: rgba(124, 58, 237, 0.4);
    --dark-bg: #0F3A7D;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #9CA3AF;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

body {
    background-color: #061121;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 80px;
    /* Space for fixed navbar */
}

/* Background Effects */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
    filter: blur(80px);
}

.bg-glow-2 {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    z-index: -1;
    filter: blur(80px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    background: rgba(6, 17, 33, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo i {
    color: var(--primary);
}

/* Hero Section */
/* Hero Section */
.hero {
    min-height: 700px;
    /* Avoid huge gaps on tall virtual viewports */
    display: flex;
    align-items: center;
    padding: 120px 5% 80px;
    background: linear-gradient(135deg, rgba(15, 58, 125, 0.2) 0%, transparent 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-headline {
    font-size: 3.5rem;
    /* Reduced from 4rem per user request */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #9CA3AF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.hero-visual img {
    width: 100%;
    max-width: 85%;
    /* Reduced size per user request */
    margin: 0 auto;
    display: block;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-visual:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Sections */
section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
}

/* Problem Cards */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* Professional 3D Card Layout */
.card {
    position: relative;
    background: transparent;
    /* Main background handled by ::after */
    padding: 2px;
    /* Defines border width */
    border-radius: 24px;
    z-index: 1;
    min-height: 340px;
    /* Fix cramped layout */
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    text-decoration: none;
    /* For when it's an anchor tag */
    color: inherit;
    cursor: pointer;
}

/* Liquid Light Border Stream */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(45deg,
            transparent 20%,
            var(--primary) 40%,
            var(--secondary) 60%,
            transparent 80%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background-size: 300% 300%;
    animation: liquid-border 8s ease infinite;
    opacity: 0.6;
}

/* Glass Surface Background (Inner) */
.card::after {
    content: "";
    position: absolute;
    inset: 1px;
    /* Just inside the border */
    border-radius: 23px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(20px);
    z-index: -1;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
    /* Inner depth */
}

/* Content Container */
.card-content {
    position: relative;
    z-index: 2;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    height: 100%;
    transform: translateZ(20px);
}

/* 3D Icon Container */
.icon-3d {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(20, 184, 166, 0.1);
    /* Inner glow */
    transform: translateZ(40px);
    /* Distinct pop-out */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.icon-3d svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.5));
    transition: all 0.3s ease;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Premium 3D Lift on Hover */
.card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow:
        0 30px 60px -10px rgba(0, 0, 0, 0.6),
        0 0 40px -10px rgba(20, 184, 166, 0.2);
}

.card:hover .icon-3d {
    transform: translateZ(60px) rotate(-5deg) scale(1.1);
    /* Floating independent movement */
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(255, 255, 255, 0.05));
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px var(--primary-glow);
}

.card:hover .icon-3d svg {
    filter: drop-shadow(0 0 15px var(--primary));
    transform: scale(1.1);
}

.card:hover::before {
    opacity: 1;
    animation-duration: 4s;
    /* Flow speeds up slightly */
    filter: blur(2px);
    /* Glowing edge */
}

@keyframes liquid-border {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Removed invalid keyframe */

/* Clear old anim */

/* Cleanup old span styles */
.card span {
    display: none;
}

@keyframes border-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
}

.card p {
    color: var(--text-muted);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.feature-item.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.feature-content h3 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.feature-visual img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* --- Comparison Table Section --- */
.comparison-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    overflow-x: auto;
    position: relative;
}

/* Glowing Border Animation for Container */
.comparison-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 40%, rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

th,
td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 30px;
    vertical-align: middle;
}

td {
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: color 0.3s;
}

/* Row Hover Effect */
tbody tr {
    transition: background 0.3s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

tbody tr:hover td {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Column Specifics */
.highlight-col {
    color: var(--primary) !important;
    text-align: center;
    position: relative;
    width: 30%;
}

.header-crown {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    color: #fbbf24;
    /* Gold */
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
    animation: rotate-crown 10s linear infinite;
}

@keyframes rotate-crown {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}


.highlight-cell {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.05), rgba(124, 58, 237, 0.05));
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
    text-align: center;
    position: relative;
}

/* First and Last Radius for Column Selection Look */
tbody tr:first-child .highlight-cell {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

tbody tr:last-child .highlight-cell {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom: none;
}

.check,
.cross {
    text-align: center;
    font-size: 1.5rem;
}

.check i {
    color: var(--primary);
    /* Teal Check */
    filter: drop-shadow(0 0 8px var(--primary-glow));
    width: 24px;
    height: 24px;
}

.cross i {
    color: #ef4444;
    /* Red Cross */
    opacity: 0.5;
    width: 24px;
    height: 24px;
}

/* Center Generic Tools Col */
th:nth-child(2),
td:nth-child(2) {
    text-align: center;
    color: #6b7280;
}

/* --- High-Tech Detailed Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.price-card {
    position: relative;
    background: #000;
    /* Deep black base */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 1;
}

/* Emerald Stream Border Animation -> Theme Stream */
.price-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    /* Border width */
    z-index: -2;
    background: conic-gradient(from 0deg,
            transparent 70%,
            var(--primary),
            /* Teal */
            var(--secondary)
            /* Purple */
        );
    animation: rotate-border 6s linear infinite;
    border-radius: 26px;
    opacity: 0;
    /* Hidden by default, visible on hover */
    transition: opacity 0.3s ease;
}

/* Main Card Background Layer */
.price-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: rgba(5, 5, 5, 0.95);
    /* Nearly solid black inside */
    border-radius: 23px;
    z-index: -1;
}

/* Hover Interaction */
.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
    border-color: transparent;
    /* Let anim show through */
}

.price-card:hover::before {
    opacity: 1;
}

/* Popular Card (Always Active) */
.price-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05), rgba(124, 58, 237, 0.05));
}

.price-card.popular::before {
    opacity: 0.6;
    /* Always visible for popular */
}

.price-card.popular:hover::before {
    opacity: 1;
    filter: brightness(1.2);
}

/* Badge */
.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px var(--primary-glow);
    z-index: 10;
}

/* Header & Typography */
.plan-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.plan-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sidebar Styles */
.sidebar-divider {
    margin-top: 15px;
    margin-bottom: 20px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #000;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 10px;
    box-shadow: 0 4px 15px var(--glow-primary);
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Crown Icon */
.crown-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    /* Purple for royalty */
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 25px;
}

.price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: lowercase;
}

/* Features List */
.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #d1d5db;
    /* Gray 300 */
    line-height: 1.5;
}

/* Features List Icons */
.plan-features li svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    /* Teal Checks */
    flex-shrink: 0;
    margin-top: 2px;
}

/* Buttons */
.btn-price-solid {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}

.btn-price-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--secondary-glow);
}

.btn-price-outline {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-price-outline:hover {
    border-color: var(--primary);
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary);
}

.contact-link {
    color: #fff !important;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    justify-content: center;
}

.contact-link svg {
    color: #fff !important;
    transition: transform 0.2s;
}

.contact-link:hover svg {
    transform: translateX(4px);
}

/* Light Theme Variables */
/* Modern Futuristic Light Theme */
[data-theme="light"] {
    --primary: #0F766E;
    /* Deep Teal for text/borders */
    --primary-glow: rgba(45, 212, 191, 0.4);
    /* Vibrant Cyan Glow */
    --secondary: #7C3AED;
    --secondary-glow: rgba(139, 92, 246, 0.4);
    /* Vibrant Purple Glow */
    --dark-bg: #F0F9FF;
    /* Very light cool blue tint */
    --card-bg: rgba(255, 255, 255, 0.65);
    /* Glassy */
    --text-main: #0F172A;
    /* Slate 900 */
    --text-muted: #475569;
    /* Slate 600 */
    --border: rgba(148, 163, 184, 0.2);
    --glass: rgba(255, 255, 255, 0.8);
    background-color: #F8FAFC;
    color: #0F172A;
}

body[data-theme="light"] {
    background: radial-gradient(circle at top center, #F8FAFC 0%, #EFF6FF 100%);
    background-attachment: fixed;
}

[data-theme="light"] .bg-glow {
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    opacity: 1;
    filter: blur(90px);
}

[data-theme="light"] .bg-glow-2 {
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 60%);
    opacity: 0.8;
    filter: blur(90px);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
}

[data-theme="light"] .card,
[data-theme="light"] .comparison-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-headline {
    background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- High-Tech Feature Visuals (Images) --- */
.feature-visual {
    flex: 1;
    position: relative;
    border-radius: 24px;
    /* Clean glass container for the "Screen" look */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    cursor: pointer;
}

/* --- Runnable Neon Border Visuals --- */
.feature-img-box {
    position: relative;
    border-radius: 20px;
    z-index: 1;
    overflow: hidden;
    padding: 2px;
    /* Thinner border */
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Removed outer box-shadow as requested */
    box-shadow: none;
    max-width: 420px;
    /* Small down size */
    width: 100%;
    margin: 0 auto;
    /* Center if container is wider */
    cursor: pointer;
}

/* spinning gradient border */
.feature-img-box::before {
    content: "";
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 90deg,
            #00f2fe 180deg,
            #7c3aed 270deg,
            transparent 360deg);
    animation: neon-border-spin 4s linear infinite;
    z-index: -2;
}

/* Inner Background */
.feature-img-box::after {
    content: "";
    position: absolute;
    inset: 2px;
    /* Matches padding */
    background: #0f172a;
    border-radius: 18px;
    z-index: -1;
}

@keyframes neon-border-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.feature-img-box img {
    border-radius: 18px;
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 2;
    position: relative;
    display: block;
    /* Removed zoom on hover to keep it fitted */
    transition: none;
}

.feature-img-box:hover img {
    transform: none;
}

/* Capsules (DSA/Bot) remain unchanged... */
.feature-visual div[style*="border-radius: 99px"] {
    position: relative;
    z-index: 10;
}

.feature-visual img {
    width: 90%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: relative;
}

/* 3D Tilt & Glow on Hover */
.feature-visual:hover {
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(20, 184, 166, 0.1);
    /* Inner Teal Glow */
    border-color: rgba(20, 184, 166, 0.3);
}

.feature-visual:hover img {
    transform: perspective(1000px) scale(1.05) translateY(-10px);
}

/* Runnable 'Scan' Effect - The "High Tech" Pulse */
.feature-visual::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(20, 184, 166, 0.05) 90deg,
            transparent 180deg);
    animation: radar-beam 8s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes radar-beam {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Specific styling for the 'Capsule' visuals (DSA/Bot) to keep them intact */
.feature-visual div[style*="border-radius: 99px"] {
    width: 100% !important;
    /* Ensure capsules stay wide */
    z-index: 5;
}

/* Icons inside visual */
.feature-visual i {
    width: 64px;
    height: 64px;
    color: var(--primary);
}

@media (max-width: 768px) {
    .feature-visual {
        min-height: 250px;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    /* Max Z-Index to ensure visibility */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* --- Mobile Navigation (Visible Always for "Toolbar" access) --- */
.mobile-menu-btn {
    display: none;
    /* Hidden on desktop by default */
    background: rgba(255, 255, 255, 0.05);
    /* Subtle dark glass background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Defined border */
    border-radius: 8px;
    /* Rounded corners */
    color: #fff;
    cursor: pointer;
    z-index: 2000;
    /* Ensure it's above everything */
    padding: 8px;
    /* Inner spacing */
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;

    /* Position in the absolute corner */
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.mobile-menu-btn i {
    width: 24px;
    height: 24px;
    /* Scaled down slightly to fit box */
    color: #cbd5e1;
    /* Silver/Grey icon color */
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex;
        /* Flex to center icon */
        margin-left: 16px;
    }

    /* ... rest of existing mobile styles ... */
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 12px;
}

.theme-toggle:hover {
    background: var(--card-bg);
}


/* --- New Refined Navbar Styles --- */
.nav-container {
    justify-content: unset;
    /* Override default space-between for custom layout */
    gap: 40px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Dropdowns */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.dropdown-trigger:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-trigger i {
    width: 16px;
    height: 16px;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #0f1623;
    /* Deep dark bg */
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    margin-top: 8px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 16px 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.dropdown-item i {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

/* Intermediate Breakpoint for Tablet/Small Laptop to keep Navbar visible */
@media (max-width: 1200px) {
    .nav-container {
        gap: 20px;
    }

    .nav-left {
        gap: 20px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

/* Hide menu on mobile / small tablets */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }
}

/* Responsive */
@media (max-width: 900px) {

    .nav-menu,
    .nav-right {
        display: none !important;
        /* Hide desktop nav and buttons on mobile */
    }

    .mobile-menu-btn {
        display: flex;
        /* Show Hamburger */
        margin-left: auto;
        /* Push to right */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        /* Center align hero content on mobile */
        gap: 30px;
        padding-top: 40px;
    }

    .hero-content {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero {
        min-height: auto;
        /* Remove 100vh constraint */
        padding-top: 100px;
        /* Adjust for fixed navbar */
        padding-bottom: 40px;
        height: auto;
    }

    .hero-visual {
        order: 2;
        margin-top: 20px;
    }

    .hero-headline {
        font-size: 2.8rem;
        /* Slightly smaller for mobile readability */
        line-height: 1.2;
    }

    .hero-subheadline {
        font-size: 1.1rem;
        max-width: 100%;
        padding: 0 10px;
    }

    .navbar {
        padding: 16px 5%;
        justify-content: space-between;
        /* Ensure logo and burger spread out */
    }
}

@media (max-width: 600px) {
    .hero-headline {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    section {
        padding: 60px 4%;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .feature-visual img {
        margin-top: 20px;
    }

    .problems-grid,
    .pricing-grid,
    .founders-grid {
        grid-template-columns: 1fr;
    }

    th,
    td {
        padding: 10px 5px;
        font-size: 0.9rem;
    }
}

/* FAQ Marquee Section */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scroll 30s linear infinite;
    padding-left: 24px;
    /* offset */
}

.marquee-track:hover {
    animation-play-state: paused;
}

.faq-card-scroll {
    width: 300px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.faq-card-scroll:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.5);
}

.faq-card-scroll h4 {
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-card-scroll p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* --- Founders Section --- */
#founders {
    position: relative;
    z-index: 10;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

/* Founder Card Container */
.founder-card {
    background: transparent;
    height: 400px;
    cursor: pointer;
    perspective: 1000px;
    position: relative;
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-10px);
}

/* Moving Border Glow for Card */
.founder-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    padding: 2px;
    background: conic-gradient(from var(--angle, 0deg), transparent 70%, var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 4s linear infinite;
    pointer-events: none;
}

.founder-card:hover::before {
    opacity: 1;
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

/* Inner Card Styling */
.founder-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.founder-card:hover .founder-inner {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px -5px var(--primary-glow);
}

/* Founder Front - Centering */
.founder-front {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 2;
}

/* 3D Photo Container */
/* 3D Photo Container */
.founder-img-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 800px;
    box-shadow: 0 0 50px -10px rgba(0, 0, 0, 0.5);
    animation: float-photo 6s ease-in-out infinite;
}

.founder-img-wrapper img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 5;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) inset;
    transform: translateZ(10px);
}

@keyframes float-photo {

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

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

/* Runnable 'Snake' Light - Inner Ring */
.founder-border-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, transparent 40%, var(--primary) 50%, #fff 55%, transparent 60%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    animation: spin 3s linear infinite;
    z-index: 4;
}

/* 3D Satellite Orbit - Outer Ring geometry */
.founder-border-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    animation: orbit-spin 6s linear infinite;
    z-index: 3;
}

/* The Satellite/Planet orbiting */
.founder-border-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    /* Offset to sit on the ring path */
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-glow), 0 0 20px var(--secondary);
    transform: translateY(-50%);
}

/* Second Satellite on opposite side */
.founder-border-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
    transform: translateY(-50%);
}

@keyframes orbit-spin {
    from {
        transform: rotateZ(0deg) rotateX(60deg);
    }

    to {
        transform: rotateZ(360deg) rotateX(60deg);
    }
}

.founder-back {
    display: none;
}

/* Removed back face */

/* Typography */
.founder-front h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.founder-front .role {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.founder-back h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.founder-back .detail {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.tap-hint {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Light Theme overrides for founders */
[data-theme="light"] .founder-front,
[data-theme="light"] .founder-back {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .founder-back {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(124, 58, 237, 0.05));
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- High-Tech Founder Modal Redesign --- */
.founder-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-modal.active {
    opacity: 1;
    visibility: visible;
}

.founder-content {
    width: 95%;
    max-width: 650px;
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(45, 212, 191, 0.2);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(20, 184, 166, 0.05);
    border-radius: 30px;
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    /* Hide scrollbar */
    scrollbar-width: none;
}

.founder-content::-webkit-scrollbar {
    display: none;
}

.founder-content.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Modal Banner with Tech Grid */
.modal-banner {
    height: 160px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, #0a1428 100%),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 212, 191, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    background: var(--danger);
    border-color: var(--danger);
    transform: rotate(90deg);
}

/* Profile Section */
.modal-profile-header {
    position: relative;
    padding: 0 40px;
    margin-top: -60px;
    /* Less pull up */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

/* Tech Ring Avatar */
.modal-profile-img {
    width: 120px;
    /* Smaller avatar */
    height: 120px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    padding: 4px;
    background: #0a1428;
    border: 2px solid rgba(45, 212, 191, 0.3);
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.2);
}

.modal-profile-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0f172a;
}

/* Animated Neon Ring */
.modal-profile-img::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    animation: simple-spin 3s linear infinite;
}

.modal-socials {
    display: flex;
    gap: 12px;
    padding-bottom: 5px;
}

.modal-social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s;
    text-decoration: none;
}

.modal-social-link:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-3px);
}

/* Modal Info Text */
.modal-info {
    padding: 0 40px 40px;
}

.modal-info h2 {
    font-size: 2rem;
    /* reduced from 2.5rem */
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-info .role {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Section Styling */
.modal-section-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section-title i {
    color: var(--secondary);
}

.modal-bio {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Tech Badges for Skills */
.modal-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    /* Center align skills systematically */
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    /* Fully rounded for cleaner pill look */
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: default;
    white-space: nowrap;
    /* Prevent tag from breaking into multiple lines */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.skill-tag:hover {
    border-color: var(--secondary);
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
    color: #fff;
}

@keyframes simple-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Adjustments for Modal */
@media (max-width: 600px) {
    .modal-profile-header {
        flex-direction: column;
        align-items: center;
        margin-top: -60px;
        gap: 20px;
        padding: 0 20px;
    }

    .modal-info {
        padding: 0 25px 30px;
        text-align: center;
    }

    .modal-info h2 {
        font-size: 2rem;
    }

    .modal-socials {
        justify-content: center;
    }

    .modal-section-title {
        justify-content: center;
    }

    .modal-skills {
        justify-content: center;
    }
}

/* --- Plan Selection Modal --- */
.plan-modal-content {
    background: #000;
    max-width: 500px;
    width: 90%;
    padding: 3px;
    /* Space for the border */
    position: relative;
    border-radius: 20px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* The Animated Electric Border container */
.modal-border-anim {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent 0%,
            var(--primary) 20%,
            transparent 40%,
            var(--secondary) 60%,
            transparent 80%,
            var(--primary) 100%);
    animation: modal-spin 4s linear infinite;
    z-index: 1;
}

/* Rough Edge Mask to make it look 'electric' or 'ripped' */
.plan-modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #000;
    margin: 3px;
    border-radius: 17px;
    /* Closing the border-radius for the modal mask */
}

.modal-inner {
    position: relative;
    z-index: 5;
    background: rgba(10, 10, 10, 0.95);
    padding: 40px;
    border-radius: 17px;
    color: #fff;
    text-align: center;
}

/* --- Features Section Typography & Layout --- */
.feature-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    /* Updated to Brand Gradient: Teal to Purple to White */
    background: linear-gradient(135deg, #fff 20%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.2;
    /* Removed heavy drop shadow for cleaner look */
    filter: drop-shadow(0 4px 20px rgba(20, 184, 166, 0.15));
}

.feature-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #cbd5e1;
    /* Lighter slate for better contrast on dark bg */
    font-weight: 400;
    max-width: 95%;
}

/* Removed the jarring "turn white" hover effect on text */
/* .feature-item:hover .feature-content h3 { ... removed ... } */

/* Base Visual Container (Cleaned up, no scanning radar) */
.feature-visual {
    flex: 1;
    position: relative;
    /* Removed the border/shadow from the container itself to focus on the img-box */
    background: transparent;
    border: none;
    box-shadow: none;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure no 'after' pseudo element creates a radar scan anymore */
.feature-visual::after {
    display: none;
}

/* Icons inside capsule visuals */
.feature-visual i {
    width: 64px;
    height: 64px;
    color: var(--primary);
}

/* --- Static Premium Border Visuals (No Spinning) --- */
.feature-img-box {
    position: relative;
    border-radius: 20px;
    z-index: 1;
    overflow: hidden;
    padding: 2px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Static Gradient Border */
.feature-img-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00f2fe 0%, #7c3aed 100%);
    z-index: -2;
}

/* Inner Background */
.feature-img-box::after {
    content: "";
    position: absolute;
    inset: 2px;
    /* Matches padding */
    background: #0f172a;
    /* Card Background */
    border-radius: 18px;
    z-index: -1;
}

/* Hover Effect: Subtle Lift + Glow (No spin) */
.feature-img-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.15);
    /* Soft Teal Glow */
}

.feature-img-box img {
    border-radius: 18px;
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 2;
    position: relative;
    display: block;
}

/* Capsules (DSA/Bot) - Ensure they stay above */
.feature-visual div[style*="border-radius: 99px"] {
    position: relative;
    z-index: 10;
}

/* --- Restoring Modal Styles --- */
#modal-plan-name {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.modal-features-list {
    text-align: left;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #cbd5e1;
}

.modal-feature-item svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.plan-badge {
    display: inline-block;
    background: var(--secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 0 15px var(--secondary-glow);
}

.modal-btn {
    font-size: 1.1rem;
    padding: 16px;
    box-shadow: 0 0 25px var(--primary-glow);
}

@keyframes modal-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Modal Open Animation */
.modal-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.modal-overlay.active .plan-modal-content {
    animation: modal-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modal-pop {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }

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

.modal-banner::after {
    /* Enhanced Overlay */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--dark-bg) 0%, transparent 100%);
    opacity: 1;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.close-modal-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Modal Header (Avatar + Info) */
.modal-header-section {
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -60px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

/* 3D Radar Scanner Effect for Modal Avatar */
.modal-avatar-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 100;
    /* Ensure it sits above the banner */
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: avatar-float 6s ease-in-out infinite;
}

@keyframes avatar-float {

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

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

/* Rotating Gradient Radar Sweep */
.modal-avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, transparent 50%, var(--primary), transparent 90%);
    animation: scan-spin 4s linear infinite;
    z-index: -1;
    filter: blur(4px);
}

/* Tech Orbit Ring */
.modal-avatar-wrapper::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px dashed rgba(20, 184, 166, 0.3);
    border-left-color: var(--secondary);
    border-right-color: transparent;
    animation: pulse-ring 8s linear infinite;
    z-index: -2;
}

.modal-avatar-wrapper img {
    width: 134px;
    height: 134px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--dark-bg);
    z-index: 2;
    position: relative;
}

@keyframes scan-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.05) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.6;
    }
}

.modal-socials {
    display: flex;
    gap: 12px;
    padding-bottom: 10px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-muted);
}

.social-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px var(--primary-glow);
    border-color: var(--primary);
}

/* Modal Body */
.modal-body {
    padding: 0 40px 40px;
}

.modal-body h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(to right, #fff, #9CA3AF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body .modal-role {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 30px;
    display: block;
}

.modal-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
    display: flex;
}

/* --- Universal Mobile/Drawer Menu Logic --- */
.nav-menu.active {
    position: fixed;
    top: 80px;
    /* Below navbar */
    left: 0;
    width: 100vw;
    /* Full Width */
    height: 100vh;
    /* Full Height */
    background: #020617;
    /* Solid Dark Background (Slate-950) */
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 100px;
    /* Extra bottom padding */
    gap: 0;
    z-index: 99999;
    /* Highest priority */
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: none !important;
    /* Ensure no hidden transform */
    opacity: 1 !important;
}

/* Ensure links are white and visible */
.nav-menu.active .nav-link,
.nav-menu.active .dropdown-trigger,
.nav-menu.active .dropdown-item {
    color: #fff !important;
    display: flex !important;
    width: 100%;
    padding: 16px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    align-items: center;
    gap: 12px;
}

/* Icons visible */
.nav-menu.active i,
.nav-menu.active svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    display: block;
}

/* Reveal dropdown contents */
.nav-menu.active .dropdown-content {
    position: static;
    display: block !important;
    /* Force show */
    background: transparent;
    border: none;
    padding-left: 10px;
    margin-top: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
}

/* Hide header in drawer to avoid clutter if desired, or keep it */
.nav-menu.active .dropdown-header {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
}

.nav-menu.active .chevron {
    display: none;
}

/* On Desktop (Standard State) - Keep existing behavior */
@media (min-width: 901px) {

    /* Only apply standard styles if NOT active. If active, the above .active rules override because of specificity/ordering or we ensure it. */
    /* Actually CSS ordering matters. I placed .nav-menu.active AFTER the media query in previous steps? No, I am adding it here. */
    /* To ensure desktop standard view is maintained when NOT active: */
    .nav-menu:not(.active) {
        /* Default Flex Row logic from earlier CSS */
        position: static;
        flex-direction: row;
        height: auto;
        background: transparent;
        padding: 0;
        border: none;

        /* To ensure desktop standard view is maintained when NOT active: */
        .nav-menu:not(.active) {
            /* Default Flex Row logic from earlier CSS */
            position: static;
            flex-direction: row;
            height: auto;
            background: transparent;
            padding: 0;
            border: none;
            overflow: visible;
        }
    }
}

/* --- Sidebar Menu (New Implementation) --- */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    /* Reset left */
    width: 300px;
    height: 100vh;
    background: #0f172a;
    z-index: 10000;
    transform: translateX(100%);
    /* Start off-screen right */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    /* Shadow on left */
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    /* Border on left */
    border-right: none;
}

.sidebar-menu.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.logo span {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.25rem;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
}

.close-sidebar:hover {
    color: #fff;
}

.sidebar-content {
    padding: 20px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-item i {
    width: 22px;
    height: 22px;
    stroke-width: 2px;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-item.active {
    background: rgba(20, 184, 166, 0.1);
    /* Primary Tint */
    color: var(--primary);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 12px 0;
}

/* Backdrop for Sidebar */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* --- Sidebar Light Mode Support --- */
[data-theme="light"] .sidebar-menu {
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #e2e8f0;
}

[data-theme="light"] .sidebar-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .close-sidebar {
    color: #64748b;
}

[data-theme="light"] .close-sidebar:hover {
    color: #0f172a;
}

[data-theme="light"] .sidebar-item {
    color: #64748b;
}

[data-theme="light"] .sidebar-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

[data-theme="light"] .sidebar-item.active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    border-color: rgba(20, 184, 166, 0.2);
}

[data-theme="light"] .sidebar-divider {
    background: #e2e8f0;
}

/* --- Global Light Mode Support --- */
[data-theme="light"] {
    --primary: #0d9488;
    /* Slightly darker teal for good contrast on white */
    --secondary: #7c3aed;
    --dark-bg: #ffffff;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --glass: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] body {
    background-color: #f8fafc;
    /* Light Slate Background */
    color: var(--text-main);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .nav-link {
    color: #475569;
}

[data-theme="light"] .nav-link:hover {
    color: var(--primary);
}

[data-theme="light"] .mobile-menu-btn {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-menu-btn i {
    color: #0f172a;
}

/* Light Mode Hero */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
}

[data-theme="light"] .hero-headline {
    background: linear-gradient(to right, #0f172a, #334155);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-subheadline {
    color: #64748b;
}

/* Light Mode Cards */
[data-theme="light"] .card {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card::after {
    background: #ffffff;
    /* White card bg */
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

[data-theme="light"] .card h3 {
    color: #0f172a;
}

[data-theme="light"] .card p {
    color: #64748b;
}

[data-theme="light"] .icon-3d {
    background: #f1f5f9;
    border-color: #e2e8f0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Light Mode Features */
[data-theme="light"] .feature-content h3 {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

[data-theme="light"] .feature-content p {
    color: #475569;
}

[data-theme="light"] .feature-img-box::after {
    background: #f8fafc;
}

/* Light Mode Comparison Table */
[data-theme="light"] .comparison-container {
    background: rgba(255, 255, 255, 0.9);
    border-color: #e2e8f0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] th {
    color: #0f172a;
}

[data-theme="light"] td {
    color: #475569;
    border-color: #e2e8f0;
}

[data-theme="light"] tbody tr:hover {
    background: #f8fafc;
}

[data-theme="light"] tbody tr:hover td {
    color: #0f172a;
    text-shadow: none;
}

/* Light Mode Pricing */
[data-theme="light"] .price-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .price-card::after {
    background: #ffffff;
}

[data-theme="light"] .plan-header h3,
[data-theme="light"] .price {
    color: #0f172a;
}

[data-theme="light"] .plan-features li {
    color: #475569;
}

[data-theme="light"] .btn-price-outline {
    color: #0f172a;
    border-color: #cbd5e1;
}

[data-theme="light"] .btn-price-outline:hover {
    background: rgba(13, 148, 136, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Light Mode Footer */
[data-theme="light"] footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    color: #0f172a;
}

/* =========================================
   FINAL MOBILE OVERRIDES
   Forcefully fix spacing issues on small screens
   ========================================= */
/* =========================================
   FINAL MOBILE OVERRIDES
   Forcefully fix spacing and Density
   ========================================= */
@media (max-width: 1024px) {

    /* Reset Height constraints to prevent blank spaces */
    html,
    body {
        height: auto !important;
        overflow-x: hidden;
    }

    body {
        padding-top: 80px;
        /* Keep navbar space */
    }

    /* Force Hero to maintain Desktop Layout (Side-by-Side) */
    .hero {
        min-height: unset !important;
        height: auto !important;
        padding-top: 40px !important;
        padding-bottom: 60px !important;
    }

    .hero-container {
        display: grid !important;
        grid-template-columns: 1.2fr 0.8fr !important;
        /* Keep proportion */
        gap: 15px !important;
        align-items: center !important;
    }

    .hero-content {
        text-align: left !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    .hero-headline {
        font-size: 1.5rem !important;
        /* Even smaller to be noticeable */
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }

    .hero-subheadline {
        font-size: 0.8rem !important;
        padding: 0 !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }

    .hero-visual img {
        max-width: 100% !important;
        /* Allow it to fill the smaller column */
        height: auto;
        display: block;
        box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2) !important;
    }

    .hero-ctas {
        justify-content: flex-start !important;
        width: 100%;
    }

    .hero-ctas .btn {
        width: auto !important;
        /* Don't stretch full width */
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }

    /* Ensure Image fits tightly */
    .hero-visual {
        margin-top: 0 !important;
        padding: 0 !important;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-visual img {
        max-width: 100%;
        height: auto;
        display: block;
        box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2) !important;
    }

    /* Reduce Section Padding generally */
    section {
        padding: 50px 15px !important;
    }

    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }

    /* --- High Density Mobile Grids (Laptop-like feel) --- */

    /* 2 Columns for Problems to mimic grid look */
    .problems-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .card {
        padding: 20px 15px !important;
        /* Smaller padding */
    }

    .card h3 {
        font-size: 1.1rem !important;
    }

    .card p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    /* 2 Columns for Founders */
    .founders-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .founder-front {
        padding: 15px !important;
    }

    .founder-img-wrapper {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 15px !important;
    }

    .founder-img-wrapper img {
        width: 90px !important;
        height: 90px !important;
    }

    .founder-front h3 {
        font-size: 1.1rem !important;
    }

    .founder-front .role {
        font-size: 0.75rem !important;
    }

    /* Ensure Nav collapses */
    .nav-menu,
    .nav-right {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        margin-left: auto !important;
    }

    .logo {
        flex-grow: 1;
    }
}

/* Very Small Screens - Fallback to 1 column if too tight */
@media (max-width: 380px) {

    .problems-grid,
    .founders-grid {
        grid-template-columns: 1fr !important;
    }
}