@charset "UTF-8";
@import "./common.css";

/* ── Hero ──────────────────────────────────────────────────────── */
.agency-hero {
    width: 100vw;
    position: relative;
    overflow: hidden;
}

/* Grid overlay */
.agency-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right,  color-mix(in srgb, var(--border-color) 60%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--border-color) 60%, transparent) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 50% 0;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
    pointer-events: none;
    opacity: 0.7;
}

/* Teal radial glow behind headline */
.agency-hero::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(10, 173, 149, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.agency-hero .container {
    position: relative;
    z-index: 1;
}

/* Glowing Network Pulses */
.swarm-pulse {
    position: absolute;
    background: var(--accent-primary);
    border-radius: 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    box-shadow: 0 0 15px 2px var(--accent-primary);
}

.pulse-h {
    width: 60px;
    height: 2px;
    transform: translateY(-1px);
    animation: travel-h 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pulse-v {
    width: 2px;
    height: 60px;
    transform: translateX(-1px);
    animation: travel-v 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes travel-h {
    0%   { left: -10%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

@keyframes travel-v {
    0%   { top: -10%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

/* Swarm Pulse Positions & Delays */
.pulse-h-1 { top: 120px; animation-delay: 0s; }
.pulse-h-2 { top: 300px; animation-delay: 2.3s; }
.pulse-h-3 { top: 480px; animation-delay: 5.1s; }

.pulse-v-1 { left: calc(50% - 300px); animation-delay: 1.2s; }
.pulse-v-2 { left: calc(50% + 180px); animation-delay: 3.8s; }
.pulse-v-3 { left: calc(50% + 420px); animation-delay: 6.4s; }

/* Trust Badges */
.trust-badge {
    background: color-mix(in srgb, var(--bg-elevated) 40%, transparent);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
}



/* ════════════════════════════════════════════════════════════════
   SECTION 2 — Problem → Proof (Comparison)
   ════════════════════════════════════════════════════════════════ */

.comparison-section {
    background: var(--bg-main);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .comparison-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* Card shared */
.comparison-card {
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
}

/* Bad card */
.comparison-card.bad {
    border-color: rgba(140, 59, 46, 0.35);
    background: color-mix(in srgb, var(--color-barro) 6%, var(--bg-elevated));
    position: relative;
}

/* Good card */
.comparison-card.good {
    border-color: rgba(10, 173, 149, 0.35);
    background: color-mix(in srgb, var(--accent-primary) 5%, var(--bg-elevated));
}

.comp-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-card.bad  .comp-label { color: var(--color-barro); }
.comparison-card.good .comp-label { color: var(--accent-primary); }

.comp-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.comp-row:last-child { border-bottom: none; }

.comp-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.comp-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.comparison-card.bad  .comp-icon { background: rgba(140, 59, 46, 0.15); color: var(--color-barro); }
.comparison-card.good .comp-icon { background: rgba(10, 173, 149, 0.15); color: var(--accent-primary); }

.comp-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Full-width bento below comparison grid */
.comparison-sub-bento {
    max-width: 860px;
    margin: 1.75rem auto 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.comparison-sub-bento i {
    font-size: 1.4rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.comparison-sub-bento p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

@media (max-width: 767px) {
    .comparison-sub-bento { flex-direction: column; text-align: center; }
}


/* ════════════════════════════════════════════════════════════════
   SECTION 3 — The Payload (Tab + Mockup)
   ════════════════════════════════════════════════════════════════ */

.payload-section {
    background: var(--bg-elevated);
    position: relative;
}

.payload-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
}

.payload-section .container { position: relative; z-index: 1; }

/* Tab nav */
.agency-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.agency-tab {
    padding: 0.55rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: var(--weight-h3);
    font-family: var(--font-title);
    cursor: pointer;
    background: var(--bg-main);
    color: var(--text-secondary);
    transition: all 0.22s ease;
    white-space: nowrap;
}

.agency-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.agency-tab.active {
    background: var(--color-carbon);
    border-color: var(--color-carbon);
    color: var(--color-white);
}

@media (prefers-color-scheme: dark) {
    .agency-tab.active {
        background: var(--accent-primary);
        border-color: var(--accent-primary);
        color: var(--color-carbon);
    }
}

/* Payload content area */
.payload-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 991px) {
    .payload-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* Panel wrapper — fixes height-collapse glitch on tab switch */
.agency-panels-wrap {
    position: relative;
    min-height: 420px; /* floor so section never collapses */
}

/* Every panel sits in the same grid slot; invisible until active */
.agency-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    /* do NOT use transform on the wrapper or height collapses */
}

.agency-panel.active {
    position: relative; /* takes space in flow → sets container height */
    opacity: 1;
    pointer-events: auto;
    animation: fadeInPanel 0.4s ease forwards;
}

@media (max-width: 991px) {
    .agency-panels-wrap { min-height: 0; }
    .agency-panel { grid-template-columns: 1fr; gap: 2rem; }
    .agency-panel:not(.active) { position: absolute; }
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Left: text side */
.panel-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.panel-title {
    font-size: 1.6rem;
    font-weight: var(--weight-h2);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: var(--font-title);
    color: var(--text-main);
}

.panel-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.panel-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.panel-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.panel-bullets li i {
    color: var(--accent-primary);
    margin-top: 3px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Right: visual side — the mockup wrapper */
.panel-visual {
    position: relative;
}

/* Deploy flow diagram (Tab 0) */
.deploy-flow {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.flow-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    transition: all 0.25s ease;
}

.flow-row:hover {
    border-color: var(--accent-primary);
    color: var(--text-main);
}

.flow-row i { width: 18px; text-align: center; flex-shrink: 0; font-size: 1rem; }

.flow-row.bad {
    opacity: 0.45;
    position: relative;
    overflow: hidden;
    text-decoration: line-through;
    text-decoration-color: rgba(140, 59, 46, 0.6);
}

.flow-row.bad i { color: var(--color-barro); }

.flow-row.good i { color: var(--accent-primary); }

.flow-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.25rem 0;
}

.flow-divider::before,
.flow-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ════════════════════════════════════════════════════════════════
   SECTION 4 — Scale Engine
   ════════════════════════════════════════════════════════════════ */

/* Section layout */
.scale-engine-section {
    background-color: var(--bg-elevated);
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
    position: relative;
}

/* Scale Engine - Layout handled by Bootstrap grid */

.scale-section-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.scale-section-title {
    font-family: var(--font-title);
    font-weight: var(--weight-h1);
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.scale-section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 2.5rem;
}

/* Counter block (left-aligned inside left col) */
.scale-counter-wrap {
    position: relative;
}

.scale-counter-value {
    font-size: 6rem;
    font-weight: var(--weight-h1);
    font-family: var(--font-title);
    color: var(--accent-primary);
    line-height: 1;
    letter-spacing: -0.05em;
}

.scale-counter-label {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-top: 0.75rem;
    font-weight: var(--weight-h2);
    line-height: 1.2;
}

.scale-counter-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

/* Right column — pillars layout handled by Bootstrap */
.scale-pillars {
    display: contents;
}

@media (max-width: 767px) {
    .scale-counter-value { font-size: 3.5rem; }
}

.scale-pillar {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scale-pillar::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(10, 173, 149, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transition: transform 0.4s ease;
}

.scale-pillar:hover::after {
    transform: scale(1.2);
}

.scale-pillar:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    background: rgba(10, 173, 149, 0.10);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.scale-pillar:hover .pillar-icon {
    background: var(--accent-primary);
    color: var(--color-white);
}

.pillar-stat {
    font-size: 1.75rem;
    font-weight: var(--weight-h1);
    font-family: var(--font-title);
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
    line-height: 1;
}

.pillar-title {
    font-weight: var(--weight-h2);
    font-family: var(--font-title);
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.pillar-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
/* Reveal Delays */
.delay-1 { transition-delay: 100ms !important; }
.delay-2 { transition-delay: 200ms !important; }
.delay-3 { transition-delay: 300ms !important; }
.delay-120 { transition-delay: 120ms !important; }

/* Comparison Staggering (nth-child offset by 1 because of .comp-label) */
.comparison-card.bad .comp-row:nth-of-type(1) { transition-delay: 80ms; }
.comparison-card.bad .comp-row:nth-of-type(2) { transition-delay: 160ms; }
.comparison-card.bad .comp-row:nth-of-type(3) { transition-delay: 240ms; }

.comparison-card.good .comp-row:nth-of-type(1) { transition-delay: 240ms; }
.comparison-card.good .comp-row:nth-of-type(2) { transition-delay: 320ms; }
.comparison-card.good .comp-row:nth-of-type(3) { transition-delay: 400ms; }

/* Scale Engine Staggering (nth-child on the column) */
.row.g-4.mt-5 > div:nth-child(1) .scale-pillar { transition-delay: 100ms; }
.row.g-4.mt-5 > div:nth-child(2) .scale-pillar { transition-delay: 200ms; }
.row.g-4.mt-5 > div:nth-child(3) .scale-pillar { transition-delay: 300ms; }

/* ── Key Data Bar ────────────────────────────────────────────────── */
.stat-item {
    padding: 1.75rem 1rem;
    text-align: center;
}

.stat-item:last-child {
    border-right: none;
}

@media (max-width: 767px) {
    .stat-item:nth-child(even) { border-right: none; }
    .stat-item { border-bottom: 1px solid var(--border-color); }
    .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

.stat-item .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.75rem;
    font-weight: 700;
}

/* ── Key Data Animations ────────────────────────────────────────── */
@keyframes statHighlight {
    0% { transform: scale(1); }
    20% { transform: scale(1.15); }
    40% { transform: scale(1); }
    100% { transform: scale(1); }
}

.stat-bar.visible .stat-item {
    animation: statHighlight 3s ease-in-out forwards;
}

.stat-bar.visible .col:nth-child(1) .stat-item { animation-delay: 1s; }
.stat-bar.visible .col:nth-child(2) .stat-item { animation-delay: 2.5s; }
.stat-bar.visible .col:nth-child(3) .stat-item { animation-delay: 4s; }
.stat-bar.visible .col:nth-child(4) .stat-item { animation-delay: 5.5s; }
.stat-bar.visible .col:nth-child(5) .stat-item { animation-delay: 7s; }

.stat-item {
    transition: transform 0.3s ease;
}
