:root {
    --color-bg: #F8FAFC;
    --color-text: #0F172A;
    --color-text-muted: #475569;

    /* Tradefaire Primary Blue */
    --color-accent: #063566;
    --color-accent-dim: #042445;
    --color-accent-light: #E0E7FF;

    /* Light shades */
    --color-card-bg: #FFFFFF;
    --color-border: #E2E8F0;
    --color-border-hover: #CBD5E1;

    --shadow-card: 0 4px 6px -1px rgba(6, 53, 102, 0.05), 0 2px 4px -1px rgba(6, 53, 102, 0.03);
    --shadow-soft: 0 10px 15px -3px rgba(6, 53, 102, 0.08);

    --font-heading: "Instrument Sans", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-logo: "Inter", sans-serif;

    /* Brand Colors */
    --color-whatsapp: #25D366;
    --color-error: #EF4444;
}

.whatsapp-text {
    color: var(--color-whatsapp);
}

.red-text {
    color: var(--color-error);
}

.accent-text {
    color: var(--color-accent);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* Scrollbar styles - updated for light */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s, color 0.2s;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    /* narrowed from reference max-width of ~1320px for safety */
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    white-space: nowrap;
}

.btn:hover {
    transform: scale(1.02);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-dim);
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
    font-size: 16px;
    padding: 16px 32px;
}

.btn-accent:hover {
    background-color: var(--color-accent-dim);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-size: 16px;
    padding: 16px 32px;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: white;
    border-color: var(--color-accent);
}

/* Role Selector */
.role-group {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.role-option {
    flex: 1;
    position: relative;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.role-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-option input[type="radio"]:checked+.role-label {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.role-option input[type="radio"]:hover+.role-label {
    border-color: var(--color-text);
}

/* Mobile Menu Button - Base Styles (Moved before media queries) */
.mobile-menu-btn {
    display: none;
    /* Desktop default */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Header */
.header {
    position: fixed;
    /* Fixed to follow scroll */
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: var(--color-accent);
    /* text-transform: uppercase; */
}

.header .logo img.logo-img {
    height: 26px !important;
    width: auto !important;
    max-width: 140px !important;
    display: block !important;
    object-fit: contain !important;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff !important;
}

.nav {
    display: flex;
    gap: 32px;
    background: rgba(255, 255, 255, 0.05);
    /* Extremely subtle white to define the shape */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(6, 53, 102, 0.1);
    /* Subtle brand border */
    padding: 8px 24px;
    border-radius: 100px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active {
    font-weight: 700;
}

/* Hero */
.hero {
    padding: 152px 0 100px;
    /* Removing bottom padding to let visuals bleed/cut naturally */
    text-align: center;
    overflow: visible;
    position: relative;
    /* Hero gradient now starts from the top behind the fixed header */
    background: radial-gradient(circle at 50% 0%, #E0F2FE 0%, #F8FAFC 70%);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: 6px 16px 6px 6px;
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--color-text);
}

.avatars {
    display: flex;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--color-card-bg);
    margin-right: -10px;
    object-fit: cover;
}

.avatar:last-child {
    margin-right: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.static-secondary {
    display: block;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-align: center;
}

.dynamic-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
    /* Add slight gap between "Sell with" and rotating text */
}

.rotating-container {
    display: inline-flex;
    position: relative;
    height: 1.1em;
    /* Match hero-title line-height */
    overflow: hidden;
    vertical-align: bottom;
}

.rotating-phrase {
    color: var(--color-accent);
    background: linear-gradient(135deg, var(--color-accent) 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    /* Center text vertically within absolute box */
    opacity: 0;
    transform: translateY(100%);
    /* Start from below */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotating-container.red-text .rotating-phrase {
    background: linear-gradient(135deg, var(--color-error) 0%, #F87171 100%);
    -webkit-background-clip: text;
}

.rotating-phrase.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-phrase.exit {
    opacity: 0;
    transform: translateY(-100%);
    /* Exit towards top */
}

@media (max-width: 768px) {
    .rotating-container {
        height: 1.3em;
    }
}

.bolt-icon {
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 0, 0.5));
}

/* Feature Pills Ticker */
.hero-ticker-container {
    width: 90vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -45vw;
    margin-right: -45vw;
    overflow: hidden;
    margin-top: 100px;
    padding: 20px 0;
    /* Soft masks for the edges */
    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);
}

.hero-ticker-track {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

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

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

    100% {
        /* Move half the width of the track (Set 1 + Set 2) */
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.ticker-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.ticker-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
}

.ticker-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Specific Icon Backgrounds & "Mock" Icons using pseudo-elements */
.icon-receipt {
    background-color: #EEF2FF;
    color: #6366F1;
}

.icon-receipt::after {
    content: '📄';
    font-size: 14px;
}

.icon-discount {
    background-color: #FFF1F2;
    color: #F43F5E;
}

.icon-discount::after {
    content: '🏷️';
    font-size: 14px;
}

.icon-delivery {
    background-color: #F0FDF4;
    color: #22C55E;
}

.icon-delivery::after {
    content: '🚚';
    font-size: 14px;
}

.icon-payment {
    background-color: #ECFDF5;
    color: #10B981;
}

.icon-payment::after {
    content: '⚡';
    font-size: 14px;
}

.icon-location {
    background-color: #FFFBEB;
    color: #F59E0B;
}

.icon-location::after {
    content: '📍';
    font-size: 14px;
}

.icon-inventory {
    background-color: #EFF6FF;
    color: #3B82F6;
}

.icon-inventory::after {
    content: '📦';
    font-size: 14px;
}

.icon-analytics {
    background-color: #FAF5FF;
    color: #A855F7;
}

.icon-analytics::after {
    content: '📊';
    font-size: 14px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-muted);
    margin: 0 auto 40px;
    max-width: 580px;
    line-height: 1.5;
}

/* Hero Visuals */
.hero-visuals {
    margin-top: 120px;
    position: relative;
    height: auto;
    overflow: visible;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 200px;
    /* Clear space between mockups */
}

.mockup-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.mockup-frame img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(1.02) contrast(1.02);
}

/* Smooth reveal once image is fully decoded (prevents "printing" effect). */
.mockup-frame img[data-reveal] {
    opacity: 0;
    transform: scale(1.01);
    transition: opacity 280ms ease-out, transform 280ms ease-out;
}

.mockup-frame img[data-reveal].is-loaded {
    opacity: 1;
    transform: scale(1);
}

/* Bottom fade into page background — image stays opaque; overlay blends to --color-bg */
.mockup-frame::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 75%;
    background: linear-gradient(to bottom, transparent 25%, var(--color-bg) 95%);
    pointer-events: none;
}

.mockup-left {
    width: 290px;
    z-index: 1;
    transform: translateY(-160px);
}

.mockup-center {
    width: 300px;
    z-index: 3;
    transform: translateY(40px);
}

.mockup-right {
    width: 280px;
    z-index: 1;
    transform: translateY(-130px);
}


/* Features */
.features {
    padding: 84px 0;
}

.section-title {
    font-size: 52px;
    margin-bottom: 80px;
    text-align: center;
    line-height: 1.1;
}

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

.feature-card {
    grid-column: span 1;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.feature-card-large {
    grid-column: span 2;
}

.feature-card:hover {
    box-shadow: 0 20px 40px -10px rgba(6, 53, 102, 0.25);
    transform: translateY(-8px);
}

.feature-image {
    width: 100%;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--color-border);
}

.lazy-bg {
    background-color: #e9eef5;
}

.feature-content {
    padding: 18px;
}

.bg-gradient-card {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, #F1F5F9 50%, #E2E8F0 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 53, 102, 0.05) 0%, transparent 70%);
    transform: rotate(30deg);
}

.feature-content h3 {
    font-size: 20px;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.feature-content p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 12px;
}

/* Pillar 3 (Everything you need to sell more and grow.) */
#ecosystem .container {
    max-width: 1040px;
}

#ecosystem .features-grid {
    gap: 20px;
}

#ecosystem .feature-card {
    border-radius: 18px;
}

#ecosystem .feature-image {
    aspect-ratio: 16 / 9;
}

#ecosystem .feature-content {
    padding: 16px;
}

#ecosystem .feature-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

#ecosystem .feature-content p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li {
    font-size: 14px;
    color: var(--color-text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.feature-list li::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}

/* FAQ */
.faq {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
}

.accordion-trigger:hover {
    color: var(--color-text-muted);
}

.accordion-trigger .icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-trigger.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding-bottom: 32px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 120px 0 60px;
    text-align: center;
    border-top: 1px solid var(--color-border);
    background-color: #F1F5F9;
}

.footer-title {
    font-size: 48px;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 16px;
}

.footer-subtitle {
    max-width: 680px;
    margin: 0 auto 28px;
    color: var(--color-text-muted);
    font-size: 18px;
    line-height: 1.6;
}

.footer-links {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 14px;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

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

.socials {
    display: flex;
    gap: 20px;
    margin-top: 2px;
}

.socials a {
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.socials a:focus-visible,
.legal a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 8px;
}

.socials a:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
}

.footer-region,
.footer-copyright {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .header .nav {
        display: none !important;
    }

    .header .btn {
        display: none !important;
    }

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

    .header-container {
        justify-content: space-between;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .static-secondary {
        font-size: 42px;
        margin-bottom: 20px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-visuals {
        height: 400px;
        margin-top: 80px;
    }

    .mockup-container {
        gap: 10px;
        transform: scale(1);
        /* Reset scale and use widths instead */
    }

    .mockup-left,
    .mockup-right {
        width: 180px;
    }

    .mockup-center {
        width: 200px;
    }

    .mockup-left {
        transform: translateY(-120px);
    }

    .mockup-center {
        transform: translateY(20px);
    }

    .mockup-right {
        transform: translateY(-120px);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .feature-card,
    .feature-card-large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

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

    .hero-pill {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: 28px;
        padding: 0 4px;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .static-line {
        display: block;
        /* Break out */
    }

    .dynamic-line {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.25em;
        flex-wrap: wrap;
        /* Graceful wrap if absolutely needed */
    }

    .sell-with-text {
        white-space: nowrap;
    }

    .rotating-container {
        display: inline-flex;
        align-items: center;
        height: 1.25em;
    }

    .hero-subtitle {
        font-size: 16px;
        padding: 0 4px;
        margin-bottom: 24px;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-pill {
        order: 1;
    }

    .hero-title,
    .static-secondary {
        font-size: 28px;
    }

    .hero-title {
        order: 2;
        margin-bottom: 20px;
    }

    .static-secondary {
        margin-bottom: 0;
        line-height: 1.1;
    }

    .hero-subtitle {
        order: 3;
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-actions {
        order: 4;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
        gap: 16px !important;
        margin-bottom: 40px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        font-size: 16px;
    }

    .hero-visuals {
        order: 5;
        height: auto;
        margin: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-ticker-container {
        order: 6;
        margin-top: 60px; /* Space between phones and ticker */
    }


    .section-title,
    .footer-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 32px;
        line-height: 1.2;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card,
    .feature-card-large {
        grid-column: span 1;
    }

    .feature-card {
        margin-bottom: 16px;
    }

    /* Stack mockups more vertically or hide sides on mobile to prevent overflow */
    .mockup-container {
        max-width: 100%;
        height: 520px; /* Increased height to contain cascading phones */
        position: relative;
        margin: 0 auto;
        overflow: visible;
        display: block;
        /* Switch from flex to allow absolute stacking */
    }

    .hero-visuals .mockup-frame.mockup-left {
        display: block;
        position: absolute;
        left: 8%;
        top: 0;
        width: 230px;
        z-index: 100 !important;
        transform: translateZ(50px) !important; /* Force to front */
        opacity: 1;
    }

    .hero-visuals .mockup-frame.mockup-right {
        display: block;
        position: absolute;
        right: 6%;
        top: 80px;
        width: 200px;
        z-index: 10 !important;
        transform: translateX(-20px) translateZ(0) !important;
        /* Moved behind center */
        transform: translateX(-20px);
        opacity: 1;
        /* filter: brightness(0.9); */
    }

    .hero-visuals .mockup-frame.mockup-center {
        display: block;
        position: absolute;
        left: 50%;
        top: 180px;
        width: 190px;
        z-index: 50 !important;
        transform: translateX(-50%) translateZ(25px) !important;
        opacity: 1;
    }

    .challenges {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .faq {
        padding: 60px 16px;
    }

    .accordion-trigger {
        font-size: 16px;
        padding: 20px 0;
    }

    .footer {
        padding: 60px 0 40px;
    }

    .footer-title {
        font-size: 24px;
        padding: 0 10px;
    }

    .footer-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .footer-links {
        margin-top: 40px;
        gap: 24px;
    }


    /* Powerup cards: stacked centered layout on small screens */
    .powerup-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 24px 20px;
    }

    .powerup-icon {
        margin: 0 auto;
    }

    .powerup-content h3 {
        margin-top: 8px;
    }

    /* Fix header alignment */
    .header {
        padding: 8px 0;
    }

    .header-container {
        height: 44px;
    }

    .header .logo-img {
        height: 24px !important;
    }

    /* Standardize badge margins */
    .badge {
        margin-bottom: 12px;
        display: inline-block;
    }

    section {
        padding: 60px 0;
        scroll-margin-top: 80px;
    }

    /* Fix ticker horizontal cutoff */
    .hero-ticker-container {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        left: 0;
        right: 0;
    }
}

/* Fine-tuning for very small devices */
@media (max-width: 480px) {

    .hero-title,
    .static-secondary {
        font-size: 26px;
    }

    .rotating-container {
        /* Maintain inline-flex to work with the JS measurement logic */
        display: inline-flex !important;
        height: 1.2em !important;
        margin-top: 4px;
        vertical-align: bottom;
    }

    .rotating-phrase {
        /* Ensure phrases stay absolute to overlap correctly */
        font-size: inherit !important;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .btn-large {
        width: 100%;
    }
}

/* Styles for Functionality */

/* Mobile Menu Button */


/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-nav-close {
    position: absolute;
    top: 32px;
    right: 32px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--color-text);
    cursor: pointer;
    line-height: 1;
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.mobile-nav-link.active {
    color: var(--color-accent);
}

/* Waitlist Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: white;
}

.modal-hgroup {
    text-align: center;
    margin-bottom: 32px;
}

.modal-hgroup h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.modal-hgroup p {
    font-size: 16px;
    line-height: 1.5;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background-color: #F9FAFB;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--color-accent);
}

.btn-full {
    width: 100%;
}

.success-message {
    text-align: center;
    padding: 20px;
    background: rgba(0, 209, 102, 0.1);
    /* Low opacity accent */
    border-radius: 12px;
    border: 1px solid rgba(0, 209, 102, 0.3);
}

.success-message h3 {
    margin-bottom: 8px;
    color: var(--color-accent);
}

/* Challenges Section - "Graduate from WhatsApp" */
.challenges {
    padding: 100px 0;
    background-color: #FDFBFA;
    /* Warm subtle background for empathy */
    position: relative;
    overflow: hidden;
}

.challenges-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.challenges-header .badge {
    display: inline-block;
    padding: 6px 16px;
    background: #FEF2F2;
    color: #DC2626;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.challenges-header h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.challenges-header p {
    font-size: 18px;
}

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

.challenge-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-accent);
    margin-bottom: 24px;
    font-size: 24px;
}

.challenge-group-title svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.challenge-item {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.challenge-item:hover {
    transform: translateX(8px);
    border-color: var(--color-whatsapp);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.05);
}

.challenge-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.challenge-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
    transition: transform 0.3s ease;
}

/* Premium Icon Color Variants */
.icon-blue {
    background: linear-gradient(135deg, #F0F7FF 0%, #E0EFFF 100%) !important;
    color: #007AFF !important;
    border: 1px solid rgba(0, 122, 255, 0.1) !important;
}

.icon-red {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEB 100%) !important;
    color: #FF3B30 !important;
    border: 1px solid rgba(255, 59, 48, 0.1) !important;
}

.icon-purple {
    background: linear-gradient(135deg, #F8F7FF 0%, #F0EEFF 100%) !important;
    color: #5856D6 !important;
    border: 1px solid rgba(88, 86, 214, 0.1) !important;
}

.icon-green {
    background: linear-gradient(135deg, #F2FFF7 0%, #E6FFEF 100%) !important;
    color: #34C759 !important;
    border: 1px solid rgba(52, 199, 89, 0.1) !important;
}

.icon-orange {
    background: linear-gradient(135deg, #FFF9F2 0%, #FFF2E6 100%) !important;
    color: #FF9500 !important;
    border: 1px solid rgba(255, 149, 0, 0.1) !important;
}

.challenge-item:hover .challenge-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.challenge-item:hover .challenge-icon svg {
    transform: scale(1.1);
}

.challenge-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--color-text);
}

.challenge-info p {
    font-size: 14px;
    line-height: 1.6;
}

/* Solution Transition - Sleek Redesign */
.solution-callout {
    margin-top: 100px;
    background: linear-gradient(145deg, var(--color-accent) 0%, #031b35 100%);
    border-radius: 48px;
    padding: 80px 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(6, 53, 102, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-callout::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.solution-callout::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.solution-callout h3 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
    color: white;
    letter-spacing: -0.04em;
    line-height: 1;
}

.solution-callout p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
}

.solution-callout .btn {
    background-color: white;
    color: var(--color-accent) !important;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.solution-callout .btn:hover {
    background-color: #f1f5f9;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Tablet: For Sellers stacked above For Buyers; each section uses a 2-col card grid */
@media (min-width: 768px) and (max-width: 1024px) {
    .challenge-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .challenge-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .challenge-list .challenge-item:last-child:nth-child(3) {
        grid-column: 1 / -1;
    }

    .solution-callout {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .challenges {
        padding: 48px 0 56px;
    }

    .challenge-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .challenge-group-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .challenge-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .challenge-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 14px;
        padding: 14px 16px;
        border-radius: 16px;
    }

    .challenge-item:hover {
        transform: none;
    }

    .challenge-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        margin: 0;
    }

    .challenge-icon svg {
        width: 20px;
        height: 20px;
    }

    .challenge-info h4 {
        font-size: 15px;
        margin-bottom: 4px;
        margin-top: 0;
        line-height: 1.3;
    }

    .challenge-info p {
        font-size: 13px;
        line-height: 1.45;
    }
}

@media (max-width: 768px) {
    .challenges-header h2 {
        font-size: 36px;
    }

    .solution-callout {
        padding: 40px 20px;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-up.visible,
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for child elements if needed */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Enhanced Modal Animation */
@keyframes modalEntry {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

.modal-backdrop.active .modal {
    animation: modalEntry 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.modal-backdrop {
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

.modal-backdrop.active {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Trust Flow Section: The Tradefaire Shield */
.trust-flow {
    padding: 160px 0;
    background-color: #F1F5F9;
    text-align: center;
}

.trust-flow-header {
    max-width: 700px;
    margin: 0 auto 80px;
}

.trust-flow-header h2 {
    font-size: 52px;
    margin: 16px 0 24px;
}

.flow-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    max-width: 1100px;
    margin: 0 auto;
}

.flow-step {
    flex: 1;
    background: white;
    padding: 40px 32px;
    border-radius: 32px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.flow-step:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
}

.flow-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 8px 20px rgba(6, 53, 102, 0.05);
}

.flow-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2px;
}

.flow-step:hover .flow-icon {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 35px rgba(6, 53, 102, 0.12);
}

.flow-step h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--color-accent);
}

.flow-step p {
    font-size: 16px;
    line-height: 1.6;
}

.flow-arrow {
    font-size: 32px;
    color: var(--color-accent);
    font-weight: 700;
    opacity: 0.15;
}

@media (max-width: 992px) {
    .flow-grid {
        flex-direction: column;
        max-width: 760px;
        gap: 20px;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: -20px 0;
    }

    .flow-step {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }
}

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

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

.stat-card,
.feature-card,
.flow-step {
    animation: fadeInSlideUp 0.6s ease-out forwards;
}

/* Specific Badge Style */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Role-Specific Badges */
.badge-seller {
    background: #DCFCE7;
    color: #15803D;
}

.badge-trust {
    background: #E0F2FE;
    color: #0369A1;
}

.badge-discovery {
    background: #FFEDD5;
    color: #C2410C;
}

/* Challenge Role Distinction */
.challenge-seller .challenge-item:hover {
    border-color: #25D366;
    background-color: #F0FDF4;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.1);
}

.challenge-buyer .challenge-item:hover {
    border-color: #3B82F6;
    background-color: #EFF6FF;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.challenge-seller .challenge-group-title {
    color: #15803D;
}

.challenge-buyer .challenge-group-title {
    color: #1D4ED8;
}

/* Verified Badge Visual */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #DCFCE7;
    color: #15803D;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}

.verified-badge::before {
    content: '✓';
    font-weight: 900;
}

/* Smooth Transitions for Interactive Elements */
.btn,
.nav-link,
.accordion-trigger {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* WhatsApp Power-Ups Section */
/* Section wrapper: controls overall vertical spacing and white background. */
.whatsapp-powerups {
    padding: 120px 0;
    background-color: #FFFFFF;
}

/* Shared centered header block for badge, heading, and supporting copy. */
.section-header-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

/* Main section title scale and spacing. */
.section-header-centered h2 {
    font-size: 52px;
    margin: 16px 0 24px;
}

/* Desktop grid: 3 cards in one row with generous spacing. */
.powerup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card container: spacing, border, radius, and base flex layout. */
.powerup-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: #F8FAFC;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

/* Hover state: subtle lift and emphasis. */
.powerup-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(6, 53, 102, 0.25);
    border-color: var(--color-accent);
}


/* Icon tile inside each card. */
.powerup-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

/* Icon SVG dimensions and stroke for consistency. */
.powerup-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2px;
}

/* Icon hover animation for added motion feedback. */
.powerup-card:hover .powerup-icon {
    transform: rotate(-5deg) scale(1.1);
}

/* Card title typography. */
.powerup-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--color-text);
}

/* Card body copy typography. */
.powerup-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Tablet-specific Pillar 1 layout and sizing rules. */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Reduce vertical whitespace in section on tablet. */
    .whatsapp-powerups {
        padding: 80px 0;
    }

    /* Tighten heading block spacing for tablet. */
    .whatsapp-powerups .section-header-centered {
        margin-bottom: 48px;
        padding: 0 8px;
    }

    /* Slightly smaller title on tablet. */
    .whatsapp-powerups .section-header-centered h2 {
        font-size: 40px;
    }

    /* Keep intro text readable while compact. */
    .whatsapp-powerups .section-header-centered p {
        font-size: 17px;
    }

    /* Switch to centered single-column stack for tablet. */
    .powerup-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 620px;
        margin: 0 auto;
    }

    /* Tablet cards: centered vertical composition (Pillar 2-like stack). */
    .powerup-card {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 32px;
        gap: 24px;
        border-radius: 32px;
    }

    /* Larger centered icon block for tablet card format. */
    .powerup-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        margin: 0 auto 4px;
    }

    /* Icon glyph scale for larger icon tile. */
    .powerup-icon svg {
        width: 28px;
        height: 28px;
    }

    /* Increase title prominence in stacked tablet cards. */
    .powerup-content h3 {
        font-size: 24px;
        margin-bottom: 12px;
        margin-top: 0;
    }

    /* Body copy sizing for tablet readability. */
    .powerup-content p {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* Narrow-screen override: enforce tighter grid/card widths. */
@media (max-width: 767px) {
    /* Cap grid width and center in narrow layouts. */
    .powerup-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    /* Reduce card padding and constrain width for small screens. */
    .powerup-card {
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
        padding: 18px 16px;
    }
}