/* Factor — Gamagest (home teaser + landing) */

:root {
    --fx-accent: #6366f1;
    --fx-accent-2: #22d3ee;
    --fx-accent-glow: rgba(99, 102, 241, 0.45);
    --fx-surface: rgba(255, 255, 255, 0.06);
    --fx-line: rgba(255, 255, 255, 0.12);
    --fx-text-muted: #94a3b8;
}

.nav-factor {
    color: #c7d2fe !important;
    position: relative;
}

.nav-factor::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--fx-accent), var(--fx-accent-2));
    opacity: 0.85;
}

/* —— Hero: Factor above the fold —— */
.gg-hero--has-factor .gg-hero-gradient {
    background:
        radial-gradient(circle at 82% 18%, rgba(99, 102, 241, 0.42), transparent 32%),
        radial-gradient(circle at 78% 24%, rgba(79, 140, 255, 0.32), transparent 27%),
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.18), transparent 32%),
        linear-gradient(90deg, rgba(3, 7, 18, 0.97) 0%, rgba(3, 7, 18, 0.82) 42%, rgba(3, 7, 18, 0.55) 100%);
}

.gg-hero-inner--factor {
    align-items: start;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 40px 48px;
}

.gg-hero-factor-block {
    margin-bottom: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.28);
    position: relative;
}

.gg-hero-factor-block::before {
    content: "";
    position: absolute;
    left: -12%;
    top: -30%;
    width: 70%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 68%);
    pointer-events: none;
    z-index: -1;
}

.gg-hero-factor-brand-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 18px;
}

.gg-hero-factor-badge {
    display: inline-flex;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.22);
    border: 1px solid rgba(165, 180, 252, 0.4);
    box-shadow: 0 0 32px rgba(99, 102, 241, 0.25);
}

.gg-hero-factor-logo {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #e0e7ff, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gg-hero-factor-headline {
    font-size: clamp(36px, 4.8vw, 64px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.065em !important;
    margin: 0 0 16px !important;
    max-width: 14ch;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 45%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gg-hero-factor-lead {
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.9);
    max-width: 540px;
    margin-bottom: 12px;
}

.gg-hero-factor-seo {
    font-size: 14px;
    line-height: 1.65;
    color: var(--fx-text-muted);
    max-width: 520px;
    margin-bottom: 22px;
}

.gg-hero-factor-seo a {
    color: #a5b4fc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gg-hero-factor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fx-btn-glow {
    box-shadow:
        0 18px 50px rgba(99, 102, 241, 0.45),
        0 0 40px rgba(34, 211, 238, 0.2);
}

.gg-hero-gamagest-block {
    opacity: 0.92;
}

.gg-hero-gamagest-title {
    font-size: clamp(28px, 3.2vw, 44px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.05em !important;
    margin: 14px 0 18px !important;
}

.gg-hero-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    transform: translate3d(var(--parallax-x, 0), calc(var(--parallax-y, 0) + var(--hero-scroll, 0px)), 0);
    transition: transform 0.35s ease;
}

.gg-hero-factor-stage {
    position: relative;
    z-index: 3;
}

.gg-hero-factor-hitarea {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    outline: none;
    position: relative;
}

.gg-hero-factor-hitarea:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.65);
}

.gg-hero-panel--legacy {
    transform: none !important;
    animation: none !important;
    opacity: 0.88;
    scale: 0.96;
    transform-origin: top center;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.gg-hero-panel--legacy .gg-dashboard-card h3 {
    font-size: 20px;
}

.gg-hero-panel--legacy .gg-mini-grid strong {
    font-size: 26px;
}

/* Hero dashboard variant */
.fx-star-dashboard--hero .fx-star-glow {
    inset: -12% -8%;
    animation: fxGlowPulse 4s ease-in-out infinite;
}

.fx-star-dashboard--hero.is-hovered {
    transform: translateY(-6px) scale(1.015);
}

.fx-star-dashboard--hero {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-star-dashboard--hero .fx-star-browser {
    border-radius: 18px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(99, 102, 241, 0.25) inset,
        0 0 100px rgba(99, 102, 241, 0.22);
}

.gg-hero-factor-block.is-active .fx-star-dashboard--hero .fx-star-browser,
.gg-factor-star.is-active .fx-star-browser {
    animation: fxBrowserFloat 7s ease-in-out infinite;
}

.fx-star-app--hero {
    min-height: 300px;
}

.fx-star-metrics--hero {
    grid-template-columns: repeat(3, 1fr);
}

.fx-star-mid--hero {
    grid-template-columns: 1.15fr 0.85fr;
}

.fx-star-activity ul {
    list-style: none;
    display: grid;
    gap: 6px;
}

.fx-star-activity li {
    font-size: 9px;
    color: var(--fx-text-muted);
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    opacity: 0.45;
    transition: opacity 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.fx-star-activity li.is-active {
    opacity: 1;
    color: #e2e8f0;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(165, 180, 252, 0.3);
}

.fx-star-activity li strong {
    color: #c7d2fe;
}

.fx-star-hero-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.fx-hero-orbit-cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.fx-orbit-card {
    position: absolute;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(165, 180, 252, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    animation: fxOrbitFloat 6s ease-in-out infinite;
}

.fx-orbit-card small {
    display: block;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fx-text-muted);
    margin-bottom: 2px;
}

.fx-orbit-card strong {
    font-size: 13px;
    color: #e0e7ff;
}

.fx-orbit-card--1 {
    top: -6%;
    right: -4%;
    animation-delay: 0s;
}

.fx-orbit-card--2 {
    top: 38%;
    left: -10%;
    animation-delay: 1.2s;
}

.fx-orbit-card--3 {
    bottom: 8%;
    right: -6%;
    animation-delay: 2.4s;
}

@keyframes fxOrbitFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-10px) translateX(4px); }
}

.fx-star-dashboard--hero .fx-star-toasts {
    top: 4%;
    right: -2%;
}

/* Compact section (below hero) */
.gg-factor-star--compact {
    padding: 64px 7%;
}

.gg-factor-star-compact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
    gap: 40px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.gg-factor-star--compact h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

/* —— Home: Factor producto estrella —— */
.gg-factor-star {
    --scroll-shift: 0px;
    --parallax-x: 0px;
    --parallax-y: 0px;
    position: relative;
    padding: 72px 7% 88px;
    margin-top: -20px;
    overflow: hidden;
    border-top: 1px solid rgba(99, 102, 241, 0.25);
    border-bottom: 1px solid var(--fx-line);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.28), transparent 55%),
        radial-gradient(circle at 90% 80%, rgba(34, 211, 238, 0.12), transparent 40%),
        linear-gradient(180deg, #070b18 0%, #05070d 100%);
}

.gg-factor-star-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
    opacity: 0.5;
}

.gg-factor-star-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
    gap: 48px 56px;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
}

.gg-factor-star-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(165, 180, 252, 0.35);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

.gg-factor-star h2 {
    margin: 18px 0 14px;
    font-size: clamp(52px, 7vw, 88px);
    line-height: 0.92;
    letter-spacing: -0.07em;
    background: linear-gradient(135deg, #fff 20%, #a5b4fc 55%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gg-factor-star-subtitle {
    font-size: clamp(18px, 1.5vw, 24px);
    line-height: 1.55;
    color: rgba(248, 250, 252, 0.94);
    max-width: 520px;
    margin-bottom: 16px;
}

.gg-factor-star-seo {
    font-size: 15px;
    line-height: 1.7;
    color: var(--fx-text-muted);
    max-width: 540px;
    margin-bottom: 28px;
}

.gg-factor-star-seo a {
    color: #a5b4fc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gg-factor-star-seo a:hover {
    color: #e0e7ff;
}

.gg-factor-star-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.gg-factor-star-highlights {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gg-factor-star-highlights li {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(248, 250, 252, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--fx-line);
}

.gg-factor-star-stage {
    position: relative;
    transform: translate3d(var(--parallax-x), calc(var(--parallax-y) + var(--scroll-shift)), 0);
    transition: transform 0.35s ease;
}

.gg-factor-hitarea {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: 24px;
    outline: none;
}

.gg-factor-hitarea:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.6);
}

.gg-factor-hitarea-hint {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #a5b4fc;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gg-factor-hitarea:hover .gg-factor-hitarea-hint,
.gg-factor-hitarea:focus-visible .gg-factor-hitarea-hint {
    opacity: 1;
    transform: translateY(0);
}

.gg-factor-star.is-active .fx-star-dashboard {
    animation: fxStarEnter 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fxStarEnter {
    from {
        opacity: 0.6;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dashboard simulado (home) */
.fx-star-dashboard {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gg-factor-hitarea:hover .fx-star-dashboard {
    transform: translateY(-8px) scale(1.01);
}

.fx-star-glow {
    position: absolute;
    inset: -8% -5%;
    background: radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.45), transparent 65%);
    filter: blur(40px);
    z-index: -1;
    animation: fxGlowPulse 5s ease-in-out infinite;
}

@keyframes fxGlowPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}

.fx-star-laptop {
    position: relative;
    padding-bottom: 28px;
}

.fx-star-laptop-base {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 14px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fx-star-laptop-base::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 18%;
    height: 4px;
    border-radius: 999px;
    background: #334155;
}

.fx-star-browser {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 12, 24, 0.92);
    box-shadow:
        0 50px 120px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(99, 102, 241, 0.15) inset,
        0 0 80px rgba(99, 102, 241, 0.15);
}

.gg-factor-star.is-active .fx-star-browser {
    animation: fxBrowserFloat 7s ease-in-out infinite;
}

@keyframes fxBrowserFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fx-star-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    background: rgba(3, 7, 18, 0.9);
    border-bottom: 1px solid var(--fx-line);
}

.fx-star-browser-bar span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.fx-star-url {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--fx-text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--fx-line);
}

.fx-star-app {
    display: grid;
    grid-template-columns: 44px 1fr;
    min-height: 380px;
}

.fx-star-sidebar {
    padding: 12px 8px;
    background: rgba(3, 7, 18, 0.7);
    border-right: 1px solid var(--fx-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fx-star-sidebar-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-2));
    margin-bottom: 6px;
}

.fx-star-sidebar span {
    width: 22px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.fx-star-sidebar span.active {
    width: 26px;
    background: linear-gradient(90deg, var(--fx-accent), var(--fx-accent-2));
}

.fx-star-main {
    padding: 12px;
    font-size: 11px;
}

.fx-star-topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.fx-star-topbar small {
    display: block;
    color: var(--fx-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 9px;
}

.fx-star-topbar strong {
    font-size: 13px;
}

.fx-star-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fx-star-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.fx-star-pill-ok {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.fx-star-pill-bank {
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.fx-star-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.fx-star-metric {
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--fx-line);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.gg-factor-star.is-active .fx-star-float {
    animation: fxMetricFloat 5s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

@keyframes fxMetricFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.fx-star-metric span {
    display: block;
    font-size: 8px;
    color: var(--fx-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.fx-star-metric strong {
    display: block;
    font-size: 14px;
    letter-spacing: -0.03em;
}

.fx-star-metric em {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    font-style: normal;
    color: var(--fx-text-muted);
}

.fx-star-trend.up {
    color: #86efac;
}

.fx-star-mid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.fx-star-chart-card {
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--fx-line);
}

.fx-star-chart-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 9px;
    color: var(--fx-text-muted);
}

.fx-star-chart-head strong {
    color: #e2e8f0;
    font-size: 10px;
}

.fx-star-chart {
    width: 100%;
    height: 72px;
    display: block;
}

.fx-star-chart-line {
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    transition: none;
}

.gg-factor-star.is-active .fx-star-chart-line {
    animation: fxDrawLine 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.fx-star-chart-area {
    opacity: 0;
}

.gg-factor-star.is-active .fx-star-chart-area {
    animation: fxFadeArea 1.2s ease 1.6s forwards;
}

@keyframes fxDrawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fxFadeArea {
    to { opacity: 1; }
}

.fx-star-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fx-star-panel {
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--fx-line);
}

.fx-star-panel h4 {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fx-text-muted);
    margin-bottom: 8px;
}

.fx-star-invoices ul {
    list-style: none;
    display: grid;
    gap: 6px;
}

.fx-star-invoices li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 6px;
    align-items: center;
    font-size: 9px;
}

.fx-star-invoices li span.ok {
    color: #86efac;
    font-weight: 700;
}

.fx-star-invoices li span.pending {
    color: #fde68a;
    font-weight: 700;
}

.fx-star-invoices li span.sent {
    color: #93c5fd;
    font-weight: 700;
}

.fx-star-proj {
    margin-bottom: 6px;
}

.fx-star-proj span {
    font-size: 9px;
    display: block;
    margin-bottom: 4px;
}

.fx-star-prog {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.fx-star-prog i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fx-accent), var(--fx-accent-2));
    transform-origin: left;
    transform: scaleX(0);
}

.gg-factor-star.is-active .fx-star-prog i {
    animation: fxProgGrow 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

@keyframes fxProgGrow {
    to { transform: scaleX(1); }
}

.fx-star-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fx-star-ocr p,
.fx-star-reconcile .fx-star-match {
    font-size: 9px;
    color: var(--fx-text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fx-star-ocr strong {
    color: #e2e8f0;
}

.fx-star-match {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fx-star-match i {
    flex: 0 0 16px;
    height: 2px;
    background: linear-gradient(90deg, var(--fx-accent), var(--fx-accent-2));
    border-radius: 999px;
}

.fx-star-toasts {
    position: absolute;
    top: 8%;
    right: -4%;
    width: min(220px, 42vw);
    z-index: 5;
    pointer-events: none;
}

.fx-star-toast {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(165, 180, 252, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateX(20px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-star-toast.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: fxToastBob 4s ease-in-out infinite;
}

@keyframes fxToastBob {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(0) translateY(-6px); }
}

.fx-star-toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 14px;
    background: rgba(99, 102, 241, 0.25);
    flex-shrink: 0;
}

.fx-star-toast strong {
    display: block;
    font-size: 11px;
    margin-bottom: 2px;
}

.fx-star-toast span {
    font-size: 10px;
    color: var(--fx-text-muted);
}

@keyframes fxFloat {
    0%, 100% { transform: translateY(0) rotateY(-6deg) rotateX(3deg); }
    50% { transform: translateY(-16px) rotateY(-4deg) rotateX(2deg); }
}

/* —— Landing page —— */
.fx-page {
    background: #030712;
    color: #f8fafc;
    overflow-x: hidden;
}

.fx-hero {
    position: relative;
    padding: 150px 7% 100px;
    min-height: 92vh;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.fx-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 70% 20%, rgba(99, 102, 241, 0.35), transparent 32%),
        radial-gradient(circle at 15% 85%, rgba(34, 211, 238, 0.18), transparent 36%),
        linear-gradient(180deg, #030712 0%, #0b1020 100%);
}

.fx-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 48px;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.fx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(165, 180, 252, 0.35);
    color: #c7d2fe;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 22px;
}

.fx-eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--fx-accent-2);
    box-shadow: 0 0 12px var(--fx-accent-2);
}

.fx-hero h1 {
    font-size: clamp(40px, 5.5vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.065em;
    margin-bottom: 22px;
    max-width: 720px;
}

.fx-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #e0e7ff, var(--fx-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fx-hero-lead {
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.72;
    color: rgba(226, 232, 240, 0.85);
    max-width: 640px;
    margin-bottom: 32px;
}

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

.fx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 1px solid transparent;
}

.fx-btn:hover {
    transform: translateY(-3px);
}

.fx-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--fx-accent), #4f46e5);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.35);
}

.fx-btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.fx-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    color: var(--fx-text-muted);
    font-size: 14px;
}

.fx-hero-trust strong {
    display: block;
    color: #f8fafc;
    font-size: 15px;
    margin-bottom: 2px;
}

.fx-hero-stage {
    position: relative;
    display: flex;
    justify-content: center;
}

.fx-hero-stage .fx-mockup-window {
    width: 100%;
    max-width: 520px;
    animation: fxFloat 9s ease-in-out infinite;
}

.fx-hero-glow {
    position: absolute;
    width: 70%;
    height: 50%;
    bottom: 5%;
    left: 15%;
    background: var(--fx-accent);
    filter: blur(90px);
    opacity: 0.35;
    z-index: -1;
}

/* Mockup window (shared) */
.fx-mockup-window {
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.16);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.fx-mockup-compact {
    max-width: 440px;
    width: 100%;
}

.fx-mockup-chrome {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(3, 7, 18, 0.65);
    border-bottom: 1px solid var(--fx-line);
}

.fx-mockup-chrome span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.fx-mockup-chrome em {
    margin-left: auto;
    font-style: normal;
    font-size: 11px;
    color: var(--fx-text-muted);
    font-weight: 600;
}

.fx-mockup-body {
    display: grid;
    grid-template-columns: 52px 1fr;
    min-height: 220px;
}

.fx-mockup-sidebar {
    padding: 14px 10px;
    background: rgba(3, 7, 18, 0.55);
    border-right: 1px solid var(--fx-line);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.fx-mockup-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-2));
}

.fx-mockup-nav {
    width: 28px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.fx-mockup-nav.active {
    background: linear-gradient(90deg, var(--fx-accent), var(--fx-accent-2));
    width: 32px;
}

.fx-mockup-main {
    padding: 16px;
}

.fx-mockup-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.fx-mockup-kpis div {
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--fx-line);
}

.fx-mockup-kpis small {
    display: block;
    font-size: 9px;
    color: var(--fx-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.fx-mockup-kpis strong {
    font-size: 11px;
    font-weight: 800;
}

.fx-mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 90px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--fx-line);
}

.fx-mockup-chart i {
    flex: 1;
    display: block;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--fx-accent-2), var(--fx-accent));
    opacity: 0.9;
    animation: fxBarPulse 4s ease-in-out infinite;
}

.fx-mockup-chart i:nth-child(2) { animation-delay: 0.3s; }
.fx-mockup-chart i:nth-child(3) { animation-delay: 0.6s; }
.fx-mockup-chart i:nth-child(4) { animation-delay: 0.9s; }
.fx-mockup-chart i:nth-child(5) { animation-delay: 1.2s; }

@keyframes fxBarPulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

/* Showcase strip */
.fx-showcase {
    padding: 80px 7% 40px;
    max-width: 1320px;
    margin: 0 auto;
}

.fx-showcase-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.fx-showcase-head h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    letter-spacing: -0.04em;
    margin: 12px 0 14px;
}

.fx-showcase-head p {
    color: var(--fx-text-muted);
    line-height: 1.65;
}

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

.fx-showcase-card {
    padding: 22px;
    border-radius: 24px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-line);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.fx-showcase-card:hover {
    transform: translateY(-6px);
    border-color: rgba(165, 180, 252, 0.4);
}

.fx-showcase-card .fx-mini-mock {
    margin-bottom: 18px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--fx-line);
    background: rgba(3, 7, 18, 0.6);
    min-height: 120px;
}

/* Feature sections */
.fx-features {
    padding: 40px 7% 80px;
}

.fx-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 72px;
    padding: 40px 0;
}

.fx-feature.reverse {
    direction: rtl;
}

.fx-feature.reverse > * {
    direction: ltr;
}

.fx-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 18px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(165, 180, 252, 0.3);
}

.fx-feature h3 {
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.fx-feature p {
    color: var(--fx-text-muted);
    line-height: 1.7;
    font-size: 17px;
    margin-bottom: 18px;
}

.fx-feature ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.fx-feature li {
    font-size: 15px;
    color: rgba(248, 250, 252, 0.88);
}

.fx-feature li::before {
    content: "→";
    color: var(--fx-accent-2);
    font-weight: 900;
    margin-right: 10px;
}

/* Variant mockups inside features */
.fx-mock-invoice .fx-mockup-main {
    padding: 14px;
}

.fx-mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--fx-line);
    margin-bottom: 8px;
    font-size: 12px;
}

.fx-mock-row strong {
    color: #a5b4fc;
}

.fx-mock-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.fx-mock-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

.fx-mock-projects {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.fx-mock-project {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--fx-line);
    background: rgba(255, 255, 255, 0.03);
}

.fx-mock-project header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 8px;
}

.fx-mock-progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.fx-mock-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fx-accent), var(--fx-accent-2));
}

.fx-mock-ocr {
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fx-mock-doc {
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed rgba(165, 180, 252, 0.5);
    font-size: 10px;
    color: var(--fx-text-muted);
    line-height: 1.5;
}

.fx-mock-scan {
    padding: 12px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(165, 180, 252, 0.35);
    font-size: 11px;
}

.fx-mock-ledger {
    padding: 14px;
    display: grid;
    gap: 6px;
}

.fx-mock-ledger div {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    font-size: 11px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.fx-mock-bank {
    padding: 14px;
}

.fx-mock-bank-match {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 11px;
}

.fx-mock-bank-match span {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.fx-mock-bank-match .fx-link {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--fx-accent), var(--fx-accent-2));
}

.fx-mock-verifactu {
    padding: 20px;
    text-align: center;
}

.fx-mock-verifactu .fx-seal {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 2px solid rgba(34, 211, 238, 0.6);
    display: grid;
    place-items: center;
    font-size: 22px;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.25);
}

.fx-mock-entities {
    padding: 14px;
    display: grid;
    gap: 8px;
}

.fx-mock-entity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--fx-line);
    font-size: 12px;
}

.fx-mock-entity.active {
    border-color: rgba(165, 180, 252, 0.55);
    background: rgba(99, 102, 241, 0.12);
}

.fx-mock-entity i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--fx-accent), #818cf8);
}

/* Final CTA */
.fx-cta-final {
    margin: 0 7% 90px;
    padding: 64px 7%;
    border-radius: 32px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.35), transparent 50%),
        linear-gradient(135deg, #0f172a, #030712);
    border: 1px solid rgba(165, 180, 252, 0.25);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.fx-cta-final h2 {
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -0.05em;
    margin-bottom: 16px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.fx-cta-final p {
    color: var(--fx-text-muted);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.65;
    font-size: 18px;
}

.fx-cta-final .fx-hero-actions {
    justify-content: center;
}

.fx-by-gamagest {
    margin-top: 24px;
    font-size: 14px;
    color: var(--fx-text-muted);
}

.fx-by-gamagest a {
    color: #c7d2fe;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1100px) {
    .gg-hero-inner--factor,
    .gg-factor-star-grid,
    .gg-factor-star-compact,
    .fx-hero-grid,
    .fx-feature {
        grid-template-columns: 1fr;
    }

    .gg-hero-right,
    .gg-factor-star-stage {
        order: -1;
    }

    .gg-hero-factor-block {
        margin-bottom: 28px;
        padding-bottom: 24px;
    }

    .fx-orbit-card--1 { right: 0; top: -2%; }
    .fx-orbit-card--2 { left: 0; }
    .fx-orbit-card--3 { right: 0; bottom: 0; }

    .fx-star-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .fx-star-mid,
    .fx-star-bottom {
        grid-template-columns: 1fr;
    }

    .fx-feature.reverse {
        direction: ltr;
    }

    .fx-showcase-grid {
        grid-template-columns: 1fr;
    }

    .fx-hero-stage {
        order: -1;
    }
}

@media (max-width: 820px) {
    .fx-hero,
    .fx-showcase,
    .fx-features {
        padding-left: 6%;
        padding-right: 6%;
    }

    .fx-cta-final {
        margin-left: 6%;
        margin-right: 6%;
        padding: 48px 6%;
    }

    .fx-mockup-kpis {
        grid-template-columns: 1fr;
    }

    .gg-factor-star {
        padding-left: 6%;
        padding-right: 6%;
    }

    .fx-star-toasts {
        right: 0;
        top: 4%;
        width: min(200px, 55vw);
    }

    .fx-star-metrics {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .fx-star-metrics,
    .fx-star-metrics--hero {
        grid-template-columns: 1fr;
    }

    .fx-star-mid--hero {
        grid-template-columns: 1fr;
    }

    .fx-star-app {
        grid-template-columns: 36px 1fr;
        min-height: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gg-hero-factor-block.is-active .fx-star-dashboard--hero .fx-star-browser,
    .gg-factor-star.is-active .fx-star-browser,
    .gg-factor-star.is-active .fx-star-float,
    .gg-factor-star.is-active .fx-star-toast.is-visible,
    .fx-orbit-card,
    .fx-star-glow,
    .fx-hero-stage .fx-mockup-window,
    .fx-mockup-chart i {
        animation: none !important;
    }

    .gg-factor-star.is-active .fx-star-chart-line {
        stroke-dashoffset: 0;
    }

    .gg-factor-star.is-active .fx-star-chart-area {
        opacity: 1;
    }

    .gg-factor-star.is-active .fx-star-prog i {
        transform: scaleX(1);
    }
}
