/* ═══════════════════════════════════════
   Meridian Product Page
   All classes prefixed mer- to avoid conflicts with global style.css
   ═══════════════════════════════════════ */

/* ── Product identity stamp ── */
.mer-product-id {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.mer-logo-mark {
    width: 40px;
    height: 40px;
    background: #0c1929;
    border-radius: 9px;
    padding: 5px;
    border: 1px solid #1a2e45;
    display: block;
    flex-shrink: 0;
}
.mer-prod-name {
    font-size: 18px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.02em;
    line-height: 1;
}
.mer-prod-sep {
    color: #1e3040;
    font-weight: 300;
    font-size: 18px;
    line-height: 1;
}
.mer-prod-by {
    font-size: 13px;
    color: #334155;
    font-weight: 400;
    line-height: 1;
}

/* ── HERO ── */
.mer-hero {
    background: #070f18;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.mer-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 15% 55%, rgba(16,185,129,0.07) 0%, transparent 65%),
        radial-gradient(ellipse 50% 60% at 85% 25%, rgba(56,189,248,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.mer-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
}

.mer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.3);
    background: rgba(16,185,129,0.08);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
    width: fit-content;
}
.mer-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: mer-blink 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes mer-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.mer-h1 {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #f1f5f9;
    margin-bottom: 24px;
}
.mer-h1 .mer-green { color: #10b981; }

.mer-hero-sub {
    font-size: 17px;
    line-height: 1.75;
    color: #64748b;
    margin-bottom: 36px;
    max-width: 460px;
}

.mer-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.mer-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: #070f18 !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none !important;
    border: none;
}
.mer-btn-primary:hover {
    background: #0d9e6d;
    transform: translateY(-1px);
    color: #070f18 !important;
    text-decoration: none !important;
}

.mer-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #64748b !important;
    font-weight: 500;
    font-size: 15px;
    padding: 14px 20px;
    border: 1px solid #1e3040;
    border-radius: 8px;
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none !important;
}
.mer-btn-ghost:hover {
    border-color: rgba(16,185,129,0.5);
    color: #10b981 !important;
    text-decoration: none !important;
}

.mer-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.mer-hero-tags span {
    font-size: 11px;
    font-weight: 500;
    color: #334155;
    background: rgba(255,255,255,0.03);
    border: 1px solid #1e3040;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

/* ── Answer Card Mockup ── */
.mer-answer-card {
    background: #0c1929;
    border: 1px solid #1e3040;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(16,185,129,0.08);
}

.mer-card-titlebar {
    background: #070f18;
    border-bottom: 1px solid #1a2e45;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mer-card-dots {
    display: flex;
    gap: 5px;
}
.mer-card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mer-card-dots span:nth-child(1) { background: #3a2020; }
.mer-card-dots span:nth-child(2) { background: #3a3020; }
.mer-card-dots span:nth-child(3) { background: #10b981; }
.mer-card-title {
    font-size: 11px;
    font-weight: 500;
    color: #334155;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    margin-left: auto;
    letter-spacing: 0.04em;
}

.mer-card-query {
    padding: 18px 18px 16px;
    border-bottom: 1px solid #0f2035;
}
.mer-micro-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2d4a6a;
    margin-bottom: 8px;
}
.mer-query-text {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.55;
    font-style: italic;
}

.mer-card-response {
    padding: 18px;
}
.mer-response-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
}
.mer-response-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    animation: mer-blink 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
.mer-response-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #10b981;
}

.mer-response-body {
    font-size: 13px;
    color: #64748b;
    line-height: 1.72;
    margin-bottom: 18px;
}
.mer-response-body strong { color: #cbd5e1; font-weight: 600; }

.mer-source-block {
    border-top: 1px solid #0f2035;
    padding-top: 14px;
}
.mer-source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}
.mer-src-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    background: rgba(255,255,255,0.025);
    border: 1px solid #1a2e45;
    padding: 3px 9px;
    border-radius: 5px;
    font-family: ui-monospace, monospace;
}
.mer-src-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mer-perm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #10b981;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.15);
    padding: 5px 11px;
    border-radius: 6px;
}
.mer-perm-badge i { font-size: 9px; }

/* ── Section shell ── */
.mer-section { padding: 96px 0; }

.mer-sec-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 60px;
}
.mer-sec-eye {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #10b981;
    margin-bottom: 12px;
}
.mer-sec-head h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #111827;
    margin-bottom: 16px;
}
.mer-sec-head p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ── PROBLEM ── */
.mer-problem { background: #f9fafb; }

.mer-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.mer-prob-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px 28px;
}
.mer-prob-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 20px;
    background: #fee2e2;
    color: #ef4444;
}
.mer-prob-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}
.mer-prob-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.68;
    margin: 0;
}

/* ── HOW IT WORKS ── */
.mer-how { background: #fff; }

.mer-steps-row {
    display: grid;
    grid-template-columns: 1fr 44px 1fr 44px 1fr;
    align-items: start;
    max-width: 860px;
    margin: 0 auto;
}
.mer-step {
    text-align: center;
    padding: 0 8px;
}
.mer-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(16,185,129,0.1);
    border: 2px solid rgba(16,185,129,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #10b981;
    margin: 0 auto 18px;
}
.mer-step h4 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.mer-step p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}
.mer-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 18px;
    color: rgba(16,185,129,0.5);
    font-size: 16px;
}

/* ── INTEGRATIONS ── */
.mer-integrations { background: #070f18; }
.mer-integrations .mer-sec-head h2 { color: #f1f5f9; }
.mer-integrations .mer-sec-head p  { color: #475569; }

.mer-int-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.mer-int-chip {
    background: #0c1929;
    border: 1px solid #1a2e45;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    transition: border-color 0.2s, color 0.2s;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: default;
}
.mer-int-chip:hover {
    border-color: rgba(16,185,129,0.35);
    color: #94a3b8;
}
.mer-int-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}
.mer-int-badge img {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) invert(1);
}

/* ── FEATURES ── */
.mer-features { background: #fff; }

.mer-feat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.mer-feat-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
}
.mer-feat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #10b981;
}
.mer-feat-ico {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(16,185,129,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #10b981;
    margin-bottom: 20px;
}
.mer-feat-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}
.mer-feat-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.72;
    margin: 0;
}

/* ── VIDEO ── */
.mer-video-section {
    background: #070f18;
    border-top: 1px solid #0f1f30;
    padding: 96px 0;
}
.mer-video-section .mer-sec-head h2 { color: #f1f5f9; }
.mer-video-section .mer-sec-head p  { color: #475569; }

.mer-video-wrap {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #1a2e45;
    box-shadow: 0 32px 80px rgba(0,0,0,0.65);
    aspect-ratio: 16 / 9;
}
.mer-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ── PULL QUOTE ── */
.mer-quote-section {
    background: #070f18;
    border-top: 1px solid #0f1f30;
    padding: 80px 0;
}
.mer-quote-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.mer-quote-mark {
    font-size: 72px;
    line-height: 0.8;
    color: rgba(16,185,129,0.25);
    font-family: Georgia, serif;
    display: block;
    margin-bottom: 12px;
}
.mer-quote-inner blockquote {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.65;
    color: #94a3b8;
    font-style: italic;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    background: none;
}
.mer-quote-cite {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #10b981;
}

/* ── CTA BAND ── */
.mer-cta-band {
    background: #10b981;
    padding: 80px 0;
    text-align: center;
}
.mer-cta-band h2 {
    font-size: 40px;
    font-weight: 800;
    color: #04140d;
    margin-bottom: 14px;
    letter-spacing: -0.025em;
}
.mer-cta-band p {
    font-size: 17px;
    color: rgba(4,20,13,0.65);
    margin-bottom: 36px;
}
.mer-btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #04140d;
    color: #f1f5f9 !important;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 36px;
    border-radius: 10px;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none !important;
}
.mer-btn-dark:hover {
    background: #0c1929;
    transform: translateY(-2px);
    color: #f1f5f9 !important;
    text-decoration: none !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .mer-hero { padding: 100px 0 64px; }
    .mer-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .mer-h1 { font-size: 38px; }
    .mer-hero-sub { max-width: 100%; }
    .mer-problem-grid { grid-template-columns: 1fr; }
    .mer-feat-grid { grid-template-columns: 1fr; }
    .mer-int-grid { grid-template-columns: repeat(3, 1fr); }
    .mer-steps-row {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 8px;
    }
    .mer-step-arrow { transform: rotate(90deg); padding: 0; }
}
@media (max-width: 600px) {
    .mer-section { padding: 64px 0; }
    .mer-video-section { padding: 64px 0; }
    .mer-quote-section { padding: 56px 0; }
    .mer-cta-band { padding: 64px 0; }
    .mer-h1 { font-size: 30px; }
    .mer-sec-head h2 { font-size: 28px; }
    .mer-cta-band h2 { font-size: 28px; }
    .mer-int-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .mer-eyebrow::before,
    .mer-response-dot { animation: none; }
}
