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

:root {
    /* Brand Colors */
    --brand-red: #F43722;
    --brand-red-hover: #D62F1D;
    --brand-purple: #9747FF;

    /* Backgrounds */
    --bg-dark: #0A1128;
    --bg-darker: #0D1840;
    --bg-card: #141F48;
    --bg-light: #F9FAFB;
    --bg-white: #ffffff;

    /* Text Colors */
    --text-white: #ffffff;
    --text-dark: #232323;
    --text-muted: #C7D0E7;
    --text-gray: #4A4A4A;
    --text-link: #9AA6E7;

    /* Spacing & Borders */
    --section-pad: 6rem 0;
    --section-pad-mobile: 4rem 0;
    --border-rgba: rgba(255, 255, 255, 0.1);
    --border-radius: 10px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url("../Images/hero-background.webp") no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    color: var(--text-white);
    overflow-x: hidden;
}

/* --- Reusable Components --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-pad);
}

.section-badge {
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.bg-dark-section .section-badge {
    color: var(--text-link);
}

.center {
    text-align: center;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    text-decoration: none;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--brand-red);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 55, 34, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-link);
}

.btn-outline:hover {
    border-color: var(--text-white);
    transform: translateY(-2px);
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    /* Align text from the top instead of center */
    justify-content: center;
    background: url("../Images/hero-background.webp") no-repeat center center;
    background-size: cover;
    text-align: center;
    height: 120vh;
    padding: 4rem 2rem 2rem;
}

.hero-content {
    position: relative;
    top: 130px;
    /* Slight adjustment for better clearance */
    z-index: 3;
    max-width: 800px;
    /* Increased to allow more room for big text */
    width: 100%;
    margin-top: 6.6rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    /* Much bigger range: 40px to 72px approx */
    line-height: 1.1;
    /* Tighter line height for large headings */
    margin-bottom: 1.4rem;
    font-weight: 700;
    /* Bolder font weight */
    white-space: normal;
    word-break: keep-all;
}

.hero-content p {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    /* Scaled up paragraph slightly */
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.6rem;
}

.cta-btn {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-link);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cta-btn img {
    width: 18px;
    height: 18px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    border-color: white;
}

/* Orbit */
.orbit-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.orbit-stage {
    position: absolute;
    width: 100%;
    aspect-ratio: 1000/470;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-svg {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orbit-gray {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 144 85;
    stroke-dashoffset: 144;
}

.orbit-mask {
    fill: none;
    stroke: var(--text-white);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 144 85;
    stroke-dashoffset: 144;
}

.orbit-orange {
    fill: none;
    stroke: var(--brand-red);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 210 1400;
    animation: orbit-roll 3s linear infinite;
    filter: drop-shadow(0 0 14px rgba(244, 55, 34, 0.5));
}

.orbit-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: clamp(0.7rem, 1.1vw, 0.85rem);
    color: #D6DEFF;
    transform: translate(-50%, -50%);
}

.orbit-item img {
    width: clamp(26px, 2.2vw, 34px);
    height: clamp(26px, 2.2vw, 34px);
}

.orbit-glow {
    position: absolute;
    width: clamp(64px, 6vw, 86px);
    height: clamp(64px, 6vw, 86px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    border-radius: 50%;
    background: conic-gradient(from 270deg at 50% 50%, #9747FF 0deg, rgba(255, 255, 255, 0) 360deg);
    filter: blur(10px);
    z-index: 1;
}

@keyframes orbit-roll {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -1620;
    }
}

@media (max-width: 768px) {
    .orbit-container {
        display: none;
    }

    .hero {
        padding: 6rem 1rem 2rem;
        height: auto;
        min-height: 80vh;
        align-items: flex-start;
    }

    .hero-content {
        margin-top: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* --- New Sections Styles --- */

.secondary-btn {
    background: var(--brand-purple);
    /* Assuming purple was intended as secondary */
    color: var(--text-white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.secondary-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.secondary-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.mobile-commerce {
    background: url("../Images/white-background.webp") no-repeat center center;
    background-size: cover;
    color: var(--text-dark);
}

.mobile-commerce-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.mobile-commerce-text h2 {
    font-size: clamp(2rem, 4vw, 48px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.mobile-commerce-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 32px;
    max-width: 450px;
}

.btn-brand-red {
    background-color: #F43722;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-brand-red:hover {
    background-color: #d62f1b;
}

.mobile-commerce-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .mobile-commerce-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .mobile-commerce-text p {
        margin-left: auto;
        margin-right: auto;
    }
}


/* Business Intelligence */
.business-intelligence {
    color: var(--text-white);
}

.bi-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.bi-text h2 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.bi-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 24px;
}

.stat-item span {
    color: var(--text-muted);
    font-size: 14px;
}

.bi-image img {
    width: 100%;
    height: auto;
}

/* Core Businesses */
.core-businesses {
    color: var(--text-white);
}

.section-header-core {
    margin-bottom: 4rem;
}

.core-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4rem;
}

.core-header-flex h2 {
    font-size: 40px;
    max-width: 400px;
    line-height: 1.2;
}

.core-header-flex p {
    max-width: 500px;
    color: var(--text-muted);
}

.feature-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-card {
    direction: ltr;
}

.feature-card.dark-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-rgba);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

.feature-visual img {
    width: 100%;
    border-radius: 20px;
}

/* Customer Experience */
.customer-experience {
    color: var(--text-dark);
}

.customer-experience h2 {
    font-size: 32px;
    margin-bottom: 3rem;
}

.tabs-list-new {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.tab-btn-new {
    background: #F3F4F6;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn-new.active {
    background: var(--text-dark);
    color: var(--text-white);
}

.tab-display {
    background: var(--text-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.tab-info p {
    font-size: 18px;
    margin-bottom: 2rem;
}

.tab-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.tab-cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Dev Experience New */
.dev-experience-new,
.bg-dark-section {
    color: var(--text-white);
    background: var(--bg-darker);
}

.dev-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    background: url("../assets/images/Light-background.png") no-repeat center center !important;
    background-size: cover;
}

.dev-header {
    margin-bottom: 5rem;
}

.dev-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

.dev-header-left {
    flex: 1;
}

.dev-header-left .section-badge {
    color: var(--text-link);
    margin-bottom: 0.5rem;
}

.dev-header-left h2 {
    font-size: clamp(1.8rem, 3.3vw, 2.6rem);
    line-height: 1.1;
    font-weight: 600;
}

.dev-header-right {
    flex: 1;
}

.dev-header-right p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
    max-width: 540px;
}

.code-showcase {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    align-items: center;
}

.code-block-wrapper {
    width: 100%;
    max-width: 800px;
    text-align: center;
    background: url("../assets/images/Light-background.png") no-repeat center center;
    background-size: cover;
}

/* Code Window UI */
.code-window {
    background: url("../Images/light-background.png") no-repeat center center;
    margin-bottom: 3rem;
}

/* Benefit Text */
.benefit-text {
    max-width: 720px;
    margin: 0 auto;
}

.benefit-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.dev-cta-btn {
    background: #F43722;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.dev-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 55, 34, 0.3);
}

/* Make O2O Section */
.make-o2o {
    text-align: center;
    padding-bottom: 8rem;
}

.make-o2o .section-badge {
    color: var(--text-muted);
    /* text-transform: uppercase; */
    letter-spacing: 2px;
    font-size: 0.75rem;
}

.make-o2o h2 {
    font-size: clamp(1rem, 3vw, 2.75rem);
    font-weight: 600;
    margin: 0.5rem 0 1rem;
}

.make-o2o p {
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.icon-row {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 5vw, 4rem);
    flex-wrap: wrap;
}

.channel-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
}

.icon-circle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.icon-circle:hover {
    transform: translateY(-2px);
}

.icon-circle i {
    font-size: 1.75rem;
    color: #1a1a2e;
}

.channel-icon span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .dev-header-flex {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .dev-header-right p {
        margin: 0 auto;
    }

    .code-showcase {
        gap: 5rem;
    }

    .bi-grid,
    .core-header-flex,
    .feature-row {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

    .bi-stats {
        justify-content: center;
    }
}

.page5-card__title {
    margin: 0 0 12px;
    font-weight: 900;
    font-size: 22px;
    text-align: center;
    color: rgba(234, 240, 255, .95);
}

.page5-card__text {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.75;
    color: rgba(234, 240, 255, .68);
}

.page5-card__text:last-child {
    margin-bottom: 0;
}

.page5-phoneWrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page5-phone {
    width: min(360px, 70vw);
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .35));
    user-select: none;
}

/* bottom light area */
.page5-bottom {
    padding: 84px 0 110px;
    background: url("../Images/white-background.webp") no-repeat center center;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.page5-bottom::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../Images/white-background.webp') no-repeat center center;
    background-size: cover;
    pointer-events: none;
}

.page5-bottom__inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 28px;
}

.page5-heading {
    margin: 0;
    text-align: center;
    font-weight: 600;
    font-size: 30px;
    letter-spacing: -0.3px;
    color: var(--text-dark);
}

.page5-demoGrid {
    position: relative;
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 20px 1fr;
    gap: 40px;
    align-items: center;
}

/* left buttons */
.page5-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;

}

.page5-actionRow {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.page5-action {
    padding: 12px 20px;
    margin-bottom: 40px;
    border-radius: 6px;
    border: 1px solid var(--text-dark);
    background: var(--text-dark);
    color: var(--text-white);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page5-action:hover {
    opacity: 0.9;
}

.page5-action--active {
    background: var(--text-white);
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

/* divider */
.page5-divider {
    width: 2px;
    height: 450px;
    background: var(--text-dark);
    justify-self: center;
    margin-top: 0;
}

/* right demo */
.page5-demo {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    position: relative;
}

.page5-demo--active {
    display: flex !important;
}

.page5-chip {
    align-self: flex-end;
    background: #E0FFD9;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 12px;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page5-msg {
    width: min(400px, 100%);
    background: var(--text-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.page5-msg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px) 0 0 / 10px 10px;
    opacity: .35;
    pointer-events: none;
}

.page5-msg__inner {
    position: relative;
    padding: 16px 16px;
}

.page5-msg__p {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-dark);
}

.page5-msg__p:last-child {
    margin-bottom: 0;
}

.page5-tryTitle {
    width: 100%;
    text-align: center;
    align-self: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}


.page5-tryBox {
    width: min(600px, 100%);
    background: var(--text-white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 20px;
    text-align: center;
}

.page5-msg,
.page5-tryBox {
    align-self: flex-end;
}

.page5-tryText {
    margin: 0 0 15px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.6;
}

.page5-tryBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--brand-red);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s ease;
}

.page5-tryBtn:hover {
    background: var(--brand-red-hover);
    transform: translateY(-2px);
}

.page5-tryBtn.is-disabled {
    opacity: .55;
}

/* responsive */
@media (max-width: 980px) {
    .page5-top__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .page5-demoGrid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page5-divider {
        display: none;
    }

    .page5-demo {
        align-items: center;
    }

    .page5-chip,
    .page5-msg,
    .page5-tryBox {
        align-self: center;
    }
}

.page5-actions,
.page5-demo {
    padding-top: 40px;
    /* increase or decrease */
}

.page5-action {
    position: relative;
    z-index: 1;
}

.page5-action::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 14px);
    z-index: 999;

    width: 260px;
    max-width: 92%;
    padding: 16px 18px;

    background: var(--text-white);
    color: #444;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;

    border-radius: 12px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.page5-action:not([data-tip=""]):hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.page5-action:not([data-tip=""]):hover::after {
    transform: translateX(-50%) translateY(-2px);
}

.page5-actions,
.page5-actionRow {
    overflow: visible;
}

.page5-action:not([data-tip=""]):hover {
    z-index: 50;
}