:root {
    /* Semantic Variables - No color names used directly in definitions where possible */
    --app-primary: var(--primary);
    /* Inherit from global */
    --app-surface: #ffffff;
    --app-surface-dim: #f8fafc;
    --app-surface-dark: #0f172a;
    --app-glass: rgba(255, 255, 255, 0.7);
    --app-border: rgba(0, 0, 0, 0.08);
    --app-border-light: rgba(255, 255, 255, 0.1);

    --app-text-main: #1e293b;
    --app-text-muted: #64748b;
    --app-text-invert: #ffffff;

    --app-accent-glow: rgba(42, 140, 166, 0.15);
    /* Using primary hue alpha */
    --app-shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --app-shadow-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
    --app-shadow-glow: 0 0 20px rgba(42, 140, 166, 0.3);

    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- Global & Utilities --- */
.mob-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.mob-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--app-primary) 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation Base Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay-1 {
    transition-delay: 0.1s;
}

.stagger-delay-2 {
    transition-delay: 0.2s;
}

.stagger-delay-3 {
    transition-delay: 0.3s;
}

.stagger-delay-4 {
    transition-delay: 0.4s;
}

/* --- Hero Section --- */
.mob-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--app-surface-dark);
    color: var(--app-text-invert);
    padding-top: 120px;
    /* Nav spacing */
    overflow: hidden;
}

.mob-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Prevent blocking interactions */
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatShape 20s infinite alternate ease-in-out;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--app-primary);
}

.shape-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #4f46e5;
    /* Deep semantic secondary */
    animation-delay: -5s;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-30px, 50px) rotate(10deg);
    }
}

.mob-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Text */
.mob-hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--app-text-invert);
}

.mob-hero-content .subheadline {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--app-text-invert);
    margin-bottom: 40px;
    max-width: 540px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.trust-strip {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item i {
    color: var(--app-primary);
}

/* Hero Mockup */
.mob-hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
    border: 8px solid #2d2d2d;
    overflow: hidden;
    z-index: 2;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.1s ease-out;
    /* For parquet effect */
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--app-surface-dark) 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.shimmer-ui {
    position: absolute;
    inset: 0;
}

.ui-block {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 16px;
    height: 100px;
    position: relative;
    overflow: hidden;
}

.ui-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.floating-chip {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 3;
    animation: floatChip 6s ease-in-out infinite;
}

@keyframes floatChip {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Chip Positions */
.chip-1 {
    top: 20%;
    left: -20px;
    animation-delay: 0s;
}

.chip-2 {
    top: 50%;
    right: -40px;
    animation-delay: 1.5s;
}

.chip-3 {
    bottom: 15%;
    left: 10px;
    animation-delay: 0.8s;
}

/* --- What We Build (Grid) --- */
.build-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    padding: 32px;
    border-radius: 16px;
    transition: all 0.4s var(--ease-out-quart);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--app-shadow-hover);
    border-color: rgba(42, 140, 166, 0.3);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--app-primary);
    transition: transform 0.4s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    color: var(--app-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.mini-features {
    font-size: 0.8rem;
    color: var(--app-primary);
    font-weight: 500;
    opacity: 0.9;
}

.hover-link-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--app-primary);
}

.service-card:hover .hover-link-hint {
    opacity: 1;
    transform: translateX(0);
}

/* --- Platforms (Tabs) --- */
.platform-tabs {
    background: var(--app-surface-dim);
    border-radius: 24px;
    padding: 40px;
    margin-top: 40px;
}

.tab-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--app-border);
    margin-bottom: 40px;
    position: relative;
}

.tab-btn {
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--app-text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn.active {
    color: var(--app-primary);
}

.tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--app-primary);
    width: 0;
    /* JS will set */
    transition: all 0.3s var(--ease-out-quart);
}

.tab-pane {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    animation: fadeSlideIn 0.5s ease;
}

.tab-pane.active {
    display: grid;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-list i {
    color: var(--app-primary);
}

/* --- Quality Pillars --- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.pillar-card {
    background: var(--app-surface);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--app-border);
    text-align: center;
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--app-shadow-card);
}

.honesty-strip {
    background: #fff0f0;
    /* Subtle warning bg, keeping it semantic if possible, but specific here so light red tint */
    border-left: 4px solid #ef4444;
    /* semantic danger */
    padding: 24px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.honesty-item {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #991b1b;
}

/* --- Timeline --- */
.timeline-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-step {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: box-shadow 0.3s ease;
}

.step-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    user-select: none;
}

.step-num {
    background: var(--app-surface-dim);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.timeline-step.active .step-num {
    background: var(--app-primary);
    color: #fff;
    transform: scale(1.1);
}

.step-content {
    height: 0;
    overflow: hidden;
    transition: height 0.4s var(--ease-out-quart);
}

.step-inner {
    padding: 0 24px 24px 84px;
    color: var(--app-text-muted);
}

/* --- Deliverables --- */
.check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    margin-bottom: 40px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.check-item i {
    color: #10b981;
    /* Success semantic */
}

.addons-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.addon-chip {
    background: var(--app-surface-dim);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.addon-chip:hover {
    background: #fff;
    border-color: var(--app-primary);
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-card);
}

/* --- Tech Stack --- */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.tech-badge {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    cursor: default;
}

.tech-badge:hover {
    transform: translateY(-4px);
    border-color: var(--app-primary);
}

.badge-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #000;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tech-badge:hover .badge-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* --- Support Tiers --- */
.tier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

.tier-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s ease;
}

.tier-card.rec {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 1px var(--app-primary);
    /* Mock double border */
}

.tier-card.rec::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--app-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tier-card h3 {
    margin-bottom: 20px;
}

.tier-list li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- FAQ --- */
.faq-item {
    border-bottom: 1px solid var(--app-border);
}

.faq-header {
    padding: 24px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-header i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}

.faq-body {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    opacity: 0.8;
}

/* --- CTA --- */
.final-cta {
    background: var(--app-surface-dark);
    color: white;
    text-align: center;
    padding: 100px 24px;
}

.final-cta h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.mini-reassurance {
    margin-top: 24px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- Mobile Nav Sticky --- */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 12px 24px;
    display: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    justify-content: space-between;
    gap: 12px;
}

.mobile-sticky-bar .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .mob-hero-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: "hero";
        text-align: center;
    }

    .mob-hero-content {
        grid-area: hero;
        z-index: 2;
        position: relative;
    }

    .mob-hero-visual {
        grid-area: hero;
        z-index: 1;
        opacity: 0.15;
        /* Subtle background effect */
        pointer-events: none;
        transform: scale(0.8);
        /* Scale down slightly to fit */
        height: 100%;
        margin-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pillars-grid {
        grid-template-columns: 1fr 1fr;
    }

    .check-grid {
        grid-template-columns: 1fr;
    }

    .tier-grid {
        grid-template-columns: 1fr;
    }

    .tab-pane {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .mob-hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .honesty-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tab-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .mobile-sticky-bar {
        display: flex;
    }

    .final-cta {
        padding-bottom: 100px;
    }

    .mob-container {
        z-index: 10;
        position: relative;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}