/* ===================================
   C-LEVEL CRM - RESPONSIVE STYLES
   Mobile-First Approach
   =================================== */

/* ===================================
   MOBILE (Default - up to 767px)
   =================================== */

/* Header Mobile */
@media (max-width: 767px) {
    .header-content {
        padding: 16px 0;
    }

    .logo-text {
        font-size: 20px;
    }

    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--color-dark-blue);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
        z-index: 999;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        padding: var(--spacing-xl) var(--spacing-lg);
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-list a {
        display: block;
        padding: var(--spacing-md) 0;
        color: var(--color-white);
        font-size: 16px;
        font-weight: 500;
    }

    .nav-list a:hover {
        color: var(--color-electric-blue);
    }

    .nav-dropdown {
        position: static;
        margin-top: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0;
        padding: 0 var(--spacing-md);
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .nav-item-dropdown.active .nav-dropdown {
        max-height: 500px;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .nav-dropdown a {
        padding: var(--spacing-sm) 0;
        color: rgba(255, 255, 255, 0.85);
        font-size: 15px;
    }

    .nav-dropdown a:hover {
        color: var(--color-electric-blue);
    }

    .nav-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-xl) var(--spacing-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: var(--spacing-md);
    }

    .nav-mobile-actions .btn-text {
        color: var(--color-white);
        text-align: center;
        padding: var(--spacing-sm);
    }

    .nav-mobile-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero Mobile */
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-content-wrapper {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .hero-badge {
        justify-content: center;
        order: 1;
    }

    .hero-title {
        order: 2;
    }

    .hero-subtitle {
        order: 3;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
        order: 4;
        margin: var(--spacing-lg) 0;
    }

    .hero-cta {
        order: 5;
    }

    .hero-stats {
        order: 6;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }

    .hero-stats .stat {
        padding: var(--spacing-md);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-md);
    }

    .hero-stats .stat-number {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .hero-stats .stat-label {
        font-size: 11px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Stats Bar Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: var(--font-size-xl);
    }

    /* Section Padding Mobile */
    .section-padding {
        padding: var(--spacing-2xl) 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: var(--font-size-base);
    }

    /* Comparison Table Mobile */
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-column.traditional {
        border-right: none;
        border-bottom: 2px solid var(--color-border);
    }

    .comparison-column {
        padding: var(--spacing-md);
    }

    /* Features Grid Large Mobile */
    .features-grid-large {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Channels Mobile */
    .channels-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Agents Mobile */
    .agents-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .agents-types-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .agents-comparison {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-md);
    }

    .comparison-divider {
        display: none;
    }

    .comparison-side {
        padding: var(--spacing-md);
    }

    /* Steps Mobile */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .steps-grid::before {
        display: none;
    }

    /* Industries Mobile */
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }

    .industry-item {
        padding: var(--spacing-md);
    }

    .industry-icon {
        font-size: 32px;
    }

    /* Form Mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .cta-title {
        font-size: 28px;
    }

    .form-benefits {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    /* Final CTA Mobile */
    .cta-wrapper {
        padding: var(--spacing-xl);
        margin: 0 var(--spacing-sm);
    }

    .cta-content {
        text-align: center;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
        margin: var(--spacing-lg) 0;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-benefits {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
        margin-top: var(--spacing-lg);
    }

    .benefit-item {
        font-size: 13px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-sm);
        width: fit-content;
    }

    /* AI Ecosystem Mobile */
    .ai-ecosystem {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }

    .process-node {
        width: 85px;
        padding: 8px;
    }

    .ai-core {
        width: 65px;
        height: 65px;
    }

    .core-icon svg {
        width: 28px;
        height: 28px;
    }

    .node-icon svg {
        width: 18px;
        height: 18px;
    }

    .core-label {
        font-size: 0.65rem;
    }

    .node-label {
        font-size: 0.7rem;
    }

    /* Success Stories Mobile */
    .stories-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .story-card {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .story-avatar {
        width: 48px;
        height: 48px;
    }

    .story-author h4 {
        font-size: 16px;
    }

    .story-author p {
        font-size: 13px;
    }

    .story-author span {
        font-size: 12px;
    }

    .story-rating {
        font-size: 16px;
    }

    .story-quote {
        font-size: 15px;
        line-height: 1.7;
    }

    .result-number {
        font-size: 36px;
    }

    .result-label {
        font-size: 13px;
    }

    /* Footer Mobile */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: left;
    }

    .footer-content > div {
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-content > div:last-child {
        border-bottom: none;
    }

    .footer-brand {
        margin-bottom: var(--spacing-sm);
    }

    .footer-content h4 {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: var(--spacing-sm);
        color: var(--color-white);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .footer-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-content ul li {
        margin-bottom: 8px;
    }

    .footer-content ul li a {
        font-size: 14px;
        color: var(--color-silver);
        text-decoration: none;
        transition: color 0.2s;
    }

    .footer-content ul li a:hover {
        color: var(--color-electric-blue);
    }

    .footer-bottom {
        margin-top: var(--spacing-xl);
        padding-top: var(--spacing-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
    }

    .footer-bottom .footer-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: var(--spacing-md);
    }

    .footer-bottom .footer-links a {
        font-size: 13px;
        color: var(--color-silver);
    }

    .footer-bottom p {
        font-size: 13px;
        color: var(--color-silver);
    }

    .social-links {
        justify-content: center;
    }
}

/* ===================================
   SMALL MOBILE (up to 480px)
   =================================== */

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .cta-title {
        font-size: 24px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .ai-ecosystem {
        max-width: 300px;
        height: 300px;
    }

    .process-node {
        width: 75px;
        padding: 6px;
    }

    .ai-core {
        width: 55px;
        height: 55px;
    }

    .core-icon svg {
        width: 24px;
        height: 24px;
    }

    .node-icon svg {
        width: 16px;
        height: 16px;
    }

    .node-status {
        display: none;
    }

    .btn {
        padding: 12px 20px;
        font-size: var(--font-size-sm);
    }

    .btn-lg, .btn-large {
        padding: 14px 24px;
        font-size: var(--font-size-sm);
    }
}

/* ===================================
   TABLET (768px - 1023px)
   =================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    /* Reset Nav to Desktop Mode */
    .nav {
        position: static;
        transform: none;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        overflow: visible;
        display: flex;
        align-items: center;
    }

    .nav-list {
        flex-direction: row;
        padding: 0;
        gap: var(--spacing-md);
        font-size: var(--font-size-sm);
    }

    .nav-list li {
        width: auto;
        border-bottom: none;
    }

    .nav-list a {
        padding: 0;
    }

    .nav-dropdown {
        position: absolute;
        background: var(--color-dark-blue);
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-md);
        padding: var(--spacing-sm);
        max-height: none;
        overflow: visible;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition-base);
    }

    .nav-item-dropdown:hover .nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: none;
    }

    .nav-item-dropdown.active .nav-dropdown {
        max-height: none;
        padding: var(--spacing-sm);
    }

    .mobile-menu-toggle {
        display: none;
    }

    .header-actions {
        display: flex;
    }

    .header-actions .btn {
        padding: 10px 20px;
        font-size: var(--font-size-sm);
    }

    /* Hero Tablet */
    .hero {
        padding-top: 120px;
    }

    .hero-content-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
        align-items: center;
    }

    .hero-content {
        display: block;
        text-align: left;
    }

    .hero-badge {
        justify-content: flex-start;
    }

    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-visual,
    .hero-cta,
    .hero-stats {
        order: 0;
    }

    .hero-visual {
        grid-column: 2;
        grid-row: 1 / -1;
        margin: 0;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-sm);
        margin-top: var(--spacing-xl);
    }

    .hero-stats .stat {
        padding: var(--spacing-sm);
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-stats .stat-number {
        font-size: 20px;
    }

    .hero-stats .stat-label {
        font-size: 11px;
    }

    .hero-cta {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .hero-cta .btn {
        width: auto;
    }

    /* Stats Tablet */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Features Tablet */
    .features-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Channels Tablet */
    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Agents Tablet */
    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agents-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agents-comparison {
        grid-template-columns: 1fr 1fr;
    }

    /* Success Stories Tablet */
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-divider {
        display: none;
    }

    /* Steps Tablet */
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-grid::before {
        left: 15%;
        right: 15%;
    }

    /* Industries Tablet */
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer Tablet */
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   DESKTOP (1024px - 1439px)
   =================================== */

@media (min-width: 1024px) and (max-width: 1439px) {
    :root {
        --container-max-width: 960px;
    }

    /* Reset Nav to Desktop Mode */
    .nav {
        position: static;
        transform: none;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        overflow: visible;
        display: flex;
        align-items: center;
    }

    .nav-list {
        flex-direction: row;
        padding: 0;
        gap: var(--spacing-lg);
    }

    .nav-list li {
        width: auto;
        border-bottom: none;
    }

    .nav-list a {
        padding: 0;
    }

    .nav-dropdown {
        position: absolute;
        background: var(--color-dark-blue);
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-md);
        padding: var(--spacing-sm);
        max-height: none;
        overflow: visible;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition-base);
    }

    .nav-item-dropdown:hover .nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu-toggle {
        display: none;
    }

    .header-actions {
        display: flex;
    }

    .hero-content-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
        align-items: center;
    }

    .hero-content {
        display: block;
        text-align: left;
    }

    .hero-badge {
        justify-content: flex-start;
    }

    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-visual,
    .hero-cta,
    .hero-stats {
        order: 0;
    }

    .hero-visual {
        grid-column: 2;
        grid-row: 1 / -1;
        margin: 0;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-sm);
        margin-top: var(--spacing-xl);
    }

    .hero-stats .stat {
        padding: var(--spacing-sm);
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-stats .stat-number {
        font-size: 22px;
    }

    .hero-stats .stat-label {
        font-size: 11px;
    }

    .hero-cta {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .hero-cta .btn {
        width: auto;
    }

    .section-title {
        font-size: 36px;
    }
}

/* ===================================
   LARGE DESKTOP (1440px+)
   =================================== */

@media (min-width: 1440px) {
    :root {
        --container-max-width: 1280px;
        --font-size-3xl: 56px;
        --font-size-2xl: 40px;
    }

    /* Reset Nav to Desktop Mode */
    .nav {
        position: static;
        transform: none;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        overflow: visible;
        display: flex;
        align-items: center;
    }

    .nav-list {
        flex-direction: row;
        padding: 0;
        gap: var(--spacing-xl);
    }

    .nav-list li {
        width: auto;
        border-bottom: none;
    }

    .nav-list a {
        padding: 0;
    }

    .nav-dropdown {
        position: absolute;
        background: var(--color-dark-blue);
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-md);
        padding: var(--spacing-md);
        max-height: none;
        overflow: visible;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition-base);
    }

    .nav-item-dropdown:hover .nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu-toggle {
        display: none;
    }

    .header-actions {
        display: flex;
    }

    .hero-content-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
        align-items: center;
    }

    .hero-content {
        display: block;
        text-align: left;
    }

    .hero-badge {
        justify-content: flex-start;
    }

    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-visual,
    .hero-cta,
    .hero-stats {
        order: 0;
    }

    .hero-visual {
        grid-column: 2;
        grid-row: 1 / -1;
        margin: 0;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
        margin-top: var(--spacing-xl);
    }

    .hero-stats .stat {
        padding: var(--spacing-md);
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-stats .stat-number {
        font-size: 24px;
    }

    .hero-stats .stat-label {
        font-size: 12px;
    }

    .hero-cta {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .hero-cta .btn {
        width: auto;
    }

    .section-title {
        font-size: 40px;
    }

    .hero {
        min-height: 100vh;
    }

    /* Success Stories Large Desktop */
    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   LANDSCAPE MOBILE (up to 767px height)
   =================================== */

@media (max-height: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }

    .section-padding {
        padding: var(--spacing-xl) 0;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .header,
    .mobile-menu-toggle,
    .hero-cta,
    .final-cta,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    .section-padding {
        padding: 20px 0;
    }

    a {
        text-decoration: underline;
    }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--color-white);
    }

    .nav-list a::after {
        height: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-element {
        animation: none;
    }
}

/* Dark Mode Support (Future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in the future */
    /* Example:
    :root {
        --color-white: #1A1F3A;
        --color-dark: #FFFFFF;
        --color-text: #E2E8F0;
        --color-light-gray: #2D3748;
    }
    */
}

/* ===================================
   UTILITY RESPONSIVE CLASSES
   =================================== */

/* Hide on mobile */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Hide on tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .hide-tablet {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 768px) {
    .nav-mobile-actions {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Show only on mobile */
.show-mobile {
    display: none !important;
}

@media (max-width: 767px) {
    .show-mobile {
        display: block !important;
    }
}

/* Show only on tablet */
.show-tablet {
    display: none !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .show-tablet {
        display: block !important;
    }
}

/* Show only on desktop */
.show-desktop {
    display: none !important;
}

@media (min-width: 1024px) {
    .show-desktop {
        display: block !important;
    }
}
