/* ================================================================
   formalls.css — Formalls | Smart Mall Management & Customer Engagement Platform
   Palette: #085394 Blue System
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --blue: #085394;
    --blue-dark: #064278;
    --blue-deeper: #043060;
    --blue-light: #EBF3FC;
    --blue-mid: #C8DFF5;
    --blue-soft: #6BAEE0;
    --blue-accent: #1A6EBF;
    --ink: #0A1628;
    --ink-2: #162236;
    --body: #475569;
    --muted: #94A3B8;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --page-bg: #EBF3FC;
    --page-bg-alt: #F1F7FD;
    --page-bg-soft: #F7FBFF;
    --font-head: 'Manrope', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 2px 16px rgba(8, 83, 148, 0.07);
    --shadow-md: 0 8px 32px rgba(8, 83, 148, 0.12);
    --tr: 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ── */
.fm-page *,
.fm-page *::before,
.fm-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.fm-page {
    font-family: var(--font-body);
    color: var(--body);
    background: var(--page-bg-soft);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── SHARED ── */
.fm-wrap {
    max-width: 98%;
    margin: 0 auto;
    padding: 0 48px;
}

.fm-eyebrow {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
}

.fm-section-title {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
    letter-spacing: -0.2px;
    margin-bottom: 12px;
}

/* ── BUTTONS ── */
.fm-btn-primary {
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 13px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--tr), transform 0.15s;
    text-decoration: none;
    display: inline-block;
}

.fm-btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.fm-btn-ghost {
    background: transparent;
    color: var(--ink-2);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: border-color var(--tr), background var(--tr), color var(--tr);
    text-decoration: none;
    display: inline-block;
}

.fm-btn-ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.fm-hero {
    background: linear-gradient(160deg, #D6E8F8 0%, #EBF3FC 40%, #F1F7FD 75%, #F7FBFF 100%);
    padding: 102px 0 88px;
    position: relative;
    overflow: hidden;
}

.fm-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 83, 148, 0.09) 0%, transparent 70%);
    pointer-events: none;
}

.fm-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 110, 191, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.fm-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: stretch;
}

.fm-hero-left {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fm-hero-right {
    position: relative;
    display: flex;
    align-items: stretch;
}

.fm-hero-title {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 2.8vw, 2.5rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--ink);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.fm-hero-title span {
    color: var(--blue);
}

.fm-hero-desc {
    font-size: 0.93rem;
    color: var(--body);
    line-height: 1.72;
    margin-bottom: 24px;
    max-width: 480px;
}

.fm-hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── Hero Mockup ── */
.fm-hero-mockup {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.fm-mockup-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(8, 83, 148, 0.15);
    overflow: hidden;
    border: 1px solid rgba(8, 83, 148, 0.12);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fm-mockup-bar {
    background: var(--ink-2);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.fm-mockup-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.fm-mockup-body {
    padding: 22px;
    background: linear-gradient(135deg, #EBF3FC 0%, #D6E8F8 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fm-mockup-header {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.03em;
}

.fm-mockup-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.fm-mockup-row {
    background: var(--white);
    border-radius: 9px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(8, 83, 148, 0.10);
}

.fm-row-label {
    font-size: 0.72rem;
    color: var(--body);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 90px;
}

.fm-row-bar-wrap {
    flex: 1;
    margin: 0 12px;
    height: 6px;
    background: var(--blue-mid);
    border-radius: 99px;
    overflow: hidden;
}

.fm-row-bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--blue-accent));
}

.fm-row-val {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue);
    flex-shrink: 0;
}

.fm-mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.fm-mock-stat {
    background: var(--white);
    border-radius: 10px;
    padding: 11px;
    text-align: center;
    border: 1px solid var(--border);
}

.fm-mock-stat-val {
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--blue);
}

.fm-mock-stat-label {
    font-size: 0.6rem;
    color: var(--muted);
    margin-top: 3px;
}

/* ── Floating Badges ── */
.fm-float-badge {
    position: absolute;
    background: var(--white);
    border-radius: 10px;
    padding: 10px 16px;
    box-shadow: 0 8px 28px rgba(8, 83, 148, 0.14);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink);
    border: 1px solid var(--border);
    white-space: nowrap;
    animation: fmFloat 6s ease-in-out infinite;
}

.fm-float-badge span {
    color: var(--blue);
}

.fm-float-badge--tl {
    top: -14px;
    right: -10px;
    animation-delay: 0s;
}

.fm-float-badge--br {
    bottom: -14px;
    left: -10px;
    animation-delay: 3s;
}

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.fm-about {
    padding: 64px 0 0;
    background: #fff;
}

.fm-about-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 52px;
}

.fm-about-header__text .fm-eyebrow {
    display: block;
    margin-bottom: 10px;
}

.fm-about-header__text .fm-section-title {
    margin-bottom: 0;
    white-space: normal;
}

.fm-about-header__desc {
    flex: 0 0 380px;
    font-size: 0.9rem;
    color: var(--body);
    line-height: 1.78;
    padding-bottom: 4px;
}

.fm-about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-bottom: 0;
}

.fm-about-card {
    background: var(--page-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px 28px;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--tr), transform var(--tr);
}

.fm-about-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.fm-about-card--featured {
    background: linear-gradient(160deg, #085394 0%, #043060 100%);
    border-color: transparent;
    color: var(--white);
}

.fm-about-card--featured .fm-about-card__tag {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.fm-about-card--featured .fm-about-card__title {
    color: var(--white);
}

.fm-about-card--featured .fm-about-card__desc {
    color: rgba(255, 255, 255, 0.83);
}

.fm-about-card--featured .fm-about-card__list li {
    color: rgba(255, 255, 255, 0.78);
}

.fm-about-card--featured .fm-about-card__list li::before {
    color: #6BAEE0;
}

.fm-about-card--featured .fm-about-card__pill {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    color: var(--white);
}

.fm-about-card--featured .fm-about-card__icon {
    background: rgba(255, 255, 255, 0.18);
}

.fm-about-card__accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
}

.fm-about-card__accent--1 {
    background: radial-gradient(circle, rgba(8, 83, 148, 0.12) 0%, transparent 70%);
}

.fm-about-card__accent--2 {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
}

.fm-about-card__accent--3 {
    background: radial-gradient(circle, rgba(26, 110, 191, 0.12) 0%, transparent 70%);
}

.fm-about-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.fm-about-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.fm-about-card__tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    background: #fff;
    border: 1px solid var(--blue-mid);
    border-radius: 99px;
    padding: 4px 12px;
}

.fm-about-card__title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.3;
}

.fm-about-card__desc {
    font-size: 0.83rem;
    color: var(--body);
    line-height: 1.68;
    margin-bottom: 18px;
}

.fm-about-card__list {
    list-style: none;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.fm-about-card__list li {
    font-size: 0.8rem;
    color: var(--body);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.fm-about-card__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-size: 0.7rem;
    top: 1px;
}

.fm-about-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fm-about-card__pill {
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 99px;
    padding: 4px 11px;
    background: var(--blue-light);
    border: 1px solid var(--blue-mid);
    color: var(--blue-dark);
}

/* ══════════════════════════════════════
   STATS BAR
══════════════════════════════════════ */
.fm-stats-wrapper {
    padding: 48px 0;
    background: #fff;
}

.fm-stats {
    background: linear-gradient(135deg, #085394 0%, #043060 100%);
    border-radius: 20px;
    max-width: 96%;
    margin: 0 auto;
    overflow: hidden;
    /* box-shadow: 0 20px 60px rgba(8, 83, 148, 0.24); */
}

.fm-stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.fm-stat-item {
    padding: 10px 1px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.fm-stat-item:last-child {
    border-right: none;
}

.fm-stat-num {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.fm-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.70);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ══════════════════════════════════════
   SPLIT SECTION HEADER
══════════════════════════════════════ */
.fm-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 48px;
}

.fm-section-head__left {
    flex: 0 0 auto;
    max-width: 100%;
}

.fm-section-head__left .fm-eyebrow {
    display: block;
    margin-bottom: 10px;
}

.fm-section-head__left .fm-section-title {
    margin-bottom: 0;
}

.fm-section-head__divider {
    width: 1px;
    align-self: stretch;
    background: var(--border);
    flex-shrink: 0;
    margin-top: 32px;
}

.fm-section-head__right {
    flex: 1;
    max-width: 480px;
    align-self: flex-start;
    text-align: right;
}

.fm-section-head__right p {
    font-size: 0.9rem;
    color: var(--body);
    line-height: 1.78;
}

/* ══════════════════════════════════════
   FEATURES GRID
══════════════════════════════════════ */
.fm-features {
    padding: 66px 0;
    background: var(--page-bg-soft);
}

.fm-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.fm-feat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: box-shadow var(--tr), border-color var(--tr), transform var(--tr);
}

.fm-feat-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--blue-soft);
    transform: translateY(-3px);
}

.fm-feat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 18px;
}

.fm-feat-card h4 {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.fm-feat-card p {
    font-size: 0.82rem;
    color: var(--body);
    line-height: 1.65;
}

/* ══════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════ */
.fm-how {
    padding: 66px 0;
    background: #fff;
}

.fm-how-header {
    margin-bottom: 48px;
}

.fm-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.fm-step {
    padding: 36px 30px;
    background: var(--page-bg-soft);
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: background var(--tr);
}

.fm-step:hover {
    background: #EBF3FC;
}

.fm-step-num {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--blue-mid);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.fm-step-content h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.fm-step-content p {
    font-size: 0.83rem;
    color: var(--body);
    line-height: 1.65;
}

/* ══════════════════════════════════════
   USERS / INDUSTRIES
══════════════════════════════════════ */
.fm-users {
    padding: 60px 0;
    background: var(--page-bg-alt);
}

.fm-ind-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.fm-ind-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    background: var(--white);
    transition: box-shadow var(--tr), border-color var(--tr), transform var(--tr);
}

.fm-ind-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--blue-soft);
    transform: translateY(-3px);
}

.fm-ind-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 18px;
}

.fm-ind-card h4 {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.fm-ind-card p {
    font-size: 0.82rem;
    color: var(--body);
    line-height: 1.65;
}

/* ══════════════════════════════════════
   WHY FORMALLS
══════════════════════════════════════ */
.fm-why {
    padding: 60px 0;
    background: #fff;
}

.fm-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 28px;
}

.fm-why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fm-why-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.fm-why-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.fm-why-check svg {
    width: 12px;
    height: 12px;
}

.fm-why-text h5 {
    font-family: var(--font-head);
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 3px;
}

.fm-why-text p {
    font-size: 0.83rem;
    color: var(--body);
}

.fm-why-visual {
    background: linear-gradient(135deg, #085394 0%, #043060 100%);
    border-radius: 20px;
    padding: 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.fm-why-visual::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.fm-why-visual h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    position: relative;
}

.fm-why-visual p {
    font-size: 0.88rem;
    opacity: 0.82;
    line-height: 1.75;
    margin-bottom: 28px;
    position: relative;
}

.fm-why-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
}

.fm-why-pill {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--white);
}

/* ── KEYFRAMES ── */
@keyframes fmFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ── SCROLL REVEAL ── */
.fm-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--tr), transform 0.6s var(--tr);
}

.fm-reveale {
    opacity: 1;
    transform: none;
    width: 92%;
}

.fm-reveal.fm-visible {
    opacity: 1;
    transform: none;
}

.fm-reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.65s var(--tr), transform 0.65s var(--tr);
}

.fm-reveal-left.fm-visible {
    opacity: 1;
    transform: none;
}

.fm-reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.65s var(--tr), transform 0.65s var(--tr);
}

.fm-reveal-right.fm-visible {
    opacity: 1;
    transform: none;
}

/* stagger helpers */
.fm-d1 {
    transition-delay: 0.05s;
}

.fm-d2 {
    transition-delay: 0.12s;
}

.fm-d3 {
    transition-delay: 0.19s;
}

.fm-d4 {
    transition-delay: 0.26s;
}

.fm-d5 {
    transition-delay: 0.33s;
}

.fm-d6 {
    transition-delay: 0.40s;
}

.fm-d7 {
    transition-delay: 0.47s;
}

.fm-d8 {
    transition-delay: 0.54s;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .fm-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fm-ind-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fm-how-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .fm-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .fm-section-head {
        flex-direction: column;
        gap: 12px;
    }

    .fm-section-head__divider {
        display: none;
    }

    .fm-section-head__right {
        padding-top: 0;
        text-align: left;
        max-width: 100%;
    }

    .fm-stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .fm-stat-item:nth-child(2) {
        border-right: none;
    }

    .fm-stat-item:nth-child(1),
    .fm-stat-item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .fm-why-grid {
        grid-template-columns: 1fr;
    }

    .fm-about-cards {
        grid-template-columns: 1fr;
    }

    .fm-about-header {
        flex-direction: column;
        gap: 16px;
    }

    .fm-about-header__desc {
        flex: unset;
    }

    .fm-wrap {
        padding: 0 24px;
    }
}

@media (max-width: 600px) {
    .fm-features-grid {
        grid-template-columns: 1fr;
    }

    .fm-ind-grid {
        grid-template-columns: 1fr;
    }

    .fm-how-grid {
        grid-template-columns: 1fr;
    }

    .fm-stats-inner {
        grid-template-columns: 1fr;
    }

    .fm-stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    }
}