/* ═══════════════════════════════════════
   LANDING.CSS — Shared styles for SEO landing pages
   Matches the Compix app theme
   ═══════════════════════════════════════ */

:root {
    --accent: #4a9eff;
    --accent-hover: #5aaeff;
    --accent-glow: rgba(74, 158, 255, 0.15);
    --accent-glow-strong: rgba(74, 158, 255, 0.25);
    --bg: #0a0a0a;
    --bg-raised: #111111;
    --panel: #151515;
    --input: #1a1a1a;
    --border: #222;
    --border-hover: #333;
    --text: #e0e0e0;
    --text-bright: #ffffff;
    --dim: #999;
    --dimmer: #555;
    --danger: #ff4444;
    --scene: #30e050;
    --purple: #a78bfa;
    --cyan: #22d3ee;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --max-w: 1080px;
    --max-w-narrow: 720px;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* ─── LAYOUT ─────────────────────────── */
.landing-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-section {
    padding: 80px 24px;
    position: relative;
}

.landing-section--hero {
    padding: 100px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.landing-section--alt {
    background: var(--bg-raised);
}

.landing-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.landing-narrow {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
}

/* ─── TYPOGRAPHY ─────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-bright);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(74, 158, 255, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--dim);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--dim);
    max-width: 600px;
    line-height: 1.7;
}

.section-sub--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ─── BUTTONS ────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── FEATURE GRID ───────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.feature-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color 0.25s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    background: var(--accent-glow);
    border: 1px solid rgba(74, 158, 255, 0.15);
}

.feature-icon--purple {
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.15);
}

.feature-icon--cyan {
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.15);
}

.feature-icon--green {
    background: rgba(48, 224, 80, 0.12);
    border-color: rgba(48, 224, 80, 0.15);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--dim);
    line-height: 1.65;
}

/* ─── WORKFLOW STEPS ─────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 48px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-left: 0;
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 1px solid rgba(74, 158, 255, 0.25);
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9rem;
    color: var(--dim);
    line-height: 1.6;
}

/* ─── COMPARISON TABLE ───────────────── */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.compare-table th {
    background: var(--panel);
    padding: 14px 20px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dim);
    border-bottom: 1px solid var(--border);
}

.compare-table th:first-child {
    color: var(--text-bright);
}

.compare-table th.highlight {
    color: var(--accent);
    background: rgba(74, 158, 255, 0.06);
}

.compare-table td {
    padding: 14px 20px;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
    color: var(--dim);
}

.compare-table td.highlight {
    background: rgba(74, 158, 255, 0.04);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table .check {
    color: var(--accent);
    font-weight: 600;
}

.compare-table .cross {
    color: var(--dimmer);
}

/* ─── TRUST STRIP ────────────────────── */
.trust-strip {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--dim);
}

.trust-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
}

/* ─── FAQ ─────────────────────────────── */
.faq-list {
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text-bright);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    line-height: 1.5;
}

.faq-q:hover {
    color: var(--accent);
}

.faq-chevron {
    font-size: 14px;
    color: var(--dimmer);
    transition: transform 0.25s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-chevron {
    transform: rotate(90deg);
}

.faq-a {
    display: none;
    padding: 0 0 20px;
    font-size: 0.95rem;
    color: var(--dim);
    line-height: 1.7;
}

.faq-item.open .faq-a {
    display: block;
}

/* ─── CTA BANNER ─────────────────────── */
.cta-banner {
    text-align: center;
    padding: 72px 24px;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(74, 158, 255, 0.04) 50%, var(--bg) 100%);
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
}

.cta-banner p {
    color: var(--dim);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* ─── NAV ─────────────────────────────── */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.landing-nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-logo {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-bright);
    text-decoration: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

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

.nav-links a {
    font-size: 13px;
    color: var(--dim);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-bright);
}

.nav-cta {
    padding: 8px 20px !important;
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: var(--radius-xs) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    color: #fff !important;
}

/* ─── FOOTER ─────────────────────────── */
.landing-footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.landing-footer p {
    font-size: 0.85rem;
    color: var(--dimmer);
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

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

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

/* ─── PROSE (blog / long content) ────── */
.prose {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
}

.prose h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 16px;
}

.prose h3 {
    font-size: 1.15rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.prose p {
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.8;
}

.prose strong {
    color: var(--text-bright);
    font-weight: 600;
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose ul, .prose ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.prose li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--text);
}

.prose blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--accent-glow);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    font-style: italic;
    color: var(--dim);
}

/* ─── RESPONSIVE ─────────────────────── */
@media (max-width: 768px) {
    .landing-section { padding: 56px 20px; }
    .landing-section--hero { padding: 80px 20px 56px; }
    .feature-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .nav-links { display: none; }
    .compare-table { font-size: 0.85rem; }
    .compare-table th, .compare-table td { padding: 10px 12px; }
    .trust-strip { gap: 20px; }
}

@media (max-width: 480px) {
    .btn-group { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
