@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
    --fp-bg: #0b0e13;
    --fp-surface: #10141b;
    --fp-surface-soft: #161c26;
    --fp-panel: #131923;
    --fp-text: #e4e9f0;
    --fp-muted: #8996aa;
    --fp-primary: #5eead4;
    --fp-primary-strong: #14b8a6;
    --fp-ice: #7dd3fc;
    --fp-steel: #475569;
    --fp-border: rgba(94, 234, 212, 0.11);
    --fp-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    --fp-glow: rgba(94, 234, 212, 0.1);
}

* { box-sizing: border-box; }

.fp-body *,
.fp-body *::before,
.fp-body *::after {
    border-radius: 0 !important;
}
html { scroll-behavior: smooth; }

body.fp-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    color: var(--fp-text);
    line-height: 1.65;
    letter-spacing: 0.01em;
    background: var(--fp-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -5%, rgba(94, 234, 212, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 100%, rgba(125, 211, 252, 0.03) 0%, transparent 50%);
}

.fp-footer__inner,
.fp-main,
.fp-topbar__frame {
    width: min(1240px, calc(100% - 3rem));
    margin: 0 auto;
}

.fp-main { margin-top: 2rem; margin-bottom: 3rem; }

h1, h2, h3 { margin: 0 0 1rem; line-height: 1.25; }
p, ul, ol { margin: 0 0 1rem; }
a { color: var(--fp-ice); }
img { display: block; max-width: 100%; border-radius: 10px; }

/* ── TOPBAR ── */
.fp-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px) saturate(1.2);
    background: rgba(11, 14, 19, 0.92);
    border-bottom: 1px solid rgba(94, 234, 212, 0.06);
    box-shadow: 0 1px 18px rgba(0, 0, 0, 0.18);
}

.fp-topbar__outer {
    width: min(1240px, calc(100% - 3rem));
    margin: 0 auto;
}

.fp-topbar__frame {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1rem;
}

.fp-brand__logo { width: 156px; height: auto; }

.fp-nav { display: flex; align-items: center; gap: 1.4rem; margin: 0 auto; }
.fp-nav a,
.fp-drawer > a {
    color: var(--fp-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    transition: all 0.2s ease;
}
.fp-nav a:hover,
.fp-drawer > a:hover {
    color: #fff;
    background: rgba(94, 234, 212, 0.08);
    box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.18);
}

/* ── HAMBURGER ── */
.fp-menu-toggle {
    display: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    position: relative;
}

.fp-menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 4px;
    background: var(--fp-text);
    transition: 0.2s;
}
.fp-menu-toggle span:nth-child(1) { top: 6px; }
.fp-menu-toggle span:nth-child(2) { top: 15px; }
.fp-menu-toggle span:nth-child(3) { top: 24px; }
.fp-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.fp-menu-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.fp-menu-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── AUTH ── */
.fp-auth { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }

.fp-btn {
    border-radius: 12px;
    padding: 0.58rem 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    color: #fff;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    transition: all 0.25s ease;
}

.fp-btn--solid {
    background: linear-gradient(135deg, var(--fp-primary-strong), var(--fp-primary));
    box-shadow: 0 5px 18px var(--fp-glow);
    color: #051b16;
    font-weight: 700;
}
.fp-btn--solid:hover {
    background: linear-gradient(135deg, #0d9488, #2dd4bf);
    box-shadow: 0 7px 24px rgba(94, 234, 212, 0.22);
    transform: translateY(-1px);
    color: #031411;
}
.fp-btn--ghost {
    border-color: rgba(94, 234, 212, 0.2);
    color: var(--fp-text);
    background: rgba(16, 20, 27, 0.82);
}
.fp-btn--ghost:hover {
    border-color: var(--fp-primary);
    color: #fff;
    background: rgba(94, 234, 212, 0.06);
}

.fp-hero-block .fp-btn--ghost,
.fp-content-shell .fp-btn--ghost {
    color: var(--fp-primary);
    border-color: rgba(94, 234, 212, 0.2);
}
.fp-hero-block .fp-btn--ghost:hover,
.fp-content-shell .fp-btn--ghost:hover {
    border-color: var(--fp-primary);
    color: var(--fp-primary);
}

/* ── DRAWER ── */
.fp-drawer-wrap { position: relative; }
.fp-drawer { display: none; }
.fp-main-column,
.fp-page-wrap { width: 100%; }

/* ── HERO & CONTENT SHELL ── */
.fp-hero-block,
.fp-content-shell {
    background: linear-gradient(175deg, rgba(22, 28, 38, 0.97), rgba(16, 20, 27, 0.98));
    border: 1px solid var(--fp-border);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.fp-hero-block::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.04) 0%, transparent 65%);
    pointer-events: none;
}

.fp-hero-block::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.03) 0%, transparent 65%);
    pointer-events: none;
}

.fp-hero-block { margin-bottom: 1rem; }
.fp-hero-block h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 40px rgba(94, 234, 212, 0.08);
}

.fp-hero-block--image-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 40%);
    grid-template-areas:
        "text media"
        "cta media";
    align-items: center;
    column-gap: 1.2rem;
    row-gap: .8rem;
}

.fp-hero-block--image-right .fp-hero-block__text { grid-area: text; }
.fp-hero-block--image-right .fp-hero-block__media { grid-area: media; }
.fp-hero-block--image-right .fp-hero-block__cta { grid-area: cta; }
.fp-hero-block--image-right .fp-hero-block__media img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── CONTENT TYPOGRAPHY ── */
.fp-content-shell h2 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.fp-content-shell h2,
.fp-content-shell h3,
.fp-content-shell h4 {
    color: #e4e9f0;
    line-height: 1.35;
    letter-spacing: -0.005em;
}
.fp-content-shell p,
.fp-content-shell li,
.fp-content-shell td,
.fp-content-shell th,
.fp-outline,
.fp-footer {
    color: var(--fp-muted);
}
.fp-content-shell ul,
.fp-content-shell ol { padding-left: 1.2rem; }
.fp-content-shell code {
    background: var(--fp-surface-soft);
    border-radius: 6px;
    padding: 0.08rem 0.35rem;
}

/* ── TABLES ── */
figure.table {
    width: 100%;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid var(--fp-border);
    border-radius: 12px;
}

.fp-content-shell figure.table > table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.fp-content-shell thead {
    background: rgba(94, 234, 212, 0.05);
}

.fp-content-shell th,
.fp-content-shell td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--fp-border);
    text-align: left;
    vertical-align: top;
}

.fp-content-shell tr:last-child td {
    border-bottom: none;
}

.fp-content-shell th {
    font-weight: 600;
    color: var(--fp-text);
}

.fp-content-block h2 {
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.fp-content-block ul,
.fp-content-block ol {
    padding-left: 1.2rem;
}

.fp-content-block code {
    background: var(--fp-surface-soft);
    border-radius: 6px;
    padding: 0.08rem 0.35rem;
}

/* ── CTA GROUP ── */
.fp-cta-group {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.fp-content-block .fp-btn--ghost {
    color: var(--fp-primary);
    border-color: rgba(94, 234, 212, 0.2);
}
.fp-content-block .fp-btn--ghost:hover {
    border-color: var(--fp-primary);
    color: var(--fp-primary);
}

/* ── TOC / OUTLINE ── */
.fp-outline-toggle {
    display: inline-flex;
    border-radius: 999px;
    background: var(--fp-surface);
    color: var(--fp-text);
    border: 1px solid var(--fp-border);
    font-weight: 600;
    margin: 0 0 1rem;
    cursor: pointer;
    padding: 10px 20px;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    transition: all 0.25s ease;
}

.fp-outline-toggle:hover {
    border-color: var(--fp-primary);
    box-shadow: 0 0 12px var(--fp-glow);
}

.fp-outline {
    display: none;
    border: 1px solid var(--fp-border);
    border-radius: 12px;
    padding: 0.9rem;
    margin-bottom: 1rem;
    background: rgba(22, 28, 38, 0.5);
}

.fp-outline.is-open { display: block; }

.fp-outline__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.7rem; color: var(--fp-primary); }
.fp-outline__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.fp-outline__list a { color: var(--fp-muted); text-decoration: none; transition: color 0.2s; }
.fp-outline__list a:hover { color: var(--fp-primary); }

/* ── DIVIDER ── */
.fp-content-divider {
    border: 0;
    border-top: 1px solid var(--fp-border);
    margin: 1.25rem 0;
}

/* ── FAQ (fp- for styling, amelia- selectors kept for JS) ── */
.fp-faq-list { display: grid; gap: 0.75rem; }

.fp-faq-entry {
    border: 1px solid var(--fp-border);
    border-radius: 14px;
    background: rgba(22, 28, 38, 0.28);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.fp-faq-entry:hover {
    border-color: rgba(94, 234, 212, 0.22);
    box-shadow: 0 2px 14px var(--fp-glow);
}

.fp-faq-entry__trigger,
.amelia-faq-entry__trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem;
    font-size: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    color: var(--fp-text);
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
}

.fp-faq-entry__trigger h3,
.amelia-faq-entry__trigger h3 { margin: 0; font-size: 1.3rem; color: var(--fp-text); }

.fp-faq-entry__glyph,
.amelia-faq-entry__glyph {
    font-size: 1.35rem;
    line-height: 1;
    color: var(--fp-primary);
    transition: transform 0.2s;
}

.fp-faq-entry__trigger.is-open .fp-faq-entry__glyph,
.amelia-faq-entry__trigger.is-open .amelia-faq-entry__glyph { transform: rotate(45deg); }

.fp-faq-entry__answer,
.amelia-faq-entry__answer { display: none; padding: 0 1rem 1rem; }

.fp-faq-entry__answer.is-open,
.amelia-faq-entry__answer.is-open { display: block; }

/* ── FOOTER ── */
.fp-footer {
    background: linear-gradient(180deg, rgba(16, 20, 27, 0.98), rgba(11, 14, 19, 0.99));
    color: var(--fp-muted);
    margin-top: 1rem;
    border-top: 1px solid rgba(94, 234, 212, 0.06);
}

.fp-footer__inner {
    display: grid;
    gap: 1.35rem;
    border-radius: 18px;
    padding: 2.4rem 2.2rem;
    justify-items: center;
    text-align: center;
}

.fp-footer__top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.fp-footer__company {
    max-width: 680px;
    display: grid;
    justify-items: center;
}

.fp-footer__kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    color: var(--fp-primary);
}

.fp-footer__brand {
    margin: 0.2rem 0 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fp-text);
}

.fp-footer__mission {
    margin: 0.5rem 0 0;
    color: var(--fp-muted);
}

.fp-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 0.8rem;
    border-top: 1px solid rgba(94, 234, 212, 0.06);
    border-bottom: 1px solid rgba(94, 234, 212, 0.06);
    padding: 0.9rem 0;
}

.fp-footer__links a {
    color: var(--fp-text);
    text-decoration: none;
    border: 1px solid rgba(94, 234, 212, 0.11);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.42rem 0.8rem;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.fp-footer__links a:hover {
    color: #fff;
    border-color: var(--fp-primary);
    background: rgba(94, 234, 212, 0.06);
}

.fp-footer__compliance {
    display: grid;
    gap: 0.55rem;
    justify-items: center;
}

.fp-footer__compliance-title {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--fp-primary);
}

.fp-footer__logos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.fp-footer__logos-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-width: 46px;
    min-height: 42px;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(94, 234, 212, 0.04);
    border: 1px solid rgba(94, 234, 212, 0.08);
}

.fp-footer__logos-item img {
    display: block;
    width: auto;
    height: 30px;
    max-width: min(132px, 32vw);
    object-fit: contain;
    object-position: center;
    opacity: 0.92;
}

.fp-footer__logos-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.fp-footer__logos-item a:hover {
    transform: translateY(-1px);
    opacity: 0.85;
}

.fp-footer__legal {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
}

.fp-footer__copyright {
    margin: 0;
    color: var(--fp-text);
    font-weight: 500;
}

.fp-footer__disclaimer,
.footer-extra-text {
    margin: 0;
    color: var(--fp-muted);
    font-size: 0.92rem;
}

/* ── MOBILE ── */
@media (max-width: 980px) {
    .fp-topbar__outer {
        width: min(1240px, calc(100% - 3rem));
        margin: 0 auto;
    }

    .fp-topbar__frame { grid-template-columns: auto 1fr auto; }

    .fp-nav--desktop,
    .fp-auth--desktop {
        display: none;
    }

    .fp-menu-toggle { display: block; margin-left: auto; }

    .fp-drawer {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #10141b;
        padding: 1rem;
        border-top: 1px solid rgba(94, 234, 212, 0.08);
        flex-direction: column;
        gap: 0.65rem;
        display: flex;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: 0.25s;
    }

    .fp-drawer.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .fp-footer__inner {
        padding: 1.7rem 1.1rem;
    }

    .fp-footer__brand {
        font-size: 1.1rem;
    }

    .fp-footer__links {
        gap: 0.5rem;
    }

    .fp-footer__links a {
        width: 100%;
        text-align: center;
    }
}

/* ── SECTION BASE ── */
.fp-section-base {
    padding: 1rem 0;
}

.fp-section-base__header {
    margin-bottom: .7rem;
}

.fp-section-base__subtitle {
    margin: .25rem 0 0;
    font-size: .92rem;
    color: var(--fp-muted);
}

/* ── IMAGE LAYOUTS ── */
.fp-text-image-left {
    display: grid;
    grid-template-columns: minmax(180px, 320px) 1fr;
    gap: 1rem;
    align-items: start;
}

.fp-text-image-left--image-right .fp-text-image-left__media {
    order: 2;
}

.fp-text-image-float__media {
    width: min(320px, 42%);
    margin-bottom: .55rem;
}

.fp-text-image-float__media img {
    width: 100%;
    height: auto;
}

.fp-text-image-float--left .fp-text-image-float__media {
    float: left;
    margin-right: 1rem;
}

.fp-text-image-float--right .fp-text-image-float__media {
    float: right;
    margin-left: 1rem;
}

.fp-text-image-float::after {
    content: "";
    display: table;
    clear: both;
}

.fp-text-image-left__media img {
    width: 100%;
    height: auto;
}

/* ── CARDS / CATALOGS / GALLERIES ── */
.fp-mini-cards,
.fp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
}

.fp-catalog-extended {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.fp-catalog-extended__item,
.fp-catalog-image-only__item,
.fp-mini-cards__item,
.fp-gallery-slider__item,
.fp-gallery-grid figure,
.fp-section-fallback,
.fp-catalog-list-view__item {
    background: var(--fp-surface-soft);
    border: 1px solid var(--fp-border);
    border-radius: 12px;
    padding: .85rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.fp-catalog-extended__item:hover,
.fp-mini-cards__item:hover,
.fp-catalog-list-view__item:hover {
    border-color: rgba(94, 234, 212, 0.22);
    box-shadow: 0 3px 16px var(--fp-glow);
}

.fp-catalog-extended__item {
    color: inherit;
    text-decoration: none;
    display: grid;
    gap: .55rem;
}

.fp-catalog-extended__item img,
.fp-catalog-image-only__item img,
.fp-catalog-list-view__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.fp-catalog-image-only {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.fp-catalog-image-only__item {
    display: block;
    padding: .4rem;
}

.fp-mini-inline,
.fp-catalog-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: .55rem;
}

.fp-catalog-list-view {
    display: grid;
    gap: .75rem;
}

.fp-catalog-list-view__item {
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(120px, 180px) 1fr;
    align-items: start;
}

.fp-catalog-list-view__image {
    display: block;
}

.fp-catalog-list-view__link {
    display: inline-block;
    margin-top: .5rem;
}

.fp-gallery-slider {
    display: grid;
    gap: .65rem;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
}

.fp-gallery-grid img,
.fp-gallery-slider img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.fp-text-compact > *:first-child {
    margin-top: 0;
}

@media (max-width: 860px) {
    .fp-text-image-left {
        grid-template-columns: 1fr;
    }

    .fp-text-image-left--image-right .fp-text-image-left__media {
        order: initial;
    }

    .fp-text-image-float__media {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-right: 0;
    }

    .fp-catalog-extended {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fp-catalog-image-only {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fp-catalog-list-view__item {
        grid-template-columns: 1fr;
    }

    .fp-hero-block--image-right {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "media"
            "cta";
    }
    .fp-hero-block, .fp-content-shell {
        border-radius: 16px;
        padding: 1rem;
    }
}

/* ── COOKIE BANNER ── */
.fp-cookie {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: none;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--fp-border);
    background: rgba(11, 14, 19, 0.96);
    box-shadow: var(--fp-shadow);
    backdrop-filter: blur(14px);
}

.fp-cookie.is-visible {
    display: flex;
}

.fp-cookie__text {
    margin: 0;
    color: var(--fp-text);
    max-width: 760px;
}

.fp-cookie__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fp-cookie__btn {
    cursor: pointer;
}
