/* ==========================================
   1. HEADER SECTION
   ========================================== */

.header {
    background: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.header .col-9 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header .menu {
    width: 80%;
}

.header ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 96%;
}

.header ul li a {
    text-decoration: none;
    color: #01163a;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
    font-weight: 500;
}

.sign-in-button a {
    background: linear-gradient(to right, #0360fd, #01163a);
    text-decoration: none;
    color: #ffffff;
    padding: 6px 25px;
    border-radius: 10px;
    font-family: "Momo Trust Display", sans-serif;
    display: inline-block;
    font-size: 14px;
}

.sign-in-button span {
    display: inline-grid;
}

/* ==========================================
   2. HERO SECTION
   ========================================== */

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 670px;
    background-image: url('assets/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    text-align: center;
}

.dot {
    font-weight: 800;
}

.hero-content h1 {
    font-size: 74px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1em;
    margin-top: 55px;
}

.hero-content .grad-1 {
    background: linear-gradient(to right, #0360fd, #013285);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    line-height: 1;
}

.hero-content .grad-2 {
    background: linear-gradient(to right, #000000, #013285);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    line-height: 1.25em;
    margin-top: -10px;
}

.hero-content p {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-content img {
    margin-bottom: 50px;
}

/* ==========================================
   3. AI IDENTITIES SECTION
   ========================================== */

.ai-identities {
    background: #ffffff;
    text-align: center;
    padding: 80px 0 0;
    height: 670px;
}

.ai-identities h2 {
    font-size: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
    color: #01163a;
}

.ai-identities .ai-identities-content p {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #01163a;
    margin-bottom: 25px;
}

.ai-identities-card {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Shared Typography & Layout inside AI Cards */
.ai-identities .same-fonts {
    font-family: "Momo Trust Display", sans-serif;
    font-size: 60px;
    color: #0360fd;
    margin: 0;
    font-weight: 100;
    transition: color 0.5s ease-in-out;
}

.ai-identities .card-heading {
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 100;
    letter-spacing: -0.5px;
    text-align: left;
    z-index: 1;
    transition: color 0.5s ease-in-out;
}

.ai-identities .card-text {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    max-width: 250px;
    transition: color 0.5s ease-in-out;
    z-index: 1;
}

.ai-identities .icon-text {
    display: flex;
    width: 270px;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

/* Card Icons */
.ai-identities img {
    border: solid 1px #0360fd8c;
    padding: 15px;
    border-radius: 10px;
    background: #ffffff;
    margin-bottom: 10px;
    width: 58px;
    height: 58px;
    z-index: 1;
    object-fit: contain;
}

.ai-identities .okx-logo {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    background: #ffffff;
    padding: 15px 8px;
    object-fit: contain;
    border: solid 1px #0360fd8c;
    z-index: 1;
}

/* Card 1 & Card 3 (Side Cards with Slide-Up Hover Effect) */
.ai-identities .card1,
.ai-identities .card3 {
    background: #F2F7FF;
    width: 390px;
    display: flex;
    flex-direction: column;
    border: solid 1px #0360fd8c;
    height: 223px;
    position: relative;
    overflow: hidden;
    transition: height 0.5s ease-in-out,
                border-radius 0.5s ease-in-out;
}

/* Hover — grows to card 2's height + rounded top corners */
.ai-identities .card1:hover,
.ai-identities .card3:hover {
    height: 260px;
    border-radius: 20px 20px 0 0;
}

.ai-identities .card1 {
    padding: 30px 0 30px 40px;
    border-radius: 20px 0 0 20px;
    border-right: 0;
}

.ai-identities .card3 {
    padding: 30px 40px 30px 80px;
    border-radius: 0 20px 20px 0;
    border-left: 0;
}

.ai-identities .card3 .card-text {
    max-width: 240px;
}

/* Sliding Gradient Background Overlay */
.ai-identities .card1::before,
.ai-identities .card3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0360fd, #01163a);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 0;
}

/* Hover Triggers */
.ai-identities .card1:hover::before,
.ai-identities .card3:hover::before {
    transform: translateY(0);
}

.ai-identities .card1:hover .card-heading,
.ai-identities .card3:hover .card-heading,
.ai-identities .card1:hover .card-text,
.ai-identities .card3:hover .card-text,
.ai-identities .card1:hover .same-fonts,
.ai-identities .card3:hover .same-fonts {
    color: #ffffff;
}

/* Card 2 (Featured Center Card) */
.ai-identities .card2 {
    background: linear-gradient(180deg, #0360fd, #01163a);
    width: fit-content;
    display: flex;
    flex-direction: column;
    border: none;
    padding: 30px 40px;
    border-radius: 20px 20px 0 0;
    height: 260px !important;
    justify-content: center;
    box-shadow: 0px 0px 20px 8px #00000054;
    z-index: 2;
    color: #ffffff;
    position: relative;
}

.ai-identities .card2::before {
    display: none;
}

.ai-identities .card2 .same-fonts {
    color: #ffffff;
    font-size: 60px;
    margin: 0;
    font-weight: 100;
}

.ai-identities .card2 .card-heading,
.ai-identities .card2 .card-text {
    color: #ffffff;
}

.ai-identities .card2 img {
    object-fit: cover;
    padding: 10px;
}

/* ==========================================
   4. VERIFY TRANSACTION + ECOSYSTEM
   ========================================== */

.verify-transaction {
    background: #01163a;
    padding-bottom: 80px;
}

.laptop-img {
    display: flex;
    margin-top: -165px;
}

.laptop-img img {
    margin: 0 auto;
}

.verify-section-content {
    color: #ffffff;
    text-align: center;
    margin-top: 10px;
}

.verify-section-content h2 {
    font-size: 40px;
    font-family: 'Poppins';
    font-weight: 800;
}

.verify-section-content span {
    color: #04DE38;
}

.verify-section-content h5 {
    font-size: 22px;
    font-family: 'Poppins';
    font-weight: 400;
    letter-spacing: -0.5px;
}

.verify-section-content p {
    font-size: 16px;
    font-family: poppins;
    letter-spacing: -0.5px;
    max-width: 490px;
    margin: auto;
}

.verify-section-content.ecosystem {
    margin-top: 80px;
    margin-bottom: 35px;
}

.ecosystem-img {
    display: flex;
    justify-content: center;
    column-gap: 30px;
}

.ecosystem-img img {
    width: 100%;
    background: #012561;
    border-radius: 20px;
    border: 1px solid #0360fd;
    object-fit: contain;
    height: 100%;
    margin-bottom: 30px;
}

.imag1, .imag2, .imag3 {
    width: 33%;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.ecosystem-img h2 {
    font-family: 'momo trust display';
    font-weight: 100;
    font-size: 26px;
}

.ecosystem-img p {
    font-family: poppins;
    font-size: 16px;
    max-width: 260px;
}

/* ==========================================
   5. EXPERT OPINIONS (EXPANDING CARDS)
   ✅ GLITCH-FREE VERSION
   - Only flex-grow animates (no height animation)
   - Info panel has a FIXED width (set by JS) so
     text never re-wraps → no ghosting/jitter
   - Row height is constant → no vertical bounce
   ========================================== */

.expert-opinions {
    background: #ffffff;
    padding: 90px 0 90px;
}

.expert-opinions-content {
    text-align: center;
    margin-bottom: 50px;
}

.expert-opinions-content h2 {
    font-size: 44px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #01163a;
    margin-bottom: 10px;
}

.expert-opinions-content h5 {
    font-size: 22px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #01163a;
    margin-bottom: 20px;
}

.expert-opinions-content p {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #01163a;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Cards Layout */
.expert-cards {
    display: flex;
    align-items: stretch;
    column-gap: 30px;
}

/* Base Card — ONLY flex-grow animates */
.expert-card {
    flex: 1 1 0%;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #ffffff;
    cursor: pointer;
    display: flex; /* info panel becomes a flex child */
    box-shadow: 0px 8px 24px rgba(1, 22, 58, 0.10);
    transition: flex-grow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                transform 0.3s ease;
}

.expert-card:not(.active):hover {
    transform: translateY(-8px);
    box-shadow: 0px 15px 35px rgba(3, 96, 253, 0.25);
}

/* Active (Expanded) Card */
.expert-card.active {
    flex-grow: 3.5;
    cursor: default;
    box-shadow: 0px 20px 45px rgba(3, 96, 253, 0.25);
}

/* Blue gradient as a fading overlay (gradients can't
   interpolate, so we cross-fade an ::before instead) */
.expert-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0360fd, #01163a);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.expert-card.active::before {
    opacity: 1;
}

/* Photo — absolute, morphs between full-bleed and
   inset. Sits ABOVE the info so it slides over the
   fading text during collapse (clean, no overlap mess). */
.expert-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    z-index: 2;
    transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                bottom 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                left 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-radius 0.5s ease;
}

.expert-card.active .expert-photo {
    top: 30px;
    bottom: 30px;
    left: 30px;
    width: calc(38% - 30px);
    border-radius: 20px;
}

.expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* keeps the face visible */
    display: block;
}

/* Info Panel — FIXED width (JS sets --expert-info-w),
   so text layout is 100% stable during the animation.
   Revealed/clipped by the card's overflow:hidden. */
.expert-info {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 318px;
    margin-left: calc(38% + 25px);
    margin-right: 30px;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease,
                visibility 0s linear 0.25s;
}

.show-mobile{
    display: none;
}

.expert-card.active .expert-info {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease 0.12s,
                visibility 0s;
}

/* Expanded Card Typography */
.expert-card .company-logo img {
    max-width: 170px;
    max-height: 55px;
    margin-bottom: 25px;
}

.expert-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.expert-card h6 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 20px;
}

.expert-card .expert-quote {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 15px;
}

.expert-card .expert-source {
    margin-top: 0;
}

.expert-card .expert-source p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   6. CANADIAN FOUNDATION SECTION
   ========================================== */

.canadian-foundation {
    position: relative;
    background-image: url('assets/certificate-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 90px 0 90px;
}

/* Blue city image — full-bleed right panel */
.foundation-right-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('/assets/Canadian-City-BG.png') center/cover no-repeat;
}

/* Left content */
.foundation-content {
    position: relative;
    z-index: 1;
}

.foundation-content h2 {
    font-size: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    color: #01163a;
    margin-bottom: 20px;
}

.foundation-flag {
    width: 56px;
    border-radius: 6px;
    vertical-align: middle;
    margin-left: 8px;
    margin-top: -8px;
}

.foundation-subtext {
    font-size: 22px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #123c7c;
    max-width: 450px;
    line-height: 1.45;
    margin-bottom: 45px;
}

/* Detail grid — 2x2 */
.foundation-details {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    column-gap: 60px;
    row-gap: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    column-gap: 15px;
}

/* White rounded icon box */
.detail-icon {
    width: 54px;
    height: 54px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: solid 1px #0360fd;
}

.detail-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.detail-text h6 {
    font-family: momo trust display;
    font-size: 18px;
    font-weight: 100;
    color: #01163a;
    margin-bottom: 2px;
}

.detail-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #01163A;
    margin: 0;
}

/* Certificate — hangs below the section like the design */
.certificate-img {
    position: relative;
    z-index: 3;
    text-align: center;
}

.certificate-img img {
    position: absolute;
    width: 100%;
    max-width: 100%;
    filter: drop-shadow(0 25px 40px rgba(1, 22, 58, 0.25));
    object-fit: cover;
    bottom: -345px;
    right: 0;
    height: 590px;
    overflow: visible;
}

/* ==========================================
   7. COMMUNITY FEEDBACK (CAROUSEL)
   ========================================== */

.community-feedback {
    background: #E9F1FE;
    padding: 60px 0 70px;
    overflow: hidden;
}

.feedback-heading h2 {
    text-align: center;
    font-size: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
    color: #01163a;
    margin-bottom: 50px;
}

/* Viewport — starts at container-left, bleeds to the right
   edge of the screen (so the 4th card gets cut off like the design) */
.feedback-viewport {
    position: relative;
    overflow: hidden;
    /* margin-right: calc(50% - 50vw); */
}

/* Left & right fade overlays */
/* .feedback-viewport::before,
.feedback-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 160px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feedback-viewport::before {
    left: 0;
    background: linear-gradient(to right, #E9F1FE 0%, rgba(233, 241, 254, 0) 100%);
}

.feedback-viewport::after {
    right: 0;
    background: linear-gradient(to left, #E9F1FE 0%, rgba(233, 241, 254, 0) 100%);
} */

.feedback-viewport.fade-left::before { opacity: 1; }
.feedback-viewport.fade-right::after { opacity: 1; }

.feedback-track {
    display: flex;
    column-gap: 32px;
    width: max-content;
    transition: transform 0.6s cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* Cards */
.feedback-card {
    flex: 0 0 360px;
    border-radius: 20px;
    padding: 32px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.feedback-card.dark {
    background: #01163a;
}

.feedback-card.blue {
    background: #0360fd;
}

/* Staggered layout — even cards (blue) sit lower */
.feedback-card:nth-child(even) {
    margin-top: 35px;
}

/* Stars */
.feedback-card .stars {
    color: #FFB400;
    font-size: 22px;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

/* Quote */
.feedback-card p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: justify;
    margin-bottom: 22px;
}

/* Name & Flag */
.feedback-card h5 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.feedback-card .feedback-flag {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 3px;
    display: inline-block;
}

/* Navigation Buttons */
.feedback-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 12px;
    margin-top: 50px;
}

.feedback-nav button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-nav .prev-btn {
    background: #ffffff;
    border: 1px solid #01163a;
    color: #01163a;
}

.feedback-nav .next-btn {
    background: linear-gradient(180deg, #0360fd, #01163a);
    border: none;
    color: #ffffff;
    box-shadow: 0px 8px 18px rgba(3, 96, 253, 0.4);
}

.feedback-nav button:hover:not(:disabled) {
    transform: translateY(-3px);
}

.feedback-nav button:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* ==========================================
   8. SAAS PLANS (INFINITE COVERFLOW CAROUSEL)
   ========================================== */

.saas-plans {
    background: #ffffff;
    padding: 90px 0 80px;
    overflow: hidden;
}

.saas-heading h2 {
    text-align: center;
    font-size: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
    color: #01163a;
    /* margin-bottom: 55px; */
}

/* Carousel viewport — position relative + edge fades */
.saas-carousel {
    position: relative;  /* anchors the fade overlays */
    overflow: hidden;
    width: 100%;
    max-width: 1320px;   /* matches Bootstrap container width */
    margin: 0 auto;      /* keeps it centered */
}

/* Left & right fade overlays — always visible (infinite loop) */
.saas-carousel::before,
.saas-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 130px;
    z-index: 3;              /* sits above the active card (z-index: 2) */
    pointer-events: none;    /* clicks pass through to the cards */
}

.saas-carousel::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.saas-carousel::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.saas-track {
    display: flex;
    align-items: center;
    column-gap: 30px;
    width: max-content;
    transition: transform 0.6s cubic-bezier(0.65, 0.05, 0.36, 1);
    padding: 30px 0; /* room for the scaled-up active card */
}

/* Plan Cards */
.plan-card {
    flex: 0 0 200px;
    width: 200px;
    height: 250px;
    background: #ccd0d8;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.65, 0.05, 0.36, 1),
                background 0.6s ease,
                box-shadow 0.6s ease,
                opacity 0.6s ease;
}

.plan-card img {
    width: 72%;
    object-fit: contain;
}

/* Coverflow depth — cards shrink & fade with distance from center */
.plan-card.dist-1 { transform: scale(0.9); }
.plan-card.dist-2 { transform: scale(0.82); opacity: 0.75; }
.plan-card.dist-3 { transform: scale(0.78); opacity: 0.45; }

/* Active (center) card */
.plan-card.active {
    background: linear-gradient(180deg, #0360fd, #01163a);
    transform: scale(1.15);
    /* box-shadow: 0px 18px 40px rgba(3, 96, 253, 0.35); */
    z-index: 2;
    cursor: default;
}

/* Plan name under the active card */
.plan-name-label {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #01163a;
    /* margin-top: 35px; */
    min-height: 42px;
}

/* Navigation — scoped to arrows only, so the
   40px button styles no longer break the pagination dots */
.saas-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    margin-top: 30px;
}

.saas-nav .prev-btn,
.saas-nav .next-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.saas-nav .prev-btn {
    background: #ffffff;
    border: 1px solid #01163a;
    color: #01163a;
}

.saas-nav .next-btn {
    background: linear-gradient(180deg, #0360fd, #01163a);
    border: none;
    color: #ffffff;
    box-shadow: 0px 8px 18px rgba(3, 96, 253, 0.4);
}

.saas-nav .prev-btn:hover,
.saas-nav .next-btn:hover {
    transform: translateY(-3px);
}

/* Dots — small round indicators like the design */
.plan-dots {
    display: flex;
    align-items: center;
    column-gap: 12px;
}

.plan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #C4CDDC;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.plan-dot.active {
    background: #01163a;
    transform: scale(1.5);
}

/* ==========================================
   9. FOOTER SECTION
   ========================================== */

.footer {
    background: #01163a;
    padding: 50px 0;
}

.footer .row {
    align-items: center;
}

.footer .border-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.17) !important;
    padding-bottom: 20px;
}

.footer-menu ul {
    display: flex;
    list-style: none;
    color: #ffffff;
    justify-content: space-between;
    margin: 0;
    padding: 0 0 0 80px;
}

.footer-menu ul a {
    text-decoration: none;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
}

.footer-social-icons {
    display: flex;
    justify-content: flex-end;
}

.footer-social-icons img {
    margin-right: 10px;
}

.footer-social-icons img:nth-child(3) {
    margin-right: 0;
}

.footer-terms-conditions {
    width: 50%;
    float: inline-end;
}

.footer-terms-conditions ul {
    padding: 0;
}

.footer-terms-conditions a {
    font-size: 14px !important;
}

.copyright-text {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
}

.copyright-text p {
    margin: 0;
}

/* ==========================================
   10. HELPER UTILITIES
   ========================================== */

.padding-top {
    padding-top: 20px;
}

.card1.card3 {
    border-right: 1px solid #0360fd8c;
}

/* ==========================================
   11. OFFICIAL PARTNERS SECTION
   ========================================== */

.official-partners {
    background: #ffffff;
    padding: 60px 0 90px;
}

.partners-heading h2 {
    text-align: center;
    font-size: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
    color: #01163a;
    margin-bottom: 45px;
}

/* Logo cards row */
.partners-grid {
    display: flex;
    justify-content: center;
    column-gap: 25px;
}

/* Individual partner card */
.partner-card {
    flex: 0 0 200px;
    height: 120px;
    background: #ffffff;
    border: 1px solid #1e7cfe;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-card img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

/* Subtle hover — matches the site's interactive feel */
.partner-card:hover {
    transform: translateY(-6px);
    border-color: #0360fd;
    box-shadow: 0px 12px 25px rgba(3, 96, 253, 0.15);
}

/* ==========================================
   12. HERO ENTRANCE ANIMATION (ON PAGE LOAD)
   ========================================== */

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageIn {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Line 1 — slides in first */
.hero-content .grad-1 {
    animation: heroFadeUp 0.9s cubic-bezier(0.65, 0.05, 0.36, 1) 0.15s both;
}

/* Line 2 — follows */
.hero-content .grad-2 {
    animation: heroFadeUp 0.9s cubic-bezier(0.65, 0.05, 0.36, 1) 0.35s both;
}

/* Subtitle — delete this rule if you want it static */
.hero-content p {
    animation: heroFadeUp 0.9s cubic-bezier(0.65, 0.05, 0.36, 1) 0.55s both;
}

/* Banner image — rises + gently scales in last */
.banner-img img {
    animation: heroImageIn 1s cubic-bezier(0.65, 0.05, 0.36, 1) 0.7s both;
}

/* Respect users who disable animations */
@media (prefers-reduced-motion: reduce) {
    .hero-content .grad-1,
    .hero-content .grad-2,
    .hero-content p,
    .banner-img img {
        animation: none;
    }
}

/* ==========================================
   13. HAMBURGER MENU
   ========================================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid rgba(1, 22, 58, 0.25);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #01163a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================
   14. RESPONSIVE
   ========================================== */

/* ---------- ≤1199px : shrink AI cards ---------- */
@media (max-width: 1199px) {
    .ai-identities .card1,
    .ai-identities .card3 { width: 300px; }
    .ai-identities .icon-text { width: 230px; }
    .ai-identities .card1 { padding-left: 30px; }
    .ai-identities .card3 { padding: 30px 30px 30px 50px; }
    .ai-identities .card-text,
    .ai-identities .card3 .card-text { max-width: 200px; }
    .ai-identities .card2 { padding: 25px 30px; }
}

/* ---------- ≤991px : hamburger + stacked layout ---------- */
@media (max-width: 991px) {

    /* Header / mobile menu */
    .header { position: relative; }
    .header .col-3 { width: auto; flex: 1 1 auto; max-width: none; }
    .header .col-9 { width: auto; flex: 0 0 auto; max-width: none; gap: 12px; }
    .header .hamburger { display: flex; }
    .header .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        background: linear-gradient(rgb(3, 96, 253), rgb(1, 22, 58));
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.45s ease;
        box-shadow: 0 18px 30px rgba(1, 22, 58, 0.08);
        z-index: 60;
    }
    .header .menu.open { max-height: 430px; }
    .header .menu ul { flex-direction: column; width: 100%; padding: 8px 25px 18px; }
    .header .menu ul li .dot { display: none; }
    .header .menu ul li a {
        display: block;
        padding: 13px 0;
        border-bottom: 1px solid rgb(255 255 255 / 37%);
    }
    .logo img { max-width: 160px; height: auto; }

    /* Hero */
    .hero-section { height: auto; padding: 70px 0 50px; }
    .hero-content h1 { font-size: 48px; margin-top: 30px; }
    .banner-img img { max-width: 100%; height: auto; }

    /* AI identities — cards stack */
    .ai-identities { height: auto; padding: 70px 0 50px; }
    .ai-identities-card { flex-direction: column; align-items: center; row-gap: 22px; }
    .ai-identities .card1,
    .ai-identities .card3 {
        width: 100%;
        max-width: 500px;
        height: auto;
        min-height: 220px;
        border: 1px solid #0360fd8c;
        border-radius: 20px !important;
        padding: 30px 35px;
    }
    .ai-identities .card1:hover,
    .ai-identities .card3:hover { height: auto; border-radius: 20px !important; }
    .ai-identities .card2 {
        width: 100%;
        max-width: 500px;
        height: auto !important;
        min-height: 240px;
        border-radius: 20px;
    }
    .ai-identities .icon-text { width: 100%; }

    /* Verify + ecosystem */
    .verify-transaction { padding-top: 50px; }
    .laptop-img { margin-top: 40px; }
    .laptop-img img { max-width: 100%; height: auto; }
    .verify-section-content h2 { font-size: 30px; }
    .verify-section-content h5 { font-size: 18px; }
    .ecosystem-img { flex-direction: column; align-items: center; row-gap: 15px; }
    .imag1, .imag2, .imag3 { width: 100%; max-width: 480px; }
    .ecosystem-img img { height: 390px; }

    /* Expert opinions — vertical accordion */
    .expert-opinions { padding: 60px 0; }
    .expert-cards { flex-direction: column; row-gap: 20px; }
    .expert-card {
        flex: 0 0 auto;
        flex-direction: column;
        height: 420px;
        transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                    box-shadow 0.35s ease;
    }
    .expert-card.active { flex-grow: 0; }
    .expert-photo {
        bottom: auto;
        height: 100%;
        transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                    left 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                    width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                    height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                    border-radius 0.5s ease;
    }
    .expert-card.active .expert-photo {
        top: 30px;
        left: 30px;
        width: calc(100% - 60px);
        height: 230px;
        border-radius: 20px;
    }
    .expert-info {
        width: auto;
        margin: 290px 30px 0;
        padding: 0;
    }

    /* Canadian foundation — stack, certificate in flow */
    .canadian-foundation { padding: 60px 0 60px; }
    .canadian-foundation .col-6 { width: 100%; flex: 0 0 100%; max-width: 100%; }
    .certificate-img img {
        position: static;
        width: 100%;
        max-width: 420px;
        height: 315px;
        margin: 45px auto 0;
        display: block;
    }

    /* SaaS + partners + footer */
    .saas-plans { padding: 60px 0 60px; }
    .partners-grid { flex-wrap: wrap; row-gap: 20px; }
    .partner-card { flex: 0 0 calc(33.333% - 17px); }
    .footer .col-2,
    .footer .col-8 { width: 100%; flex: 0 0 100%; max-width: 100%; }
    .footer-logo { text-align: center; margin-bottom: 25px; }
    .footer-menu ul {
        padding: 0;
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 20px;
        row-gap: 10px;
    }
    .footer-social-icons { justify-content: center; margin-top: 25px; }
    .footer-terms-conditions { width: 100%; float: none; }
    .footer-terms-conditions ul { justify-content: center; }

    .show-mobile{
    display: block;
    }

    .show-desktop{
        display: none;
    }

    .header ul li a{
        color: #fff;
    }
}

/* ---------- ≤767px : phones ---------- */
@media (max-width: 767px) {
    .hero-content h1 { font-size: 40px; }
    .feedback-card { flex: 0 0 320px; }
    .plan-card { flex: 0 0 170px; width: 170px; height: 215px; }
    .expert-opinions-content h2 { font-size: 32px; }
    .expert-opinions-content h5 { font-size: 18px; }
    .foundation-content h2 { font-size: 32px; }
    .foundation-flag { width: 44px; }
    .saas-heading h2 { font-size: 32px; }
    .feedback-heading h2 { font-size: 32px; }
    .partners-heading h2 { font-size: 32px; }
    .plan-name-label { font-size: 22px; }
    .community-feedback { padding: 50px 0 55px; }
    /* .feedback-viewport::before{
    left: -100px;
    background: linear-gradient(to right, #E9F1FE 40%, rgba(233, 241, 254, 0) 100%);
    } */
    .hero-content h1{
        font-size: 38px !important;
    }
    .hero-content .grad-1{
        margin-bottom: 12px;
    }
    .ai-identities h2{
    font-size: 38px;
    }
}

/* ---------- ≤575px : small phones ---------- */
@media (max-width: 575px) {
    .hero-content h1 { font-size: 34px; letter-spacing: -1px; }
    .logo img { max-width: 125px; }
    .sign-in-button a { padding: 6px 16px; font-size: 12px; }
    .feedback-card { flex: 0 0 290px; padding: 26px 24px; }
    .feedback-card .stars { font-size: 19px; }
    .plan-card { flex: 0 0 150px; width: 150px; height: 190px; }
    .saas-carousel::before,
    .saas-carousel::after { width: 80px; }
    .saas-nav .prev-btn,
    .saas-nav .next-btn { width: 36px; height: 36px; }
    .partner-card { flex: 0 0 calc(50% - 13px); height: 100px; }
    .partners-grid { row-gap: 16px; }
    .footer .row.padding-top .col-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .copyright-text { text-align: center; margin-bottom: 12px; }
}

/* ---------- ≤480px : tiny phones ---------- */
@media (max-width: 480px) {
    .foundation-details { grid-template-columns: 1fr; }
    .expert-card { height: 380px; }
}

/* ==========================================
   15. MENU HOVER - ANIMATED DIVIDER
   ========================================== */

.header ul li a {
    position: relative;
    transition: color 0.3s ease;
}

/* The divider line */
.header ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1.1px;
    /* border-radius: 2px; */
    background: #0360fd;
    transform: scaleX(0);
    transform-origin: right;               /* exit direction */
    transition: transform 0.35s cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* Hover — grows in from the left */
.header ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;   
    height: 1.1px;             /* entry direction */
}

/* Optional: subtle color shift with the divider
   (delete this rule if you want color to stay static) */
.header ul li a:hover {
    color: #0360fd;
}

/* ==========================================
   16. SCROLL TO TOP BUTTON
   ========================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: #0360fd;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    /* box-shadow: 0px 10px 24px rgba(3, 96, 253, 0.4); */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.35s ease,
                visibility 0s linear 0.35s,
                transform 0.35s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.35s ease,
                visibility 0s,
                transform 0.35s ease;
}

.scroll-to-top.show:hover {
    transform: translateY(-4px);
}

/* Responsive — tuck closer to the edge on phones */
@media (max-width: 575px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* ==========================================
   16. AI CARDS - SPOTLIGHT HOVER (CORRECTED)
   Hover card 1 → card 2 drops to card 3's height.
   Hover card 3 → card 2 drops to card 1's height.
   Hover card 2 → NOTHING changes. ✅
   ========================================== */

/* Card 2 needs a height transition
   (its height is locked with !important in base styles) */
.ai-identities .card2 {
    transition: height 0.5s ease-in-out;
}

/* HOVER CARD 1 → card 2 drops to card 3's height */
.ai-identities-card:has(> :nth-child(1):hover) > .card2 {
    height: 223px !important;
}

/* HOVER CARD 3 → card 2 drops to card 1's height */
.ai-identities-card:has(> :nth-child(3):hover) > .card2 {
    height: 223px !important;
}

/* Mobile safety — spotlight is desktop-only */
@media (max-width: 991px) {
    .ai-identities-card > * { height: auto !important; }
}

/* ==========================================
   17. AI CARD 2 - GRADIENT FADE (SPOTLIGHT SYNC)
   Hovering card 1 or 3 → card 2's gradient fades to
   the default #F2F7FF look (like card 3), text colors
   flip too. Hovering card 2 keeps everything as-is.
   ========================================== */

/* Gradient moves from base bg to a cross-fade overlay */
.ai-identities .card2 {
    background: #F2F7FF; /* default base, like cards 1 & 3 */
}

.ai-identities .card2::before {
    content: "";
    display: block;              /* re-enables it (base rule had display: none) */
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0360fd, #01163a);
    border-radius: inherit;      /* keeps the rounded-top corners */
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.remove-border a{
    border: none !important;
}

/* Hover card 1 OR card 3 → card 2's gradient fades out */
.ai-identities-card:has(> :nth-child(1):hover) .card2::before,
.ai-identities-card:has(> :nth-child(3):hover) .card2::before {
    opacity: 0;
}

/* Card 2 text flips to the default (card 3) color scheme */
.ai-identities-card:has(> :nth-child(1):hover) .card2 .card-heading,
.ai-identities-card:has(> :nth-child(1):hover) .card2 .card-text,
.ai-identities-card:has(> :nth-child(3):hover) .card2 .card-heading,
.ai-identities-card:has(> :nth-child(3):hover) .card2 .card-text {
    color: #01163a;
}

.ai-identities-card:has(> :nth-child(1):hover) .card2 .same-fonts,
.ai-identities-card:has(> :nth-child(3):hover) .card2 .same-fonts {
    color: #0360fd;
}

/* Mobile safety — stacked layout keeps the gradient */
@media (max-width: 991px) {
    .ai-identities .card2::before { opacity: 1; }
}

/* ==========================================
   18. AI CARD 2 - SHADOW FADE (SPOTLIGHT SYNC)
   Hovering card 1 or 3 → card 2's box shadow
   fades away so it looks flat like card 3.
   ========================================== */

/* Extend card 2's transition so the shadow animates */
.ai-identities .card2 {
    transition: height 0.5s ease-in-out,
                box-shadow 0.5s ease-in-out;
}

/* Hover card 1 OR card 3 → shadow removed */
.ai-identities-card:has(> :nth-child(1):hover) .card2,
.ai-identities-card:has(> :nth-child(3):hover) .card2 {
    box-shadow: none;
}

/* ==========================================
   19. AI CARD 2 - BORDER + RADIUS MORPH
   Hovering card 1 or 3 → card 2 loses its rounded
   top corners and gains a solid 1px border, matching
   cards 1 & 3 exactly.
   ========================================== */

/* Base: invisible border so it can animate in smoothly
   (overrides the base `border: none`), plus full
   transition list so everything moves together */
.ai-identities .card2 {
    border: 1px solid transparent;
    transition: height 0.5s ease-in-out,
                box-shadow 0.5s ease-in-out,
                border-radius 0.5s ease-in-out,
                border-color 0.5s ease-in-out;
}

/* Hover card 1 OR card 3 → square corners + solid border */
@media (min-width: 992px) {
    .ai-identities-card:has(> :nth-child(1):hover) .card2,
    .ai-identities-card:has(> :nth-child(3):hover) .card2 {
        border-radius: 0;
        border-color: #0360fd8c;   /* same border color as cards 1 & 3 */
    }
}

/* ==========================================
   20. HAMBURGER - LEFT SIDE (MOBILE)
   ========================================== */

@media (max-width: 991px) {
    .header .hamburger {
        position: absolute;
        left: 15px;                  /* aligns with container edge */
        top: 50%;
        transform: translateY(-50%);
    }

    /* Push the logo right so it clears the button */
    .header .logo {
        margin-left: 56px;
    }
}

/* ==========================================
   21. FIXED (STICKY) HEADER
   Header stays pinned to the top on scroll.
   ========================================== */

.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* above all sections + carousels */
}

/* Offset anchor jumps (#home, #arbitrage, etc.) so
   section headings aren't hidden under the fixed header */
html {
    scroll-padding-top: 80px;
}
