/* ============================================================
   EcomBoost — Module Detail Page Shared Styles
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --green-50: #f0fdf4;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --orange-500: #f97316;
    --red-500: #ef4444;
    --purple-500: #8b5cf6;
    --amber-400: #fbbf24;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
html { scroll-behavior: smooth; }

/* ── Language Switcher ────────────────────────────── */
.lang-switcher {
    display: flex; align-items: center; gap: 2px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 2px;
    margin-left: 12px;
}
.lang-btn {
    padding: 4px 10px;
    border: none; background: none; text-decoration: none;
    color: rgba(255,255,255,0.5);
    font-size: 12px; font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}
.lang-btn:hover { color: #fff; }
.lang-btn--active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ── Navbar ─────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 24px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.navbar__brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 800; color: #fff;
    letter-spacing: -0.5px;
}
.navbar__brand i { font-size: 28px; color: var(--amber-400); }
.navbar__brand em { font-style: normal; color: var(--amber-400); }
.navbar__links { display: flex; align-items: center; gap: 28px; }
.navbar__links a {
    color: var(--gray-400); font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.navbar__links a:hover { color: #fff; }
.navbar__cta {
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    color: #fff !important; border-radius: 8px;
    padding: 10px 20px; font-weight: 700; font-size: 13px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.navbar__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(249,115,22,0.4);
}

/* ── Breadcrumb ─────────────────────────────────── */
.breadcrumb {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 24px;
    font-size: 13px; color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 16px; }

/* ── Module Hero ────────────────────────────────── */
.mod-hero {
    position: relative;
    padding: 130px 24px 80px;
    color: #fff;
    overflow: hidden;
}
.mod-hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(0,0,0,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.mod-hero__inner {
    position: relative; z-index: 1;
    max-width: 1140px; margin: 0 auto;
    display: flex; gap: 48px; align-items: center;
}
.mod-hero__text { flex: 1; }
.mod-hero__visual {
    flex: 0 0 380px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(8px);
}
.mod-hero__icon-wrap {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.mod-hero__icon-wrap i { font-size: 32px; color: #fff; }
.mod-hero__tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px; font-weight: 600;
    margin-bottom: 16px;
}
.mod-hero h1 {
    font-size: 44px; font-weight: 900; line-height: 1.1;
    letter-spacing: -1.5px; margin-bottom: 16px;
}
.mod-hero__sub {
    font-size: 18px; color: rgba(255,255,255,0.7);
    max-width: 520px; line-height: 1.6; margin-bottom: 28px;
}
.mod-hero__stats {
    display: flex; gap: 32px;
}
.mod-hero__stat { text-align: left; }
.mod-hero__stat-val {
    font-size: 28px; font-weight: 900; color: #fff;
    letter-spacing: -0.5px;
}
.mod-hero__stat-lbl {
    font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px;
}

/* ── Section base ────────────────────────────────── */
.section { padding: 80px 24px; }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--dark); color: #fff; }
.container { max-width: 1140px; margin: 0 auto; }
.section__header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__tag {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--blue-600); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section__tag i { font-size: 18px; }
.section__title {
    font-size: 32px; font-weight: 800; letter-spacing: -0.5px;
    margin-bottom: 14px; line-height: 1.2;
}
.section--dark .section__title { color: #fff; }
.section__subtitle {
    font-size: 16px; color: var(--gray-500); line-height: 1.6;
}
.section--dark .section__subtitle { color: var(--gray-400); }

/* ── Problem / Solution ──────────────────────────── */
.prob-sol {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: start;
}
.prob-sol__card {
    padding: 36px; border-radius: 16px;
}
.prob-sol__card--problem {
    background: #fef2f2; border: 1px solid #fecaca;
}
.prob-sol__card--solution {
    background: var(--green-50); border: 1px solid #bbf7d0;
}
.prob-sol__icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.prob-sol__card--problem .prob-sol__icon { background: #fee2e2; }
.prob-sol__card--problem .prob-sol__icon i { color: var(--red-500); font-size: 24px; }
.prob-sol__card--solution .prob-sol__icon { background: #dcfce7; }
.prob-sol__card--solution .prob-sol__icon i { color: var(--green-600); font-size: 24px; }
.prob-sol__title {
    font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--gray-900);
}
.prob-sol__text {
    font-size: 15px; color: var(--gray-600); line-height: 1.7;
}
.prob-sol__list {
    list-style: none; margin-top: 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.prob-sol__list li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 14px; color: var(--gray-600);
}
.prob-sol__list i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.prob-sol__card--problem .prob-sol__list i { color: var(--red-500); }
.prob-sol__card--solution .prob-sol__list i { color: var(--green-600); }

/* ── Features Grid ───────────────────────────────── */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feat-card {
    background: #fff; border: 1px solid var(--gray-200);
    border-radius: 16px; padding: 28px;
    transition: all 0.3s;
}
.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    border-color: var(--blue-600);
}
.feat-card__icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    background: rgba(37,99,235,0.08);
}
.feat-card__icon i { font-size: 22px; color: var(--blue-600); }
.feat-card__title {
    font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900);
}
.feat-card__desc {
    font-size: 14px; color: var(--gray-500); line-height: 1.6;
}

/* ── Psychology Section ──────────────────────────── */
.psych-card {
    max-width: 800px; margin: 0 auto;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 20px; padding: 48px;
    color: #fff; text-align: center;
    position: relative; overflow: hidden;
}
.psych-card::before {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.2), transparent 60%);
    pointer-events: none;
}
.psych-card__content { position: relative; z-index: 1; }
.psych-card__icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: rgba(139,92,246,0.2); border: 1px solid rgba(139,92,246,0.3);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.psych-card__icon i { font-size: 28px; color: #a78bfa; }
.psych-card__title {
    font-size: 24px; font-weight: 800; margin-bottom: 12px;
}
.psych-card__text {
    font-size: 15px; color: #c4b5fd; line-height: 1.7;
    max-width: 560px; margin: 0 auto;
}

/* ── Testimonials ────────────────────────────────── */
.testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial {
    background: #fff; border: 1px solid var(--gray-200);
    border-radius: 16px; padding: 28px;
    position: relative;
}
.testimonial__stars {
    display: flex; gap: 2px; margin-bottom: 14px;
}
.testimonial__stars i { font-size: 16px; color: var(--amber-400); }
.testimonial__text {
    font-size: 14px; color: var(--gray-600); line-height: 1.7;
    margin-bottom: 20px; font-style: italic;
}
.testimonial__author {
    display: flex; align-items: center; gap: 12px;
}
.testimonial__avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #fff;
}
.testimonial__name {
    font-size: 14px; font-weight: 600; color: var(--gray-900);
}
.testimonial__role {
    font-size: 12px; color: var(--gray-400);
}

/* ── Impact Stats ────────────────────────────────── */
.impact-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    max-width: 800px; margin: 0 auto;
}
.impact-stat {
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 28px;
}
.impact-stat__val {
    font-size: 36px; font-weight: 900; color: #fff;
    letter-spacing: -1px; margin-bottom: 4px;
}
.impact-stat__lbl {
    font-size: 13px; color: var(--gray-400);
}

/* ── Pricing CTA ─────────────────────────────────── */
.pricing-block {
    max-width: 480px; margin: 0 auto;
    text-align: center;
}
.pricing-card {
    background: #fff; border: 2px solid var(--blue-600);
    border-radius: 20px; padding: 40px 32px;
    position: relative; overflow: hidden;
    box-shadow: 0 8px 32px rgba(37,99,235,0.12);
}
.pricing-card__badge {
    position: absolute; top: 0; left: 0; right: 0;
    background: var(--blue-600); color: #fff;
    font-size: 12px; font-weight: 700;
    padding: 8px; text-transform: uppercase; letter-spacing: 1px;
}
.pricing-card__price {
    margin-top: 28px;
    font-size: 56px; font-weight: 900; color: var(--gray-900);
    letter-spacing: -2px; line-height: 1;
}
.pricing-card__price small {
    font-size: 20px; font-weight: 600; color: var(--gray-500);
}
.pricing-card__period {
    font-size: 14px; color: var(--gray-400); margin: 4px 0 24px;
}
.pricing-card__features {
    list-style: none; text-align: left;
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 28px;
}
.pricing-card__features li {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--gray-600);
}
.pricing-card__features i { font-size: 18px; color: var(--green-500); }
.pricing-card__cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    color: #fff; border: none; border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(249,115,22,0.3);
    font-family: inherit;
}
.pricing-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249,115,22,0.5);
}
.pricing-card__cta i { font-size: 20px; }
.pricing-or {
    display: flex; align-items: center; gap: 16px;
    margin: 28px 0; color: var(--gray-400); font-size: 14px;
}
.pricing-or::before, .pricing-or::after {
    content: ''; flex: 1; height: 1px; background: var(--gray-200);
}
.pricing-bundle {
    background: linear-gradient(135deg, var(--dark), #1a1a4e);
    border-radius: 16px; padding: 24px;
    color: #fff; text-align: center;
}
.pricing-bundle__title {
    font-size: 16px; font-weight: 700; margin-bottom: 4px;
}
.pricing-bundle__desc {
    font-size: 13px; color: var(--gray-400); margin-bottom: 14px;
}
.pricing-bundle__link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--amber-400); font-size: 14px; font-weight: 700;
    transition: gap 0.2s;
}
.pricing-bundle__link:hover { gap: 10px; }
.pricing-bundle__link i { font-size: 18px; }

/* ── Other Modules ───────────────────────────────── */
.other-modules {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.other-mod {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid var(--gray-200);
    border-radius: 12px; padding: 18px;
    transition: all 0.3s;
}
.other-mod:hover {
    border-color: var(--blue-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.other-mod__icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.other-mod__icon i { font-size: 20px; color: #fff; }
.other-mod__name {
    font-size: 14px; font-weight: 600; color: var(--gray-900);
}
.other-mod__price {
    font-size: 12px; color: var(--gray-400); margin-top: 2px;
}
.icon-bg--aov { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.icon-bg--retention { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.icon-bg--conversion { background: linear-gradient(135deg, #059669, #10b981); }
.icon-bg--ux { background: linear-gradient(135deg, #0891b2, #06b6d4); }

/* ── Footer ───────────────────────────────────────── */
.footer {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 24px; text-align: center;
}
.footer__brand {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.footer__brand i { font-size: 22px; color: var(--amber-400); }
.footer__copy { font-size: 13px; color: var(--gray-500); }
.footer__links {
    margin-top: 16px;
    display: flex; justify-content: center; gap: 24px;
}
.footer__links a {
    font-size: 13px; color: var(--gray-400); transition: color 0.2s;
}
.footer__links a:hover { color: #fff; }

/* ── Device Frames & Mockups ──────────────────────── */
.device-phone {
    width: 280px; margin: 0 auto;
    background: #1a1a2e;
    border-radius: 28px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1) inset;
    position: relative;
}
.device-phone__notch {
    width: 100px; height: 24px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    z-index: 2;
}
.device-phone__screen {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    min-height: 320px;
}
.device-phone__screen img {
    width: 100%; height: auto; display: block;
}

.device-browser {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    max-width: 340px;
    margin: 0 auto;
}
.device-browser__bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    background: #0f172a;
}
.device-browser__dots {
    display: flex; gap: 5px;
}
.device-browser__dots span {
    width: 10px; height: 10px; border-radius: 50%;
}
.device-browser__dots span:nth-child(1) { background: #ef4444; }
.device-browser__dots span:nth-child(2) { background: #fbbf24; }
.device-browser__dots span:nth-child(3) { background: #22c55e; }
.device-browser__url {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px; color: rgba(255,255,255,0.4);
    font-family: monospace;
}
.device-browser__content {
    background: #fff;
    min-height: 240px;
}
.device-browser__content img {
    width: 100%; height: auto; display: block;
}

/* ── Section Image ───────────────────────────────── */
.section-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.section-img img {
    width: 100%; height: auto; display: block;
    object-fit: cover;
}

/* ── Screenshot Mockup (in hero visual) ──────────── */
.mockup-bar { font-family: 'Inter', sans-serif; }
.mockup-bar__label {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
}
.mockup-bar__label i { font-size: 20px; }
.mockup-bar__track {
    background: rgba(255,255,255,0.12);
    border-radius: 20px; height: 10px;
    overflow: hidden; margin-bottom: 8px;
}
.mockup-bar__fill {
    height: 100%; border-radius: 20px;
    transition: width 1s ease;
}
.mockup-bar__range {
    display: flex; justify-content: space-between;
    font-size: 11px; color: rgba(255,255,255,0.4);
}

/* ── Prob/Sol with Image ─────────────────────────── */
.prob-sol--with-img {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.prob-sol__img {
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.prob-sol__img img {
    width: 100%; height: auto; display: block; object-fit: cover;
}

/* ── How Module Works ────────────────────────────── */
.how-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    margin-top: 40px;
}
.how-step {
    text-align: center; padding: 24px;
}
.how-step__img {
    width: 120px; height: 120px;
    border-radius: 20px;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.how-step__img img {
    width: 100%; height: 100%; object-fit: cover;
}
.how-step__number {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--blue-600); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
    margin: -36px auto 12px;
    position: relative; z-index: 1;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.how-step__title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--gray-900); }
.how-step__desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* ── Responsive additions ────────────────────────── */
@media (max-width: 768px) {
    .device-phone { width: 240px; }
    .device-browser { max-width: 100%; }
    .prob-sol--with-img { grid-template-columns: 1fr; }
    .how-steps { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Animations ───────────────────────────────────── */
.fade-up {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .mod-hero { padding: 110px 20px 60px; }
    .mod-hero__inner { flex-direction: column; gap: 28px; }
    .mod-hero__visual { flex: auto; width: 100%; }
    .mod-hero h1 { font-size: 30px; }
    .mod-hero__stats { gap: 20px; }
    .navbar__links a:not(.navbar__cta) { display: none; }
    .prob-sol { grid-template-columns: 1fr; gap: 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .impact-row { grid-template-columns: 1fr; }
    .other-modules { grid-template-columns: 1fr; }
    .section__title { font-size: 26px; }
    .pricing-card__price { font-size: 44px; }
}
