/* Integration Page Styles */

/* Hero Section */
.integration-hero {
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .integration-hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
}

.hero-content {
    text-align: left;
    max-width: 600px;
}

.integration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    background: hsla(220, 30%, 20%, 0.05);
    margin-bottom: 2rem;
}

.integration-hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-text p {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

.cta-text span {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Hero Content */
.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
    padding-top: 10rem; /* Reduced from 12rem to balance whitespace */
}

/* Badge */
.integration-badge {
    display: inline-block;
    background: hsla(24, 76%, 50%, 0.1);
    color: hsl(24, 76%, 50%);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

/* Hero Visual (Right Side) */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align content (card) to right */
    padding-right: 2rem; /* Add spacing from edge */
}

/* This replaces the 'backdrop' with a main UI image style */
.visual-backdrop {
    position: absolute;
    top: 60%; /* Move further down */
    left: auto; /* Remove centering */
    right: -30%; /* Shift further right to prevent text overlap */
    transform: translateY(-50%); /* Only vertical center */
    width: 130%; 
    height: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.3);
    background: #fff;
    display: flex; 
    align-items: center;
    justify-content: center;
}

.visual-backdrop img {
    width: 100%;
    height: auto; 
    object-fit: cover;
    border-radius: 1.5rem;
    display: block;
}
.floating-review-card {
    position: relative;
    z-index: 1;
    background: var(--card); /* #fff usually */
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.review-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.review-logo img {
    height: 40px;
    width: auto;
}

.review-logo span {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
}

.review-stars {
    color: #F59E0B; /* Gold */
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Integration Options Bar */
.integration-options-container {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.option-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.option-panel-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.option-buttons-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--foreground);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.option-btn:hover {
    border-color: var(--primary);
    background: hsla(217, 91%, 60%, 0.05);
}

.option-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Logo Scroller (Marquee) */
.logo-scroller-section {
    padding: 4rem 0;
    overflow: hidden;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.scroller-container {
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.scroller-container::before,
.scroller-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.scroller-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.scroller-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.scroller-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.scroller-item {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.scroller-item:hover {
    filter: grayscale(0);
    opacity: 1;
}

.scroller-item img {
    height: 32px;
    width: auto;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); } /* Adjust based on duplication */
}

/* Content Sections */
.integration-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

/* Pitfalls Grid */
.pitfalls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pitfall-card {
    background: hsla(0, 84%, 60%, 0.05);
    border: 1px solid hsla(0, 84%, 60%, 0.2);
    border-radius: 1rem;
    padding: 2rem;
}

.pitfall-icon {
    color: hsl(0, 84%, 60%);
    margin-bottom: 1rem;
}

/* Use Cases Grid */
.use-case-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    border-color: hsl(217, 91%, 60%);
    box-shadow: 0 10px 30px -10px hsla(220, 30%, 20%, 0.1);
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-trigger {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--foreground);
}

.faq-content {
    display: none;
    padding-bottom: 1.5rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}


/* =========================================
   Interface Style Visual Section (Tilted)
   ========================================= */
.interface-section {
    padding: 6rem 0;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--background), var(--bg-secondary));
}

@media (min-width: 992px) {
    .interface-section .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
        align-items: center;
    }
}

/* Right Column: Expertise Content */
/* .expertise-content { order: 1; Reverted } */

/* .interface-visual-wrapper { order: 2; Reverted } */

@media (max-width: 991px) {
    .expertise-content {
        order: 1;
        margin-bottom: 4rem;
        text-align: center;
    }
}

/* ... (existing styles) ... */

/* Mac Window Header Styles */
.mac-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; /* Text Left, Dots Right */
    gap: 0.5rem; 
    padding: 0.75rem 1rem; /* More authentic padding */
    background: #f1f5f9; /* Grey Bar */
    border-bottom: 1px solid var(--border); 
    margin-bottom: 1.5rem; 
    /* Margins removed as parent padding is now 0 */
    border-top-left-radius: 1.5rem; /* Match board radius */
    border-top-right-radius: 1.5rem; /* Match board radius */
}

.mac-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
    letter-spacing: 0.02em;
}

.mac-controls {
    display: flex;
    gap: 0.5rem;
}

.mac-dot { width: 12px; height: 12px; border-radius: 50%; }
.mac-dot.red { background: #FF5F56; box-shadow: 0 0 1px #E0443E; }
.mac-dot.yellow { background: #FFBD2E; box-shadow: 0 0 1px #DEA123; }
.mac-dot.green { background: #27C93F; box-shadow: 0 0 1px #1AAB29; }

.breadcrumbs {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.breadcrumbs span {
    color: var(--primary);
}

.expertise-content h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.expertise-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

/* Left Column: Tilted Dashboard Visual */
.interface-visual-wrapper {
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: center;
    perspective: 1500px; /* Deep perspective */
}

/* The Tilted Board */
/* The Tilted Board */
.tilted-board {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 1.5rem;
    padding: 0; /* Removed padding to let header flush */
    /* The 3D Tilt Transform */
    transform: rotateY(15deg) rotateX(5deg) rotateZ(-2deg);
    transform-style: preserve-3d;
    box-shadow: 
        -20px 20px 60px rgba(0,0,0,0.1),
        0 0 0 1px rgba(0,0,0,0.05); /* Subtle border */
    transition: transform 0.5s ease;
}

.tilted-board:hover {
    transform: rotateY(10deg) rotateX(2deg) rotateZ(0deg) translateY(-10px);
}

/* Design Marks (Crosshairs/Lines) mimic blueprint look */
.tilted-board::before,
.tilted-board::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    opacity: 0.5;
    pointer-events: none;
    z-index: 10; /* Ensure visible on top of header */
}
.tilted-board::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.tilted-board::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }


/* Dashboard Grid Layout (Inside the board) */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem; /* Padding moved here */
    padding-top: 0; /* Reduce top padding since header provides space */
}

/* General Dash Card Style */
.dash-card {
    background: var(--bg-secondary); /* Slight contrast from board white */
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
    position: relative;
}

/* Specific Card: Progress Tracker (Full Width) */
.dash-card.card-progress {
    grid-column: span 2;
    background: #fff;
}

.card-label {
    font-size: 0.75rem;
    /* text-transform: uppercase; Removed to allow mixed case n8n */
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}


.dash-progress-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    position: relative;
}

.dash-progress-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    z-index: 1;
    position: relative;
}

.progress-dot.active {
    background: #10b981; /* Green */
    border-color: #10b981;
}

/* Animated Progress Line */
.progress-line-active {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: #10b981;
    z-index: 0; /* Above background line, below dots */
    width: 0%;
    animation: growWidth 3s ease-in-out infinite;
    margin-top: -1px; /* Center vertically on the 2px line */
}

@keyframes growWidth {
    0% { width: 0%; opacity: 0.5; }
    50% { width: 100%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

/* Specific Card: Team (Full Width) */
.dash-card.card-team {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-avatars {
    display: flex;
    margin-left: 0.5rem;
}

.team-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -10px;
}
.team-avatars img:first-child { margin-left: 0; }

.team-text h4 { font-size: 0.875rem; margin-bottom: 0.1rem; }
.team-text p { font-size: 0.75rem; color: var(--muted-foreground); margin: 0; }
.team-text a { color: var(--primary); font-weight: 600; text-decoration: none; }


/* Specific Card: Tools (Half Width) */
.dash-card.card-tool {
    display: flex;
    flex-direction: column; /* Ensure vertical stacking */
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1/1;
    background: var(--flamingo); /* Brand color background example */
    color: white;
}
.dash-card.card-tool img {
    width: 50%;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Specific Card: Stack (Half Width) */
.dash-card.card-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #1e293b; /* Dark bg */
}
.dash-card.card-stack img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .interface-visual-wrapper {
        perspective: none;
        padding: 0;
    }
}

/* n8n Feature Cards (Green) */
.n8n-card {
    background: rgba(16, 185, 129, 0.15); /* Transparent Green */
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.1);
}

.n8n-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.25); /* Darker tint on hover */
    border-color: rgba(16, 185, 129, 0.5);
}

.n8n-icon {
    color: #10b981; /* Green icon */
    margin-bottom: 1rem;
}

.n8n-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.n8n-card p {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin: 0;
}


/* =========================================
   Potential Integrations (Vertical Scroller)
   ========================================= */
.potential-integrations {
    padding: 6rem 0;
    overflow: hidden;
    background: #fff;
}

.potential-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}
.potential-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.potential-header p {
    color: var(--muted-foreground);
}

@media (min-width: 992px) {
    .pi-grid {
        display: grid;
        grid-template-columns: 1fr auto 1.5fr; /* Left Card (1), Line (auto), Right Matrix (1.5) */
        gap: 2rem;
        align-items: center;
    }
}

/* Connection Line Animation */
.connection-line-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px; /* Wider container */
    position: relative;
    height: 20px; /* Ensure height for larger node */
}

.connection-line {
    width: 100%;
    height: 4px; /* Thicker line */
    background: #e2e8f0; /* Use explicit light grey if var(--border) is too subtle */
    border-radius: 2px;
    position: relative;
    overflow: visible; /* Show node even if slightly overlapping */
}

.connection-node {
    width: 16px; /* Larger Circle */
    height: 16px; /* Larger Circle */
    border-radius: 50%;
    background: var(--primary); 
    box-shadow: 0 0 12px var(--primary); /* Stronger glow */
    position: absolute;
    top: 50%;
    transform: translateY(-50%); 
    left: 0;
    animation: moveNode 2s linear infinite;
    z-index: 2;
}

@keyframes moveNode {
    0% { left: 0%; opacity: 0; transform: translateY(-50%) scale(0.5); }
    10% { opacity: 1; transform: translateY(-50%) scale(1); }
    90% { opacity: 1; transform: translateY(-50%) scale(1); }
    100% { left: 100%; opacity: 0; transform: translateY(-50%) scale(0.5); }
}

@media (max-width: 991px) {
    .connection-line-container {
        display: none;
    }
}

/* Left Column: Main App Card */
.main-app-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    position: relative;
    aspect-ratio: 16/9; /* Landscape card */
}

/* Right Column: Vertical Scroller Matrix */
.vertical-scroller-wrapper {
    height: 400px;
    overflow: hidden;
    position: relative;
    /* Mask for blur effect at top and bottom */
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.vertical-track {
    /* We duplicate the content, so we need to animate it upwards */
    animation: scrollVertical 40s linear infinite;
}

@keyframes scrollVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } /* Move up by half (the height of one set) */
}

.logo-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
    padding-bottom: 1.5rem; /* spacing between sets */
}

.matrix-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    aspect-ratio: 3/2;
    transition: all 0.2s ease;
}

.matrix-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.matrix-item img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.matrix-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* =========================================
   Pillbox Use Cases
   ========================================= */
.use-cases-pills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px; /* Constrain width for better wrapping */
    margin: 0 auto;
}

.uc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px; /* Pill shape */
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--foreground);
    transition: all 0.2s ease;
    cursor: default;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.uc-pill:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.uc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary); /* Or specific colors if needed */
}

/* =========================================
   Stats Bar Section
   ========================================= */
.stats-section {
    padding: 6rem 0;
    background: #0f172a; /* Dark background */
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    text-align: center;
    margin-top: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #10b981; /* Green highlight */
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-label {
    font-size: 1.125rem;
    color: #94a3b8; /* Muted text for dark mode */
    font-weight: 500;
}

/* New FAQ Section */
.faq { position: relative; padding: 6rem 0; overflow: hidden; }
.faq-bg { position: absolute; inset: 0; z-index: 0; }
.faq-bg-glow-1 { position: absolute; top: -10%; left: -10%; width: 50%; height: 50%; background: radial-gradient(circle, hsla(217, 91%, 60%, 0.1) 0%, transparent 70%); filter: blur(60px); }
.faq-bg-glow-2 { position: absolute; bottom: -10%; right: -10%; width: 50%; height: 50%; background: radial-gradient(circle, hsla(16, 100%, 60%, 0.05) 0%, transparent 70%); filter: blur(60px); }
.faq-content { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.faq-category-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.faq-category-bar { width: 4px; height: 1.5rem; background: linear-gradient(to bottom, var(--primary), var(--coral)); border-radius: 2px; }
.faq-items { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; transition: all 0.2s ease; }
.faq-item:hover { border-color: var(--primary); box-shadow: 0 4px 12px -2px rgba(0,0,0,0.05); }
.faq-question { width: 100%; text-align: left; padding: 1.25rem 1.5rem; background: none; border: none; display: flex; align-items: center; justify-content: space-between; font-size: 1.0625rem; font-weight: 500; color: var(--foreground); cursor: pointer; }
.faq-question svg { transition: transform 0.3s ease; color: var(--muted-foreground); }
.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--primary); }
.faq-answer { padding: 0 1.5rem 1.5rem; color: var(--muted-foreground); line-height: 1.6; display: none; }
.faq-question[aria-expanded="true"] + .faq-answer { display: block; animation: slideDown 0.3s ease-out; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.faq-footer { margin-top: 4rem; text-align: center; }
.faq-footer-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; display: inline-flex; flex-direction: column; align-items: center; gap: 1rem; }
.faq-footer-text { font-weight: 500; color: var(--muted-foreground); }
.faq-footer-btn { display: inline-block; padding: 0.75rem 1.5rem; background: var(--foreground); color: var(--background); border-radius: 0.5rem; font-weight: 500; text-decoration: none; transition: all 0.2s ease; }
.faq-footer-btn:hover { background: var(--primary); color: #fff; }

/* Our Specialities Section */
.expertise-specialities { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.expertise-specialities h4 { margin-bottom: 1.5rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); font-weight: 600; }
.specialities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.spec-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; font-weight: 500; color: var(--foreground); background: var(--bg-secondary); padding: 0.75rem 1rem; border-radius: 0.75rem; border: 1px solid var(--border); transition: all 0.2s ease; text-decoration: none; }
.spec-item:hover { border-color: var(--primary); background: hsla(217, 91%, 60%, 0.05); transform: translateY(-2px); box-shadow: 0 4px 12px -2px rgba(0,0,0,0.05); }

/* Mac Window Header Styles */
.mac-header { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; margin-top: -0.5rem; }
.mac-dot { width: 12px; height: 12px; border-radius: 50%; }
.mac-dot.red { background: #FF5F56; box-shadow: 0 0 1px #E0443E; }
.mac-dot.yellow { background: #FFBD2E; box-shadow: 0 0 1px #DEA123; }
.mac-dot.green { background: #27C93F; box-shadow: 0 0 1px #1AAB29; }

/* Mobile Fixes for Integration Hero */
@media (max-width: 991px) {
    .integration-hero {
        padding: 6rem 0 2rem;
    }
    .hero-content {
        padding-top: 3rem !important; /* Keep whitespace balanced, but avoid overlap */
        text-align: center;
        margin: 0 auto;
    }
    .hero-cta-wrapper {
        justify-content: center;
    }
    .visual-backdrop {
        right: 0 !important;
        width: 100% !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    .hero-visual {
        padding-right: 0 !important;
        height: auto !important;
        min-height: 400px;
        justify-content: center;
    }
    .floating-review-card {
        margin: 0 auto;
    }
}

/* =========================================
   Workflow Showcase Module
   ========================================= */
.wf-showcase {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.wf-showcase .section-title {
    margin-top: 1rem;
}

/* Background glow blobs */
.wf-showcase-glow {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
    pointer-events: none;
}

.wf-showcase-glow--primary {
    top: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, hsla(11, 80%, 60%, 0.08), transparent 70%);
}

.wf-showcase-glow--secondary {
    bottom: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, hsla(262, 80%, 50%, 0.06), transparent 70%);
}

.wf-showcase-inner {
    position: relative;
    z-index: 1;
}

/* Two-column grid */
.wf-showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2.5rem;
}

/* Screenshot wrapper (position context for glow) */
.wf-showcase-visual {
    position: relative;
}

/* Glow behind the screenshot frame */
.wf-showcase-visual-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at 50% 50%, hsla(11, 80%, 55%, 0.12), transparent 65%);
    border-radius: 24px;
    z-index: 0;
    filter: blur(30px);
    pointer-events: none;
}

/* macOS-style window frame */
.wf-showcase-frame {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.wf-showcase-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid var(--border);
}

.wf-showcase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wf-showcase-dot--red { background: #ef4444; }
.wf-showcase-dot--yellow { background: #eab308; }
.wf-showcase-dot--green { background: #22c55e; }

.wf-showcase-titlebar-text {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.wf-showcase-screenshot {
    width: 100%;
    display: block;
    background: #0f172a;
}

/* Right column: details */
.wf-showcase-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.wf-showcase-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: hsla(11, 80%, 55%, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wf-showcase-logo img {
    width: 28px;
    height: 28px;
}

.wf-showcase-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.wf-showcase-subtitle {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.wf-showcase-desc {
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

/* Connected services chips */
.wf-showcase-services {
    margin-bottom: 1.75rem;
}

.wf-showcase-services-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.wf-showcase-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wf-showcase-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--foreground);
}

.wf-showcase-chip img {
    width: 16px;
    height: 16px;
}

/* Key metrics row */
.wf-showcase-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.wf-showcase-metric {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.wf-showcase-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.wf-showcase-metric-value--green { color: #10b981; }
.wf-showcase-metric-value--purple { color: #8b5cf6; }

.wf-showcase-metric-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .wf-showcase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .wf-showcase-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .wf-showcase-metric {
        padding: 0.75rem 0.5rem;
    }

    .wf-showcase-metric-value {
        font-size: 1.25rem;
    }
}
