/**
 * marketing.css — Shared styles for all marketing / SEO landing pages.
 * Covers: nav, hero, marketplace-band, feature-rows, stats-band, how-it-works,
 *         seo-content, cta-section, footer, comparison tables, wins grid,
 *         responsive breakpoints, and prefers-reduced-motion.
 */

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

/* Design tokens */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #e0e7ff;
    --accent: #06b6d4;
    --accent-light: #cffafe;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 8px;
    --radius-lg: 16px;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    padding: 0 1.5rem;
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}
.nav-inner {
    max-width: 1140px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    min-height: 60px;
}
.nav-brand {
    color: white; font-size: 1.2rem; font-weight: 800;
    letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 0.5rem; text-decoration: none;
}
.nav-brand-logo { display: flex; align-items: center; gap: 10px; }
.nav-brand-icon { position: relative; width: 32px; height: 32px; flex-shrink: 0; }
.nav-brand-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.25)); }
.nav-brand-icon .ring-outer { animation: spin 12s linear infinite; transform-origin: 36px 36px; }
.nav-brand-icon .ring-inner { animation: spinRev 8s linear infinite; transform-origin: 36px 36px; }
.nav-brand-icon .core-pulse { animation: pulse 2.5s ease-in-out infinite; transform-origin: 36px 36px; }
.nav-brand-icon .particle { animation: float 3s ease-in-out infinite; opacity: 0; }
.nav-brand-icon .particle:nth-child(2) { animation-delay: 0.8s; }
.nav-brand-icon .particle:nth-child(3) { animation-delay: 1.6s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.7; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes float { 0% { opacity: 0; transform: translateY(3px); } 30% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-5px); } }
.nav-brand-wordmark { display: flex; align-items: baseline; gap: 1px; }
.nav-brand-apmt {
    font-weight: 800; font-size: 18px; letter-spacing: -0.5px;
    background: linear-gradient(135deg, #00c8ff 0%, #0090ff 40%, #6c5ce7 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: shimmer 4s ease-in-out infinite; background-size: 200% 100%;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.nav-brand-sales { font-weight: 300; font-size: 18px; letter-spacing: -0.3px; color: #e8eaf6; }
.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-links a {
    color: #c7d2fe; padding: 0.5rem 0.85rem; border-radius: var(--radius);
    font-size: 0.88rem; font-weight: 500; transition: all 0.15s;
    min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.08); }
.nav-links .btn-signup {
    background: var(--primary); color: white; font-weight: 600;
}
.nav-links .btn-signup:hover { background: var(--primary-dark); color: white; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    color: white; padding: 3.5rem 1.5rem 3rem;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -30%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -20%; right: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.hero-inner {
    max-width: 1140px; margin: 0 auto;
    text-align: center; position: relative; z-index: 1;
}
.hero-inner h1 {
    font-size: 2.75rem; font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1.25rem;
}
.hero-inner h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-inner .subtitle {
    font-size: 1.1rem; color: #c7d2fe; line-height: 1.7;
    margin-bottom: 2rem; font-weight: 300; max-width: 680px; margin-left: auto; margin-right: auto;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-hero {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2rem; border-radius: 10px;
    font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.2s;
}
.btn-hero-primary {
    background: var(--primary); color: white;
    box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-hero-primary:hover {
    background: var(--primary-dark); color: white;
    transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.45);
}
.btn-hero-outline {
    background: transparent; color: #c7d2fe;
    border: 1px solid rgba(99,102,241,0.5);
}
.btn-hero-outline:hover {
    background: rgba(99,102,241,0.1); color: white; border-color: var(--primary);
}
.hero-badge {
    margin-top: 1.5rem;
    display: inline-block;
    background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(8px);
    border: 1px solid rgba(99,102,241,0.3); border-radius: 28px;
    padding: 0.6rem 1.4rem; font-size: 0.82rem; font-weight: 600;
    color: #e0e7ff; letter-spacing: 0.02em;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.hero-badge .sep {
    display: inline-block; width: 4px; height: 4px;
    background: var(--accent); border-radius: 50%;
    margin: 0 0.6rem; vertical-align: middle;
}

/* ── Marketplace band ────────────────────────────────────────────────── */
.marketplace-band {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    padding: 1.75rem 1.5rem;
    border-top: 1px solid rgba(99,102,241,0.12);
    border-bottom: 1px solid rgba(99,102,241,0.12);
}
.marketplace-band-inner { max-width: 1140px; margin: 0 auto; text-align: center; }
.marketplace-band-label {
    font-size: 0.78rem; font-weight: 400;
    text-transform: uppercase; letter-spacing: 3px;
    color: #818cf8; margin-bottom: 1rem;
}
.marketplace-logos {
    display: flex; align-items: center; justify-content: center;
    gap: 2rem; flex-wrap: wrap;
}
.marketplace-logos span {
    font-size: 1.1rem; font-weight: 700;
    color: rgba(255,255,255,0.55); letter-spacing: 0.5px; transition: color 0.2s;
}
.marketplace-logos span:hover { color: rgba(255,255,255,0.9); }

/* ── Feature rows ────────────────────────────────────────────────────── */
.feature-rows { padding: 2.5rem 1.5rem 3rem; background: white; }
.feature-rows-inner { max-width: 1140px; margin: 0 auto; }
.feature-rows-header { text-align: center; margin-bottom: 2rem; }
.feature-rows-header h2 {
    font-size: 2.1rem; font-weight: 800;
    color: var(--gray-900); margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.feature-rows-header p { font-size: 1.05rem; color: var(--gray-500); }
.feature-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2.5rem; align-items: center; margin-bottom: 3rem;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row-icon {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    border-radius: var(--radius-lg); padding: 3rem;
    position: relative; overflow: hidden; min-height: 260px;
}
.feature-row-icon::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.feature-row-icon svg {
    width: 80px; height: 80px; position: relative; z-index: 1;
    filter: drop-shadow(0 0 20px rgba(99,102,241,0.4));
}
.feature-row-content { padding: 0.5rem 0; }
.feature-pill {
    display: inline-block; padding: 0.3rem 0.9rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
}
.pill-indigo { background: var(--primary-light); color: var(--primary-dark); }
.pill-cyan { background: var(--accent-light); color: #0e7490; }
.pill-violet { background: #ede9fe; color: #6d28d9; }
.pill-emerald { background: #d1fae5; color: #065f46; }
.feature-row-content h3 {
    font-size: 1.6rem; font-weight: 800;
    color: var(--gray-900); margin-bottom: 0.75rem; letter-spacing: -0.02em;
}
.feature-row-content > p {
    font-size: 1rem; color: var(--gray-600);
    line-height: 1.75; margin-bottom: 1.5rem;
}
.feature-checklist {
    list-style: none; display: grid;
    grid-template-columns: 1fr 1fr; gap: 0.6rem;
}
.feature-checklist li {
    font-size: 0.9rem; color: var(--gray-700);
    padding-left: 1.6rem; position: relative; line-height: 1.5;
}
.feature-checklist li::before {
    content: ''; position: absolute; left: 0; top: 3px;
    width: 16px; height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236366f1'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
}

/* ── Stats band ──────────────────────────────────────────────────────── */
.stats-band {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    padding: 3.5rem 1.5rem;
}
.stats-band-inner {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2rem; text-align: center;
}
.stats-band-label {
    grid-column: 1 / -1;
    font-size: 0.78rem; font-weight: 400;
    text-transform: uppercase; letter-spacing: 3px;
    color: #818cf8; margin-bottom: 0.5rem;
}
.stat-number {
    font-size: 2.5rem; font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 50%, var(--primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1.2; margin-bottom: 0.3rem;
}
.stat-label {
    font-size: 0.85rem; font-weight: 400;
    color: #a5b4fc; letter-spacing: 0.5px;
}

/* ── How it works ────────────────────────────────────────────────────── */
.how-it-works { background: var(--gray-50); padding: 2.5rem 1.5rem; }
.how-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.how-inner h2 {
    font-size: 2.1rem; font-weight: 800;
    color: var(--gray-900); margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.how-inner > p {
    font-size: 1.05rem; color: var(--gray-500); margin-bottom: 1.5rem;
}
.how-steps {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; position: relative;
}
.how-steps::before {
    content: ''; position: absolute;
    top: 32px; left: 16.67%; right: 16.67%; height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
    z-index: 0;
}
.how-step {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
}
.how-step-num {
    width: 64px; height: 64px; border-radius: 50%;
    background: white; border: 3px solid var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 800; color: var(--primary);
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(99,102,241,0.15);
}
.how-step h4 {
    font-size: 1.05rem; font-weight: 700;
    color: var(--gray-900); margin-bottom: 0.4rem;
}
.how-step p {
    font-size: 0.9rem; color: var(--gray-500);
    line-height: 1.6; max-width: 240px;
}

/* ── SEO content ─────────────────────────────────────────────────────── */
.seo-content {
    background: white; border-top: 1px solid var(--gray-200);
}
.seo-content-inner {
    max-width: 800px; margin: 0 auto; padding: 2.5rem 1.5rem;
}
.seo-content-inner h2 {
    font-size: 1.5rem; font-weight: 800;
    color: var(--gray-900); margin-bottom: 1rem; letter-spacing: -0.02em;
}
.seo-content-inner p {
    font-size: 1rem; color: var(--gray-700);
    line-height: 1.8; margin-bottom: 1rem;
}
.seo-content-inner p:last-child { margin-bottom: 0; }

/* ── CTA section ─────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    color: white; text-align: center; padding: 2.5rem 1.5rem;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 60%);
    border-radius: 50%; pointer-events: none;
}
.cta-section h2 {
    font-size: 2.25rem; font-weight: 800;
    margin-bottom: 0.75rem; position: relative; letter-spacing: -0.02em;
}
.cta-section p {
    color: #c7d2fe; margin-bottom: 2rem;
    font-size: 1.1rem; position: relative; font-weight: 300;
}
.cta-section .btn-hero-primary { position: relative; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
    text-align: center; padding: 2rem 1.5rem;
    color: var(--gray-500); font-size: 0.82rem;
    border-top: 1px solid var(--gray-200); background: white;
}
.footer a { color: var(--gray-500); text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { color: var(--gray-800); }

/* ── Comparison table (compare/ pages) ───────────────────────────────── */
.comparison { background: white; padding: 2.5rem 1.5rem; }
.comparison-inner { max-width: 900px; margin: 0 auto; }
.comparison-inner h2 {
    font-size: 2.1rem; font-weight: 800; text-align: center;
    color: var(--gray-900); margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.comparison-inner > p { text-align: center; color: var(--gray-500); font-size: 1.05rem; margin-bottom: 2rem; }
.cmp-table { width: 100%; border-collapse: collapse; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.cmp-table thead th {
    padding: 1rem 1.25rem; text-align: left; font-weight: 700; font-size: 0.95rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); color: white;
}
.cmp-table thead th:first-child { width: 40%; }
.cmp-table tbody td {
    padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); font-size: 0.92rem;
}
.cmp-table tbody tr:nth-child(even) td { background: var(--gray-50); }
.cmp-table tbody tr:hover td { background: var(--primary-light); }
.cmp-check { color: #22c55e; font-weight: 700; }
.cmp-cross { color: #ef4444; font-weight: 700; }
.cmp-partial { color: #f59e0b; font-weight: 600; font-size: 0.85rem; }

/* ── Wins grid (compare/ pages) ──────────────────────────────────────── */
.wins-section { background: var(--gray-50); padding: 2.5rem 1.5rem; }
.wins-inner { max-width: 1140px; margin: 0 auto; }
.wins-inner h2 { font-size: 2.1rem; font-weight: 800; text-align: center; color: var(--gray-900); margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.wins-inner > p { text-align: center; color: var(--gray-500); font-size: 1.05rem; margin-bottom: 2rem; }
.wins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.win-card {
    background: white; border-radius: 12px; border: 1px solid var(--gray-200);
    padding: 2rem; transition: box-shadow 0.2s, transform 0.2s;
}
.win-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }
.win-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.win-card-icon svg { width: 24px; height: 24px; }
.win-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.win-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

/* ── Below-fold content-visibility optimization ──────────────────────── */
.feature-rows, .stats-band, .how-it-works, .seo-content, .cta-section,
.comparison, .wins-section {
    content-visibility: auto; contain-intrinsic-size: auto 500px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
    .feature-row.reverse > * { direction: ltr; }
    .feature-row-icon { order: -1; min-height: 200px; }
    .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .wins-grid { grid-template-columns: 1fr; }
    .cmp-table { font-size: 0.85rem; }
    .cmp-table thead th, .cmp-table tbody td { padding: 0.7rem 0.75rem; }
}
@media (max-width: 600px) {
    .hero { padding: 2.5rem 1.5rem 3rem; }
    .hero-inner h1 { font-size: 2rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-badge { font-size: 0.72rem; padding: 0.5rem 1rem; }
    .marketplace-logos { gap: 1rem; }
    .marketplace-logos span { font-size: 0.9rem; }
    .feature-checklist { grid-template-columns: 1fr; }
    .how-steps { grid-template-columns: 1fr; gap: 2.5rem; }
    .how-steps::before { display: none; }
    .stat-number { font-size: 2rem; }
    .stats-band-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .nav-links { gap: 0.1rem; }
    .nav-links a { min-height: 48px; padding: 0.5rem 0.6rem; font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
