/* ========================================
   SHARED STYLES FOR INNER PAGES
   ======================================== */

/* ============ PAGE HERO (compact, with decor) ============ */
.page-hero {
    position: relative;
    min-height: 56vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 5rem;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.04) 0%, rgba(248, 250, 252, 1) 55%);
}

.dark .page-hero-bg {
    background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.12) 0%, rgba(5, 5, 7, 1) 60%);
}

.page-hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(15, 23, 42, 0.6) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.04;
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
    mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
}

.dark .page-hero-grid {
    background-image: radial-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    opacity: 0.05;
}

.page-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.page-hero-orb-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(124, 58, 237, 0.08));
    animation: pulse-slow 4s ease-in-out infinite;
}

.page-hero-orb-2 {
    bottom: 10%;
    right: 10%;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(0, 102, 204, 0.08));
    animation: pulse-slow 5s ease-in-out infinite;
    animation-delay: 1s;
}

.page-hero-content {
    max-width: 52rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgb(226, 232, 240);
    backdrop-filter: blur(12px);
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgb(51, 65, 85);
}

.dark .page-hero-badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgb(226, 232, 240);
}

.page-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.page-hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgb(71, 85, 105);
    font-weight: 300;
    line-height: 1.6;
    max-width: 42rem;
    margin: 0 auto;
}

.dark .page-hero-subtitle {
    color: rgb(156, 163, 175);
}

/* ============ SERVICE BLOCK (alternating layout) ============ */
.service-block {
    padding: 4rem 0;
    position: relative;
}

.service-block-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .service-block-inner {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    .service-block-reverse .service-block-visual {
        order: 2;
    }
}

.service-block-visual {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(124, 58, 237, 0.05));
    border: 1px solid rgb(226, 232, 240);
    backdrop-filter: blur(12px);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .service-block-visual {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.15), rgba(124, 58, 237, 0.1));
    border-color: rgba(255, 255, 255, 0.08);
}

.service-block-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
}

.dark .service-block-visual::before {
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.2) 1px, transparent 1px);
}

.service-block-number {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: clamp(4rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 0.85;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.25), rgba(124, 58, 237, 0.15));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    pointer-events: none;
    z-index: 1;
}

.dark .service-block-number {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.35), rgba(124, 58, 237, 0.25));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-block-visual-icon {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #0066CC, #7C3AED);
    color: white;
    box-shadow: 0 25px 50px rgba(124, 58, 237, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-block:hover .service-block-visual-icon {
    transform: translateY(-4px) rotate(-4deg) scale(1.05);
}

.service-block-visual-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.service-block-visual-orb.top {
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: rgba(124, 58, 237, 0.25);
}

.service-block-visual-orb.bottom {
    bottom: -30px;
    left: -30px;
    width: 180px;
    height: 180px;
    background: rgba(0, 102, 204, 0.2);
}

.service-block-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    background: rgba(124, 58, 237, 0.1);
    color: #7C3AED;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.dark .service-block-tag {
    background: rgba(124, 58, 237, 0.2);
    color: rgb(196, 181, 253);
}

.service-block-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: rgb(15, 23, 42);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.dark .service-block-title {
    color: white;
}

.service-block-desc {
    font-size: 1.0625rem;
    color: rgb(71, 85, 105);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2rem;
}

.dark .service-block-desc {
    color: rgb(156, 163, 175);
}

/* ============ PRICING TABLE ============ */
.pricing-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgb(226, 232, 240);
    backdrop-filter: blur(16px);
    transition: all 500ms ease;
    height: 100%;
}

.dark .pricing-plan {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.pricing-plan:hover {
    transform: translateY(-6px);
    border-color: rgb(203, 213, 225);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.dark .pricing-plan:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.pricing-plan-featured {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), linear-gradient(135deg, #7C3AED, #0066CC, #7C3AED);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2);
}

.dark .pricing-plan-featured {
    background-image: linear-gradient(rgba(10, 10, 15, 0.95), rgba(10, 10, 15, 0.95)), linear-gradient(135deg, #7C3AED, #0066CC, #7C3AED);
}

@media (min-width: 1024px) {
    .pricing-plan-featured {
        transform: scale(1.05);
    }
    .pricing-plan-featured:hover {
        transform: scale(1.05) translateY(-6px);
    }
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.pricing-plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(15, 23, 42);
    margin-bottom: 0.25rem;
}

.dark .pricing-plan-name {
    color: white;
}

.pricing-plan-for {
    font-size: 0.875rem;
    color: rgb(100, 116, 139);
    margin-bottom: 1.5rem;
}

.pricing-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pricing-plan-price-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #0f172a, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark .pricing-plan-price-amount {
    background: linear-gradient(135deg, white, rgb(203, 213, 225));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-plan-price-period {
    font-size: 0.9375rem;
    color: rgb(100, 116, 139);
}

.pricing-plan-range {
    font-size: 0.8125rem;
    color: rgb(100, 116, 139);
    margin-bottom: 1.5rem;
}

.pricing-plan-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, rgb(203, 213, 225), transparent);
    margin: 1.5rem 0;
}

.dark .pricing-plan-divider {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: rgb(51, 65, 85);
    font-weight: 300;
}

.dark .pricing-features li {
    color: rgb(209, 213, 219);
}

.pricing-features li i {
    flex-shrink: 0;
    color: rgb(148, 163, 184);
    margin-top: 0.125rem;
}

.pricing-plan-featured .pricing-features li i {
    color: #7C3AED;
}

/* ============ CASE STUDY CARD ============ */
.case-study {
    padding: 3rem 0;
    border-bottom: 1px solid rgb(226, 232, 240);
}

.dark .case-study {
    border-color: rgba(255, 255, 255, 0.08);
}

.case-study:last-child {
    border-bottom: none;
}

.case-study-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.case-study-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #0066CC, #7C3AED);
    color: white;
    font-weight: 800;
    font-size: 1rem;
}

.case-study-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(124, 58, 237, 0.1);
    color: #7C3AED;
    font-size: 0.75rem;
    font-weight: 600;
}

.dark .case-study-tag {
    background: rgba(124, 58, 237, 0.2);
    color: rgb(196, 181, 253);
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.case-study-metric {
    padding: 1rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgb(226, 232, 240);
    text-align: center;
}

.dark .case-study-metric {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.case-study-metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #0066CC, #7C3AED);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.case-study-metric-label {
    font-size: 0.75rem;
    color: rgb(100, 116, 139);
    font-weight: 500;
}

/* Case study mockup illustration */
.case-mockup {
    position: relative;
    height: 180px;
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    padding: 1.25rem;
}

.case-mockup-1 { background: linear-gradient(135deg, rgba(0, 102, 204, 0.15), rgba(124, 58, 237, 0.08)); }
.dark .case-mockup-1 { background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(124, 58, 237, 0.12)); }
.case-mockup-2 { background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(234, 88, 12, 0.08)); }
.dark .case-mockup-2 { background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(234, 88, 12, 0.12)); }
.case-mockup-3 { background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.08)); }
.dark .case-mockup-3 { background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.12)); }
.case-mockup-4 { background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(8, 145, 178, 0.08)); }
.dark .case-mockup-4 { background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(8, 145, 178, 0.12)); }
.case-mockup-5 { background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(217, 119, 6, 0.1)); }
.dark .case-mockup-5 { background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(217, 119, 6, 0.14)); }
.case-mockup-6 { background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(21, 128, 61, 0.1)); }
.dark .case-mockup-6 { background: linear-gradient(135deg, rgba(34, 197, 94, 0.24), rgba(21, 128, 61, 0.14)); }

.case-mockup-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.dark .case-mockup-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.case-mockup-browser {
    position: relative;
    z-index: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.625rem;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .case-mockup-browser {
    background: rgba(10, 10, 15, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.case-study:hover .case-mockup-browser {
    transform: translateY(-4px);
}

.case-mockup-browser-bar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: rgba(15, 23, 42, 0.04);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.dark .case-mockup-browser-bar {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.case-mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.15);
}

.dark .case-mockup-dot {
    background: rgba(255, 255, 255, 0.15);
}

.case-mockup-url {
    flex: 1;
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    background: rgba(15, 23, 42, 0.05);
    font-size: 0.6875rem;
    color: rgb(71, 85, 105);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark .case-mockup-url {
    background: rgba(255, 255, 255, 0.05);
    color: rgb(156, 163, 175);
}

.case-mockup-body {
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.case-mockup-line {
    height: 6px;
    border-radius: 3px;
    background: rgba(15, 23, 42, 0.08);
}

.dark .case-mockup-line {
    background: rgba(255, 255, 255, 0.08);
}

.case-mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
    margin: 0.25rem 0;
}

.case-mockup-card {
    height: 28px;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(0, 102, 204, 0.15));
}

.case-mockup-1 .case-mockup-card { background: linear-gradient(135deg, rgba(0, 102, 204, 0.25), rgba(124, 58, 237, 0.15)); }
.case-mockup-2 .case-mockup-card { background: linear-gradient(135deg, rgba(251, 146, 60, 0.3), rgba(234, 88, 12, 0.18)); }
.case-mockup-3 .case-mockup-card { background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(168, 85, 247, 0.18)); }
.case-mockup-4 .case-mockup-card { background: linear-gradient(135deg, rgba(20, 184, 166, 0.3), rgba(8, 145, 178, 0.18)); }
.case-mockup-5 .case-mockup-card { background: linear-gradient(135deg, rgba(251, 191, 36, 0.32), rgba(217, 119, 6, 0.18)); }
.case-mockup-6 .case-mockup-card { background: linear-gradient(135deg, rgba(34, 197, 94, 0.32), rgba(21, 128, 61, 0.18)); }

@media (max-width: 640px) {
    .case-mockup { height: 140px; padding: 0.75rem; }
    .case-mockup-body { padding: 0.5rem; gap: 0.375rem; }
    .case-mockup-grid { gap: 0.25rem; }
    .case-mockup-card { height: 20px; }
}

/* Case study number big premium style */
.case-study-number {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: none !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: transparent !important;
    background-image: linear-gradient(135deg, #0066CC, #7C3AED) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: -0.04em !important;
}

/* ============ CASE GRID (new portfolio layout with screenshots) ============ */
.case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .case-grid { grid-template-columns: repeat(2, 1fr); }
}

.case-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgb(226, 232, 240);
    backdrop-filter: blur(16px);
    transition: all 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .case-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: rgb(203, 213, 225);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.dark .case-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 58, 237, 0.1);
}

.case-card-shot {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgb(241, 245, 249);
}

.dark .case-card-shot { background: rgba(255, 255, 255, 0.03); }

.case-card-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 400ms ease;
    filter: saturate(0.95);
    display: block;
}

.case-card:hover .case-card-shot img {
    transform: scale(1.05);
    filter: saturate(1.1);
}

.case-card-shot::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
    opacity: 0;
    transition: opacity 400ms ease;
}

.case-card:hover .case-card-shot::after { opacity: 1; }

.case-card-domain {
    position: absolute;
    bottom: 0.875rem;
    left: 0.875rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: rgb(51, 65, 85);
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    backdrop-filter: blur(8px);
}

.dark .case-card-domain {
    background: rgba(10, 10, 15, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgb(203, 213, 225);
}

.case-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.case-card-number {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #0066CC, #7C3AED);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}

.case-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.case-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: rgb(15, 23, 42);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.dark .case-card-title { color: white; }

.case-card-desc {
    font-size: 0.9375rem;
    color: rgb(71, 85, 105);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.dark .case-card-desc { color: rgb(156, 163, 175); }

.case-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgb(226, 232, 240);
    border-bottom: 1px solid rgb(226, 232, 240);
    margin-bottom: 1.25rem;
}

.dark .case-card-chips {
    border-top-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.case-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.625rem;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.12);
}

.dark .case-chip {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.2);
}

.case-chip-value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgb(15, 23, 42);
    line-height: 1.2;
}

.dark .case-chip-value { color: white; }

.case-chip-label {
    font-size: 0.6875rem;
    color: rgb(100, 116, 139);
    line-height: 1.2;
}

.dark .case-chip-label { color: rgb(148, 163, 184); }

.case-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #7C3AED;
    transition: gap 300ms ease, color 300ms ease;
    align-self: flex-start;
}

.dark .case-card-link { color: rgb(196, 181, 253); }

.case-card-link:hover {
    gap: 0.75rem;
    color: #6D28D9;
}

.dark .case-card-link:hover { color: rgb(216, 180, 254); }

@media (max-width: 640px) {
    .case-card-body { padding: 1.25rem; }
    .case-card-title { font-size: 1.25rem; }
    .case-card-chips { padding: 0.75rem 0; }
    .case-chip { padding: 0.4rem 0.625rem; }
}

/* Hide old linear case-study styles when used inside .case-grid context (kept for backward compat) */

/* ============ CONTACT FORM ============ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(51, 65, 85);
}

.dark .form-label {
    color: rgb(203, 213, 225);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgb(226, 232, 240);
    color: rgb(15, 23, 42);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 300ms ease;
    backdrop-filter: blur(8px);
    color-scheme: light;
}

.dark .form-input,
.dark .form-select,
.dark .form-textarea {
    color-scheme: dark;
}

/* Force native option dropdown readable in dark mode */
.form-select option {
    background: white;
    color: rgb(15, 23, 42);
    padding: 0.5rem;
}

.dark .form-select option {
    background: #0A0A0F;
    color: rgb(226, 232, 240);
}

.dark .form-input,
.dark .form-select,
.dark .form-textarea {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgb(71, 85, 105);
}

.dark .form-checkbox {
    color: rgb(156, 163, 175);
}

.form-checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    accent-color: #7C3AED;
    margin-top: 0.125rem;
}

/* ============ CONTACT METHOD CARD ============ */
.contact-method {
    position: relative;
    padding: 2rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgb(226, 232, 240);
    backdrop-filter: blur(12px);
    transition: all 400ms ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dark .contact-method {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.contact-method:hover {
    transform: translateY(-4px);
    border-color: rgb(124, 58, 237);
    box-shadow: 0 16px 32px rgba(124, 58, 237, 0.15);
}

.contact-method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    margin-bottom: 1.25rem;
}

.contact-method-icon.whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: rgb(37, 211, 102);
}

.contact-method-icon.email {
    background: rgba(0, 102, 204, 0.15);
    color: rgb(0, 102, 204);
}

.contact-method-icon.calendar {
    background: rgba(124, 58, 237, 0.15);
    color: rgb(124, 58, 237);
}

/* ============ TEAM MEMBER CARD ============ */
.team-card {
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgb(226, 232, 240);
    backdrop-filter: blur(16px);
    transition: all 400ms ease;
}

.dark .team-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: rgb(124, 58, 237);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.15);
}

.team-avatar {
    position: relative;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066CC, #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.3);
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-avatar::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066CC, #7C3AED);
    opacity: 0;
    filter: blur(12px);
    z-index: -1;
    transition: opacity 400ms ease;
}

.team-card:hover .team-avatar { transform: scale(1.05) rotate(-3deg); }
.team-card:hover .team-avatar::after { opacity: 0.5; }

.team-card {
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 500ms ease;
}

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

/* Color-coded value cards */
.value-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgb(226, 232, 240);
    backdrop-filter: blur(12px);
    transition: all 400ms ease;
    overflow: hidden;
}

.dark .value-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.value-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    transition: opacity 400ms ease;
}

.value-card:hover { transform: translateY(-4px); }
.value-card:hover::before { opacity: 0.65; }
.value-card-1::before { background: #7C3AED; }
.value-card-2::before { background: #0066CC; }
.value-card-3::before { background: #FB923C; }
.value-card-4::before { background: #14b8a6; }
.value-card-5::before { background: #A855F7; }

.value-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    margin-bottom: 0.875rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.value-card-1 .value-icon { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.value-card-2 .value-icon { background: linear-gradient(135deg, #0066CC, #0052A3); }
.value-card-3 .value-icon { background: linear-gradient(135deg, #FB923C, #EA580C); }
.value-card-4 .value-icon { background: linear-gradient(135deg, #14b8a6, #0891B2); }
.value-card-5 .value-icon { background: linear-gradient(135deg, #A855F7, #7C3AED); }

/* Editorial story quote */
.story-quote-mark {
    font-family: Georgia, serif;
    font-size: 8rem;
    line-height: 0.8;
    color: rgba(124, 58, 237, 0.15);
    position: absolute;
    top: -1rem;
    left: -2rem;
    pointer-events: none;
    user-select: none;
}

.dark .story-quote-mark {
    color: rgba(124, 58, 237, 0.25);
}

/* ============ PREMIUM CTA (shared) ============ */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cta-mesh-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
    opacity: 0.6;
}

.dark .cta-mesh-grid {
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.2) 1px, transparent 1px);
    opacity: 0.5;
}

.cta-border-wrapper {
    position: relative;
    padding: 2px;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(0, 102, 204, 0.3), rgba(124, 58, 237, 0.4));
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.15), 0 30px 60px rgba(0, 0, 0, 0.08);
}

.dark .cta-border-wrapper {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.6), rgba(0, 102, 204, 0.5), rgba(124, 58, 237, 0.6));
    background-size: 200% 200%;
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.3), 0 30px 80px rgba(0, 0, 0, 0.5);
}

.cta-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    border-radius: calc(2rem - 2px);
    overflow: hidden;
}

.dark .cta-card {
    background: rgba(10, 10, 15, 0.92);
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(0, 102, 204, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.dark .cta-card::before {
    background:
        radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(0, 102, 204, 0.12) 0%, transparent 40%);
}

.cta-deco-icon {
    position: absolute;
    color: #7C3AED;
    opacity: 0.08;
    pointer-events: none;
}

.dark .cta-deco-icon {
    opacity: 0.15;
}

.cta-deco-1 { top: 8%; left: 6%; width: 48px; height: 48px; animation: float 8s ease-in-out infinite; }
.cta-deco-2 { top: 12%; right: 8%; width: 56px; height: 56px; color: #0066CC; animation: float 10s ease-in-out infinite; animation-delay: -2s; }
.cta-deco-3 { bottom: 10%; left: 10%; width: 52px; height: 52px; animation: float 12s ease-in-out infinite; animation-delay: -4s; }

.cta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgb(226, 232, 240);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(51, 65, 85);
    backdrop-filter: blur(8px);
    transition: all 300ms ease;
}

.dark .cta-chip {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgb(203, 213, 225);
}

.cta-chip:hover {
    transform: translateY(-2px);
    border-color: rgb(124, 58, 237);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

/* ============ HERO FLOATING ICONS (shared) ============ */
.hero-bg-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg-icon {
    position: absolute;
    color: #7C3AED;
    opacity: 0.12;
    animation: float 10s ease-in-out infinite;
}

.dark .hero-bg-icon {
    opacity: 0.18;
}

.hero-icon-1 { top: 14%; left: 14%; width: 56px; height: 56px; color: #0066CC; animation-delay: -1s; }
.hero-icon-2 { top: 25%; right: 12%; width: 64px; height: 64px; animation-delay: -3s; }
.hero-icon-3 { top: 62%; left: 18%; width: 52px; height: 52px; color: #0066CC; animation-delay: -6s; }
.hero-icon-4 { bottom: 22%; right: 22%; width: 60px; height: 60px; animation-delay: -2s; }
.hero-icon-5 { top: 45%; left: 42%; width: 44px; height: 44px; animation-delay: -4s; opacity: 0.08; }

.dark .hero-icon-5 { opacity: 0.12; }

/* ============ RESPONSIVE HELPERS ============ */
@media (max-width: 768px) {
    .page-hero {
        min-height: 44vh;
        padding: 7rem 1rem 3rem;
    }

    .page-hero-orb-1,
    .page-hero-orb-2 {
        width: 200px;
        height: 200px;
    }

    .service-block {
        padding: 2.5rem 0;
    }

    .service-block-visual {
        aspect-ratio: 3/2;
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .page-hero-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
    }

    .pricing-plan {
        padding: 1.75rem 1.25rem;
    }

    .pricing-plan-price-amount {
        font-size: 2.5rem;
    }

    .contact-method {
        padding: 1.5rem;
    }

    .team-card {
        padding: 1.75rem;
    }
}
