/* ===== MOBILE RESPONSIVE STYLES ===== */

/* ===== BASE & GLOBAL ===== */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(94, 234, 212, 0.2);
    }

    html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    body {
        font-size: 16px;
        overflow-x: hidden;
        width: 100%;
        position: relative;
        min-height: 100vh;
    }

    .container {
        padding: 0 1.25rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Fix background effects for mobile */
    .aurora-bg {
        opacity: 0.12 !important;
        filter: blur(60px) !important;
        will-change: transform;
    }

    .aurora-bg::before {
        width: 300px !important;
        height: 300px !important;
        top: 10% !important;
        left: 20% !important;
    }

    .aurora-bg::after {
        width: 400px !important;
        height: 400px !important;
        top: 50% !important;
        right: 10% !important;
    }

    body::before {
        opacity: 0.02 !important;
    }

    body::after {
        background-size: 25px 25px !important;
        opacity: 0.4 !important;
    }

    /* Hide particle canvas on mobile */
    #bg-canvas {
        display: none !important;
    }

    /* Typography */
    h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.15;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: clamp(1.125rem, 5vw, 1.5rem);
        line-height: 1.3;
    }

    .section-title {
        margin-bottom: 2rem;
    }
}

/* ===== HERO SECTION ===== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 3rem 0 2rem;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        padding-right: 0;
        text-align: left;
        max-width: 100%;
    }

    .hero-header-wrapper {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
        margin-top: 0;
    }

    .hero-logo-crest {
        position: static;
        height: 48px;
        transform: none;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
        margin-bottom: 0;
    }

    .hero-subtitle {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .hero-metrics {
        gap: 2rem;
        margin-bottom: 2rem;
        justify-content: flex-start;
    }

    .metric-value {
        font-size: 1.75rem;
    }

    .metric-label {
        font-size: 0.75rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===== PIPELINE ===== */
@media (max-width: 768px) {
    .pipeline-container {
        display: none !important;
    }
}

/* ===== PRODUCT PREVIEW ===== */
@media (max-width: 768px) {
    .product-preview-section {
        padding: 3rem 0 !important;
        height: auto !important;
        min-height: auto !important;
    }

    .pp-sticky-wrapper {
        position: relative !important;
        height: auto !important;
        top: auto !important;
        display: block !important;
    }

    .pp-container {
        position: relative !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 1.25rem !important;
        max-width: 100% !important;
        display: flex !important;
    }

    /* Hide desktop text column */
    .pp-text-column {
        display: none !important;
    }

    .pp-visual-column {
        width: 100% !important;
        position: relative !important;
        top: auto !important;
        transform: none !important;
        perspective: none !important;
    }

    /* Hide desktop browser frame and carousel */
    .browser-frame {
        display: none !important;
    }

    /* Show mobile text-image pairs */
    .pp-mobile-pairs {
        display: flex !important;
        flex-direction: column !important;
        gap: 3rem !important;
        width: 100% !important;
    }

    .pp-mobile-pair {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .pp-mobile-text {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .pp-mobile-text .pp-label {
        font-family: var(--font-mono);
        color: var(--core-teal);
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .pp-mobile-text .pp-title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
        font-weight: 700;
        color: var(--text-primary);
    }

    .pp-mobile-text .pp-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        color: var(--text-secondary) !important;
        margin-bottom: 0;
    }

    .pp-mobile-img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        border-radius: 12px !important;
        border: 1px solid rgba(94, 234, 212, 0.2) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
        object-fit: contain !important;
    }
}





/* ===== INTEGRATIONS MARQUEE ===== */
@media (max-width: 768px) {
    .integrations-section {
        padding: 3rem 0 !important;
        min-height: 120px !important;
        display: block !important;
        overflow: hidden !important;
    }

    .integrations-label {
        font-size: 0.8rem !important;
        margin-bottom: 2rem !important;
        opacity: 1 !important;
    }

    .marquee {
        display: block !important;
        overflow: hidden !important;
    }

    .marquee-content {
        display: flex !important;
        animation: scroll-left 40s linear infinite !important;
    }

    .integration-item {
        padding: 0.875rem 2rem !important;
        font-size: 0.95rem !important;
        gap: 0.75rem !important;
        display: flex !important;
        align-items: center !important;
    }

    .integration-icon {
        width: 1.5rem !important;
        height: 1.5rem !important;
        flex-shrink: 0 !important;
    }
}


/* ===== PROBLEM SECTION ===== */
@media (max-width: 768px) {
    .problem-section {
        padding: 3rem 0;
    }

    .problem-label {
        font-size: 0.75rem;
    }

    .problem-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .competitor-visual {
        width: 100%;
        max-width: 100%;
    }

    .competitor-img {
        border-radius: 12px;
    }

    .competitor-caption {
        font-size: 0.75rem;
        margin-top: 0.75rem;
    }

    .problem-list {
        width: 100%;
        gap: 1rem;
    }

    .problem-item {
        font-size: 0.95rem;
        padding: 0.75rem 0;
    }

    .problem-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .problem-statement-wrapper {
        margin-top: 2rem;
    }

    .problem-statement {
        font-size: 1.25rem;
        padding: 1.5rem;
    }
}

/* ===== CARDS GRID ===== */
@media (max-width: 768px) {
    section {
        padding: 4rem 0 !important;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem !important;
    }

    .card {
        padding: 1.75rem;
        margin-bottom: 0;
    }

    /* Disable hover effects on mobile */
    .card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: rgba(94, 234, 212, 0.2) !important;
        background: linear-gradient(135deg,
                rgba(15, 31, 29, 0.6) 0%,
                rgba(10, 21, 20, 0.8) 100%) !important;
    }

    .card:hover::before {
        opacity: 0 !important;
    }

    .card-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 1.25rem;
    }

    .card-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .card-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .card-header span {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.875rem;
    }
}



/* ===== MARKET MAP ===== */
@media (max-width: 768px) {
    .market-map-section {
        padding: 3rem 0 !important;
        overflow: visible !important;
    }

    .market-map-container {
        height: 450px !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        margin: 1.5rem 0 !important;
        padding: 1.5rem 0.75rem !important;
        border-radius: 1rem !important;
    }

    .map-grid {
        background-size: 15px 15px !important;
        filter: blur(0.2px) !important;
        opacity: 0.25 !important;
    }

    .map-axis-y,
    .map-axis-x {
        opacity: 0.4 !important;
    }

    .map-axis-x {
        left: 1.5rem !important;
        right: 1.5rem !important;
    }

    .map-axis-y {
        top: 1.5rem !important;
        bottom: 1.5rem !important;
    }

    .axis-label {
        font-size: 0.65rem !important;
        padding: 0.4rem 0.6rem !important;
        background: rgba(3, 11, 10, 0.98) !important;
        backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(94, 234, 212, 0.4) !important;
        border-radius: 6px !important;
        max-width: 140px !important;
        line-height: 1.25 !important;
        font-weight: 600 !important;
        z-index: 100 !important;
    }

    .label-y-top {
        top: 0.75rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .label-y-bottom {
        bottom: 0.75rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .label-x-left {
        top: 50% !important;
        left: 0.4rem !important;
        transform: translateY(-50%) !important;
    }

    .label-x-right {
        top: 50% !important;
        right: 0.4rem !important;
        transform: translateY(-50%) !important;
    }

    /* HIDE TARGET SEGMENT ON MOBILE */
    .target-segment {
        display: none !important;
    }

    .segment-label {
        display: none !important;
    }

    /* SHOW ALL COMPANY NAMES - SMALLER */
    .company-node {
        transform: translate(-50%, -50%) scale(0.95) !important;
        will-change: transform !important;
        z-index: 50 !important;
    }

    .company-dot {
        width: 10px !important;
        height: 10px !important;
        border-width: 1.5px !important;
        flex-shrink: 0 !important;
    }

    .company-name {
        display: block !important;
        font-size: 0.7rem !important;
        padding: 0.3rem 0.55rem !important;
        white-space: nowrap !important;
        background: rgba(3, 11, 10, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(94, 234, 212, 0.25) !important;
        border-radius: 5px !important;
        max-width: none !important;
        opacity: 1 !important;
        font-weight: 600 !important;
        color: var(--bright-teal) !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    }

    /* Curestry - самый заметный */
    .is-curestry {
        z-index: 100 !important;
    }

    .is-curestry .company-dot {
        width: 20px !important;
        height: 20px !important;
        border-width: 2.5px !important;
        border-radius: 4px !important;
    }

    .is-curestry .company-name {
        font-size: 0.85rem !important;
        font-weight: 800 !important;
        padding: 0.4rem 0.8rem !important;
        background: rgba(3, 11, 10, 0.98) !important;
        border: 1.5px solid rgba(94, 234, 212, 0.6) !important;
        color: var(--bright-teal) !important;
    }

    /* Laminar - тоже заметный */
    .is-laminar {
        z-index: 90 !important;
    }

    .is-laminar .company-dot {
        width: 14px !important;
        height: 14px !important;
        border-radius: 3px !important;
    }

    .is-laminar .company-name {
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        padding: 0.35rem 0.65rem !important;
        background: rgba(3, 11, 10, 0.98) !important;
        border: 1px solid rgba(94, 234, 212, 0.4) !important;
        color: var(--bright-teal) !important;
    }

    /* Disable hover effects on mobile */
    .company-node:hover {
        transform: translate(-50%, -50%) scale(0.95) !important;
    }
}




/* ===== CTA SECTION ===== */
@media (max-width: 768px) {
    section[style*="padding: 5rem 0"] {
        padding: 3rem 0 !important;
    }

    section[style*="padding: 5rem 0"] h2 {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        margin-bottom: 1rem !important;
    }

    section[style*="padding: 5rem 0"] p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }

    section[style*="padding: 5rem 0"] .cta-button {
        width: 100%;
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }

    section[style*="padding: 5rem 0"] div[style*="gap: 1.5rem"] {
        gap: 1rem !important;
    }
}

/* ===== FOOTER ===== */
@media (max-width: 768px) {
    footer {
        padding: 3rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column {
        text-align: left;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-about {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .footer-column h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-contact-item {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .footer-contact-item svg {
        width: 1rem;
        height: 1rem;
    }

    .founders-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .founder-card {
        width: 100%;
        max-width: 280px;
    }

    .founder-photo {
        width: 60px;
        height: 60px;
    }

    .founder-name {
        font-size: 0.95rem;
    }

    .founder-title {
        font-size: 0.8rem;
    }

    .founder-social svg {
        width: 1rem;
        height: 1rem;
    }
}

/* ===== LANGUAGE SWITCHER ===== */
@media (max-width: 768px) {
    .language-switcher {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1000;
        gap: 0.5rem;
    }

    .lang-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* ===== ANIMATIONS - REDUCE MOTION ===== */
@media (max-width: 768px) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .reveal-delay-1,
    .reveal-delay-2,
    .reveal-delay-3,
    .reveal-delay-4,
    .reveal-delay-5 {
        animation-delay: 0s !important;
    }
}

/* ===== SMALL MOBILE (iPhone SE, etc) ===== */
@media (max-width: 375px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-metrics {
        gap: 1.5rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .market-map-container {
        height: 350px;
    }

    .company-node {
        transform: scale(0.7);
    }

    .company-name {
        font-size: 0.65rem;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .market-map-container {
        height: 350px;
    }
}

/* ===== FIX HORIZONTAL SCROLL ===== */
@media (max-width: 768px) {
    * {
        max-width: 100vw;
    }

    body,
    html {
        overflow-x: hidden;
        position: relative;
    }

    .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    section {
        overflow-x: hidden;
    }
}