:root {
    /* Color Palette */
    --bg-white: #FFFFFF;
    --bg-offwhite: #F9FAFB;
    --text-primary: #0F1C3F;
    /* Vera Brand Dark Navy */
    /* Dark Charcoal base fallback */
    --text-secondary: #666666;
    --accent-blue: #2563EB;

    /* Nexuma Specific Colors */
    --border-light: rgba(0, 0, 0, 0.08);
    --border-inner: rgba(255, 255, 255, 0.8);
    --bg-card: #FFFFFF;
    --footer-bg: #1C1C1C;
    --footer-text: #FFFFFF;

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Nexuma Shadows (Complex & Layered) */
    --shadow-soft-float: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 12px 24px -4px rgba(0, 0, 0, 0.04);
    --shadow-large-float: 0 20px 40px -8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-btn-primary: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-nav: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);

    /* Radii */
    --radius-pill: 9999px;
    --radius-card: 32px;
    --radius-card-inner: 24px;
    --radius-device: 40px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Typography Scale */
h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
}

p.subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Pill Navigation */
.nav-wrapper {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through outside the pill */
}

.navbar {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 12px 24px 12px 16px;
    display: flex;
    align-items: center;
    gap: 48px;
    box-shadow: var(--shadow-nav);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-white);
    box-shadow: var(--shadow-btn-primary);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-primary);
    border-color: var(--border-light);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background-color: var(--bg-offwhite);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-2px) scale(1.02);
}

/* Sections */
.section {
    padding: 120px 0;
    /* Reduced from 240px for tighter pacing */
    position: relative;
}

.section-tint {
    background-color: var(--bg-white);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    /* Reduced to balance with new cards */
    padding-bottom: 200px;
    /* Space for the floating cards to break out slightly */
    text-align: center;
    background: radial-gradient(circle at 50% -20%, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease forwards;
}

.hero p.subtitle {
    /* Specific targeting to not conflict with global subtitle */
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 48px;
    animation: fadeUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    animation: fadeUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

/* Hero View Floating UI Cards */
.hero-glass-wrapper {
    position: relative;
    max-width: 1200px;
    height: 320px;
    /* Stage height for absolute positioned elements */
    margin: 0 auto;
    margin-top: 120px;
}

.glass-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 100px;
    /* Pill shape */
    padding: 12px 24px 12px 12px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.05);
    /* Soft, deep drop shadow */
    animation: float-gentle 6s ease-in-out infinite;
    opacity: 0;
}

/* Staggered load animations & Wider Positioning */
.gc-1 {
    animation: float-gentle 6s ease-in-out infinite, fadeUpGlass 0.8s ease 0.3s forwards;
    left: 12%;
    /* Pulling in from 2% */
    top: -50px;
    /* Pushing higher */
    z-index: 3;
}

.gc-2 {
    animation: float-gentle 7s ease-in-out infinite 1s, fadeUpGlass 0.8s ease 0.5s forwards;
    right: 15%;
    /* Pulling in from 5% */
    top: -70px;
    /* Pushing higher */
    z-index: 2;
}

.gc-3 {
    animation: float-gentle 6.5s ease-in-out infinite 0.5s, fadeUpGlass 0.8s ease 0.7s forwards;
    left: 22%;
    top: 180px;
    /* Pushing lower */
    z-index: 4;
}

.gc-4 {
    animation: float-gentle 5.5s ease-in-out infinite 0.2s, fadeUpGlass 0.8s ease 0.4s forwards;
    right: 32%;
    /* Pulling deeper in */
    top: 210px;
    /* Pushing lower */
    z-index: 1;
}

.gc-5 {
    animation: float-gentle 6.2s ease-in-out infinite 0.8s, fadeUpGlass 0.8s ease 0.6s forwards;
    left: 6%;
    /* Pulling in from -8% */
    top: 60px;
    z-index: 5;
}

.gc-6 {
    animation: float-gentle 5.8s ease-in-out infinite 1.2s, fadeUpGlass 0.8s ease 0.8s forwards;
    right: 8%;
    /* Pulling in from -2% */
    top: 100px;
    z-index: 6;
}

.gc-7 {
    animation: float-gentle 7.5s ease-in-out infinite 0.4s, fadeUpGlass 0.8s ease 0.9s forwards;
    left: 50%;
    transform: translateX(-50%);
    /* Center piece */
    top: 70px;
    z-index: 7;
}

.gc-8 {
    animation: float-gentle 5s ease-in-out infinite 0.7s, fadeUpGlass 0.8s ease 1s forwards;
    left: 36%;
    /* Moved slightly */
    top: -40px;
    z-index: 2;
}

/* Size Adjustments */
.gc-small {
    padding: 8px 16px 8px 8px;
    gap: 12px;
}

.gc-medium {
    padding: 10px 20px 10px 10px;
    gap: 14px;
}

.gc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.gc-icon i {
    width: 20px;
    height: 20px;
}

.navy-icon {
    background: #0F172A;
    color: white;
}

.green-icon {
    background: #064E3B;
    color: white;
}

.red-icon {
    background: #FEE2E2;
    color: #DC2626;
}

/* Softer background for red icon */

.gc-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gc-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.gc-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.gc-value.positive {
    color: #059669;
}

.gc-value.negative {
    color: #DC2626;
}

@keyframes fadeUpGlass {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        /* The end state needs to be pure, without conflicting with the float animation which will take over */
    }
}

@keyframes float-gentle {

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

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

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-top: 64px;
}

/* Security Grid (Transparency Section) */
.security-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .security-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.security-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.security-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #EFF6FF;
    /* Soft Blue background */
    color: #2563EB;
    /* Vibrant "Safety Blue" */
    margin-bottom: 24px;
}

.security-icon i {
    width: 28px;
    height: 28px;
}

.security-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.security-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 48px;
    box-shadow: var(--shadow-soft-float);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large-float);
}

/* Span Classes */
.span-12 {
    grid-column: span 12;
}

.span-8 {
    grid-column: span 8;
}

.span-7 {
    grid-column: span 7;
}

.span-6 {
    grid-column: span 6;
}

.span-5 {
    grid-column: span 5;
}

.span-4 {
    grid-column: span 4;
}

/* Bento Media Blocks */
.bento-card-media {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex: 1;
}

.bento-device-cut {
    width: 100%;
    max-width: 320px;
    margin-bottom: 0px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft-float);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.bento-card:hover .bento-device-cut {
    transform: translateY(-5px);
}

.bento-device-cut img {
    width: 100%;
    display: block;
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-offwhite);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.bento-desc {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* Specific Bento Layout Adjustments */
.split-content {
    display: flex;
    gap: 48px;
    align-items: center;
    height: 100%;
}

.split-text {
    flex: 1;
}

.split-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    height: 100%;
}

.split-visual .bento-device-cut {
    position: relative;
    max-width: 280px;
    align-self: center;
}

/* Value Props */
.value-list {
    list-style: none;
    margin-top: 32px;
}

.value-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 1.125rem;
    font-weight: 500;
}

.value-check {
    width: 24px;
    height: 24px;
    background: var(--text-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.problem-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card-inner);
    padding: 40px;
    box-shadow: var(--shadow-soft-float);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large-float);
}

.problem-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-offwhite);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.problem-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 48px;
    box-shadow: var(--shadow-soft-float);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.premium-plan {
    border: 2px solid var(--text-primary);
    box-shadow: var(--shadow-large-float);
    transform: scale(1.02);
}

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

.plan-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.plan-header .price {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.plan-header .price span {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-header p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.plan-btn {
    width: 100%;
}

.plan-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plan-features.two-column ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 16px;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
    font-size: 1.0625rem;
    line-height: 1.4;
    text-align: left;
}

.plan-features li i {
    color: var(--text-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-features li.disabled {
    color: var(--text-secondary);
    opacity: 0.6;
}

.plan-features li.disabled i {
    color: var(--text-secondary);
}

/* About Gallery */
.about-gallery {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-card-inner);
    overflow: hidden;
    box-shadow: var(--shadow-soft-float);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item.large img {
    height: 500px;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-caption {
    padding: 24px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
}

.gallery-caption h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.gallery-caption p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 120px 0;
    background-color: var(--bg-white);
}

/* Footer (Nexuma Wrapped Style) */
.footer-wrapper {
    padding: 0 24px 24px 24px;
    background-color: var(--bg-white);
}

.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    border-radius: 32px;
    padding: 80px 64px 40px 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 80px;
}

.footer-brand .logo {
    color: var(--footer-text);
    margin-bottom: 24px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 24px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .span-7,
    .span-5,
    .span-8,
    .span-4 {
        grid-column: span 12;
    }

    .split-content {
        flex-direction: column;
    }

    .split-visual {
        min-height: 400px;
        width: 100%;
        border-top: 1px solid var(--border-light);
        margin-top: 40px;
    }
}

/* --- Interactive Feature Tabs --- */
.interactive-features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .interactive-features-wrapper {
        grid-template-columns: 1fr;
    }
}

.feature-tabs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-bottom: 300px;
    /* Extra padding so the sticky scroll feels longer */
}

.feature-tab-item {
    padding: 24px;
    border-radius: var(--radius-card-inner);
    background: transparent;
    border: 1px solid transparent;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.feature-tab-item:hover {
    opacity: 0.8;
}

.feature-tab-item.active {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft-float);
    opacity: 1;
}

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

.tab-theme-navy {
    background-color: #0F172A;
    color: white;
}

.tab-theme-white {
    background-color: #F9FAFB;
    color: #0F172A;
    border: 1px solid #E5E7EB;
}

.tab-theme-green {
    background-color: #064E3B;
    color: white;
}

.tab-theme-red {
    background-color: #7F1D1D;
    color: white;
}

.theme-blue {
    background-color: #2563EB;
    /* Vibrant Blue */
    color: white;
}

.theme-blue .bento-title,
.theme-blue .bento-desc {
    color: white;
}

.theme-blue .bento-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
}

.theme-blue .bento-device-cut {
    border-color: rgba(255, 255, 255, 0.1);
}

.tab-theme-blue {
    background-color: #2563EB;
    color: white;
}

.feature-tab-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-tab-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
}

.feature-tab-item.active .feature-tab-desc {
    max-height: 200px;
    margin-top: 8px;
}

.feature-visual-panel {
    position: sticky;
    top: 120px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-mockup-layer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(24px);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
}

.feature-mockup-layer.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.feature-mockup-layer img {
    height: 600px;
    object-fit: contain;
}

/* Mobile Elements Hidden on Desktop */
.mobile-app-header,
.mobile-menu-overlay,
.mobile-bottom-bar,
.mobile-feature-img {
    display: none;
}

@media (max-width: 768px) {
    .span-6 {
        grid-column: span 12;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 8vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Hide ONLY gc-3, gc-4, gc-6 on mobile to reduce clutter */
    .gc-3, .gc-4, .gc-6 {
        display: none !important;
    }
    
    /* Keep 5 cards: gc-1, gc-2, gc-5, gc-7, gc-8 */
    .hero-glass-wrapper {
        margin-top: 32px;
        height: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding-bottom: 32px;
    }
    
    .hero-glass-wrapper .glass-card {
        position: relative !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        max-width: 90vw;
    }

    /* Scatter them safely using margins so they never collide */
    .gc-1 { margin-left: 0; } /* Center */
    .gc-8 { align-self: flex-start; margin-left: 5%; transform: scale(0.85) !important; transform-origin: left center !important; } 
    .gc-2 { align-self: flex-end; margin-right: 5%; transform: scale(0.9) !important; transform-origin: right center !important; } 
    .gc-7 { align-self: flex-start; margin-left: 10%; transform: scale(0.9) !important; transform-origin: left center !important; } 
    .gc-5 { align-self: flex-end; margin-right: 10%; transform: scale(0.9) !important; transform-origin: right center !important; }


    .problem-grid,
    .pricing-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .plan-features.two-column ul {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .navbar {
        width: calc(100% - 32px);
        justify-content: space-between;
        gap: 16px;
        margin: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer {
        padding: 48px 32px 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    /* --- NATIVE APP MOBILE STYLES --- */
    body {
        padding-bottom: 90px; /* Space for the bottom bar */
    }

    .desktop-nav {
        display: none !important;
    }

    /* Header */
    .mobile-app-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-light);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
    }

    .mobile-logo-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-logo {
        height: 28px;
        width: auto;
    }

    .mobile-logo-text {
        font-weight: 700;
        font-size: 1.125rem;
        color: var(--text-primary);
    }

    .mobile-menu-btn, .mobile-close-btn {
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        margin: -8px; /* Expand tap target */
    }

    /* Full Screen Menu */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: var(--bg-white);
        z-index: 2000;
        display: flex;
        flex-direction: column;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        visibility: hidden;
    }

    .mobile-menu-overlay.active {
        transform: translateY(0);
        visibility: visible;
    }

    .mobile-menu-header {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        border-bottom: 1px solid var(--border-light);
    }

    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        padding: 24px 20px;
        gap: 12px;
    }

    .mobile-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        background: var(--bg-offwhite);
        border-radius: 16px;
        text-decoration: none;
        color: var(--text-primary);
        font-weight: 600;
        font-size: 1.125rem;
        transition: background 0.2s;
    }

    .mobile-link i {
        color: var(--text-secondary);
        width: 20px;
        height: 20px;
    }

    .mobile-link:active {
        background: var(--border-light);
    }

    /* Sticky Bottom Bar */
    .mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 16px 20px 24px 20px; /* Extra padding for home indicator */
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-top: 1px solid rgba(0,0,0,0.05);
        z-index: 1000;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
    }

    .mobile-cta-btn {
        width: 100%;
        height: 54px; /* Taller, premium feel */
        border-radius: 16px; /* Squircle style */
        font-size: 1.0625rem;
        box-shadow: 0 8px 16px rgba(15, 23, 63, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    }

    /* Swipeable Carousels (Replaces Grids) */
    .problem-grid,
    .gallery-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 24px; /* Space for scrollbar */
        margin: 0 -20px; /* Bleed to edges */
        padding-left: 20px;
        padding-right: 20px;
        scrollbar-width: none; /* Firefox */
    }

    .problem-grid::-webkit-scrollbar,
    .gallery-grid::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }

    .problem-card,
    .gallery-item {
        flex: 0 0 85%; /* Cards take up 85% of screen width, peeking the next one */
        scroll-snap-align: center;
    }

    /* Interactive Features Tabs to Swipeable Cards */
    .interactive-features-wrapper {
        display: block;
    }

    .feature-tabs-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 24px;
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
        scrollbar-width: none;
    }

    .feature-tabs-list::-webkit-scrollbar {
        display: none;
    }

    .feature-tab-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
        opacity: 1 !important; /* Always visible on mobile swipe */
        padding: 24px !important; /* Full padding */
        background: var(--bg-card) !important;
        border: 1px solid var(--border-light) !important;
        border-radius: 24px !important;
        box-shadow: var(--shadow-soft-float) !important;
        display: flex;
        flex-direction: column;
    }

    .feature-tab-item.active {
        box-shadow: none !important;
        border-color: transparent !important;
    }

    /* Mobile Text Container for Feature Tabs */
    .mobile-feature-text {
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .feature-tab-desc {
        max-height: none !important;
        margin-top: 12px;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .mobile-feature-img {
        display: block !important; 
        width: 100%; 
        max-height: 320px; /* Keep it contained so it doesn't blow up the page height */
        margin: 24px auto 0 auto; 
        object-fit: contain; /* NEVER CROP - show the full app interface */
        border-radius: 12px;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    /* Hide the complex sticky visual panel on mobile since context is lost */
    .feature-visual-panel {
        display: none !important;
    }
}
