/* Homepage composition. Shared tokens and components live in fintech-system.css. */

.fc-home-page { min-height: 100vh; overflow: clip; }

/* Hero */
.fc-home-hero { background: var(--ft-white); min-height: auto; overflow: hidden; padding: 108px 0 32px; position: relative; }
.fc-home-hero__glow { display: none; }
.fc-home-hero__grid-wrap { margin-inline: auto; max-width: 1440px; padding-inline: 32px; width: 100%; }
.fc-home-hero__grid-wrap .fc-home-hero__grid { max-width: none; padding-inline: 72px; width: 100%; }
.fc-home-hero__grid { background: var(--ft-black); align-items: center; border-radius: 32px; color: var(--ft-white); display: grid; gap: 56px; grid-template-columns: minmax(0, 1.12fr) minmax(440px, .88fr); min-height: 660px; padding: 72px; position: relative; }
.fc-home-redesign .fc-home-eyebrow { align-items: center; display: flex; gap: 10px; margin-bottom: 40px; }
.fc-home-eyebrow span { background: var(--ft-lime); border-radius: 50%; height: 7px; width: 7px; }
.fc-home-hero h1 { color: var(--ft-white); font-size: clamp(48px, 4.15vw, 64px); font-weight: 760; line-height: .98; max-width: 650px; }
.fc-home-redesign .fc-home-hero__lead { color: var(--ft-muted-on-dark); font-size: 20px; line-height: 1.45; margin-top: 32px; max-width: 610px; }
.fc-home-hero__actions { align-items: center; display: flex; gap: 28px; margin-top: 38px; }
.fc-home-hero .fc-home-button { background: var(--ft-lime); border-color: var(--ft-lime); color: var(--ft-black) !important; }
.fc-home-hero .fc-home-button:hover { background: #C8F03F; border-color: #C8F03F; }
.fc-home-hero .fc-home-text-link { color: var(--ft-white); }
.fc-home-hero .fc-home-text-link span { color: var(--ft-black); }
.fc-home-hero__visual { align-items: center; display: flex; isolation: isolate; justify-content: center; min-height: 550px; position: relative; }
.fc-home-card-stack { height: 430px; max-width: 560px; position: relative; width: 100%; z-index: 4; }
.fc-home-mini-card { background: var(--ft-black-soft); border: 1px solid rgba(255, 255, 255, .28); border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); color: #fff; display: flex; flex-direction: column; height: 200px; justify-content: flex-end; overflow: hidden; padding: 24px; position: absolute; transition: transform .25s ease; width: 320px; }
.fc-home-mini-card--left { left: 0; top: 150px; transform: rotate(-9deg); z-index: 1; }
.fc-home-mini-card--center { left: 50%; top: 92px; transform: translateX(-50%) rotate(-1deg); z-index: 3; }
.fc-home-mini-card--right { right: 0; top: 150px; transform: rotate(9deg); z-index: 2; }
.fc-home-mini-card img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.fc-home-mini-card__chip { background: var(--ft-lime); border-radius: 5px; height: 30px; left: 24px; position: absolute; top: 24px; width: 40px; }
.fc-home-mini-card strong { font-size: 20px; }
.fc-home-mini-card small { color: rgba(255, 255, 255, .72); margin-top: 5px; }
.fc-home-hero__status { align-items: center; background: var(--ft-white); border: 1px solid var(--ft-line); border-radius: 17px; box-shadow: 0 18px 40px rgba(5, 5, 7, .18); color: var(--ft-ink); display: flex; gap: 12px; padding: 14px 16px; position: absolute; right: -18px; top: 32px; width: 292px; z-index: 5; }
.fc-home-hero__status > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.fc-home-hero__status strong { color: var(--ft-ink); font-size: 14px; font-weight: 700; line-height: 1.3; }
.fc-home-hero__status small { color: var(--ft-ink); font-size: 12px; font-weight: 500; line-height: 1.35; margin-top: 2px; }
.fc-home-hero__status b { align-items: center; background: var(--ft-lime); border-radius: 50%; color: var(--ft-black); display: flex; flex: 0 0 auto; height: 30px; justify-content: center; width: 30px; }
.fc-home-status-dot { background: var(--ft-lime); border: 4px solid #F0FFB9; border-radius: 50%; height: 15px; width: 15px; }

/* Reusable section heading */
.fc-home-section-heading { align-items: end; display: flex; gap: 50px; justify-content: space-between; margin-bottom: 52px; }
.fc-home-section-heading h2 { color: var(--ft-ink); font-size: clamp(38px, 4vw, 58px); font-weight: 730; line-height: 1.06; margin-top: 14px; max-width: 760px; }
.fc-home-section-heading > p { color: var(--fc-home-muted); font-size: 17px; max-width: 430px; }
.fc-home-section-heading--center { align-items: center; flex-direction: column; text-align: center; }
.fc-home-section-heading--center > p { max-width: 700px; }

/* Product cards */
.fc-home-products { background: var(--ft-white); }
.fc-home-product-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fc-home-redesign .fc-card-item--homepage {
    --color-bg-tertiary: #F3F4F7;
    --color-border-color: var(--ft-line);
    --color-brand-primary: var(--ft-black);
    --color-surface-card: var(--ft-white);
    --color-text-primary: var(--ft-ink);
    --color-text-secondary: var(--ft-muted);
    border: 0;
    border-radius: 28px;
    box-shadow: none;
    min-height: 720px;
    padding: 12px;
    transition: box-shadow .25s ease, transform .25s ease;
}
.fc-home-redesign .fc-card-item--homepage:hover { border-color: transparent; box-shadow: 0 28px 70px rgba(5, 5, 7, .13); transform: translateY(-6px); }
.fc-home-redesign .fc-card-item--homepage-silver { background: var(--ft-silver); }
.fc-home-redesign .fc-card-item--homepage-sage { background: var(--ft-sage); }
.fc-home-redesign .fc-card-item--homepage-lime-wash { background: var(--ft-lime-wash); }
.fc-home-redesign .fc-card-item--homepage .fc-card-item__header { border: 0; padding: 24px 24px 8px; }
.fc-home-redesign .fc-card-item--homepage .fc-card-item__visual { align-items: center; display: flex; min-height: 0; padding: 14px 16px 12px; }
.fc-home-redesign .fc-card-item--homepage .fc-card-item__visual > div { border: 0; box-shadow: 0 28px 70px rgba(5, 5, 7, .24); width: 100%; }
.fc-home-redesign .fc-card-item--homepage .fc-card-item__title { color: var(--ft-ink); font-size: 26px; line-height: 1.08; padding: 14px 24px 0; }
.fc-home-redesign .fc-card-item--homepage .fc-card-item__body { background: var(--ft-white); border-radius: 20px; margin-top: 24px; padding: 28px; }
.fc-home-redesign .fc-card-item--homepage .fc-card-item__meta span { background: var(--ft-white); border-color: var(--ft-line); color: var(--ft-muted); }
.fc-home-redesign .fc-card-item--homepage .fc-card-item__footer { border-color: var(--ft-line); }
.fc-home-redesign .fc-card-item--homepage .fc-card-item__actions button { background: var(--ft-black); border-radius: 14px; color: var(--ft-white); }
.fc-home-redesign .fc-card-item--homepage .fc-card-item__actions a { background: var(--ft-lime); border-color: var(--ft-lime); border-radius: 14px; color: var(--ft-black); }
.fc-home-products__footer { margin-top: 38px; text-align: center; }
.fc-home-products__empty { align-items: center; background: var(--ft-canvas); border-radius: var(--fc-home-radius); display: flex; gap: 30px; justify-content: space-between; padding: 34px; }

/* Use cases */
.fc-home-use-cases { background: var(--ft-black); color: var(--ft-white); }
.fc-home-use-cases__layout { align-items: center; display: grid; gap: 90px; grid-template-columns: .82fr 1.18fr; }
.fc-home-use-cases .fc-home-kicker { color: var(--ft-lime); }
.fc-home-use-cases__intro h2 { color: var(--ft-white); font-size: clamp(40px, 4vw, 60px); line-height: 1.04; margin: 16px 0 24px; }
.fc-home-use-cases__intro > p:not(.fc-home-kicker) { color: var(--ft-muted-on-dark); font-size: 17px; margin-bottom: 32px; }
.fc-home-use-cases .fc-home-button--dark { background: var(--ft-lime); border-color: var(--ft-lime); color: var(--ft-black) !important; }
.fc-home-use-cases .fc-home-button--dark:hover { background: #C8F03F; border-color: #C8F03F; }
.fc-home-use-cases__board { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); transform: rotate(1deg); }
.fc-home-service-chip { align-items: center; background: var(--ft-white); border-radius: 16px; color: var(--ft-ink); display: flex; gap: 14px; min-height: 82px; padding: 15px 17px; transition: transform .2s ease; }
.fc-home-service-chip:hover { transform: translateX(5px); }
.fc-home-service-chip img,
.fc-home-service-chip > span { align-items: center; background: #eef0f5; border-radius: 12px; display: flex; font-weight: 800; height: 48px; justify-content: center; object-fit: contain; padding: 8px; width: 48px; }
.fc-home-service-chip strong { color: var(--ft-ink); flex: 1; font-size: 14px; }
.fc-home-service-chip b { align-items: center; background: var(--ft-black); border-radius: 50%; color: var(--ft-lime); display: flex; flex: 0 0 auto; height: 30px; justify-content: center; width: 30px; }

/* Utility */
.fc-home-utility { background: var(--ft-canvas); }
.fc-home-utility > .fc-home-container { background: var(--ft-black); border-radius: 32px; color: var(--ft-white); padding: 72px; }
.fc-home-utility .fc-home-kicker { color: var(--ft-lime); }
.fc-home-utility .fc-home-section-heading h2 { color: var(--ft-white); }
.fc-home-utility__grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.fc-home-utility-card { border-radius: var(--fc-home-radius); color: var(--ft-ink); display: grid; gap: 18px; grid-template-columns: auto 1fr auto; min-height: 230px; padding: 30px; position: relative; transition: transform .22s ease; }
.fc-home-utility-card:hover { transform: translateY(-5px); }
.fc-home-utility-card > span { color: rgba(11, 12, 16, .66); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.fc-home-utility-card h3 { color: var(--ft-ink); font-size: 30px; line-height: 1.1; margin-bottom: 13px; }
.fc-home-utility-card p { color: rgba(11, 12, 16, .65); max-width: 470px; }
.fc-home-utility-card > b { align-items: center; border: 1px solid var(--ft-ink); border-radius: 50%; color: var(--ft-ink); display: flex; height: 42px; justify-content: center; width: 42px; }
.fc-home-utility-card--silver { background: var(--ft-silver); }
.fc-home-utility-card--mint { background: var(--fc-home-mint); }
.fc-home-utility-card--sand { background: var(--fc-home-sand); }
.fc-home-utility-card--telegram { background: var(--ft-lime); color: var(--ft-ink); }
.fc-home-utility-card--telegram p { color: rgba(11, 12, 16, .68); }

/* Process */
.fc-home-process { background: var(--ft-canvas); padding-block: 96px; }
.fc-home-process__steps { display: grid; gap: 32px; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 64px 0 0; padding: 0; position: relative; }
.fc-home-process__steps::before { background: var(--ft-line); content: ""; height: 2px; left: 18px; position: absolute; right: 18px; top: 20px; }
.fc-home-process__steps li { padding-right: 24px; position: relative; z-index: 1; }
.fc-home-process__label { background: var(--ft-lime); border-radius: 10px; color: var(--ft-black); display: inline-flex; font-size: 13px; font-weight: 800; line-height: 1; padding: 13px 16px; }
.fc-home-process__steps li:last-child .fc-home-process__label { background: var(--ft-black); color: var(--ft-lime); }
.fc-home-process__steps h3 { font-size: 20px; margin: 22px 0 10px; }
.fc-home-process__steps p { color: var(--fc-home-muted); font-size: 14px; max-width: 240px; }

/* Case */
.fc-home-case { background: #fff; }
.fc-home-case__card { background: var(--ft-black-soft); border-radius: 30px; color: var(--ft-white); display: grid; grid-template-columns: .9fr 1.1fr; min-height: 540px; overflow: hidden; }
.fc-home-case__image { overflow: hidden; }
.fc-home-case__image img { height: 100%; object-fit: cover; transition: transform .5s ease; width: 100%; }
.fc-home-case__card:hover .fc-home-case__image img { transform: scale(1.025); }
.fc-home-case__content { display: flex; flex-direction: column; justify-content: center; padding: 60px; }
.fc-home-case .fc-home-kicker { color: var(--ft-lime); }
.fc-home-case__content h2 { color: var(--ft-white); font-size: clamp(34px, 3.6vw, 52px); line-height: 1.07; margin: 15px 0 20px; }
.fc-home-case__content > p:not(.fc-home-kicker) { color: var(--ft-muted-on-dark); font-size: 16px; }
.fc-home-case__content > .fc-home-text-link { margin-top: 28px; }
.fc-home-case__content > .fc-home-text-link { color: var(--ft-white); }

/* Blog */
.fc-home-blog { background: var(--fc-home-paper); }
.fc-home-blog .fc-home-kicker { color: var(--ft-ink); }
.fc-home-blog__grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.fc-home-blog-card { background: #fff; border: 1px solid var(--fc-home-line); border-radius: 20px; overflow: hidden; }
.fc-home-blog-card__image { background: var(--ft-lime); display: flex; height: 210px; overflow: hidden; }
.fc-home-blog-card__image img { height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.fc-home-blog-card:hover img { transform: scale(1.04); }
.fc-home-blog-card__image > span { align-items: center; color: var(--ft-black); display: flex; font-size: 48px; font-weight: 800; justify-content: center; letter-spacing: -.06em; width: 100%; }
.fc-home-blog-card > div { padding: 25px; }
.fc-home-blog-card p { color: var(--fc-home-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.fc-home-blog-card h3 { color: var(--ft-ink); font-size: 21px; line-height: 1.22; margin: 12px 0 22px; }
.fc-home-blog-card > div > a { background: var(--ft-lime); border-radius: 9px; color: var(--ft-black); display: inline-flex; font-size: 13px; font-weight: 700; padding: 8px 11px; }
.fc-home-blog__empty { background: #fff; border: 1px solid var(--fc-home-line); border-radius: 20px; padding: 34px; }

@media (max-width: 1080px) {
    .fc-home-hero__grid-wrap .fc-home-hero__grid { padding-inline: 48px; }
    .fc-home-hero__grid { gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr); padding: 56px 48px; }
    .fc-home-card-stack { transform: scale(.84); transform-origin: center; }
    .fc-home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-home-product-grid > .fc-card-item--homepage:nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
    .fc-home-redesign .fc-card-item--homepage .fc-card-item__visual { padding-inline: 16px; }
}

@media (max-width: 820px) {
    .fc-home-hero__grid-wrap { padding-inline: 0; }
    .fc-home-hero__grid { grid-template-columns: 1fr; padding: 52px 40px; }
    .fc-home-hero__visual { min-height: 440px; }
    .fc-home-card-stack { max-width: 540px; transform: scale(.92); }
    .fc-home-section-heading { align-items: flex-start; flex-direction: column; }
    .fc-home-product-grid { grid-template-columns: 1fr; }
    .fc-home-product-grid > .fc-card-item--homepage:nth-child(3):last-child { grid-column: auto; justify-self: stretch; width: 100%; }
    .fc-home-redesign .fc-card-item--homepage { min-height: 0; }
    .fc-home-utility > .fc-home-container { border-radius: 0; padding: 64px 40px; }
    .fc-home-use-cases__layout { gap: 55px; grid-template-columns: 1fr; }
    .fc-home-utility__grid { grid-template-columns: 1fr; }
    .fc-home-process__steps { grid-template-columns: 1fr 1fr; row-gap: 50px; }
    .fc-home-process__steps::before { display: none; }
    .fc-home-case__card { grid-template-columns: 1fr; }
    .fc-home-case__image { height: 380px; }
    .fc-home-blog__grid { grid-template-columns: 1fr 1fr; }
    .fc-home-blog-card:last-child { grid-column: span 2; }
}

@media (max-width: 600px) {
    .fc-home-hero { padding-top: 88px; }
    .fc-home-hero__grid-wrap { padding-inline: 0; }
    .fc-home-hero__grid { border-radius: 24px; padding: 40px 22px; }
    .fc-home-redesign .fc-home-eyebrow { margin-bottom: 28px; }
    .fc-home-hero h1 { font-size: 44px; line-height: 1.02; }
    .fc-home-redesign .fc-home-hero__lead { font-size: 17px; margin-top: 24px; }
    .fc-home-hero__actions { align-items: stretch; flex-direction: column; gap: 18px; }
    .fc-home-hero__actions .fc-home-text-link { justify-content: center; }
    .fc-home-hero__visual { min-height: 330px; }
    .fc-home-card-stack { height: 300px; max-width: 100%; transform: none; }
    .fc-home-mini-card { border-radius: 15px; height: 150px; padding: 18px; width: 240px; }
    .fc-home-mini-card--left { left: -10px; top: 110px; transform: rotate(-9deg); }
    .fc-home-mini-card--center { top: 48px; }
    .fc-home-mini-card--right { right: -10px; top: 110px; transform: rotate(9deg); }
    .fc-home-hero__status { right: 0; top: 18px; transform: none; width: min(292px, calc(100% - 8px)); }
    .fc-home-section-heading { gap: 24px; margin-bottom: 36px; }
    .fc-home-section-heading h2 { font-size: 38px; }
    .fc-home-product-grid { grid-template-columns: 1fr; }
    .fc-home-redesign .fc-card-item--homepage { border-radius: 22px; padding: 8px; }
    .fc-home-redesign .fc-card-item--homepage .fc-card-item__visual { min-height: 0; padding: 12px; }
    .fc-home-redesign .fc-card-item--homepage .fc-card-item__title { font-size: 25px; }
    .fc-home-redesign .fc-card-item--homepage .fc-card-item__actions { grid-template-columns: 1fr; }
    .fc-home-products__empty { align-items: stretch; flex-direction: column; }
    .fc-home-use-cases__intro h2 { font-size: 40px; }
    .fc-home-use-cases__board { grid-template-columns: 1fr; }
    .fc-home-utility-card { min-height: 210px; padding: 24px; }
    .fc-home-utility-card h3 { font-size: 26px; }
    .fc-home-utility > .fc-home-container { padding: 54px 22px; }
    .fc-home-process__steps { gap: 32px; grid-template-columns: 1fr; margin-top: 42px; }
    .fc-home-process__steps::before { bottom: 8px; display: block; height: auto; left: 16px; right: auto; top: 8px; width: 2px; }
    .fc-home-process__steps li { padding: 0 0 0 48px; }
    .fc-home-process__steps h3 { margin-top: 18px; }
    .fc-home-case__image { height: 290px; }
    .fc-home-case__content { padding: 36px 25px; }
    .fc-home-blog__grid { grid-template-columns: 1fr; }
    .fc-home-blog-card:last-child { grid-column: auto; }
}
