/* ========================================
   PIPELINE PLAYBOOKS - MAIN STYLESHEET
   ======================================== */

/* --- FONT: Switzer via Fontshare CDN --- */
@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700,800&display=swap');

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-50: #FAFAFA;
    --color-gray-100: #F5F5F5;
    --color-gray-200: #E8E8E8;
    --color-gray-300: #D4D4D4;
    --color-gray-400: #A3A3A3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;
    --color-red: #EF4444;
    --color-green: #22C55E;
    --font-primary: 'Switzer', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --nav-height: 72px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- GRID BACKGROUND PATTERN --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        /* Large squares */
        linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px),
        /* Medium squares */
        linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px),
        /* Subtle diagonals */
        linear-gradient(45deg, rgba(0,0,0,0.008) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(0,0,0,0.008) 1px, transparent 1px);
    background-size:
        120px 120px,
        120px 120px,
        40px 40px,
        40px 40px,
        80px 80px,
        80px 80px;
}

/* --- CONTAINER --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-gray-500);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-gray-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-black);
}

.btn-white:hover {
    background-color: var(--color-gray-100);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--border-radius);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gray-600);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-black);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-black);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: var(--transition);
    border-radius: 2px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding-top: calc(var(--nav-height) + 120px);
    padding-bottom: 80px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong {
    color: var(--color-black);
    font-weight: 600;
}

.hero-supporting {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--color-gray-500);
    font-weight: 500;
}

.hero-case-studies {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--color-gray-200);
}

.hero-case-studies-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-400);
    margin-bottom: 20px;
}

.hero-case-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-700);
    text-decoration: none;
    transition: var(--transition);
}

.case-link:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
    transform: translateY(-1px);
}

.case-link-icon {
    font-size: 1rem;
}

/* Client Logos Carousel */
.client-logos {
    margin-top: 80px;
    text-align: center;
}

.client-logos-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-400);
    margin-bottom: 32px;
}

.logos-carousel {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 64px;
    animation: scroll-logos 30s linear infinite;
    width: max-content;
}

.carousel-logo {
    height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    opacity: 0.85;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.carousel-logo:hover {
    opacity: 1;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   PARTNERSHIP SECTION
   ======================================== */
.partnership {
    padding: 100px 0;
}

.partnership-card {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    overflow: hidden;
}

.partnership-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.partnership-inline-photo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.partnership-inline-photo .partnership-photo {
    width: 64px;
    height: 64px;
    margin-bottom: 0;
}

.partnership-inline-info {
    display: flex;
    flex-direction: column;
}

.partnership-inline-info .partnership-photo-caption {
    font-weight: 600;
    font-size: 1rem;
}

.partnership-inline-info .partnership-photo-role {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    margin-top: 2px;
}

.partnership-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.partnership-description {
    font-size: 1.1rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Partnership photo styles handled by .partnership-inline-photo */

.partnership-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-lg);
    margin-bottom: 12px;
}

.partnership-photo-caption {
    font-weight: 600;
    font-size: 1rem;
}

.partnership-photo-role {
    font-size: 0.9rem;
    color: var(--color-gray-500);
}

/* ========================================
   WHY TRADITIONAL OUTBOUND IS DYING
   ======================================== */
.dying-section {
    padding: 100px 0;
}

.dying-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.dying-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    position: relative;
    transition: var(--transition);
    transform-origin: bottom center;
}

.dying-card:hover {
    border-color: var(--color-gray-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.dying-card-1 {
    transform: rotate(-2deg);
}

.dying-card-2 {
    transform: rotate(0deg);
    z-index: 2;
}

.dying-card-3 {
    transform: rotate(2deg);
}

.dying-card-1:hover {
    transform: rotate(-2deg) translateY(-4px);
}

.dying-card-3:hover {
    transform: rotate(2deg) translateY(-4px);
}

.dying-card-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gray-400);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.dying-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.25;
}

.dying-card-subtitle {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    margin-bottom: 24px;
    font-weight: 500;
}

.dying-card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dying-card-list li {
    font-size: 0.92rem;
    color: var(--color-gray-600);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.dying-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gray-300);
}

/* ========================================
   SOLUTIONS THAT DON'T WORK
   ======================================== */
.solutions-section {
    padding: 100px 0;
    background: var(--color-gray-50);
    position: relative;
}

.solutions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.solution-column {
    display: flex;
    flex-direction: column;
}

.solution-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.solution-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-gray-400);
}

.solution-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.solution-badge-bad {
    background: var(--color-red);
    color: var(--color-white);
}

.solution-title {
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    line-height: 1.2;
}

.solution-cost {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    margin-bottom: 20px;
    font-weight: 500;
}

.solution-card {
    background: var(--color-black);
    color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background:
        linear-gradient(to right, rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 25px 25px;
    pointer-events: none;
}

.solution-card-section {
    position: relative;
    z-index: 1;
}

.solution-card-section + .solution-card-section {
    margin-top: 24px;
}

.solution-card-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gray-400);
    margin-bottom: 12px;
}

.solution-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.solution-card ul li {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.solution-card ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--color-gray-500);
}

.solution-bottom-note {
    margin-top: 20px;
    font-size: 0.92rem;
    color: var(--color-gray-600);
    line-height: 1.5;
}

/* --- YOU'RE STUCK BLOCK --- */
.stuck-block {
    margin-top: 64px;
    position: relative;
    z-index: 1;
}

.stuck-content {
    background: var(--color-white);
    border: 2px solid var(--color-black);
    border-radius: var(--border-radius-lg);
    padding: 48px;
}

.stuck-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.stuck-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.stuck-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-400);
    margin-bottom: 16px;
}

.stuck-problems ul,
.stuck-solution ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stuck-problems ul li,
.stuck-solution ul li {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.stuck-problems ul li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-weight: 700;
    font-size: 0.8rem;
    top: 2px;
}

.stuck-solution ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: 700;
    font-size: 0.85rem;
    top: 1px;
}

/* ========================================
   CASE STUDIES SECTION
   ======================================== */
.case-studies {
    padding: 100px 0;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.case-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    border-color: var(--color-gray-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.case-card-logo {
    height: 64px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
}

.case-logo {
    height: 56px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.case-card-logo .logo-invert {
    filter: none;
    opacity: 1;
}

.case-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* case-card-stat removed */

.case-card-description {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 28px;
    flex: 1;
}

.case-card .btn-primary {
    align-self: flex-start;
}

/* ========================================
   SIGNAL-BASED OUTBOUND SECTION
   ======================================== */
.signal-section {
    padding: 100px 0;
    background: var(--color-gray-50);
    position: relative;
}

.signal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, rgba(0,0,0,0.015) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(0,0,0,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.signal-section .section-title {
    margin-bottom: 64px;
}

.signal-content {
    display: grid;
    grid-template-columns: 0.65fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.signal-flowchart {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.flowchart-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
}

.signal-explanation {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.signal-step {
    position: relative;
}

.signal-step-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gray-400);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.signal-step h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.signal-step p {
    font-size: 1rem;
    color: var(--color-gray-600);
    line-height: 1.7;
}

.signal-step ul {
    margin-top: 16px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signal-step ul li {
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    color: var(--color-gray-600);
}

.signal-step ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-black);
}

.signal-step strong {
    color: var(--color-black);
}

/* ========================================
   WHAT WE DO - ZIGZAG TIMELINE
   ======================================== */
.whatwedo-section {
    padding: 100px 0;
}

.zigzag-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

/* Center vertical line */
.zigzag-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--color-gray-200);
}

.zigzag-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-top: 48px;
}

.zigzag-item:last-child {
    margin-bottom: 0;
}

.zigzag-step-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 24px;
    border-radius: 100px;
    white-space: nowrap;
    z-index: 3;
    top: 8px;
}

.zigzag-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    width: calc(50% - 80px);
    transition: var(--transition);
}

.zigzag-card:hover {
    border-color: var(--color-gray-300);
    box-shadow: var(--shadow-md);
}

.zigzag-left .zigzag-card {
    margin-right: auto;
}

.zigzag-right .zigzag-card {
    margin-left: auto;
}

.zigzag-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.zigzag-card > p {
    font-size: 0.92rem;
    color: var(--color-gray-500);
    line-height: 1.6;
    margin-bottom: 20px;
}

.zigzag-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zigzag-card ul li {
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.5;
}

.zigzag-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gray-300);
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid var(--color-gray-200);
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--color-gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--color-gray-500);
    line-height: 1.6;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
    padding: 100px 0;
    background: var(--color-gray-50);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.faq-section .section-title {
    margin-bottom: 48px;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--color-gray-300);
}

.faq-item.active {
    border-color: var(--color-black);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-black);
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: var(--transition);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-gray-400);
    transition: var(--transition);
    flex-shrink: 0;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-black);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 0 28px 24px;
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */
.final-cta {
    padding: 120px 0;
    background: var(--color-black);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(45deg, rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size:
        60px 60px,
        60px 60px,
        40px 40px,
        40px 40px;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray-400);
    margin-bottom: 40px;
}

.cta-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--color-gray-500);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-gray-200);
    background: var(--color-white);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo img {
    height: 28px;
    width: auto;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-black);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .carousel-logo {
        height: 64px;
        max-width: 190px;
    }

    .logos-track {
        gap: 48px;
    }

    .signal-content {
        grid-template-columns: 1fr;
    }

    .signal-flowchart {
        position: static;
        max-width: 480px;
        margin: 0 auto;
    }

    .dying-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 20px auto 0;
    }

    .dying-card-1,
    .dying-card-2,
    .dying-card-3 {
        transform: rotate(0deg);
    }

    .dying-card-1:hover,
    .dying-card-3:hover {
        transform: translateY(-4px);
    }

    .zigzag-timeline::before {
        left: 24px;
    }

    .zigzag-step-badge {
        left: 24px;
        transform: translateX(0);
        top: 0;
        font-size: 0.8rem;
        padding: 9px 20px;
    }

    .zigzag-item {
        padding-left: 60px;
        padding-top: 48px;
    }

    .zigzag-left .zigzag-card,
    .zigzag-right .zigzag-card {
        width: 100%;
        margin: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .carousel-logo {
        height: 50px;
        max-width: 160px;
    }

    .logos-track {
        gap: 36px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-gray-200);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding-top: calc(var(--nav-height) + 48px);
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .partnership-card {
        padding: 32px 24px;
    }

    .dying-card {
        padding: 32px 24px;
    }

    .zigzag-timeline::before {
        left: 16px;
    }

    .zigzag-step-badge {
        left: 16px;
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    .zigzag-item {
        padding-left: 48px;
        padding-top: 44px;
    }

    .zigzag-card {
        padding: 24px 20px;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .case-card {
        padding: 32px 24px;
    }

    .signal-flowchart {
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .final-cta {
        padding: 80px 0;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
        width: 100%;
    }

    .carousel-logo {
        height: 42px;
        max-width: 130px;
    }

    .logos-track {
        gap: 28px;
    }
}
