/* Filhex Marketing — Forge palette (premium automotive SaaS aesthetic)

   Copper gold + slate night + cyan spark
   Scoped to .fx-marketing — does not affect garage/admin app
*/

.fx-marketing {
    --fx-m-bg: #07080c;
    --fx-m-bg-elevated: #0c0f16;
    --fx-m-surface: #121820;
    --fx-m-surface-hover: #1a2330;
    --fx-m-border: rgba(148, 163, 184, 0.12);
    --fx-m-border-strong: rgba(148, 163, 184, 0.22);
    --fx-m-glow: rgba(232, 163, 23, 0.35);
    --fx-m-glow-soft: rgba(232, 163, 23, 0.08);
    --fx-m-text: #f1f5f9;
    --fx-m-text-muted: #94a3b8;
    --fx-m-text-dim: #64748b;
    --fx-m-accent: #e8a317;
    --fx-m-accent-hover: #f5c042;
    --fx-m-accent-deep: #b87d0a;
    --fx-m-accent-muted: rgba(232, 163, 23, 0.14);
    --fx-m-spark: #22d3ee;
    --fx-m-spark-muted: rgba(34, 211, 238, 0.12);
    --fx-m-success: #34d399;
    --fx-m-success-muted: rgba(52, 211, 153, 0.14);
    --fx-m-radius: 12px;
    --fx-m-radius-lg: 20px;
    --fx-m-max: 1180px;
    --fx-m-font-display: "IBM Plex Sans", system-ui, sans-serif;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--fx-m-bg);
    color: var(--fx-m-text);
    position: relative;
    overflow-x: hidden;
}

/* Ambient background */
.fx-marketing::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 60% at 15% -10%, rgba(232, 163, 23, 0.14), transparent 55%),
        radial-gradient(ellipse 70% 50% at 95% 10%, rgba(34, 211, 238, 0.07), transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(232, 163, 23, 0.06), transparent 60%);
}

.fx-marketing::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}

.fx-marketing-header-wrap,
.fx-marketing-main,
.fx-marketing-footer {
    position: relative;
}

.fx-marketing-header-wrap {
    z-index: 100;
}

.fx-marketing-main,
.fx-marketing-footer {
    z-index: 1;
}

/* Top bar */
.fx-marketing-topbar {
    border-bottom: 1px solid var(--fx-m-border);
    background: rgba(7, 8, 12, 0.85);
    font-size: 12px;
    color: var(--fx-m-text-dim);
}

.fx-marketing-topbar-inner {
    max-width: var(--fx-m-max);
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.fx-marketing-topbar a {
    color: var(--fx-m-text-muted);
    text-decoration: none;
}

.fx-marketing-topbar a:hover {
    color: var(--fx-m-accent);
}

/* Floating pill header */
.fx-marketing-header-wrap {
    padding: 16px 24px 0;
    overflow: visible;
}

.fx-marketing-header {
    max-width: var(--fx-m-max);
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px 0 20px;
    border: 1px solid var(--fx-m-border);
    border-radius: 999px;
    background: rgba(12, 15, 22, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: visible;
}

.fx-marketing-header-start,
.fx-marketing-header-end {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
}

.fx-marketing-header-start {
    justify-content: flex-start;
}

.fx-marketing-header-end {
    justify-content: flex-end;
    gap: 8px;
}

.fx-marketing-logo {
    font-size: 17px;
    font-weight: 800;
    color: var(--fx-m-text);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.fx-marketing-logo span {
    color: var(--fx-m-accent);
}

/* Shared brand mark + wordmark */
.fx-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--fx-m-text, #f1f5f9);
    white-space: nowrap;
}

.fx-brand-mark {
    display: block;
    flex-shrink: 0;
    border-radius: 7px;
}

.fx-brand-word {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: inherit;
}

.fx-brand--marketing .fx-brand-word,
.fx-brand--footer .fx-brand-word {
    font-size: 16px;
}

.fx-brand--footer {
    margin-bottom: 12px;
}

.fx-brand--auth {
    margin-bottom: 24px;
}

.fx-brand--auth .fx-brand-word {
    font-size: 15px;
    letter-spacing: 0.06em;
}

.fx-marketing-nav {
    display: flex;
    gap: 4px;
    flex: 0 0 auto;
    justify-content: center;
}

.fx-marketing-nav a {
    color: var(--fx-m-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s;
}

.fx-marketing-nav a:hover {
    color: var(--fx-m-text);
    background: rgba(255, 255, 255, 0.04);
}

.fx-marketing-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.fx-marketing-header-actions--mobile {
    display: none;
}

.fx-lang-menu {
    position: relative;
    z-index: 120;
}

.fx-lang-menu[open] {
    z-index: 130;
}

.fx-lang-menu-trigger {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 44px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--fx-m-border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--fx-m-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.fx-lang-menu-trigger::-webkit-details-marker {
    display: none;
}

.fx-lang-menu-trigger::marker {
    content: "";
}

.fx-lang-menu-trigger:hover,
.fx-lang-menu[open] > .fx-lang-menu-trigger {
    border-color: rgba(232, 163, 23, 0.4);
    background: rgba(232, 163, 23, 0.1);
    color: var(--fx-m-accent, #e8a317);
}

.fx-lang-menu-code {
    line-height: 1;
}

.fx-lang-menu-caret {
    font-size: 10px;
    opacity: 0.7;
    line-height: 1;
}

.fx-lang-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 140;
    min-width: 96px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(232, 163, 23, 0.22);
    background: #0c0f16;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fx-lang-menu-item {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--fx-m-text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
}

.fx-lang-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--fx-m-text);
}

.fx-lang-menu-item.active {
    background: rgba(232, 163, 23, 0.16);
    color: var(--fx-m-accent, #e8a317);
}

.fx-lang-switch--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.fx-lang-switch--inline a {
    flex: 1 1 calc(20% - 6px);
    min-width: 48px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fx-m-text-dim);
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid var(--fx-m-border);
    background: rgba(0, 0, 0, 0.25);
    line-height: 1;
}

.fx-lang-switch--inline a:hover:not(.active) {
    color: var(--fx-m-text);
    border-color: rgba(255, 255, 255, 0.12);
}

.fx-lang-switch--inline a.active {
    color: #111827;
    background: var(--fx-m-accent, #e8a317);
    border-color: transparent;
}

/* Marketing buttons */
.fx-marketing .fx-btn-primary {
    background: linear-gradient(135deg, var(--fx-m-accent) 0%, var(--fx-m-accent-deep) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #0a0a0a;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--fx-m-glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.fx-marketing .fx-btn-primary:hover {
    background: linear-gradient(135deg, var(--fx-m-accent-hover) 0%, var(--fx-m-accent) 100%);
    color: #0a0a0a;
    box-shadow: 0 6px 28px rgba(232, 163, 23, 0.25);
}

.fx-marketing .fx-btn-ghost {
    border: 1px solid var(--fx-m-border-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--fx-m-text);
}

.fx-marketing .fx-btn-ghost:hover {
    border-color: var(--fx-m-accent);
    color: var(--fx-m-accent);
    background: var(--fx-m-accent-muted);
}

.fx-marketing .fx-btn-spark {
    background: transparent;
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: var(--fx-m-spark);
}

.fx-marketing .fx-btn-spark:hover {
    background: var(--fx-m-spark-muted);
}

.fx-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.fx-btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.fx-marketing-main {
    flex: 1;
}

/* Section utilities */
.fx-m-container {
    max-width: var(--fx-m-max);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.fx-m-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--fx-m-accent);
    background: var(--fx-m-accent-muted);
    border: 1px solid rgba(232, 163, 23, 0.25);
    margin-bottom: 20px;
}

.fx-m-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fx-m-accent);
    box-shadow: 0 0 8px var(--fx-m-glow);
}

.fx-m-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--fx-m-spark);
    margin-bottom: 10px;
}

.fx-m-section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 14px;
}

.fx-m-section-lead {
    font-size: 17px;
    color: var(--fx-m-text-muted);
    line-height: 1.65;
    max-width: 640px;
    margin: 0 0 32px;
}

/* Hero */
.fx-m-hero {
    padding: 56px 0 80px;
}

.fx-m-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.fx-m-hero h1 {
    font-size: clamp(38px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin: 0 0 22px;
}

.fx-m-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--fx-m-accent-hover) 0%, var(--fx-m-accent-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* FocusOnNavigate targets main — never show a focus ring (screen readers still move focus). */
.fx-marketing-main:focus,
.fx-marketing-main:focus-visible {
    outline: none;
}

.fx-marketing h1:focus:not(:focus-visible) {
    outline: none;
}

.fx-m-hero-sub {
    font-size: 18px;
    color: var(--fx-m-text-muted);
    line-height: 1.65;
    margin: 0 0 32px;
    max-width: 520px;
}

.fx-m-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.fx-m-hero-note {
    font-size: 13px;
    color: var(--fx-m-text-dim);
}

/* Hero visual card */
.fx-m-hero-visual {
    position: relative;
    border-radius: var(--fx-m-radius-lg);
    border: 1px solid var(--fx-m-border);
    background: linear-gradient(160deg, rgba(18, 24, 32, 0.95) 0%, rgba(10, 12, 18, 0.98) 100%);
    padding: 32px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(232, 163, 23, 0.08),
        0 24px 64px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.fx-m-hero-visual::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 50% 50%, var(--fx-m-glow-soft), transparent 55%);
    animation: fx-m-pulse 6s ease-in-out infinite;
}

@keyframes fx-m-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.fx-m-hero-visual-inner {
    position: relative;
    z-index: 1;
}

.fx-m-hero-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--fx-m-accent-muted);
    border: 1px solid rgba(232, 163, 23, 0.3);
    box-shadow: 0 0 32px var(--fx-m-glow-soft);
}

.fx-m-hero-visual-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.fx-m-hero-visual p {
    margin: 0 0 20px;
    color: var(--fx-m-text-muted);
    font-size: 14px;
}

.fx-m-hero-visual-title + p {
    margin-bottom: 20px;
}

.fx-m-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--fx-m-success);
    background: var(--fx-m-success-muted);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.fx-m-status-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fx-m-success);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
    animation: fx-m-blink 2s ease-in-out infinite;
}

@keyframes fx-m-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
    .fx-m-hero-visual::before,
    .fx-m-status-pill::before {
        animation: none !important;
    }
}


/* Stats band */
.fx-m-stats {
    padding: 0 0 64px;
}

.fx-m-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fx-m-stat {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--fx-m-radius);
    border: 1px solid var(--fx-m-border);
    background: rgba(18, 24, 32, 0.6);
    backdrop-filter: blur(8px);
    transition: border-color 0.2s, transform 0.2s;
}

.fx-m-stat:hover {
    border-color: rgba(232, 163, 23, 0.25);
    transform: translateY(-2px);
}

.fx-m-stat-value {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fx-m-text);
    line-height: 1;
    margin-bottom: 8px;
}

.fx-m-stat-value.accent {
    color: var(--fx-m-accent);
}

.fx-m-stat-value.spark {
    color: var(--fx-m-spark);
}

.fx-m-stat-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--fx-m-text-dim);
}

/* Feature cards */
.fx-m-section {
    padding: 72px 0;
}

.fx-m-section.alt {
    background: rgba(12, 15, 22, 0.5);
    border-top: 1px solid var(--fx-m-border);
    border-bottom: 1px solid var(--fx-m-border);
}

.fx-m-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fx-m-feature-card {
    padding: 28px;
    border-radius: var(--fx-m-radius);
    border: 1px solid var(--fx-m-border);
    background: linear-gradient(165deg, rgba(22, 28, 38, 0.8) 0%, rgba(14, 17, 24, 0.9) 100%);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.fx-m-feature-card:hover {
    border-color: rgba(232, 163, 23, 0.28);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(232, 163, 23, 0.08);
    transform: translateY(-3px);
}

.fx-m-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
    background: var(--fx-m-accent-muted);
    border: 1px solid rgba(232, 163, 23, 0.2);
}

.fx-m-feature-card.spark .fx-m-feature-icon {
    background: var(--fx-m-spark-muted);
    border-color: rgba(34, 211, 238, 0.25);
}

.fx-m-feature-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
}

.fx-m-feature-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--fx-m-text-muted);
}

/* Split panels */
.fx-m-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.fx-m-panel {
    padding: 32px;
    border-radius: var(--fx-m-radius-lg);
    border: 1px solid var(--fx-m-border);
    background: rgba(18, 24, 32, 0.55);
}

.fx-m-panel.problem {
    border-color: rgba(239, 68, 68, 0.2);
    background: linear-gradient(165deg, rgba(40, 20, 20, 0.4) 0%, rgba(14, 17, 24, 0.9) 100%);
}

.fx-m-panel.solution {
    border-color: rgba(232, 163, 23, 0.22);
    background: linear-gradient(165deg, rgba(40, 32, 12, 0.35) 0%, rgba(14, 17, 24, 0.9) 100%);
}

.fx-m-panel h2 {
    font-size: 22px;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.fx-m-panel p {
    margin: 0;
    color: var(--fx-m-text-muted);
    line-height: 1.65;
    font-size: 15px;
}

/* Steps */
.fx-m-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fx-m-step {
    padding: 24px;
    border-radius: var(--fx-m-radius);
    border: 1px solid var(--fx-m-border);
    background: rgba(18, 24, 32, 0.5);
    position: relative;
    overflow: hidden;
}

.fx-m-step-num {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: rgba(232, 163, 23, 0.15);
    margin-bottom: 12px;
    letter-spacing: -0.04em;
}

.fx-m-step h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
}

.fx-m-step p {
    margin: 0;
    font-size: 13px;
    color: var(--fx-m-text-muted);
    line-height: 1.55;
}

/* Trust strip */
.fx-m-trust {
    padding: 32px 0;
    border-top: 1px solid var(--fx-m-border);
    border-bottom: 1px solid var(--fx-m-border);
}

.fx-m-trust-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.fx-m-trust-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--fx-m-text-dim);
}

.fx-m-trust-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.fx-m-trust-item {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fx-m-text-muted);
    border: 1px solid var(--fx-m-border);
    background: rgba(255, 255, 255, 0.02);
    letter-spacing: 0.04em;
}

/* Social proof — forge strip, not cards-in-hero */
.fx-m-social-proof {
    padding: 36px 0 28px;
    border-bottom: 1px solid var(--fx-m-border);
}

.fx-m-social-proof-label {
    margin: 0 0 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fx-m-text-dim);
    text-align: center;
}

.fx-m-social-proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 48px;
    max-width: 920px;
    margin: 0 auto;
}

.fx-m-social-proof-quote {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.fx-m-social-proof-quote p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--fx-m-text);
    font-style: italic;
}

.fx-m-social-proof-quote footer {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--fx-m-text-muted);
    font-style: normal;
}

/* CTA banner */
.fx-m-cta {
    padding: 80px 0;
}

.fx-m-cta-box {
    text-align: center;
    padding: 56px 40px;
    border-radius: var(--fx-m-radius-lg);
    border: 1px solid rgba(232, 163, 23, 0.25);
    background:
        radial-gradient(ellipse 80% 80% at 50% 120%, rgba(232, 163, 23, 0.12), transparent 60%),
        linear-gradient(165deg, rgba(22, 28, 38, 0.95) 0%, rgba(10, 12, 18, 0.98) 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.fx-m-cta-box h2 {
    font-size: clamp(26px, 4vw, 36px);
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.fx-m-cta-box p {
    margin: 0 auto 28px;
    max-width: 520px;
    color: var(--fx-m-text-muted);
    font-size: 16px;
}

.fx-m-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page hero (inner pages) */
.fx-m-page-hero {
    padding: 64px 0 48px;
    text-align: center;
}

.fx-m-page-hero h1 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.fx-m-page-hero p {
    margin: 0 auto;
    max-width: 600px;
    font-size: 17px;
    color: var(--fx-m-text-muted);
    line-height: 1.6;
}

/* Pricing */
.fx-m-pricing-hero {
    padding-bottom: 28px;
}

.fx-m-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 28px auto 0;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--fx-m-border-strong);
    background: rgba(12, 15, 22, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fx-m-billing-toggle-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--fx-m-text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.fx-m-billing-toggle-btn:hover {
    color: var(--fx-m-text);
}

.fx-m-billing-toggle-btn.is-active {
    color: #0b0d12;
    background: linear-gradient(180deg, var(--fx-m-accent-hover) 0%, var(--fx-m-accent) 100%);
    box-shadow: 0 8px 22px rgba(232, 163, 23, 0.28);
}

.fx-m-billing-save {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--fx-m-spark);
    background: var(--fx-m-spark-muted);
}

.fx-m-billing-toggle-btn.is-active .fx-m-billing-save {
    color: #083344;
    background: rgba(12, 15, 22, 0.16);
}

.fx-m-pricing-section {
    padding-top: 12px;
}

.fx-m-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 920px;
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 720px) {
    .fx-m-pricing-grid {
        grid-template-columns: 1fr;
    }
}

.fx-m-pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 32px 28px 28px;
    border-radius: 22px;
    border: 1px solid var(--fx-m-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
        linear-gradient(165deg, rgba(18, 24, 32, 0.96) 0%, rgba(10, 13, 18, 0.98) 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fx-m-pricing-card:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 163, 23, 0.28);
}

.fx-m-pricing-card.is-featured {
    border-color: rgba(232, 163, 23, 0.55);
    box-shadow:
        0 0 0 1px rgba(232, 163, 23, 0.12),
        0 22px 56px rgba(0, 0, 0, 0.38),
        0 0 48px rgba(232, 163, 23, 0.08);
    background:
        linear-gradient(180deg, rgba(232, 163, 23, 0.1), transparent 38%),
        linear-gradient(165deg, rgba(24, 28, 20, 0.98) 0%, rgba(12, 15, 18, 0.99) 100%);
}

.fx-m-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0b0d12;
    background: linear-gradient(180deg, var(--fx-m-accent-hover), var(--fx-m-accent));
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.fx-m-pricing-card-top h3 {
    font-size: 22px;
    font-weight: 750;
    margin: 0 0 8px;
    color: var(--fx-m-text);
}

.fx-m-pricing-card.is-featured .fx-m-pricing-card-top h3 {
    color: var(--fx-m-accent);
}

.fx-m-pricing-tagline {
    margin: 0;
    min-height: 2.6em;
    color: var(--fx-m-text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.fx-m-pricing-amount {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    margin: 22px 0 4px;
    line-height: 1;
}

.fx-m-pricing-currency {
    font-size: 22px;
    font-weight: 700;
    color: var(--fx-m-text-muted);
    margin-bottom: 8px;
}

.fx-m-pricing-value {
    font-size: clamp(44px, 6vw, 56px);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--fx-m-text);
}

.fx-m-pricing-period {
    font-size: 15px;
    font-weight: 500;
    color: var(--fx-m-text-dim);
    margin: 0 0 10px 4px;
}

.fx-m-pricing-equiv {
    margin: 0 0 20px;
    min-height: 1.2em;
    font-size: 13px;
    color: var(--fx-m-spark);
}

.fx-m-pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    color: var(--fx-m-text-muted);
}

.fx-m-pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    line-height: 1.4;
}

.fx-m-pricing-list li:last-child {
    border-bottom: 0;
}

.fx-m-check {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--fx-m-success-muted);
    position: relative;
}

.fx-m-check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid var(--fx-m-success);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.fx-m-pricing-footer {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fx-m-pricing-cta {
    width: 100%;
    justify-content: center;
    margin: 0;
}

.fx-marketing .fx-btn-secondary {
    background: transparent;
    color: var(--fx-m-text);
    border: 1px solid var(--fx-m-border-strong);
}

.fx-marketing .fx-btn-secondary:hover {
    border-color: rgba(232, 163, 23, 0.45);
    background: rgba(232, 163, 23, 0.08);
    color: var(--fx-m-text);
}

.fx-m-pricing-footnote {
    margin: 0;
    min-height: 3.6em;
    font-size: 12px;
    line-height: 1.5;
    color: var(--fx-m-text-dim);
    text-align: center;
}

.fx-m-pricing-footnote-center {
    margin: 28px auto 0;
    max-width: 560px;
    text-align: center;
    font-size: 14px;
    color: var(--fx-m-text-muted);
    line-height: 1.55;
}

/* Footer */
.fx-marketing-footer {
    border-top: 1px solid var(--fx-m-border);
    background: rgba(7, 8, 12, 0.9);
    padding: 56px 24px 28px;
    margin-top: auto;
}

.fx-marketing-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: var(--fx-m-max);
    margin: 0 auto 36px;
}

.fx-marketing-footer-brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.fx-marketing-footer-brand span {
    color: var(--fx-m-accent);
}

.fx-marketing-footer-grid h4 {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--fx-m-text-dim);
}

.fx-marketing-footer-grid a {
    display: block;
    color: var(--fx-m-text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.15s;
}

.fx-marketing-footer-grid a:hover {
    color: var(--fx-m-accent);
}

.fx-marketing-footer-grid p {
    margin: 0;
    color: var(--fx-m-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.fx-marketing-footer-company {
    margin-top: 14px !important;
    font-size: 13px !important;
    color: var(--fx-m-text-dim) !important;
}

.fx-marketing-footer-company a {
    color: var(--fx-m-text-muted);
    text-decoration: none;
}

.fx-marketing-footer-company a:hover {
    color: var(--fx-m-accent);
}

/* Legal policy pages */
.fx-legal-article {
    max-width: 720px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: var(--fx-m-text);
}

.fx-legal-article h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.fx-legal-updated {
    margin: 0 0 32px;
    font-size: 14px;
    color: var(--fx-m-text-dim);
}

.fx-legal-article h2 {
    margin: 1.6em 0 0.55em;
    font-size: 1.15rem;
    line-height: 1.3;
}

.fx-legal-article p {
    margin: 0 0 0.85em;
    color: var(--fx-m-text-muted);
}

/* Cookie consent banner — visibility via html.fx-cookie-pending (JS) */
.fx-cookie-banner {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 16px;
    pointer-events: none;
}

html.fx-cookie-pending .fx-cookie-banner {
    display: block;
}

.fx-cookie-banner-inner {
    pointer-events: auto;
    max-width: var(--fx-m-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 16px 20px;
    border: 1px solid var(--fx-m-border);
    border-radius: var(--fx-m-radius);
    background: rgba(10, 12, 18, 0.96);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.fx-cookie-banner-inner p {
    margin: 0;
    flex: 1 1 280px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--fx-m-text-muted);
}

.fx-cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.fx-cookie-banner-actions a {
    color: var(--fx-m-text-muted);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fx-cookie-banner-actions a:hover {
    color: var(--fx-m-accent);
}

.fx-marketing-footer-bottom {
    max-width: var(--fx-m-max);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--fx-m-border);
    color: var(--fx-m-text-dim);
    font-size: 13px;
    text-align: center;
}

/* Legacy class aliases for gradual migration */
.fx-hero { padding: 0; max-width: none; margin: 0; }
.fx-section { max-width: none; margin: 0; padding: 0; }
.fx-feature-grid { display: contents; }
.fx-feature-card { display: contents; }
.fx-split-section { display: contents; }
.fx-steps { display: contents; }
.fx-step { display: contents; }
.fx-pricing-card { all: unset; }
.fx-seo-content { max-width: 720px; margin: 0 auto; }
.fx-seo-content p {
    color: var(--fx-m-text-muted);
    line-height: 1.75;
    margin-bottom: 18px;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .fx-m-hero-grid,
    .fx-m-feature-grid,
    .fx-m-stats-grid,
    .fx-m-steps,
    .fx-m-split {
        grid-template-columns: 1fr 1fr;
    }

    .fx-m-hero-visual {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .fx-marketing-nav {
        display: none;
    }

    .fx-marketing-header-group {
        max-width: var(--fx-m-max);
        margin: 0 auto;
    }

    .fx-m-hero-grid,
    .fx-m-feature-grid,
    .fx-m-stats-grid,
    .fx-m-steps,
    .fx-m-split,
    .fx-m-social-proof-grid,
    .fx-m-pricing-grid,
    .fx-marketing-footer-grid {
        grid-template-columns: 1fr;
    }

    .fx-m-hero {
        padding-top: 32px;
    }

    .fx-marketing-header {
        border-radius: var(--fx-m-radius);
    }

    .fx-marketing-topbar-inner {
        flex-direction: column;
        text-align: center;
    }

    .fx-m-pricing-section {
        padding-top: 24px;
    }

    .fx-m-pricing-section .fx-m-section-title {
        text-align: center;
    }

    .fx-m-pricing-section .fx-m-section-lead {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .fx-marketing-footer {
        padding: 40px 20px 24px;
    }

    .fx-marketing-footer-bottom {
        padding-top: 20px;
        margin-top: 8px;
    }

    .fx-m-social-proof {
        padding: 28px 0 20px;
    }
}

/* Dynamic SEO / content pages */
.fx-content-body {
    font-size: 16px;
    line-height: 1.7;
    color: var(--fx-m-text, #e2e8f0);
}

.fx-content-body h2,
.fx-content-body h3 {
    margin: 1.4em 0 0.6em;
    line-height: 1.25;
}

.fx-content-body p,
.fx-content-body ul,
.fx-content-body ol {
    margin: 0 0 1em;
}

.fx-content-body a {
    color: var(--fx-m-accent, #e8a317);
}

/* Blog list */
.fx-blog-list {
    display: grid;
    gap: 1.25rem;
    max-width: 760px;
    margin: 0 auto;
}

.fx-blog-card {
    display: block;
    padding: 1.35rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--fx-m-text, #e2e8f0) 12%, transparent);
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.fx-blog-card:first-child {
    padding-top: 0;
}

.fx-blog-card:hover {
    color: var(--fx-m-accent, #e8a317);
}

.fx-blog-card time {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--fx-m-text, #e2e8f0) 55%, transparent);
}

.fx-blog-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.fx-blog-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--fx-m-text, #e2e8f0) 72%, transparent);
}

.fx-blog-card:hover p {
    color: inherit;
}

.fx-blog-empty {
    text-align: center;
    color: color-mix(in srgb, var(--fx-m-text, #e2e8f0) 65%, transparent);
}

.fx-blog-home-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fx-blog-home-head .fx-m-section-title {
    margin-bottom: 0;
}

.fx-blog-home-link {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--fx-m-accent, #e8a317);
    text-decoration: none;
}

.fx-blog-home-link:hover {
    text-decoration: underline;
}

/* Help / FAQ */
.fx-m-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
}

.fx-m-faq-item {
    border: 1px solid var(--fx-m-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0 18px;
}

.fx-m-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 0;
    font-weight: 650;
    font-size: 1.02rem;
    color: var(--fx-m-text);
}

.fx-m-faq-item summary::-webkit-details-marker {
    display: none;
}

.fx-m-faq-item summary::after {
    content: "+";
    float: right;
    color: var(--fx-m-accent, #e8a317);
    font-weight: 700;
}

.fx-m-faq-item[open] summary::after {
    content: "–";
}

.fx-m-faq-item p {
    margin: 0 0 16px;
    color: var(--fx-m-text-muted);
    line-height: 1.65;
}

.fx-m-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.fx-m-contact-intro h2 {
    margin: 8px 0 12px;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -0.03em;
}

.fx-m-contact-intro p {
    color: var(--fx-m-text-muted);
    line-height: 1.6;
}

.fx-m-contact-mailto a {
    color: var(--fx-m-accent, #e8a317);
}

.fx-m-contact-form {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(232, 163, 23, 0.2);
    background: linear-gradient(165deg, rgba(22, 28, 38, 0.9), rgba(10, 12, 18, 0.96));
}

.fx-m-contact-form .fx-field input,
.fx-m-contact-form .fx-field textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(7, 8, 12, 0.55);
    border: 1px solid var(--fx-m-border-strong, rgba(148, 163, 184, 0.22));
    border-radius: 10px;
    color: var(--fx-m-text, #f1f5f9);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fx-m-contact-form .fx-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.fx-m-contact-form .fx-field input:focus,
.fx-m-contact-form .fx-field textarea:focus {
    outline: none;
    border-color: rgba(232, 163, 23, 0.45);
    box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.12);
}

.fx-m-contact-form .fx-field input::placeholder,
.fx-m-contact-form .fx-field textarea::placeholder {
    color: var(--fx-m-text-dim, #64748b);
}

.fx-m-contact-success {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
    color: #86efac;
    font-weight: 600;
}

.fx-m-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.fx-m-turnstile {
    margin: 4px 0 16px;
    min-height: 65px;
}

@media (max-width: 800px) {
    .fx-m-contact {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

