/* Global Responsive Fixes (Desktop-safe: only breakpoint overrides) */

@media (max-width: 1200px) {
    .container {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}

@media (max-width: 992px) {

    html.snap-mandatory,
    html.snap-scroll-enabled {
        scroll-snap-type: none !important;
    }

    .snap-section,
    .fs-section {
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .section {
        padding: 64px 0 !important;
    }

    .hero-white,
    .hero-home,
    .hero-section,
    .section-hero,
    .im-hero-section,
    .ugc-hero-section {
        min-height: 100svh !important;
    }

    .hero-white-content,
    .hero-section-centered,
    .im-hero-content,
    .ugc-hero-content-offset {
        padding-top: 120px !important;
        padding-bottom: 36px !important;
    }

    .hero-main-title,
    .hero-tagline,
    .hero-title,
    .hero-headline {
        text-align: center;
    }

    .hero-main-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1.16 !important;
    }

    .hero-tagline {
        font-size: clamp(1.75rem, 6.6vw, 2.8rem) !important;
        line-height: 1.2 !important;
    }

    .hero-subtext,
    .hero-desc,
    .hero-sub {
        font-size: clamp(1rem, 2.8vw, 1.2rem) !important;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        line-height: 1.55 !important;
    }

    .hero-title,
    .hero-headline,
    .section-title {
        max-width: 18ch;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .section-desc {
        max-width: 42ch;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-cta-wrapper {
        gap: 12px !important;
    }

    .hero-cta-group {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .hero-bottom-marquee {
        position: relative !important;
    }

    .brand-marquee {
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    .marquee-track {
        gap: 42px !important;
        animation-duration: 24s !important;
    }

    .product-grid,
    .feature-card-grid,
    .kobi-grid,
    .solution-grid,
    .features-grid-5,
    .pricing-cards-grid,
    .package-cols,
    .process-steps-grid,
    .roi-features-grid,
    .features-2x2 {
        grid-template-columns: 1fr !important;
    }

    .product-card,
    .price-card,
    .feature-content-card,
    .kobi-card,
    .solution-box,
    .feature-card-new {
        min-height: unset !important;
        height: auto !important;
    }

    .card-content,
    .card-visual {
        width: 100% !important;
    }

    .card-visual {
        margin-top: 12px !important;
    }

    .visual-container,
    .creator-dashboard,
    .creative-panel,
    .ugc-panel {
        max-width: 100% !important;
        width: 100% !important;
    }

    .dashboard-list,
    .ugc-thumbs,
    .creative-grid {
        gap: 10px !important;
    }

    .creative-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .features-wrapper,
    .combined-process-campaign,
    .roi-container,
    .showcase-split-wrapper,
    .showcase-right-flex,
    .ad-creative-sticky-wrapper,
    .feature-grid-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .showcase-left,
    .showcase-right,
    .video-content,
    .video-container,
    .roi-chart-box,
    .process-timeline,
    .process-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .content-carousel {
        overflow-x: auto !important;
        scroll-snap-type: x proximity;
        padding-bottom: 8px;
    }

    .content-carousel .content-card {
        min-width: min(80vw, 320px);
    }

    .proof-gallery,
    .ui-gallery,
    .showcase-grid-images {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .compare-table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .compare-table table {
        min-width: 740px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }

    .container {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    /* Global mobile text safe area */
    .hero-mobile-content,
    .main-statement-container,
    .marketing-statement-section .sticky-marketing-content .container {
        padding-left: 22px !important;
        padding-right: 22px !important;
        box-sizing: border-box !important;
    }

    .header {
        top: 8px !important;
        padding: 0 10px !important;
    }

    .header-pill {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 56px !important;
        padding: 10px 54px !important;
        border-radius: 999px !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.92) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
    }

    .logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
    }

    .logo-img {
        height: 30px !important;
        width: auto !important;
    }

    .nav-links,
    .nav-divider,
    .header-actions {
        display: none !important;
    }

    .hamburger {
        display: inline-flex !important;
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 28px !important;
        height: 20px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 4px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hamburger span {
        width: 20px !important;
        height: 2px !important;
        border-radius: 99px !important;
        background: #131313 !important;
    }

    .mobile-menu-panel {
        top: 74px !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0 10px !important;
        z-index: 1200 !important;
    }

    .mobile-menu-inner {
        margin: 0 !important;
        border-radius: 14px !important;
        max-height: calc(100vh - 90px) !important;
        overflow: auto !important;
    }

    .mobile-menu-actions {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .mobile-menu-actions .nav-signin,
    .mobile-menu-actions .btn-black {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 10px !important;
    }

    .hero-white,
    .hero-home,
    .hero-section,
    .section-hero,
    .im-hero-section,
    .ugc-hero-section {
        min-height: 100svh !important;
    }

    .hero-main-title {
        font-size: clamp(1.65rem, 7vw, 2.1rem) !important;
        line-height: 1.14 !important;
        letter-spacing: -0.02em;
    }

    .hero-tagline,
    .hero-title,
    .hero-headline {
        font-size: clamp(1.4rem, 6vw, 1.85rem) !important;
        line-height: 1.18 !important;
        letter-spacing: -0.02em;
        margin-bottom: 12px !important;
    }

    .hero-subtext,
    .hero-desc,
    .hero-sub,
    .hero-cta-label {
        font-size: clamp(0.9rem, 3.5vw, 1rem) !important;
        max-width: 34ch !important;
        margin-left: auto !important;
        margin-right: auto !important;
        line-height: 1.52 !important;
    }

    .hero-white-content {
        padding-top: 100px !important;
        padding-bottom: 24px !important;
    }

    .hero-section-centered,
    .im-hero-content,
    .ugc-hero-content-offset {
        padding-top: 100px !important;
        padding-bottom: 24px !important;
    }

    .hero-section-centered,
    .im-hero-content,
    .ugc-hero-content-offset,
    .section-hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .section-hero {
        padding-top: 104px !important;
        padding-bottom: 28px !important;
    }

    /* Mobile hero standardization: same type scale + same positioning across pages */
    .hero-mobile-unified .hero-mobile-content {
        width: min(100%, 680px) !important;
        margin: 0 auto !important;
        padding-top: 100px !important;
        padding-bottom: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero-mobile-unified.hero-mobile-content {
        width: min(100%, 680px) !important;
        margin: 0 auto !important;
        padding-top: 100px !important;
        padding-bottom: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero-mobile-unified .hero-primary-title {
        font-size: clamp(1.75rem, 7.5vw, 2.2rem) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.022em !important;
        font-weight: 600 !important;
        max-width: 11.6ch !important;
        margin: 0 auto 14px !important;
        text-align: center !important;
    }

    .hero-mobile-unified .hero-secondary-title {
        font-size: clamp(1.02rem, 4.2vw, 1.14rem) !important;
        line-height: 1.48 !important;
        font-weight: 500 !important;
        color: #666a73 !important;
        max-width: 30ch !important;
        margin: 0 auto 18px !important;
        text-align: center !important;
    }

    .hero-mobile-unified .hero-primary-desc {
        font-size: clamp(1.02rem, 4.2vw, 1.14rem) !important;
        line-height: 1.48 !important;
        font-weight: 400 !important;
        color: #646871 !important;
        max-width: 30ch !important;
        margin: 0 auto 22px !important;
        text-align: center !important;
    }

    .hero-mobile-unified .hero-cta-wrapper {
        margin-top: 0 !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .hero-mobile-unified .hero-cta-wrapper .btn,
    .hero-mobile-unified .hero-cta-group .btn {
        min-height: 44px !important;
        padding: 10px 24px !important;
        font-size: 1rem !important;
    }

    .hero-mobile-unified .hero-cta-label {
        margin: 2px 0 0 !important;
        font-size: 0.96rem !important;
    }

    .hero-mobile-unified .badge-pill {
        margin-bottom: 16px !important;
    }

    .hero-mobile-unified .hero-stats {
        margin-top: 24px !important;
        max-width: 320px !important;
        width: 100% !important;
        /* Ensure items center */
        justify-items: center !important;
    }

    .hero-mobile-unified .stat-item {
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-mobile-unified .stat-number {
        font-size: clamp(2.1rem, 10vw, 2.65rem) !important;
        line-height: 1.08 !important;
    }

    .hero-mobile-unified .stat-label {
        font-size: 0.95rem !important;
        letter-spacing: 0.08em !important;
    }

    /* Marketing statement block spacing and wrapping */
    .main-statement-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .marketing-statement-text {
        font-size: clamp(1.8rem, 7.8vw, 2.35rem) !important;
        line-height: 1.22 !important;
        max-width: calc(100vw - 68px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    .marketing-statement-text .mobile-break {
        display: block !important;
    }

    /* Content Studio mobile hero: keep first fold consistent with others */
    .hero-white-container.hero-mobile-unified {
        height: 100svh !important;
    }

    .hero-white-container.hero-mobile-unified .hero-sticky-wrapper {
        height: 100svh !important;
        padding-top: 0 !important;
        justify-content: center !important;
    }

    .hero-white-container.hero-mobile-unified .hero-scroll-transform,
    .hero-white-container.hero-mobile-unified .scroll-instruction-wrapper {
        display: none !important;
    }

    .hero-white-container.hero-mobile-unified .hero-mobile-content {
        padding-top: 48px !important;
        padding-bottom: 22px !important;
    }

    .cs-hero-title .cs-hero-title-desktop {
        display: none !important;
    }

    .cs-hero-title .cs-hero-title-mobile {
        display: block !important;
        white-space: nowrap !important;
    }

    /* Homepage mobile marquee must stay at the very bottom of first screen */
    .hero-home.hero-mobile-unified {
        position: relative !important;
        overflow: hidden !important;
    }

    .hero-home.hero-mobile-unified .hero-mobile-content {
        padding-bottom: 22px !important;
    }

    .hero-home.hero-mobile-unified .hero-bottom-marquee {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        padding: 24px 0 calc(40px + env(safe-area-inset-bottom)) !important;
    }

    .hero-home.hero-mobile-unified .marquee-track {
        gap: 80px !important;
    }

    .hero-home.hero-mobile-unified .logo-item img {
        height: 40px !important;
    }

    /* Influencer hero mobile alignment */
    .im-hero-section.hero-mobile-unified .im-hero-content.hero-mobile-content {
        justify-content: flex-start !important;
        padding-top: 86px !important;
        padding-bottom: 28px !important;
    }

    .im-hero-section.hero-mobile-unified .im-hero-title.hero-primary-title {
        max-width: 14ch !important;
    }

    /* Content Studio mobile heading rhythm: keep top spacing consistent across showcase blocks */
    body[data-page="content-studio"] .showcase-split-wrapper .showcase-text-content {
        padding-top: 20px !important;
    }

    body[data-page="content-studio"] .showcase-split-wrapper .showcase-text-content h2 {
        margin-top: 0 !important;
    }

    /* Content Studio ad-creative block: match horizontal gutters with previous section */
    body[data-page="content-studio"] .ad-creative-section .showcase-split-wrapper {
        padding-left: 22px !important;
        padding-right: 22px !important;
        box-sizing: border-box !important;
    }

    body[data-page="content-studio"] .ad-creative-section .showcase-text-content {
        width: 100% !important;
        max-width: 34ch !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body[data-page="content-studio"] .ad-creative-section {
        height: auto !important;
        min-height: auto !important;
    }

    body[data-page="content-studio"] .ad-creative-section .ad-creative-sticky-wrapper {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        display: block !important;
        padding-top: 12px !important;
        padding-bottom: 24px !important;
    }

    body[data-page="content-studio"] .ad-creative-section .showcase-split-wrapper-full {
        height: auto !important;
        align-items: flex-start !important;
    }

    .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .stat-item {
        width: 100% !important;
    }

    .trust-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        justify-content: unset !important;
        gap: 10px 12px !important;
    }

    .trust-row span {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .product-card,
    .feature-content-card,
    .price-card,
    .solution-box,
    .kobi-card {
        padding: 18px !important;
        border-radius: 16px !important;
    }

    .card-title,
    .section-title {
        font-size: clamp(1.45rem, 6.6vw, 1.85rem) !important;
        line-height: 1.25 !important;
        text-wrap: balance;
    }

    .card-description,
    .section-desc,
    .testimonial-text,
    .plan-desc {
        font-size: 0.98rem !important;
        line-height: 1.55 !important;
    }

    .card-features {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
        padding-left: 18px !important;
    }

    .ugc-video-marquee-container {
        margin-top: 20px !important;
    }

    .ugc-video-item {
        width: min(62vw, 220px) !important;
        height: auto !important;
    }

    .showcase-split-wrapper,
    .features-video-snap,
    .combined-process-campaign {
        gap: 18px !important;
    }

    .showcase-text-content,
    .feature-text-content,
    .video-content,
    .card-content {
        text-align: left !important;
    }

    .showcase-text-content .section-title,
    .feature-text-content .section-title,
    .video-content .section-title {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }

    .phone-frame {
        max-width: 300px !important;
        margin: 0 auto !important;
    }

    .big-cta-section {
        height: 460px !important;
    }

    .big-cta-content h2 {
        font-size: clamp(1.8rem, 8vw, 2.35rem) !important;
        margin-bottom: 20px !important;
    }

    .footer {
        padding: 52px 0 26px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 14px !important;
        text-align: left !important;
    }

    .footer-bottom-right {
        flex-wrap: wrap;
        gap: 10px !important;
    }

    /* Force campaign grid to single column on mobile */
    .campaign-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

.cs-hero-title .cs-hero-title-mobile {
    display: none;
}

@media (max-width: 480px) {

    .proof-gallery,
    .ui-gallery,
    .showcase-grid-images {
        grid-template-columns: 1fr !important;
    }

    .container,
    .hero-mobile-content,
    .main-statement-container,
    .marketing-statement-section .sticky-marketing-content .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .marketing-statement-text {
        font-size: clamp(1.95rem, 8.2vw, 2.5rem) !important;
        line-height: 1.2 !important;
        max-width: calc(100vw - 62px) !important;
    }

    .trust-row {
        grid-template-columns: 1fr !important;
    }

    .btn,
    .btn-black-pill,
    .btn-white-pill,
    .btn-black {
        font-size: 14px !important;
        padding: 12px 20px !important;
    }

    /* ROI Chart Mobile Optimization */
    .roi-chart-box {
        padding: 30px 10px 0 !important;
    }

    .roi-chart-visual {
        height: 280px !important;
        padding-left: 36px !important;
        margin-bottom: 60px !important;
        margin-top: 40px !important;
    }

    .y-axis-title {
        left: -32px !important;
        font-size: 9px !important;
        letter-spacing: 0 !important;
    }

    .grid-lines-bg,
    .chart-bars {
        left: 36px !important;
    }

    .grid-line::before {
        left: -32px !important;
        width: 28px !important;
        font-size: 9px !important;
    }

    .chart-bar-group {
        width: 22% !important;
    }

    .bar {
        width: 70% !important;
        max-width: 32px !important;
        min-width: 16px !important;
    }

    .bar-value {
        font-size: 9px !important;
        margin-bottom: 4px !important;
        letter-spacing: -0.02em;
    }

    .bar-label {
        font-size: 9px !important;
        line-height: 1.15 !important;
    }

    .bar-label small {
        font-size: 8px !important;
        display: block;
        margin-top: 2px;
        opacity: 0.7;
    }

    /* Video Carousel Mobile Fixes */
    .content-carousel {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 60px !important;
        /* Space for button */
        padding-top: 20px !important;
        gap: 20px;
        /* Reset 3D perspective */
        perspective: none !important;
        transform-style: flat !important;
        /* Center initial view logic handled by JS or scroll-padding */
    }

    .content-card,
    .content-card.pos-edge-left,
    .content-card.pos-edge-right {
        min-width: 75vw !important;
        /* Show part of next slide */
        width: 75vw !important;
        scroll-snap-align: center;
        background: transparent !important;
        box-shadow: none !important;
        margin: 0 !important;
        /* Override JS styles */
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        display: flex !important;
        /* Ensure all are shown */
        flex: 0 0 auto !important;
        position: relative !important;
    }

    /* Hide navigation arrows on mobile as we have swipe */
    .carousel-nav-btn {
        display: none !important;
    }

    /* Ensure video container aspect ratio is correct and button places well */
    .card-video-placeholder {
        aspect-ratio: 9 / 16;
        width: 100%;
        border-radius: 16px;
        background: #000;
        margin-bottom: 20px;
        /* Space between video and button */
    }

    .action-btn {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 0 !important;
        z-index: 5;
        opacity: 1 !important;
        /* Make sure it's visible */
        pointer-events: auto !important;
    }

    /* Mobile Footer CTA (Collage Style) */
    /* Specs: Padding 60px 20px, Bg Collage + Dark Overlay */
    /* Top banner removed from HTML, keeping bottom one */

    .big-cta-section {
        background-image: url('../assets/cta_collage_new.png') !important;
        background-size: cover !important;
        background-position: center !important;
        background-color: #111 !important;
        position: relative !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 60px 20px !important;
        min-height: auto !important;
        /* Reset big-cta height */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Dark Overlay for both */
    .big-cta-section::before {
        content: '' !important;
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6) !important;
        z-index: 1 !important;
    }

    /* Hide original backgrounds */
    .big-cta-section .big-cta-bg {
        display: none !important;
    }

    /* Content z-index styling */
    .big-cta-section .big-cta-content {
        position: relative !important;
        z-index: 2 !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        /* Reset internal padding */
    }

    /* Typography Overrides */
    .big-cta-section h2.hero-title {
        color: #fff !important;
        font-size: 24px !important;
        line-height: 1.3 !important;
        font-weight: 700 !important;
        margin-bottom: 12px !important;
        text-transform: none !important;
        /* Ensure consistent casing if needed */
        max-width: 100% !important;
    }

    .big-cta-section p {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 14px !important;
        margin-bottom: 24px !important;
    }

    /* Button Styling - Force Identical Look */
    .big-cta-section .btn-white-pill {
        background-color: #fff !important;
        color: #000 !important;
        border: none !important;
        border-radius: 100px !important;
        padding: 16px 0 !important;
        /* Use 0 horizontal padding and rely on width */
        font-weight: 600 !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        width: 200px !important;
        /* Fixed width for perfect match */
        min-width: 200px !important;
        max-width: 200px !important;
        height: 54px !important;
        /* Fixed height */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}
/* --- Global Fixes: Force Alignment & Disable Scaling --- */

/* 1. Ensure "Hemen Başla" Button is ALWAYS Centered */
.big-cta-section .btn-white-pill {
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-self: center !important;
}

/* 2. Disable Video Carousel Scaling (One card bigger than others) */
.content-carousel .content-card,
.content-carousel .content-card.center,
.content-carousel .content-card.active,
.im-carousel-video {
    transform: none !important;
    /* Force no scaling */
    z-index: 1 !important;
    /* Reset z-index layering if used for pop-out */
    opacity: 1 !important;
    top: 0 !important;
}

/* Ensure placeholder also doesn't scale */
.content-card .card-video-placeholder {
    transform: none !important;
}
