
/* ==================================================
   FINDEXA — GLOBAL DESIGN SYSTEM
   Version 1.0
================================================== */

:root {
    --fx-bg: #090b0e;
    --fx-bg-alt: #0e1116;
    --fx-surface: #13171d;
    --fx-surface-2: #191e26;

    --fx-text: #f2f3f5;
    --fx-muted: #9299a5;
    --fx-subtle: #646c78;

    --fx-border: #242a33;
    --fx-accent: #94a8c8;

    --fx-container: 1320px;
    --fx-radius: 12px;
}

/* RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--fx-bg);
    color: var(--fx-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img,
svg {
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.045em;
}

p {
    line-height: 1.65;
}

:focus-visible {
    outline: 2px solid var(--fx-accent);
    outline-offset: 4px;
}

.fx-container {
    width: min(
        calc(100% - 64px),
        var(--fx-container)
    );
    margin-inline: auto;
}

.fx-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 12px;
    background: white;
    color: black;
}

.fx-skip-link:focus {
    top: 12px;
}

.fx-eyebrow {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--fx-muted);
}

/* ==================================================
   HEADER
================================================== */

.fx-header {
    position: relative;
    z-index: 100;
    background: rgba(9, 11, 14, 0.96);
    border-bottom: 1px solid var(--fx-border);
}

.fx-header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.fx-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.fx-brand__name {
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -0.045em;
}

.fx-brand__symbol {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        #fff 0%,
        #c5cbd3 100%
    );
    position: relative;
    transform: rotate(-25deg);
}

.fx-brand__symbol::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 23px;
    background: var(--fx-bg);
    top: -1px;
    left: 9px;
}

.fx-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.fx-nav a,
.fx-footer__links a {
    font-size: 13px;
    color: var(--fx-muted);
    transition: color 0.2s ease;
}

.fx-nav a:hover,
.fx-footer__links a:hover {
    color: var(--fx-text);
}

.fx-nav-toggle {
    display: none;
}

/* BUTTONS */

.fx-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 43px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.fx-button:hover {
    transform: translateY(-2px);
}

.fx-button--light {
    background: #f2f2f2;
    color: #15171a;
}

.fx-button--light:hover {
    background: #d7dbe0;
}

.fx-button--outline {
    background: transparent;
    color: var(--fx-text);
    border-color: #343b45;
}

.fx-button--outline:hover {
    background: var(--fx-surface);
}

.fx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* ==================================================
   HOMEPAGE HERO
================================================== */

.fx-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 110px;
    border-bottom: 1px solid var(--fx-border);
}

.fx-hero::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -220px;
    top: -230px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(89, 106, 140, 0.12),
        transparent 70%
    );
    pointer-events: none;
}

.fx-hero__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: center;
    position: relative;
}

.fx-hero h1 {
    font-size: clamp(42px, 4.3vw, 75px);
    line-height: 1.07;
    font-weight: 550;
    margin: 22px 0 24px;
}

.fx-lead {
    max-width: 540px;
    font-size: 16px;
    color: var(--fx-muted);
}

.fx-note {
    margin-top: 27px;
    margin-bottom: 0;
    font-size: 12px;
    color: var(--fx-subtle);
}

/* ==================================================
   DASHBOARD PREVIEW
================================================== */

.fx-preview {
    min-width: 0;
    border: 1px solid #313947;
    background: #0c1015;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.4);
}

.fx-preview__top {
    min-height: 46px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--fx-border);
    font-size: 12px;
    color: var(--fx-muted);
}

.fx-preview__dot {
    width: 9px;
    height: 9px;
    background: #bec7d3;
    border-radius: 50%;
}

.fx-preview__sample {
    margin-left: auto;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.fx-preview__body {
    padding: 24px;
}

.fx-preview__label {
    font-size: 12px;
    color: var(--fx-muted);
}

.fx-preview__body h2 {
    font-size: 23px;
    font-weight: 550;
    margin-bottom: 24px;
}

.fx-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.fx-metric {
    padding: 17px;
    min-width: 0;
    border: 1px solid var(--fx-border);
    border-radius: 8px;
    background: var(--fx-surface);
}

.fx-metric span {
    display: block;
    font-size: 11px;
    color: var(--fx-muted);
}

.fx-metric strong {
    display: block;
    margin: 12px 0 8px;
    font-size: clamp(16px, 1.4vw, 24px);
    font-weight: 550;
    letter-spacing: -0.04em;
}

.fx-metric small {
    color: var(--fx-subtle);
    font-size: 10px;
}

.fx-chart-panel {
    margin-top: 12px;
    padding: 20px;
    border: 1px solid var(--fx-border);
    border-radius: 8px;
    background: var(--fx-surface);
}

.fx-chart-panel > p {
    font-size: 13px;
    margin-bottom: 20px;
}

.fx-chart-placeholder {
    height: 185px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-around;
    padding: 12px 0 0;
    border-bottom: 1px solid #343c48;
    background: repeating-linear-gradient(
        to top,
        transparent 0,
        transparent 45px,
        rgba(255, 255, 255, 0.045) 46px
    );
}

.fx-chart-placeholder span {
    display: block;
    width: 6%;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(
        180deg,
        #91a5c5,
        #354258
    );
}

.fx-chart-months {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    color: var(--fx-subtle);
    font-size: 10px;
}

/* ==================================================
   CONTENT SECTIONS
================================================== */

.fx-section {
    padding: 105px 0;
    border-bottom: 1px solid var(--fx-border);
    scroll-margin-top: 30px;
}

.fx-section-title {
    max-width: 680px;
    margin: 17px 0 30px;
    font-size: clamp(32px, 3.4vw, 52px);
    font-weight: 550;
    line-height: 1.12;
}

.fx-section-description {
    max-width: 560px;
    color: var(--fx-muted);
}

.fx-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 55px;
    border-top: 1px solid var(--fx-border);
}

.fx-feature {
    padding: 34px 30px;
    border-right: 1px solid var(--fx-border);
}

.fx-feature:first-child {
    padding-left: 0;
}

.fx-feature:last-child {
    border-right: none;
}

.fx-feature__number {
    font-size: 12px;
    color: var(--fx-subtle);
}

.fx-feature h3 {
    margin: 34px 0 12px;
    font-size: 22px;
    font-weight: 550;
}

.fx-feature p {
    max-width: 300px;
    color: var(--fx-muted);
    font-size: 14px;
}

.fx-text-link {
    display: inline-flex;
    gap: 12px;
    margin-top: 20px;
    color: var(--fx-text);
    font-size: 14px;
    border-bottom: 1px solid var(--fx-border);
    padding-bottom: 8px;
}

/* ==================================================
   FINAL CTA
================================================== */

.fx-final-cta {
    padding: 80px 0;
    border-bottom: 1px solid var(--fx-border);
}

.fx-final-cta__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.fx-final-cta h2 {
    margin: 0;
    font-weight: 550;
    font-size: clamp(30px, 3vw, 46px);
}

/* ==================================================
   DASHBOARD DEMO STARTER
================================================== */

.fx-demo__intro {
    padding: 90px 0 70px;
}

.fx-demo__intro h1 {
    margin: 18px 0 18px;
    font-size: clamp(44px, 5vw, 82px);
    font-weight: 550;
    line-height: 1.08;
}

.fx-demo__workspace {
    padding-bottom: 115px;
}

.fx-demo__panel {
    padding: 30px;
    border: 1px solid #343c49;
    border-radius: 14px;
    background: #0d1116;
}

.fx-demo__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.fx-demo__panel-header h2 {
    margin: 8px 0 0;
    font-size: 28px;
    font-weight: 550;
}

.fx-demo__status {
    padding: 8px 13px;
    border: 1px solid var(--fx-border);
    border-radius: 50px;
    font-size: 12px;
    color: var(--fx-muted);
}

.fx-metrics--demo {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fx-demo__placeholder {
    margin-top: 15px;
    min-height: 240px;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--fx-surface);
    border: 1px dashed #303744;
    border-radius: 10px;
}

.fx-demo__placeholder h3 {
    font-size: 24px;
    font-weight: 550;
}

.fx-demo__placeholder p {
    max-width: 520px;
    color: var(--fx-muted);
}

/* ==================================================
   FOOTER
================================================== */

.fx-footer {
    background: var(--fx-bg);
    padding-top: 65px;
}

.fx-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 60px;
}

.fx-footer__brand p {
    color: var(--fx-muted);
    font-size: 13px;
    margin-top: 15px;
}

.fx-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.fx-footer__bottom {
    border-top: 1px solid var(--fx-border);
    padding-block: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: var(--fx-subtle);
    font-size: 12px;
}

.fx-page {
    padding-block: 100px;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {

    .fx-hero {
        padding: 90px 0;
    }

    .fx-hero__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .fx-hero__copy {
        max-width: 780px;
    }

    .fx-preview {
        width: 100%;
    }

    .fx-section {
        padding: 80px 0;
    }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 700px) {

    .fx-container {
        width: calc(100% - 36px);
    }

    .fx-header__inner {
        min-height: 68px;
    }

    .fx-nav-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 12px 9px;
        flex-direction: column;
        justify-content: space-around;
        background: transparent;
        border: 1px solid var(--fx-border);
        border-radius: 8px;
        cursor: pointer;
    }

    .fx-nav-toggle span {
        height: 1px;
        width: 100%;
        background: var(--fx-text);
    }

    .fx-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 25px 18px 30px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--fx-bg);
        border-bottom: 1px solid var(--fx-border);
    }

    .fx-nav.is-open {
        display: flex;
    }

    .fx-nav a {
        padding: 15px 0;
        font-size: 15px;
    }

    .fx-header__cta {
        display: none;
    }

    .fx-hero {
        padding: 75px 0 70px;
    }

    .fx-hero h1 {
        font-size: clamp(39px, 10vw, 56px);
    }

    .fx-lead {
        font-size: 15px;
    }

    .fx-preview__body {
        padding: 16px;
    }

    .fx-metrics,
    .fx-metrics--demo {
        grid-template-columns: 1fr;
    }

    .fx-metric strong {
        font-size: 22px;
    }

    .fx-chart-panel {
        padding: 14px;
    }

    .fx-chart-placeholder {
        height: 150px;
        gap: 5px;
    }

    .fx-section {
        padding: 70px 0;
    }

    .fx-feature-grid {
        grid-template-columns: 1fr;
        margin-top: 35px;
    }

    .fx-feature,
    .fx-feature:first-child {
        padding: 30px 0;
        border-right: 0;
        border-bottom: 1px solid var(--fx-border);
    }

    .fx-feature:last-child {
        border-bottom: none;
    }

    .fx-feature h3 {
        margin-top: 20px;
    }

    .fx-final-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .fx-demo__intro {
        padding: 70px 0 45px;
    }

    .fx-demo__panel {
        padding: 18px;
    }

    .fx-demo__panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .fx-demo__placeholder {
        padding: 22px;
        min-height: 200px;
    }

    .fx-footer__inner {
        flex-direction: column;
        padding-bottom: 35px;
    }

    .fx-footer__links {
        gap: 18px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
