/* ============================================
   SiteSmith — Core Styles
   ============================================ */

:root {
    --orange: #F97316;
    --orange-glow: rgba(249, 115, 22, 0.15);
    --orange-dark: #EA580C;
    --charcoal: #1E293B;
    --navy: #0F172A;
    --dark-bg: #090E1A;
    --surface: #111827;
    --surface-2: #1E293B;
    --border: rgba(148, 163, 184, 0.1);
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --cyan: #06B6D4;
    --green: #10B981;
    --red: #EF4444;
    --purple: #8B5CF6;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--orange), #FB923C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--orange);
    color: white;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover {
    background: var(--orange-dark);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(9, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}
.logo-text strong {
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--orange-glow);
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.hero h1 {
    margin-bottom: 20px;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ---- Scan Box ---- */
.scan-box {
    max-width: 600px;
    margin: 0 auto 48px;
}

.scan-form {
    display: flex;
    gap: 8px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    transition: border-color 0.3s;
}
.scan-form:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-glow);
}

.scan-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 14px;
}

.scan-icon { flex-shrink: 0; }

#urlInput {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 0;
}
#urlInput::placeholder { color: var(--text-dim); }

.scan-hint {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 12px;
}

.spinner {
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Stats Bar ---- */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 24px 0;
}

.stat { text-align: center; }
.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* ---- Results Section ---- */
.results-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.results-header {
    text-align: center;
    margin-bottom: 48px;
}
.results-url {
    color: var(--orange);
    font-size: 1rem;
    margin-top: 8px;
    word-break: break-all;
}
.results-timestamp {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Score Circle */
.score-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.score-circle-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}
.score-circle { width: 100%; height: 100%; }
.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
}
.score-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 60%);
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}
.score-item-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 100px;
}
.score-bar-track {
    flex: 1;
    height: 8px;
    background: var(--surface-2);
    border-radius: 4px;
    overflow: hidden;
}
.score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}
.score-item-val {
    font-size: 0.85rem;
    font-weight: 700;
    width: 32px;
    text-align: right;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.result-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.result-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
}
.result-badge {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-pass { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.badge-warn { background: rgba(249, 115, 22, 0.15); color: var(--orange); }
.badge-fail { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.badge-info { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }

.result-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}
.result-value {
    color: var(--text);
    font-weight: 500;
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    word-break: break-all;
    max-height: 80px;
    overflow-y: auto;
}

/* Results CTA */
.results-cta {
    text-align: center;
    padding: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.results-cta h3 { margin-bottom: 8px; }
.results-cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ---- Features ---- */
.features {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent, var(--orange));
    margin-bottom: 20px;
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.feature-tag.available { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.feature-tag.coming { background: rgba(148, 163, 184, 0.1); color: var(--text-dim); }

.feature-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
}
.feature-link:hover {
    border-color: var(--orange);
}
.feature-cta {
    display: inline-block;
    margin-top: auto;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.3s, transform 0.3s;
}
.feature-link:hover .feature-cta {
    opacity: 1;
    transform: translateX(0);
}

.feature-card-cta {
    border-style: dashed;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ---- Feature Card Hover Preview ---- */
.feature-card {
    position: relative;
}
.feature-preview {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 50;
    pointer-events: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.feature-preview::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--surface-2);
}
.feature-link:hover .feature-preview {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.preview-mini-header {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.preview-mini-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.preview-mini-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.preview-mini-bar-track {
    flex: 1;
    height: 4px;
    background: var(--dark-bg);
    border-radius: 2px;
    overflow: hidden;
}
.preview-mini-bar-fill {
    height: 100%;
    border-radius: 2px;
}
.preview-mini-monitor {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}
.preview-mini-monitor:last-child { border-bottom: none; }
.preview-mini-segs {
    display: flex;
    gap: 1px;
    flex: 1;
}
.preview-mini-seg {
    width: 4px;
    height: 12px;
    border-radius: 1px;
}
.preview-mini-seg.up { background: var(--green); }
.preview-mini-seg.down { background: var(--red); }
.preview-mini-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.preview-mini-ss {
    aspect-ratio: 16/10;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.preview-mini-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
    font-size: 0.65rem;
    color: var(--text-muted);
}
.preview-mini-node {
    padding: 4px 8px;
    background: var(--dark-bg);
    border-radius: 4px;
    border: 1px solid var(--border);
}
.preview-mini-arrow { color: var(--green); }
.preview-mini-keys {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.preview-mini-key {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
    padding: 4px 8px;
    background: var(--dark-bg);
    border-radius: 4px;
    border: 1px solid var(--border);
}
.preview-mini-key code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: var(--text-muted);
}

/* ---- Pricing ---- */
.pricing {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 920px;
    margin: 0 auto;
}

.price-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.popular {
    border-color: var(--orange);
    box-shadow: 0 0 40px var(--orange-glow);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--orange);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    white-space: nowrap;
}

.price-tier {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}
.currency {
    font-size: 1.5rem;
    vertical-align: top;
    margin-right: 2px;
    color: var(--text-muted);
}
.price-decimal {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}
.price-period {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 8px;
    margin-bottom: 32px;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}
.price-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-features li::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310B981'%3E%3Cpath 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'/%3E%3C/svg%3E") no-repeat center;
    flex-shrink: 0;
}

.price-card .btn { width: 100%; }

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.footer-brand { max-width: 280px; }
.footer-brand .logo-text {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 8px;
}
.footer-brand p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 64px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}
.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
    text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        border-top: 1px solid var(--border);
        padding: 16px 24px;
        flex-direction: column;
        gap: 12px;
    }
    .nav-links.open { display: flex; }
    .mobile-menu-btn { display: flex; }
    .mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .scan-form { flex-direction: column; }
    .scan-form .btn { width: 100%; }

    .stats-bar { gap: 24px; }
    .stat-num { font-size: 1.4rem; }

    .score-overview { flex-direction: column; }
    .results-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

    .footer-links { gap: 32px; }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Pricing page, lead magnet & case studies
   (added for launch — pricing.html + landing sections)
   ============================================ */

/* 3-column pricing grid (Starter / Pro / Enterprise) */
.pricing-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 1040px;
}

/* ---- Feature comparison table ---- */
.pricing-compare {
    padding: 80px 0 100px;
    border-top: 1px solid var(--border);
}
.compare-wrap { overflow-x: auto; }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.compare-table th,
.compare-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.compare-table thead th {
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--surface-2);
}
.compare-table td:first-child,
.compare-table th:first-child {
    text-align: left;
    color: var(--text);
    font-weight: 500;
}
.compare-table .col-pro {
    background: var(--orange-glow);
    color: var(--text);
}
.compare-table thead .col-pro { color: var(--orange); }
.compare-table tbody tr:last-child td { border-bottom: none; padding-top: 20px; padding-bottom: 20px; }
.compare-table .yes { color: var(--green); font-weight: 700; }

/* ---- Lead magnet / contact-sales section ---- */
.lead-section {
    padding: 90px 0;
    border-top: 1px solid var(--border);
}
.lead-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
}
.lead-copy h2 { margin: 16px 0 12px; }
.lead-copy p { color: var(--text-muted); font-size: 1rem; }
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-row { display: flex; gap: 12px; }
.lead-form input,
.lead-form textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}
.lead-form input:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: var(--text-dim); }
.lead-form .btn { width: 100%; margin-top: 4px; }
.lead-status { font-size: 0.85rem; min-height: 1.2em; margin: 0; color: var(--text-muted); }
.lead-status.success { color: var(--green); }
.lead-status.error { color: var(--red); }
.lead-fineprint { font-size: 0.78rem; color: var(--text-dim); margin: 0; }

/* Lead magnet download badge on landing */
.lead-magnet-visual {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.lead-magnet-visual .lm-line {
    height: 10px;
    border-radius: 4px;
    background: var(--surface-2);
}
.lead-magnet-visual .lm-line.short { width: 55%; }
.lead-magnet-visual .lm-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.lead-magnet-visual .lm-check::before {
    content: '';
    width: 16px; height: 16px; flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310B981'%3E%3Cpath 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'/%3E%3C/svg%3E") no-repeat center;
}

/* ---- Case studies ---- */
.case-studies {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.case-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
}
.case-card:hover { border-color: rgba(148, 163, 184, 0.2); }
.case-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--orange);
    margin-bottom: 12px;
}
.case-metric {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
}
.case-metric-label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.case-card p { color: var(--text-muted); font-size: 0.9rem; }
.case-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-dim);
}
.case-disclaimer {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-top: 28px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .lead-box { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
    .lead-row { flex-direction: column; }
    .pricing-grid-3 { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

.result-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}
.result-card:nth-child(1) { animation-delay: 0.05s; }
.result-card:nth-child(2) { animation-delay: 0.1s; }
.result-card:nth-child(3) { animation-delay: 0.15s; }
.result-card:nth-child(4) { animation-delay: 0.2s; }
.result-card:nth-child(5) { animation-delay: 0.25s; }
.result-card:nth-child(6) { animation-delay: 0.3s; }
.result-card:nth-child(7) { animation-delay: 0.35s; }
.result-card:nth-child(8) { animation-delay: 0.4s; }
.result-card:nth-child(9) { animation-delay: 0.45s; }
.result-card:nth-child(10) { animation-delay: 0.5s; }

/* ============================================
   Feature Pages
   ============================================ */

/* ---- Feature Hero ---- */
.feature-hero {
    position: relative;
    padding: 140px 0 60px;
    text-align: center;
    overflow: hidden;
}
.feature-back {
    display: inline-block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s;
}
.feature-back:hover { color: var(--orange); }
.feature-hero-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent, var(--orange));
    margin: 0 auto 24px;
}
.feature-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 5vw, 3.2rem);
}
.feature-hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.feature-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- Feature Demo Window ---- */
.feature-demo {
    padding: 0 0 80px;
}
.feature-demo-window {
    max-width: 720px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}
.demo-window-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #0B1120;
    border-bottom: 1px solid var(--border);
}
.demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--surface-2);
}
.demo-dot:first-child { background: #EF4444; }
.demo-dot:nth-child(2) { background: #F59E0B; }
.demo-dot:nth-child(3) { background: #10B981; }
.demo-url {
    margin-left: 12px;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}
.demo-window-body {
    padding: 24px;
}

/* Demo: SEO Score */
.demo-score-row {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.demo-score-circle {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}
.demo-score-circle svg { width: 100%; height: 100%; }
.demo-score-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
}
.demo-score-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}
.demo-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.demo-bar-item > span:first-child { width: 100px; }
.demo-bar-item > span:last-child { width: 28px; text-align: right; font-weight: 700; color: var(--text); }
.demo-bar {
    flex: 1;
    height: 6px;
    background: var(--dark-bg);
    border-radius: 3px;
    overflow: hidden;
}
.demo-bar-fill {
    height: 100%;
    border-radius: 3px;
    animation: barGrow 1s ease forwards;
}
@keyframes barGrow {
    from { width: 0 !important; }
}
.demo-results-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.demo-result-chip {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}
.demo-result-chip.pass { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.demo-result-chip.warn { background: rgba(249, 115, 22, 0.12); color: var(--orange); }
.demo-result-chip.fail { background: rgba(239, 68, 68, 0.12); color: var(--red); }

/* Demo: Monitor List */
.demo-monitor-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.demo-monitor-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}
.demo-monitor-name {
    font-weight: 500;
    color: var(--text);
    min-width: 160px;
}
.demo-monitor-time {
    color: var(--text-dim);
    min-width: 40px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.75rem;
}
.demo-uptime-bar {
    display: flex;
    gap: 2px;
    flex: 1;
}
.demo-uptime-seg {
    flex: 1;
    height: 20px;
    border-radius: 2px;
}
.demo-uptime-seg.up { background: var(--green); }
.demo-uptime-seg.down { background: var(--red); }
.demo-uptime-pct {
    font-weight: 700;
    color: var(--green);
    min-width: 45px;
    text-align: right;
    font-size: 0.8rem;
}

/* Demo: Screenshots */
.demo-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.demo-screenshot-card {
    background: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.demo-screenshot-img {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.demo-ss-placeholder { opacity: 0.3; }
.demo-screenshot-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.7rem;
    color: var(--text);
}

/* Demo: Webhook Flow */
.demo-webhook-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 0;
}
.demo-wh-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    background: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 140px;
}
.demo-wh-node span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}
.demo-wh-node code {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}
.demo-wh-node.source { border-color: rgba(6, 182, 212, 0.3); color: var(--cyan); }
.demo-wh-node.transform { border-color: rgba(249, 115, 22, 0.3); color: var(--orange); }
.demo-wh-node.dest { border-color: rgba(16, 185, 129, 0.3); color: var(--green); }
.demo-wh-arrow {
    flex-shrink: 0;
}

/* Demo: License Table */
.demo-license-table {
    display: flex;
    flex-direction: column;
}
.demo-license-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 10px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}
.demo-license-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.demo-license-row:last-child { border-bottom: none; }
.demo-license-row code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.75rem;
    color: var(--text);
}

/* ---- Feature Highlights ---- */
.feature-highlights {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.highlight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s;
}
.highlight-card:hover {
    border-color: rgba(148, 163, 184, 0.2);
    transform: translateY(-2px);
}
.highlight-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.highlight-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}
.highlight-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}
.highlight-card code {
    background: var(--dark-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--orange);
}

/* ---- How It Works Steps ---- */
.feature-steps {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}
.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    max-width: 260px;
    flex: 1;
    min-width: 200px;
}
.step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 auto 16px;
}
.step-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}
.step-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}
.step-connector {
    flex-shrink: 0;
    opacity: 0.5;
}

/* ---- FAQ / Expandable ---- */
.feature-faq {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}
.faq-list {
    max-width: 680px;
    margin: 0 auto;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] {
    border-color: rgba(249, 115, 22, 0.3);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--text);
    transition: color 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--text-dim);
    font-weight: 400;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item[open] .faq-question::after {
    content: '\2212';
    color: var(--orange);
}
.faq-question:hover { color: var(--orange); }
.faq-answer {
    padding: 0 24px 18px;
}
.faq-answer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
.faq-answer code {
    background: var(--dark-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--orange);
}

/* ---- Feature CTA Section ---- */
.feature-cta-section {
    padding: 80px 0;
}
.feature-cta-box {
    text-align: center;
    padding: 64px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background-image: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
}
.feature-cta-box h2 {
    margin-bottom: 12px;
}
.feature-cta-box p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1rem;
}

/* ---- Feature Page Responsive ---- */
@media (max-width: 768px) {
    .feature-hero { padding: 120px 0 40px; }
    .highlights-grid { grid-template-columns: 1fr; }
    .steps-row { flex-direction: column; }
    .step-connector { transform: rotate(90deg); }
    .demo-score-row { flex-direction: column; align-items: stretch; }
    .demo-monitor-row { flex-wrap: wrap; }
    .demo-monitor-name { min-width: 100%; }
    .demo-screenshots-grid { grid-template-columns: 1fr; }
    .demo-webhook-flow { flex-direction: column; }
    .demo-wh-arrow { transform: rotate(90deg); }
    .demo-license-header,
    .demo-license-row { grid-template-columns: 1fr 1fr; }
    .feature-preview { display: none; }
}
