/* ============================================
   Finage - Portfolio Case Study
   Dark theme with purple accents
   ============================================ */

/* ---------- Base / Reset ---------- */
.fn-page {
    font-family: "Poppins", sans-serif;
    background: #0a0a14;
    color: #e0e0e8;
    overflow-x: hidden;
    line-height: 1.6;
}

.fn-page *,
.fn-page *::before,
.fn-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.fn-page img {
    max-width: 100%;
    display: block;
}

/* ---------- Container ---------- */
.fn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.fn-container--wide {
    max-width: 1400px;
}

/* ---------- Section Spacing ---------- */
.fn-section {
    padding: 120px 0;
    position: relative;
}

/* ---------- Badge (label pill) ---------- */
.fn-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #c4b5fd;
    background: rgba(124, 91, 240, 0.12);
    border: 1px solid rgba(124, 91, 240, 0.25);
    border-radius: 24px;
    will-change: transform;
}

.fn-badge--sm {
    padding: 6px 16px;
    font-size: 12px;
}

.fn-badge--xs {
    padding: 4px 12px;
    font-size: 11px;
}

/* =============================================
   SECTION 1: HERO
   ============================================= */
.fn-hero {
    position: relative;
    overflow: hidden;
    background: #0a0a14;
}

.fn-hero__brand {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fn-hero__image {
    width: 100%;
    line-height: 0;
}

.fn-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   SECTION 2: INTRODUCTION
   ============================================= */
.fn-intro {
    background: linear-gradient(180deg, #0a0a14 0%, #0d0d1a 100%);
}

.fn-intro__layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.fn-intro__badge-wrap {
    flex-shrink: 0;
    padding-top: 8px;
}

.fn-intro__content {
    max-width: 700px;
}

.fn-intro__title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 28px;
    line-height: 1.2;
    font-style: italic;
}

.fn-intro__lead {
    font-size: 22px;
    font-weight: 400;
    color: #c8c8d4;
    line-height: 1.7;
    margin-bottom: 24px;
}

.fn-intro__body {
    font-size: 13px;
    font-weight: 300;
    color: #8888a0;
    line-height: 1.8;
}

/* =============================================
   SECTION 3: PROBLEM & SOLUTION
   ============================================= */
.fn-probsol {
    background: #0d0d1a;
}

.fn-probsol__block {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-bottom: 100px;
}

.fn-probsol__block--reverse {
    flex-direction: row-reverse;
}

.fn-probsol__text {
    flex: 1;
    padding-top: 8px;
}

.fn-probsol__text--right {
    text-align: right;
}

.fn-probsol__text .fn-badge {
    margin-bottom: 24px;
}

.fn-probsol__desc {
    font-size: 13px;
    color: #9898b0;
    line-height: 2;
}

.fn-probsol__img {
    flex: 1.1;
    border-radius: 20px;
    overflow: hidden;
}

.fn-probsol__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* Showcase (laptop with 3D elements image) */
.fn-probsol__showcase {
    padding-top: 40px;
}

.fn-probsol__showcase-image {
    max-width: 780px;
    margin: 0 auto;
}

.fn-probsol__showcase-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   SECTION 4: DESIGN SYSTEM (Gantt)
   ============================================= */
.fn-dsystem {
    background: #0d0d1a;
}

.fn-dsystem__header {
    margin-bottom: 64px;
}

.fn-gantt {
    width: 100%;
    overflow-x: auto;
}

/* --- Column headers --- */
.fn-gantt__header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2.5fr 1fr 1fr;
    gap: 0;
    margin-bottom: 0;
}

.fn-gantt__col {
    font-size: 13px;
    font-weight: 400;
    color: #7a7a9a;
    padding: 0 0 20px;
    text-align: left;
    padding-left: 4px;
    border-left: 1px dashed rgba(124, 91, 240, 0.18);
}

.fn-gantt__col:first-child {
    border-left: 1px dashed rgba(124, 91, 240, 0.18);
}

/* --- Gantt body (positioned grid) --- */
.fn-gantt__body {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2.5fr 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 0;
    min-height: 260px;
}

/* --- Vertical dashed divider lines --- */
.fn-gantt__dividers {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2.5fr 1fr 1fr;
    pointer-events: none;
    z-index: 0;
}

.fn-gantt__divider {
    border-left: 1px dashed rgba(124, 91, 240, 0.18);
}

.fn-gantt__divider:first-child {
    border-left: 1px dashed rgba(124, 91, 240, 0.18);
}

/* --- Bars --- */
.fn-gantt__bar {
    position: relative;
    z-index: 1;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
    color: #c4b5fd;
    line-height: 1.4;
    will-change: transform;
    align-self: start;
}

/* Research — row 1, col 1 */
.fn-gantt__bar--research {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    background: rgba(124, 91, 240, 0.16);
    margin-top: 16px;
    margin-right: 8px;
}

/* Design, Wireframe — row 2, col 2 */
.fn-gantt__bar--design {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background: rgba(124, 91, 240, 0.22);
    margin-right: 8px;
}

/* Hi-Fi Design & Prototype — row 3, col 3 */
.fn-gantt__bar--hifi {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    background: rgba(124, 91, 240, 0.3);
    margin-right: 8px;
}

/* Develop — row 1, col 4 (wide, tall) */
.fn-gantt__bar--develop {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
    background: rgba(124, 91, 240, 0.4);
    margin-top: 16px;
    margin-right: 8px;
    padding: 18px;
}

/* Test — row 2, col 5 */
.fn-gantt__bar--test {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
    background: rgba(124, 91, 240, 0.32);
    margin-right: 8px;
}

/* Deploy — row 3, col 6 */
.fn-gantt__bar--deploy {
    grid-column: 6 / 7;
    grid-row: 3 / 4;
    background: rgba(124, 91, 240, 0.24);
    margin-right: 8px;
}

/* Week label inside bar — hidden on desktop */
.fn-gantt__week {
    display: none;
}

/* =============================================
   SECTION 5: COLOR & TYPOGRAPHY
   ============================================= */
.fn-coltypo {
    background: #0d0d1a;
}

.fn-coltypo__header {
    margin-bottom: 48px;
}

.fn-coltypo__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fn-coltypo__card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

/* Font Card */
.fn-coltypo__card--font {
    background: linear-gradient(160deg, #1a1a30 0%, #12122a 100%);
    padding: 36px;
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.fn-coltypo__card--font .fn-badge--xs {
    align-self: flex-start;
    margin-bottom: 20px;
}

.fn-coltypo__font-name {
    font-size: 72px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: auto;
}

.fn-coltypo__font-watermark {
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-size: 200px;
    font-weight: 800;
    color: rgba(124, 91, 240, 0.06);
    line-height: 1;
    pointer-events: none;
}

.fn-coltypo__alpha {
    font-size: 11px;
    color: #6868a0;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.fn-coltypo__nums {
    font-size: 11px;
    color: #6868a0;
    letter-spacing: 2px;
}

/* Typography Card */
.fn-coltypo__card--typo {
    background: linear-gradient(160deg, #16162c 0%, #10102a 100%);
    padding: 36px;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    position: relative;
    overflow: hidden;
}

.fn-coltypo__typo-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.fn-coltypo__typo-desc {
    font-size: 13px;
    color: #8888a0;
    line-height: 1.7;
}

.fn-coltypo__typo-watermark {
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-size: 220px;
    font-weight: 800;
    color: rgba(124, 91, 240, 0.04);
    line-height: 1;
    pointer-events: none;
}

/* Color Gradient Card */
.fn-coltypo__card--gradient {
    min-height: 280px;
}

.fn-coltypo__gradient-preview {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(
        160deg,
        #2a1a5e 0%,
        #4a2a8e 40%,
        #7c5bf0 70%,
        #1a1a3e 100%
    );
    border-radius: 16px;
}

/* Color Swatches Card */
.fn-coltypo__card--swatches {
    background: #16162c;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fn-coltypo__swatch {
    border-radius: 10px;
    padding: 14px 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    font-family: "Poppins", monospace;
    transition: transform 0.2s ease;
}

.fn-coltypo__swatch:hover {
    transform: scale(1.02);
}

.fn-coltypo__swatch--white {
    background: #ffffff;
    color: #1a1a1a;
}

.fn-coltypo__swatch--gray1 {
    background: #b6b9b6;
    color: #1a1a1a;
}

.fn-coltypo__swatch--dark {
    background: #1a1a14;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fn-coltypo__swatch--gray2 {
    background: #9d9d90;
    color: #1a1a1a;
}

.fn-coltypo__swatch--purple1 {
    background: #90ed88;
    color: #1a1a1a;
}

.fn-coltypo__swatch--purple2 {
    background: #d9a975;
    color: #1a1a1a;
}

/* =============================================
   SECTION 6: BRANDING
   ============================================= */
.fn-branding {
    background: #0a0a14;
}

.fn-branding__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.fn-branding__badge-wrap {
    flex-shrink: 0;
}

.fn-branding__desc {
    font-size: 13px;
    color: #8888a0;
    line-height: 1.7;
    max-width: 400px;
    padding-top: 6px;
    text-align: right;
}

.fn-branding__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.fn-branding__card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

/* Mockup card (top-left) */
.fn-branding__card--mockup {
    background: #16162c;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.fn-branding__card--mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Logo card (top-right) */
.fn-branding__card--logo {
    background: #ffffff;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fn-branding__card--logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Integrations card (bottom, full width) */
.fn-branding__card--integrations {
    background: #ffffff;
    grid-column: 1 / -1;
    grid-row: 2 / 3;
}

.fn-branding__card--integrations img {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   SECTION 7: FLOW CHART
   ============================================= */
.fn-flowchart {
    background: linear-gradient(
        135deg,
        rgba(124, 91, 240, 0.06) 0%,
        rgba(10, 10, 20, 0.95) 30%,
        rgba(13, 13, 26, 0.98) 50%,
        rgba(124, 91, 240, 0.04) 100%
    );
}

.fn-flowchart__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.fn-flowchart__badge-wrap {
    flex-shrink: 0;
}

.fn-flowchart__desc {
    font-size: 13px;
    color: #8888a0;
    line-height: 1.7;
    max-width: 400px;
    padding-top: 6px;
    text-align: right;
}

/* ---- Flowchart tree container ---- */
.fn-fc {
    overflow-x: auto;
    padding: 20px 0;
}

/* ---- List reset & tree structure ---- */
.fn-fc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.fn-fc__list:not(.fn-fc__root) {
    padding-left: 50px;
}

.fn-fc__item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 5px 0;
}

/* ---- Connector lines ---- */
/* Horizontal connector: vertical rail → child node */
.fn-fc__list:not(.fn-fc__root) > .fn-fc__item::before {
    content: "";
    position: absolute;
    left: -30px;
    width: 30px;
    height: 1.5px;
    background: rgba(124, 91, 240, 0.3);
    top: 50%;
}

/* Vertical rail segment on each sibling */
.fn-fc__list:not(.fn-fc__root) > .fn-fc__item::after {
    content: "";
    position: absolute;
    left: -30px;
    width: 1.5px;
    background: rgba(124, 91, 240, 0.3);
    top: 0;
    bottom: 0;
}

.fn-fc__list:not(.fn-fc__root) > .fn-fc__item:first-child::after {
    top: 50%;
}

.fn-fc__list:not(.fn-fc__root) > .fn-fc__item:last-child::after {
    bottom: 50%;
}

.fn-fc__list:not(.fn-fc__root) > .fn-fc__item:only-child::after {
    display: none;
}

/* Bridge line: parent node → vertical rail */
.fn-fc__node--parent::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 50%;
    width: 20px;
    height: 1.5px;
    background: rgba(124, 91, 240, 0.3);
    transform: translateY(-50%);
}

/* ---- Node styles ---- */
.fn-fc__node {
    padding: 8px 22px;
    border-radius: 20px;
    background: rgba(18, 18, 32, 0.85);
    border: 1px solid rgba(124, 91, 240, 0.2);
    font-size: 12px;
    font-weight: 500;
    color: #b8b8c8;
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
    z-index: 1;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.fn-fc__node:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(124, 91, 240, 0.2);
}

/* Purple highlighted node */
.fn-fc__node--purple {
    background: #7c5bf0;
    border-color: #7c5bf0;
    color: #fff;
    font-weight: 600;
}

.fn-fc__node--purple:hover {
    box-shadow: 0 4px 14px rgba(124, 91, 240, 0.4);
}

/* Central accent node (Finage) */
.fn-fc__node--accent {
    background: linear-gradient(135deg, #7c5bf0, #5d45c0);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    padding: 10px 26px;
    font-size: 13px;
}

.fn-fc__node--accent:hover {
    box-shadow: 0 4px 14px rgba(124, 91, 240, 0.45);
}

/* Light node (Login/sign up) */
.fn-fc__node--light {
    background: rgba(124, 91, 240, 0.1);
    border: 1px solid rgba(124, 91, 240, 0.25);
    color: #c4b5fd;
}

/* Logo node */
.fn-fc__node--logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 28px;
    border-radius: 16px;
    background: rgba(20, 20, 35, 0.8);
    border: 1px solid rgba(124, 91, 240, 0.2);
}

.fn-fc__node--logo svg {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #7c5bf0 0%, #5d45c0 100%);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 6px 20px rgba(124, 91, 240, 0.35);
}

.fn-fc__node--logo span {
    font-size: 11px;
    font-weight: 600;
    color: #7c5bf0;
}

/* Logo node also acts as parent (bridge line) */
.fn-fc__node--logo::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 50%;
    width: 20px;
    height: 1.5px;
    background: rgba(124, 91, 240, 0.3);
    transform: translateY(-50%);
}

/* =============================================
   SECTION 8: VISUAL DESIGN (GGMessenger style)
   ============================================= */
.fn-visual {
    background: linear-gradient(
        261deg,
        rgba(124, 91, 240, 0.12) 0%,
        rgba(124, 91, 240, 0.04) 30%,
        #0a0a14 50%,
        rgba(124, 91, 240, 0.06) 100%
    );
    overflow: hidden;
    padding: 140px 0;
}

/* Centered stacked text */
.fn-visual__text {
    text-align: center;
    margin-bottom: 80px;
}

.fn-visual__line {
    display: block;
    font-size: 140px;
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 0.9;
}

.fn-visual__line--ghost {
    color: rgba(255, 255, 255, 0.04);
}

.fn-visual__line--purple {
    background: linear-gradient(180deg, #9b7bf7 0%, #5d45c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main showcase image */
.fn-visual__main {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 80px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.fn-visual__main img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(124, 91, 240, 0.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.fn-visual__main::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(
        180deg,
        rgba(124, 91, 240, 0.08) 0%,
        transparent 40%,
        transparent 60%,
        rgba(124, 91, 240, 0.1) 100%
    );
    pointer-events: none;
}

/* Glow effect behind main image */
.fn-visual__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(
        ellipse at center,
        rgba(124, 91, 240, 0.2) 0%,
        rgba(124, 91, 240, 0.08) 30%,
        transparent 60%
    );
    pointer-events: none;
    z-index: -1;
    filter: blur(60px);
}

/* Phone mockups row */
.fn-visual__phones {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    padding: 0 40px;
}

.fn-visual__phone {
    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
}

.fn-visual__phone img {
    width: 200px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(124, 91, 240, 0.15);
    object-fit: cover;
}

.fn-visual__phone--side {
    opacity: 0.6;
    transform: translateY(20px);
}

.fn-visual__phone--center {
    transform: translateY(-16px) scale(1.06);
}

.fn-visual__phone--center img {
    box-shadow:
        0 0 60px rgba(124, 91, 240, 0.15),
        0 30px 80px rgba(0, 0, 0, 0.5);
    border-color: rgba(124, 91, 240, 0.3);
}

.fn-visual__phone:hover {
    opacity: 1;
    transform: translateY(-8px);
}

.fn-visual__phone--center:hover {
    transform: translateY(-24px) scale(1.08);
}

/* Float animations with delays */
.fn-float {
    animation: fnFloat 4s ease-in-out infinite;
}

.fn-float--d1 {
    animation-delay: 0.5s;
}

.fn-float--d2 {
    animation-delay: 1s;
}

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

/* Preserve transform on hover for side phones */
.fn-visual__phone--side.fn-float:hover {
    animation: none;
    transform: translateY(-8px);
}

.fn-visual__phone--center.fn-float:hover {
    animation: none;
    transform: translateY(-24px) scale(1.08);
}

/* =============================================
   SECTION 9: APP PREVIEW (GGMessenger style)
   ============================================= */
.fn-preview {
    background: linear-gradient(
        276deg,
        rgba(124, 91, 240, 0.1) 0%,
        rgba(124, 91, 240, 0.03) 30%,
        #0a0a14 50%,
        rgba(124, 91, 240, 0.05) 100%
    );
}

.fn-preview__block {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.fn-preview__block:last-child {
    margin-bottom: 0;
}

.fn-preview__block--reverse {
    flex-direction: row-reverse;
}

.fn-preview__img {
    flex: 1.1;
    position: relative;
}

.fn-preview__img img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(124, 91, 240, 0.15);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.fn-preview__img:hover img {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5);
}

.fn-preview__info {
    flex: 0.9;
}

/* Label style */
.fn-label {
    font-size: 12px;
    color: rgba(124, 91, 240, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

/* Heading with badge */
.fn-heading {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 24px;
}

.fn-heading--sm {
    font-size: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Preview badge */
.fn-preview__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: linear-gradient(135deg, #7c5bf0 0%, #5d45c0 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(124, 91, 240, 0.3);
}

.fn-preview__badge-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Text description */
.fn-text {
    font-size: 14px;
    color: rgba(136, 136, 160, 0.9);
    line-height: 1.8;
}

/* Feature list (optional) */
.fn-preview__list {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fn-preview__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(136, 136, 160, 0.9);
}

.fn-preview__list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7c5bf0;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(124, 91, 240, 0.4);
}

/* =============================================
   SECTION 10: UI SCREENS SHOWCASE (Masonry Style)
   ============================================= */
.fn-screens {
    background: linear-gradient(
        180deg,
        #0a0a14 0%,
        #0d0d1a 30%,
        rgba(124, 91, 240, 0.05) 50%,
        #0d0d1a 70%,
        #0a0a14 100%
    );
}

.fn-screens__header {
    text-align: center;
    margin-bottom: 60px;
}

.fn-screens__header .fn-label {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.fn-screens__header .fn-heading {
    font-size: 48px;
    line-height: 1.2;
}

/* Badge in header */
.fn-screens__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, #7c5bf0 0%, #5d45c0 100%);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(124, 91, 240, 0.35);
}

.fn-screens__badge-text {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Masonry Grid using CSS Columns */
.fn-screens__grid {
    column-count: 2;
    column-gap: 24px;
}

.fn-screens__item {
    break-inside: avoid;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(124, 91, 240, 0.03);
    border: 1px solid rgba(124, 91, 240, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fn-screens__item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 0 48px rgba(124, 91, 240, 0.15);
    border-color: rgba(124, 91, 240, 0.3);
    z-index: 10;
}

.fn-screens__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fn-screens__item:hover img {
    transform: scale(1.05);
}

/* Subtle glow overlay on hover */
.fn-screens__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(124, 91, 240, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 16px;
}

.fn-screens__item:hover::after {
    opacity: 1;
}

/* =============================================
   SECTION 11: THANKS
   ============================================= */
.fn-thanks {
    text-align: center;
    padding: 160px 0 120px;
    background: linear-gradient(180deg, #0d0d1a 0%, #0a0a14 100%);
}

.fn-thanks__content {
    max-width: 600px;
    margin: 0 auto;
}

.fn-thanks__title {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.2;
}

.fn-thanks__msg {
    font-size: 14px;
    color: #8888a0;
    line-height: 1.8;
    margin-bottom: 48px;
}

.fn-thanks__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.fn-thanks__logo svg {
    width: 48px;
    height: 48px;
}

.fn-thanks__brand span {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

/* =============================================
   ANIMATION BASE CLASSES
   ============================================= */
.fn-anim {
    opacity: 0;
    transform: translateY(28px);
}

.fn-anim--left {
    opacity: 0;
    transform: translateX(-36px);
}

.fn-anim--right {
    opacity: 0;
    transform: translateX(36px);
}

.fn-stagger > * {
    opacity: 0;
    transform: translateY(28px);
}

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

/* =============================================
   RESPONSIVE: 1024px
   ============================================= */
@media (max-width: 1024px) {
    .fn-container {
        padding: 0 32px;
    }

    .fn-section {
        padding: 90px 0;
    }

    .fn-intro__title {
        font-size: 34px;
    }

    .fn-intro__lead {
        font-size: 18px;
    }

    .fn-coltypo__font-name {
        font-size: 56px;
    }

    .fn-thanks__title {
        font-size: 44px;
    }

    .fn-gantt__header,
    .fn-gantt__body,
    .fn-gantt__dividers {
        grid-template-columns: repeat(3, 1fr) 2.5fr repeat(2, 1fr);
    }

    .fn-gantt__col {
        font-size: 12px;
    }

    .fn-gantt__bar {
        font-size: 12px;
        padding: 12px 14px;
    }

    /* Flow Chart */
    .fn-flowchart__header {
        gap: 32px;
        margin-bottom: 40px;
    }

    .fn-fc__list:not(.fn-fc__root) {
        padding-left: 40px;
    }

    .fn-fc__list:not(.fn-fc__root) > .fn-fc__item::before {
        left: -24px;
        width: 24px;
    }

    .fn-fc__list:not(.fn-fc__root) > .fn-fc__item::after {
        left: -24px;
    }

    .fn-fc__node--parent::after,
    .fn-fc__node--logo::after {
        right: -16px;
        width: 16px;
    }

    /* Visual Design */
    .fn-visual {
        padding: 100px 0;
    }

    .fn-visual__line {
        font-size: 100px;
        letter-spacing: -3px;
    }

    .fn-visual__text {
        margin-bottom: 60px;
    }

    .fn-visual__main {
        max-width: 760px;
        margin-bottom: 60px;
    }

    .fn-visual__phone img {
        width: 170px;
    }

    .fn-visual__phones {
        gap: 20px;
    }

    /* App Preview */
    .fn-preview__block {
        gap: 60px;
        margin-bottom: 100px;
    }

    .fn-heading--sm {
        font-size: 32px;
    }

    /* Screenshots - Masonry */
    .fn-screens__header .fn-heading {
        font-size: 40px;
    }

    .fn-screens__grid {
        column-gap: 20px;
    }

    .fn-screens__item {
        margin-bottom: 20px;
    }
}

/* =============================================
   RESPONSIVE: 768px (Tablet)
   ============================================= */
@media (max-width: 768px) {
    .fn-container {
        padding: 0 24px;
    }

    .fn-section {
        padding: 72px 0;
    }

    /* Intro */
    .fn-intro__layout {
        flex-direction: column;
        gap: 24px;
    }

    .fn-intro__title {
        font-size: 30px;
    }

    .fn-intro__lead {
        font-size: 16px;
    }

    /* Problem & Solution */
    .fn-probsol__block,
    .fn-probsol__block--reverse {
        flex-direction: column;
        gap: 28px;
    }

    .fn-probsol__block {
        margin-bottom: 72px;
    }

    .fn-probsol__text--right {
        text-align: left;
    }

    .fn-probsol__showcase-image {
        max-width: 100%;
    }

    /* Design System — vertical layout */
    .fn-gantt__header {
        display: none;
    }

    .fn-gantt__dividers {
        display: none;
    }

    .fn-gantt__body {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }

    .fn-gantt__bar {
        grid-column: unset;
        grid-row: unset;
        margin: 0;
        padding: 16px 20px;
        font-size: 14px;
        font-style: italic;
        display: flex;
        align-items: center;
        gap: 16px;
        border-left: 3px solid rgba(124, 91, 240, 0.5);
    }

    .fn-gantt__bar--research {
        margin-top: 0;
    }
    .fn-gantt__bar--develop {
        margin-top: 0;
    }

    .fn-gantt__week {
        display: inline-block;
        font-size: 11px;
        font-weight: 400;
        font-style: normal;
        color: #7a7a9a;
        min-width: 64px;
        flex-shrink: 0;
    }

    /* Color & Typography */
    .fn-coltypo__grid {
        grid-template-columns: 1fr;
    }

    .fn-coltypo__font-name {
        font-size: 48px;
    }

    .fn-coltypo__font-watermark {
        font-size: 140px;
    }

    .fn-coltypo__typo-watermark {
        font-size: 160px;
    }

    /* Branding */
    .fn-branding__header {
        flex-direction: column;
        gap: 16px;
    }

    .fn-branding__desc {
        text-align: left;
    }

    .fn-branding__grid {
        grid-template-columns: 1fr;
    }

    .fn-branding__card--mockup,
    .fn-branding__card--logo,
    .fn-branding__card--integrations {
        grid-column: 1 / -1;
    }

    /* Flow Chart */
    .fn-flowchart__header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 32px;
    }

    .fn-flowchart__desc {
        text-align: left;
    }

    /* Vertical tree conversion */
    .fn-fc {
        overflow-x: visible;
        overflow-y: visible;
        padding: 10px 0;
    }

    /* Stack node above its children */
    .fn-fc__item {
        flex-direction: column;
        align-items: flex-start;
        padding: 4px 0;
    }

    /* Indentation for child lists */
    .fn-fc__list:not(.fn-fc__root) {
        padding-left: 28px;
        width: 100%;
    }

    /* Vertical connector lines */
    .fn-fc__list:not(.fn-fc__root) > .fn-fc__item::before {
        left: -16px;
        width: 16px;
        height: 1.5px;
        top: 15px;
    }

    .fn-fc__list:not(.fn-fc__root) > .fn-fc__item::after {
        left: -16px;
    }

    .fn-fc__list:not(.fn-fc__root) > .fn-fc__item:first-child::after {
        top: 15px;
    }

    .fn-fc__list:not(.fn-fc__root) > .fn-fc__item:last-child::after {
        bottom: calc(100% - 15px);
    }

    .fn-fc__list:not(.fn-fc__root) > .fn-fc__item:only-child::after {
        display: none;
    }

    .fn-fc__node--parent::after {
        display: none;
    }

    .fn-fc__node--logo::after {
        display: none;
    }

    .fn-fc__node {
        padding: 7px 16px;
        font-size: 11px;
    }

    .fn-fc__node--accent {
        padding: 8px 20px;
        font-size: 12px;
    }

    .fn-fc__node--logo {
        padding: 14px 20px;
    }

    .fn-fc__node--logo svg {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .fn-fc__node--logo span {
        font-size: 10px;
    }

    /* Visual Design */
    .fn-visual {
        padding: 80px 0;
    }

    .fn-visual__line {
        font-size: 72px;
        letter-spacing: -2px;
    }

    .fn-visual__text {
        margin-bottom: 48px;
    }

    .fn-visual__main {
        max-width: 600px;
        margin-bottom: 48px;
        border-radius: 16px;
    }

    .fn-visual__main img {
        border-radius: 16px;
    }

    .fn-visual__phones {
        gap: 16px;
        padding: 0 20px;
        flex-wrap: wrap;
    }

    .fn-visual__phone img {
        width: 140px;
        border-radius: 12px;
    }

    .fn-visual__phone--side {
        transform: translateY(10px);
    }

    .fn-visual__phone--center {
        transform: translateY(-10px) scale(1.04);
    }

    /* App Preview */
    .fn-preview__block,
    .fn-preview__block--reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }

    .fn-preview__img {
        flex: none;
        width: 100%;
    }

    .fn-preview__info {
        flex: none;
        width: 100%;
    }

    .fn-heading--sm {
        font-size: 28px;
    }

    .fn-preview__img img {
        border-radius: 12px;
    }

    /* Screenshots */
    .fn-screens__header {
        margin-bottom: 40px;
    }

    .fn-screens__header .fn-heading {
        font-size: 32px;
    }

    .fn-screens__badge {
        padding: 6px 16px;
    }

    .fn-screens__badge-text {
        font-size: 14px;
    }

    .fn-screens__grid {
        column-count: 2;
        column-gap: 16px;
    }

    .fn-screens__item {
        margin-bottom: 16px;
        border-radius: 12px;
    }

    /* Thanks */
    .fn-thanks {
        padding: 100px 0 80px;
    }

    .fn-thanks__title {
        font-size: 36px;
    }
}

/* =============================================
   RESPONSIVE: 480px (Mobile)
   ============================================= */
@media (max-width: 480px) {
    .fn-container {
        padding: 0 16px;
    }

    .fn-section {
        padding: 56px 0;
    }

    .fn-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .fn-intro__title {
        font-size: 26px;
    }

    .fn-intro__lead {
        font-size: 15px;
    }

    .fn-intro__body {
        font-size: 12px;
    }

    .fn-probsol__desc {
        font-size: 12px;
    }

    .fn-probsol__block {
        margin-bottom: 56px;
    }

    .fn-gantt__bar {
        font-size: 13px;
        padding: 14px 16px;
        gap: 12px;
    }

    .fn-gantt__week {
        font-size: 10px;
        min-width: 54px;
    }

    .fn-coltypo__card--font,
    .fn-coltypo__card--typo {
        padding: 24px;
        min-height: 260px;
    }

    .fn-coltypo__font-name {
        font-size: 40px;
    }

    .fn-coltypo__font-watermark {
        font-size: 100px;
        bottom: 20px;
        right: 20px;
    }

    .fn-coltypo__typo-title {
        font-size: 17px;
    }

    .fn-coltypo__typo-watermark {
        font-size: 120px;
    }

    .fn-coltypo__swatch {
        padding: 10px 16px;
        font-size: 12px;
    }

    .fn-branding__grid {
        gap: 12px;
    }

    /* Flow Chart — mobile */
    .fn-fc__list:not(.fn-fc__root) {
        padding-left: 24px;
    }

    .fn-fc__list:not(.fn-fc__root) > .fn-fc__item::before {
        left: -14px;
        width: 14px;
    }

    .fn-fc__list:not(.fn-fc__root) > .fn-fc__item::after {
        left: -14px;
    }

    .fn-fc__node {
        padding: 6px 14px;
        font-size: 10px;
    }

    .fn-fc__node--accent {
        padding: 7px 16px;
        font-size: 11px;
    }

    .fn-fc__node--logo {
        padding: 12px 16px;
    }

    .fn-fc__node--logo svg {
        width: 36px;
        height: 36px;
        padding: 5px;
    }

    .fn-fc__node--logo span {
        font-size: 9px;
    }

    /* Visual Design — mobile */
    .fn-visual {
        padding: 60px 0;
    }

    .fn-visual__line {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .fn-visual__text {
        margin-bottom: 32px;
    }

    .fn-visual__main {
        max-width: 100%;
        margin-bottom: 32px;
        border-radius: 12px;
    }

    .fn-visual__main img {
        border-radius: 12px;
    }

    .fn-visual__phones {
        gap: 12px;
        padding: 0 10px;
    }

    .fn-visual__phone img {
        width: 100px;
        border-radius: 10px;
    }

    .fn-visual__phone--side {
        opacity: 0.5;
        transform: translateY(8px);
    }

    .fn-visual__phone--center {
        transform: translateY(-8px) scale(1.03);
    }

    .fn-float {
        animation: none;
    }

    /* App Preview — mobile */
    .fn-preview__block {
        gap: 32px;
        margin-bottom: 60px;
    }

    .fn-heading--sm {
        font-size: 24px;
        gap: 8px;
    }

    .fn-preview__badge {
        padding: 5px 12px;
    }

    .fn-preview__badge-text {
        font-size: 12px;
    }

    .fn-text {
        font-size: 13px;
    }

    .fn-preview__img img {
        border-radius: 10px;
    }

    /* Screenshots — mobile masonry */
    .fn-screens__header .fn-heading {
        font-size: 26px;
    }

    .fn-screens__badge {
        padding: 5px 14px;
    }

    .fn-screens__badge-text {
        font-size: 12px;
    }

    .fn-screens__grid {
        column-count: 2;
        column-gap: 12px;
    }

    .fn-screens__item {
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .fn-screens__item:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .fn-screens__item::after {
        display: none;
    }

    .fn-thanks {
        padding: 80px 0 56px;
    }

    .fn-thanks__title {
        font-size: 28px;
    }

    .fn-thanks__msg {
        font-size: 13px;
    }
}

/* =============================================
   RESPONSIVE: 375px (Small Mobile)
   ============================================= */
@media (max-width: 375px) {
    .fn-intro__title {
        font-size: 22px;
    }

    .fn-coltypo__font-name {
        font-size: 32px;
    }

    /* Visual Design — small mobile */
    .fn-visual__line {
        font-size: 36px;
        letter-spacing: -0.5px;
    }

    .fn-visual__phones {
        gap: 8px;
        padding: 0;
    }

    .fn-visual__phone img {
        width: 70px;
        border-radius: 8px;
    }

    /* Screenshots — small mobile */
    .fn-screens__grid {
        column-count: 1;
        column-gap: 0;
    }

    .fn-screens__item {
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .fn-screens__header .fn-heading {
        font-size: 24px;
    }

    .fn-thanks__title {
        font-size: 24px;
    }

    /* Flow Chart — small mobile */
    .fn-fc__list:not(.fn-fc__root) {
        padding-left: 20px;
    }

    .fn-fc__list:not(.fn-fc__root) > .fn-fc__item::before {
        left: -12px;
        width: 12px;
    }

    .fn-fc__list:not(.fn-fc__root) > .fn-fc__item::after {
        left: -12px;
    }

    .fn-fc__node {
        padding: 5px 12px;
        font-size: 9px;
    }

    .fn-fc__node--accent {
        padding: 6px 14px;
        font-size: 10px;
    }

    .fn-fc__node--logo {
        padding: 10px 14px;
    }

    .fn-fc__node--logo svg {
        width: 32px;
        height: 32px;
        padding: 4px;
    }

    .fn-fc__node--logo span {
        font-size: 8px;
    }
}
