@import url('design-tokens.css');

/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-bg-primary);
    background-image: 
        radial-gradient(ellipse at 0% 0%, rgba(109, 95, 102, 0.7) 0%, transparent 50%), 
        radial-gradient(ellipse at 100% 0%, rgba(41, 85, 92, 0.7) 0%, transparent 50%);
    background-attachment: fixed;
    line-height: 1.6;
    padding-top: 80px;
    /* Space for fixed navbar */
    overflow-x: hidden;
}

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 5%;
    color: var(--color-text-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    color: var(--color-brand-teal);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text-white);
}

.nav-center {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-white);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-brand-teal);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-text-white);
    transition: 0.3s;
}

/* ════════════════════════════════════════
   MOBILE DRAWER
════════════════════════════════════════ */
.mobile-drawer {
    position: fixed;
    inset: 0;
    background: var(--color-bg-primary);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 100px 40px 40px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.drawer-links a {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-white);
    text-decoration: none;
}

.drawer-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer {
    background: var(--color-bg-primary);
    color: #fff;
    padding: 100px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 80px;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin: 24px 0;
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 24px;
    color: #fff;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--color-brand-teal);
}

.social-row {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--color-brand-teal);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 13px;
}

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS & COMPONENT SHIFTS
════════════════════════════════════════ */

/* Tablet (Up to 1023px) */
@media (max-width: 1023px) {
    .nav-center {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .services-layout {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sticky-sidebar {
        position: sticky;
        top: 70px;
        background: var(--color-glass-bg);
        z-index: 900;
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 16px 5%;
        margin-inline: -5%;
        border-bottom: 2px solid #f0f4ff;
        margin-bottom: 40px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .sticky-sidebar::-webkit-scrollbar {
        display: none;
    }

    .sidebar-link {
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 10px 20px;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding-top: 120px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-h1 {
        font-size: 48px;
    }
}

/* Mobile (Up to 767px) */
@media (max-width: 767px) {
    .logo-text {
        font-size: 18px;
    }

    .nav-right .btn-demo {
        display: none;
    }

    .hero-h1 {
        font-size: 42px;
        line-height: 1.1;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 16px;
    }

    .hero-ctas .btn {
        width: 100%;
        text-align: center;
    }

    /* Section Stacks */
    .grid-3,
    .grid-2,
    .pain-grid,
    .services-grid,
    .case-grid,
    .article-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Industry Tabs */
    .tab-switcher {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 12px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .tab-switcher::-webkit-scrollbar {
        display: none;
    }

    .tab-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Timeline */
    .timeline-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        padding-left: 30px;
        position: relative;
    }

    .timeline-line {
        width: 4px;
        height: 100%;
        left: 15px;
        top: 0;
        transform: none;
        background: var(--color-brand-teal);
        position: absolute;
    }

    .timeline-step {
        display: flex;
        flex-direction: row;
        text-align: left;
        gap: 20px;
        width: 100%;
        position: relative;
    }

    .step-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        z-index: 2;
        border-radius: 50%;
        background: var(--color-glass-bg);
        border: 2px solid var(--color-brand-teal);
    }

    /* Spotlight */
    .spotlight-card {
        grid-template-columns: 1fr !important;
        padding: 30px 20px;
    }

    .spotlight-metrics {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .metric-chip {
        font-size: 10px;
        padding: 8px;
        border-radius: 6px;
        background: rgba(244, 139, 105, 0.1);
    }

    /* Carousel */
    .testimonial-carousel {
        overflow-x: auto;
        display: flex;
        scroll-snap-type: x mandatory;
        gap: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .testimonial-card {
        min-width: 85%;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    /* FAQ */
    .faq-header {
        min-height: 56px;
        padding: 18px 24px;
        font-size: 16px;
    }

    /* Pricing */
    .pricing-grid {
        display: flex;
        flex-direction: column;
    }

    .pricing-card.popular {
        order: -1;
        scale: 1;
        margin: 20px 0;
        border: 2px solid var(--color-brand-teal);
    }

    /* Comparison Table */
    .table-scroll {
        overflow-x: auto;
        margin-inline: -5%;
        padding-inline: 5%;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        min-width: 600px;
        border-collapse: collapse;
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: sticky;
        left: 0;
        background: var(--color-glass-bg);
        z-index: 5;
        border-right: 1px solid #f0f4ff;
    }

    /* ROI Calc */
    .roi-layout {
        display: grid;
        grid-template-columns: 1fr !important;
    }

    .roi-controls input[type="range"] {
        width: 100%;
    }

    /* Founder */
    .founder-layout {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .founder-photo {
        margin: 0 auto;
        width: 200px;
        height: 200px;
    }

    .cred-chips {
        justify-content: center;
    }

    .cred-chip {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Contact */
    .contact-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .wa-cta-full {
        order: -1;
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 24px auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-row {
        justify-content: center;
    }

    /* Utilities */
    .section {
        padding: 60px 20px;
    }

    .reveal {
        transition-duration: 0.5s;
    }
}

/* ════════════════════════════════════════
   ANIMATIONS & MARQUEE
════════════════════════════════════════ */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-container {
    overflow: hidden;
    width: 100%;
    display: flex;
}

.marquee-content {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}