:root {
    --bg: #030813;
    --bg-soft: #071120;
    --panel: rgba(10, 23, 42, 0.78);
    --panel-strong: #0b1728;
    --panel-light: #111d30;
    --line: rgba(164, 190, 225, 0.24);
    --line-gold: rgba(221, 171, 77, 0.42);
    --text: #f7f8fb;
    --muted: #a7b1c3;
    --gold: #e4b457;
    --gold-light: #ffd887;
    --blue: #7ba6ff;
    --green: #4ed486;
    --red: #ff7676;
    --radius: 14px;
    --container: 1440px;
    --shadow: 0 22px 60px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 64% 4%, rgba(31, 91, 170, .15), transparent 26rem),
        radial-gradient(circle at 34% 38%, rgba(21, 65, 126, .12), transparent 34rem),
        linear-gradient(180deg, #020711 0%, #040b17 52%, #020711 100%);
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255,255,255,.013) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.013) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.section { padding: 74px 0; }
.section-tight { padding: 10px 0; }

.page-glow {
    position: absolute;
    pointer-events: none;
    filter: blur(25px);
    opacity: .45;
}
.page-glow--one {
    width: 680px; height: 680px;
    right: -180px; top: 10px;
    background: radial-gradient(circle, rgba(22, 80, 158, .4), transparent 67%);
}
.page-glow--two {
    width: 700px; height: 420px;
    left: 15%; top: 520px;
    background: radial-gradient(circle, rgba(12, 42, 86, .45), transparent 67%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 7, 17, .82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.header-inner {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark {
    font-family: "Playfair Display", serif;
    color: var(--gold-light);
    font-size: 38px;
    letter-spacing: -7px;
    line-height: 1;
    text-shadow: 0 0 18px rgba(228, 180, 87, .18);
}
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 19px; letter-spacing: .16em; }
.brand-copy small { margin-top: 4px; font-size: 8px; letter-spacing: .48em; color: #d8dde6; }

.desktop-nav { display: flex; align-items: center; gap: 42px; }
.desktop-nav a { font-size: 14px; color: #eef2f7; }
.desktop-nav a span { margin-left: 7px; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 27px; }
.login-link { font-size: 14px; }
.mobile-menu-btn {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    padding: 10px;
}
.mobile-menu-btn span {
    display: block; height: 2px; margin: 4px 0;
    background: white; border-radius: 2px;
}
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 12px 24px 22px;
    border-top: 1px solid var(--line);
}
.mobile-nav a { padding: 11px 0; color: #dce5f2; }

.btn {
    min-height: 50px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    transition: .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 38px; padding: 0 24px; }
.btn-gold {
    color: #111;
    background: linear-gradient(135deg, #f0c96f, #d9a343);
    box-shadow: 0 10px 28px rgba(228, 180, 87, .18);
}
.btn-outline {
    color: white;
    border-color: #d5a951;
    background: rgba(4, 10, 20, .42);
}
.btn-icon { font-size: 15px; }
.play-icon {
    width: 22px; height: 22px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: inline-grid; place-items: center;
    font-size: 9px;
}

.hero { position: relative; padding-top: 44px; padding-bottom: 38px; }
.hero::after {
    position: absolute;
    content: "";
    z-index: -1;
    width: 860px;
    height: 290px;
    right: -90px;
    bottom: -30px;
    border-radius: 50% 50% 0 0;
    background:
        radial-gradient(ellipse at center top, rgba(23, 79, 151, .42), transparent 58%),
        linear-gradient(180deg, rgba(18, 55, 112, .25), transparent);
    border-top: 1px solid rgba(92, 144, 215, .25);
    transform: rotate(-3deg);
    filter: blur(.2px);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(420px, .86fr) minmax(650px, 1.3fr);
    gap: 55px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--gold-light);
    font-size: 12px;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.hero h1 {
    margin: 0;
    max-width: 700px;
    font-size: clamp(48px, 4.5vw, 72px);
    line-height: 1.07;
    letter-spacing: -.045em;
}
.hero h1 span {
    color: var(--gold-light);
    text-shadow: 0 0 28px rgba(228, 180, 87, .12);
}
.hero-copy > p {
    max-width: 535px;
    margin: 22px 0 26px;
    color: #d7dce6;
    font-size: 17px;
    line-height: 1.58;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.trust-line {
    margin-top: 18px;
    display: flex; align-items: center; gap: 10px;
    color: #c6cfdd;
    font-size: 13px;
}
.shield-icon { color: white; }

.product-showcase { position: relative; min-width: 0; }
.product-frame {
    overflow: hidden;
    border: 1px solid rgba(133, 168, 214, .35);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(12, 25, 45, .98), rgba(4, 11, 21, .98));
    box-shadow: 0 25px 60px rgba(0,0,0,.52), 0 0 42px rgba(30,91,178,.12);
}
.product-topbar {
    height: 48px;
    padding: 0 16px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(4, 11, 22, .78);
}
.mini-brand { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .12em; }
.mini-brand span { color: var(--gold-light); font-family: serif; font-size: 20px; }
.product-user { display: flex; gap: 14px; align-items: center; color: #aeb8c7; font-size: 9px; }
.product-user b { color: white; }

.product-body { min-height: 320px; display: grid; grid-template-columns: 120px 1fr; }
.product-sidebar {
    padding: 14px 10px;
    display: flex; flex-direction: column; gap: 6px;
    border-right: 1px solid rgba(255,255,255,.06);
    background: rgba(3, 10, 20, .6);
}
.product-sidebar-logo { display: none; }
.product-sidebar a {
    padding: 8px 9px;
    display: flex; gap: 8px; align-items: center;
    border-radius: 5px;
    color: #abb7c8;
    font-size: 9px;
}
.product-sidebar a.active { color: white; background: rgba(255,255,255,.06); }
.product-sidebar a.active::first-letter { color: var(--gold); }

.dashboard-stage { padding: 20px 22px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; }
.dashboard-heading h3 { margin: 0; font-size: 15px; }
.dashboard-heading span { color: #8d99aa; font-size: 8px; }
.dashboard-label { margin: 18px 0 9px; color: #d6dce6; font-size: 9px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.metric-card {
    min-height: 74px;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 5px;
    background: linear-gradient(145deg, rgba(15, 30, 50, .92), rgba(10, 20, 35, .82));
}
.metric-card small, .metric-card span { display: block; }
.metric-card small { color: #b5c0cf; font-size: 7px; }
.metric-card strong { display: block; margin: 7px 0 5px; font-size: 13px; }
.metric-card span { color: #9ca8b8; font-size: 6px; }
.metric-card .positive { color: var(--green); }
.metric-card .danger { color: var(--red); }

.carousel-arrow {
    position: absolute;
    z-index: 5;
    top: 43%;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    color: white;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;
    background: rgba(3, 9, 19, .78);
    font-size: 27px;
    cursor: pointer;
}
.carousel-arrow--left { left: -71px; }
.carousel-arrow--right { right: -71px; }
.carousel-dots { margin-top: 17px; display: flex; justify-content: center; gap: 11px; }
.carousel-dots button {
    width: 9px; height: 9px; padding: 0;
    border: 0; border-radius: 50%;
    background: #455267;
}
.carousel-dots button.active { background: var(--gold-light); box-shadow: 0 0 12px rgba(228, 180, 87, .35); }

.glass-panel {
    border: 1px solid var(--line);
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(9, 20, 38, .82), rgba(4, 12, 24, .78));
    box-shadow: inset 0 1px rgba(255,255,255,.015);
}
.logo-strip-inner {
    min-height: 95px;
    padding: 18px 28px;
    display: grid;
    grid-template-columns: 210px 1fr auto;
    align-items: center;
    gap: 34px;
}
.trusted-copy strong { font-size: 18px; }
.trusted-copy strong span { color: var(--gold-light); font-size: 25px; }
.trusted-copy p { margin: 2px 0 0; color: #d8dee8; font-size: 14px; }
.customer-logos {
    display: grid; grid-template-columns: repeat(6, 1fr);
    align-items: center; gap: 28px;
}
.customer-logos div { text-align: center; }
.customer-logos b { display: block; font-size: 17px; letter-spacing: .03em; }
.customer-logos small { display: block; margin-top: 3px; color: #c1c9d6; font-size: 7px; letter-spacing: .24em; }
.and-more {
    padding: 7px 12px;
    border-radius: 6px;
    color: #dce3ed;
    background: #162238;
    font-size: 11px;
}

.connected-grid {
    padding: 25px 35px;
    display: grid;
    grid-template-columns: 290px 1fr;
    align-items: center;
    gap: 60px;
}
.connected-copy h2 { margin: 0 0 12px; font-size: 27px; line-height: 1.05; }
.connected-copy h2 span { color: var(--gold-light); }
.connected-copy p { margin: 0; color: #c0cad8; font-size: 13px; line-height: 1.55; }

.platform-map { position: relative; max-width: 730px; margin: 0 auto; }
.platform-map::before {
    position: absolute; z-index: 0;
    content: ""; left: 50%; top: 34px; bottom: 35px;
    width: 1px; background: linear-gradient(var(--gold), rgba(228,180,87,.1));
}
.map-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; margin-top: 18px; position: relative; }
.map-row::before {
    position: absolute; z-index: 0; content: "";
    left: 15%; right: 15%; top: -9px; height: 1px;
    background: rgba(228, 180, 87, .45);
}
.map-card {
    position: relative; z-index: 1;
    min-height: 52px;
    padding: 9px 17px;
    display: flex; align-items: center; gap: 13px;
    border: 1px solid rgba(141, 171, 210, .3);
    border-radius: 8px;
    background: linear-gradient(145deg, #111d30, #0a1424);
}
.map-card--top { width: 290px; margin: 0 auto; }
.map-icon { color: var(--gold-light); font-size: 24px; }
.map-icon.blue { color: #7faaff; }
.map-card strong, .map-card small { display: block; }
.map-card strong { font-size: 12px; }
.map-card small { margin-top: 2px; color: #abb6c6; font-size: 9px; }

.story-section { padding-top: 20px; }
.story-grid {
    padding: 16px 22px 0;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 48px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(8, 19, 36, .9), rgba(3, 11, 22, .82));
    overflow: hidden;
}
.story-copy { display: grid; grid-template-columns: 88px 1fr; align-content: start; padding: 18px 0 35px; }
.story-number {
    color: rgba(144, 164, 195, .21);
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
}
.story-heading h2 { margin: 2px 0 11px; font-size: 31px; line-height: 1.02; }
.story-heading h2 span { color: var(--gold-light); }
.story-heading p { margin: 0; color: #d1d7e0; font-size: 13px; line-height: 1.55; }
.feature-list {
    grid-column: 2;
    margin: 23px 0 0;
    padding: 0;
    list-style: none;
}
.feature-list li {
    position: relative;
    margin: 14px 0;
    padding-left: 29px;
    color: #e3e8ef;
    font-size: 13px;
}
.feature-list li::before {
    position: absolute; left: 0; top: -2px;
    width: 18px; height: 18px;
    display: grid; place-items: center;
    content: "✓";
    color: var(--gold-light);
    border: 1px solid var(--gold);
    border-radius: 50%;
    font-size: 10px;
}

.application-workflow {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(620px, 1fr) 235px;
    align-items: center;
    gap: 32px;
}
.application-card {
    align-self: end;
    color: #172033;
    border-radius: 8px 8px 0 0;
    background: #f7f8fb;
    box-shadow: 0 20px 55px rgba(0,0,0,.28);
    overflow: hidden;
}
.application-header { padding: 17px 20px 12px; border-bottom: 1px solid #e3e7ee; }
.application-header strong { font-size: 12px; }
.application-steps { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; color: #8993a3; font-size: 7px; }
.application-steps span { position: relative; text-align: center; }
.application-steps span::before {
    display: inline-grid; place-items: center;
    width: 15px; height: 15px; margin-right: 5px;
    content: "";
    border: 1px solid #c7cfdb; border-radius: 50%;
    vertical-align: middle;
}
.application-steps span.active { color: #3164d9; }
.application-steps span.active::before { background: #3164d9; border-color: #3164d9; }

.application-form { padding: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-column {
    padding: 11px;
    border: 1px solid #edf0f4;
    border-radius: 6px;
    background: white;
}
.form-column h4 { margin: 0 0 10px; font-size: 9px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-column label { display: block; margin-bottom: 8px; color: #536073; font-size: 6px; }
.form-column input {
    width: 100%; height: 27px; margin-top: 4px; padding: 0 8px;
    color: #364156;
    border: 1px solid #dce2e9;
    border-radius: 4px;
    background: white;
    font-size: 7px;
}
.fake-textarea { height: 52px; border: 1px solid #e2e6eb; border-radius: 4px; }
.signature {
    height: 63px; margin-top: 4px;
    display: grid; place-items: center;
    border: 1px solid #dce2e9; border-radius: 4px;
    color: #1c2030;
    font-family: cursive; font-size: 23px; transform: rotate(-6deg);
}
.upload-box {
    margin-top: 4px; min-height: 52px; padding: 8px;
    display: flex; align-items: center; gap: 9px;
    border: 1px dashed #8ca9e9; border-radius: 4px;
    color: #45628c;
}
.upload-box span { font-size: 18px; }
.upload-box strong, .upload-box small { display: block; }
.upload-box strong { font-size: 6px; }
.upload-box small { margin-top: 3px; color: #8492a6; font-size: 5px; }

.workflow-status { display: flex; flex-direction: column; gap: 26px; }
.workflow-status article {
    position: relative;
    min-height: 67px;
    padding: 13px 14px;
    display: flex; align-items: center; gap: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(145deg, #121e31, #0b1525);
    box-shadow: var(--shadow);
}
.workflow-status article::before {
    position: absolute; left: -24px; top: 50%;
    width: 24px; height: 1px; content: "";
    background: rgba(226, 186, 104, .7);
}
.status-icon {
    flex: 0 0 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 13px;
}
.status-icon--yellow { color: #f6e26f; border: 1px solid #f0d75e; }
.status-icon--green { color: #12351f; background: #9af0a9; }
.status-icon--gold { color: #211806; background: #f1ce79; }
.workflow-status strong, .workflow-status small { display: block; }
.workflow-status strong { font-size: 11px; }
.workflow-status small { margin-top: 4px; color: #aab5c5; font-size: 8px; }

.demo-section { padding-top: 58px; }
.demo-panel {
    min-height: 270px;
    padding: 45px 52px;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    border: 1px solid var(--line-gold);
    border-radius: 16px;
    background:
        radial-gradient(circle at 78% 30%, rgba(228,180,87,.16), transparent 24rem),
        linear-gradient(145deg, #0d1a2f, #07101e);
}
.demo-panel h2 { max-width: 760px; margin: 0 0 12px; font-size: clamp(32px, 4vw, 54px); line-height: 1.06; }
.demo-panel p { margin: 0; color: #bec7d5; }

.site-footer { padding: 32px 0; border-top: 1px solid var(--line); background: rgba(1,5,12,.8); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner p, .footer-inner > span { color: #8e9aad; font-size: 12px; }

.reveal {
    opacity: 0;
    transform: translateY(28px) scale(.985);
    filter: blur(7px);
    transition: opacity .8s ease, transform .8s ease, filter .8s ease;
}
.reveal-delay { transition-delay: .12s; }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

@media (max-width: 1280px) {
    .desktop-nav { gap: 23px; }
    .hero-grid { grid-template-columns: 1fr 1.25fr; }
    .carousel-arrow--left { left: -28px; }
    .carousel-arrow--right { right: -28px; }
    .application-workflow { grid-template-columns: 1fr 205px; gap: 20px; }
    .logo-strip-inner { grid-template-columns: 185px 1fr; }
    .and-more { display: none; }
    .customer-logos { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
}

@media (max-width: 1050px) {
    .desktop-nav, .login-link { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-nav.is-open { display: flex; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { max-width: 760px; }
    .product-showcase { width: calc(100% - 40px); margin: 0 auto; }
    .connected-grid { grid-template-columns: 1fr; gap: 28px; }
    .connected-copy { max-width: 580px; }
    .story-grid { grid-template-columns: 1fr; }
    .story-copy { max-width: 420px; }
    .application-workflow { grid-template-columns: 1fr 220px; }
    .logo-strip-inner { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .section { padding: 50px 0; }
    .header-actions .btn { display: none; }
    .hero h1 { font-size: clamp(43px, 12vw, 64px); }
    .hero-copy > p { font-size: 15px; }
    .product-body { grid-template-columns: 75px 1fr; }
    .product-sidebar a span { display: none; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .carousel-arrow { display: none; }
    .customer-logos { grid-template-columns: repeat(2, 1fr); }
    .map-row { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
    .map-row::before, .platform-map::before { display: none; }
    .map-card--top { width: 100%; }
    .application-workflow { grid-template-columns: 1fr; }
    .application-card { border-radius: 8px; }
    .workflow-status { padding-bottom: 24px; }
    .workflow-status article::before { display: none; }
    .demo-panel { padding: 34px 25px; flex-direction: column; align-items: flex-start; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 550px) {
    .brand-copy strong { font-size: 15px; }
    .brand-copy small { letter-spacing: .3em; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .product-showcase { width: 100%; }
    .product-topbar { padding: 0 10px; }
    .product-user span { display: none; }
    .product-body { grid-template-columns: 52px 1fr; min-height: 380px; }
    .product-sidebar { padding: 10px 6px; }
    .product-sidebar a { justify-content: center; padding: 8px 2px; }
    .dashboard-stage { padding: 14px 12px; }
    .metric-card { min-height: 70px; }
    .story-grid { padding: 10px 14px 0; }
    .story-copy { grid-template-columns: 70px 1fr; }
    .story-number { font-size: 55px; }
    .application-form { grid-template-columns: 1fr; }
    .application-steps { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
    .connected-grid { padding: 24px 18px; }
}


/* ================================================================
   PART 3 — BUSINESS OPERATING SYSTEM
================================================================ */
.business-os {
    position: relative;
    isolation: isolate;
    padding-top: 112px;
    padding-bottom: 108px;
    overflow: hidden;
}
.business-os::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        radial-gradient(circle at 50% 48%, rgba(37, 86, 155, .18), transparent 34rem),
        linear-gradient(180deg, rgba(2,7,17,.2), rgba(4,11,23,.92) 45%, rgba(2,7,17,.3));
    background-size: 46px 46px, 46px 46px, auto, auto;
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}
.business-os::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .17;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}
.business-os-orb {
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: .16;
}
.business-os-orb--blue { left: -220px; top: 18%; background: #236ac7; }
.business-os-orb--gold { right: -250px; bottom: 4%; background: #d4a746; opacity: .11; }
.business-os-heading {
    max-width: 830px;
    margin: 0 auto 58px;
    text-align: center;
}
.business-os-heading h2 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 5.1vw, 76px);
    line-height: .98;
    letter-spacing: -.055em;
}
.business-os-heading h2 span {
    color: var(--gold-light);
    text-shadow: 0 0 34px rgba(228,180,87,.16);
}
.business-os-heading p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}
.os-network {
    --os-x: 0px;
    --os-y: 0px;
    position: relative;
    width: min(100%, 1220px);
    min-height: 760px;
    margin: 0 auto;
    transform: translate3d(var(--os-x), var(--os-y), 0);
    transition: transform .18s ease-out;
}
.os-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(228,180,87,.08));
}
.os-line {
    fill: none;
    stroke: rgba(126,157,204,.18);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-dasharray: 7 11;
    transition: stroke .45s ease, stroke-width .45s ease, filter .45s ease;
    animation: osDash 18s linear infinite;
}
.os-line.is-active {
    stroke: url(#osLineGradient);
    stroke-width: 2.7;
    filter: drop-shadow(0 0 8px rgba(229,181,87,.7));
}
@keyframes osDash { to { stroke-dashoffset: -180; } }
.os-module,
.os-center {
    position: absolute;
    border: 1px solid rgba(165,190,224,.19);
    background:
        linear-gradient(145deg, rgba(18,34,58,.82), rgba(6,16,31,.84)),
        rgba(7,17,32,.78);
    box-shadow: 0 24px 65px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.045);
    backdrop-filter: blur(19px);
    -webkit-backdrop-filter: blur(19px);
}
.os-module {
    width: 278px;
    min-height: 220px;
    padding: 25px 24px 22px;
    border-radius: 17px;
    overflow: hidden;
    outline: none;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .45s ease, box-shadow .45s ease, background .45s ease, opacity .45s ease;
}
.os-module::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,216,135,.5), transparent 27%, transparent 70%, rgba(104,151,235,.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
}
.os-module::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -85px;
    top: -85px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(89,138,218,.17), transparent 66%);
    transition: transform .45s ease, opacity .45s ease;
}
.os-module:hover,
.os-module:focus-visible,
.os-module.is-active {
    transform: translateY(-8px) scale(1.018);
    border-color: rgba(228,180,87,.52);
    box-shadow: 0 30px 78px rgba(0,0,0,.48), 0 0 34px rgba(228,180,87,.11), inset 0 1px 0 rgba(255,255,255,.07);
    background: linear-gradient(145deg, rgba(24,40,64,.91), rgba(7,17,31,.92));
}
.os-module:hover::before,
.os-module:focus-visible::before,
.os-module.is-active::before { opacity: 1; }
.os-module:hover::after,
.os-module:focus-visible::after,
.os-module.is-active::after { transform: scale(1.25); opacity: .9; }
.os-module--customer { left: 0; top: 54px; }
.os-module--warehouse { left: 50%; top: 0; transform: translateX(-50%); }
.os-module--warehouse:hover,
.os-module--warehouse:focus-visible,
.os-module--warehouse.is-active { transform: translateX(-50%) translateY(-8px) scale(1.018); }
.os-module--driver { right: 0; top: 54px; }
.os-module--finance { left: 0; bottom: 36px; }
.os-module--reports { left: 50%; bottom: 0; transform: translateX(-50%); }
.os-module--reports:hover,
.os-module--reports:focus-visible,
.os-module--reports.is-active { transform: translateX(-50%) translateY(-8px) scale(1.018); }
.os-module--analytics { right: 0; bottom: 36px; }
.os-module-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.os-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(121,161,226,.34);
    border-radius: 13px;
    color: #bdd4ff;
    background: linear-gradient(145deg, rgba(70,121,205,.18), rgba(22,46,82,.14));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    font-weight: 800;
    font-size: 19px;
}
.os-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8ea1b8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.os-live i,
.os-sync-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(78,212,134,.5);
    animation: osLivePulse 1.8s ease-out infinite;
}
@keyframes osLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(78,212,134,.5); }
    70% { box-shadow: 0 0 0 8px rgba(78,212,134,0); }
    100% { box-shadow: 0 0 0 0 rgba(78,212,134,0); }
}
.os-module h3 { position: relative; z-index: 1; margin: 18px 0 7px; font-size: 21px; letter-spacing: -.025em; }
.os-module p { position: relative; z-index: 1; min-height: 40px; margin: 0 0 14px; color: #93a2b6; font-size: 11.5px; line-height: 1.6; }
.os-module ul { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.os-module li { padding: 5px 8px; border: 1px solid rgba(150,180,220,.14); border-radius: 999px; color: #c6d0de; background: rgba(255,255,255,.025); font-size: 9px; }
.os-module-number { position: absolute; right: 17px; bottom: 8px; color: rgba(255,255,255,.035); font-size: 46px; font-weight: 800; letter-spacing: -.08em; }
.os-center {
    left: 50%;
    top: 50%;
    width: 388px;
    min-height: 318px;
    border-radius: 26px;
    transform: translate(-50%, -50%);
    z-index: 3;
    border-color: rgba(228,180,87,.35);
    background:
        radial-gradient(circle at 50% 0%, rgba(228,180,87,.13), transparent 40%),
        linear-gradient(145deg, rgba(20,36,58,.96), rgba(5,14,27,.95));
    box-shadow: 0 36px 100px rgba(0,0,0,.52), 0 0 65px rgba(52,105,184,.11), inset 0 1px 0 rgba(255,255,255,.07);
    transition: box-shadow .5s ease, border-color .5s ease, transform .5s ease;
}
.os-center.is-active {
    border-color: rgba(255,216,135,.72);
    box-shadow: 0 40px 110px rgba(0,0,0,.56), 0 0 80px rgba(228,180,87,.18), inset 0 1px 0 rgba(255,255,255,.09);
}
.os-center-content { position: relative; z-index: 2; padding: 27px 30px 25px; text-align: center; }
.os-center-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(105,150,220,.14); border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.os-center-ring--outer { width: 490px; height: 490px; animation: osRing 18s linear infinite; }
.os-center-ring--inner { width: 430px; height: 430px; border-style: dashed; animation: osRing 13s linear infinite reverse; }
@keyframes osRing { to { transform: translate(-50%,-50%) rotate(360deg); } }
.os-center-mark {
    width: 58px;
    height: 58px;
    margin: 0 auto 13px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,216,135,.52);
    border-radius: 17px;
    color: var(--gold-light);
    background: linear-gradient(145deg, rgba(228,180,87,.14), rgba(64,45,17,.08));
    font-family: "Playfair Display", serif;
    font-size: 28px;
    letter-spacing: -4px;
    box-shadow: 0 0 28px rgba(228,180,87,.12), inset 0 1px 0 rgba(255,255,255,.07);
}
.os-center-label { color: var(--gold-light); font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.os-center h3 { margin: 8px 0 4px; font-size: 31px; letter-spacing: .09em; }
.os-center p { max-width: 270px; margin: 0 auto 18px; color: #9eaabd; font-size: 11px; line-height: 1.55; }
.os-stats { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid rgba(149,179,219,.16); border-radius: 13px; background: rgba(0,0,0,.16); overflow: hidden; }
.os-stats div { min-width: 0; padding: 12px 5px 10px; border-right: 1px solid rgba(149,179,219,.12); }
.os-stats div:last-child { border-right: 0; }
.os-stats strong { display: block; color: white; font-size: 16px; letter-spacing: -.03em; }
.os-stats span { display: block; margin-top: 4px; color: #7f8fa5; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.os-sync-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #aab6c6; font-size: 9px; letter-spacing: .08em; }
.os-flow-note { width: min(100%, 920px); margin: 44px auto 0; display: flex; align-items: center; justify-content: center; gap: 15px; text-align: center; }
.os-flow-note p { margin: 0; color: #8f9eb2; font-size: 12px; line-height: 1.65; }
.os-flow-note strong { color: #e4e9f1; }
.os-flow-pulse { position: relative; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px rgba(228,180,87,.55); }
.os-flow-pulse::after { content: ""; position: absolute; inset: -8px; border: 1px solid rgba(228,180,87,.25); border-radius: 50%; animation: osFlowPulse 2.2s ease-out infinite; }
@keyframes osFlowPulse { 0% { transform: scale(.35); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }

@media (max-width: 1180px) {
    .os-network { min-height: 1080px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding-top: 390px; }
    .os-connections { display: none; }
    .os-center { top: 170px; }
    .os-module { position: relative; inset: auto; width: auto; min-height: 216px; transform: none; }
    .os-module:hover, .os-module:focus-visible, .os-module.is-active,
    .os-module--warehouse:hover, .os-module--warehouse:focus-visible, .os-module--warehouse.is-active,
    .os-module--reports:hover, .os-module--reports:focus-visible, .os-module--reports.is-active { transform: translateY(-6px) scale(1.012); }
}
@media (max-width: 720px) {
    .business-os { padding-top: 76px; padding-bottom: 74px; }
    .business-os-heading { margin-bottom: 38px; }
    .business-os-heading p { font-size: 14px; }
    .os-network { min-height: auto; grid-template-columns: 1fr; padding-top: 372px; }
    .os-center { top: 154px; width: min(100%, 390px); min-height: 304px; }
    .os-center-ring { display: none; }
    .os-module { min-height: 202px; }
    .os-flow-note { align-items: flex-start; text-align: left; }
}
@media (max-width: 460px) {
    .os-network { padding-top: 410px; }
    .os-center { top: 180px; }
    .os-center-content { padding: 24px 17px 22px; }
    .os-stats { grid-template-columns: repeat(2,1fr); }
    .os-stats div:nth-child(2) { border-right: 0; }
    .os-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(149,179,219,.12); }
    .os-module { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .os-line, .os-live i, .os-sync-status i, .os-center-ring, .os-flow-pulse::after { animation: none !important; }
    .os-network { transition: none; }
}


/* ==========================================================
   GLOBAL MOBILE HORIZONTAL OVERFLOW FIX
========================================================== */

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

/* 限制所有首頁主要區塊 */
header,
main,
footer,
section,
.navbar,
.site-header,
.hero,
.hero-section,
.flagship-hero,
.page-wrapper,
.site-wrapper {
    max-width: 100%;
}

/* 防止 Grid / Flex 內容把父層撐寬 */
header *,
main *,
footer * {
    min-width: 0;
    box-sizing: border-box;
}

/* 圖片與影片不能超出手機寬度 */
img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

/* 手機版不要使用 100vw，避免元素超出 viewport */
@media (max-width: 900px) {
    header,
    main,
    footer,
    section,
    .navbar,
    .site-header,
    .hero,
    .hero-section,
    .flagship-hero,
    .page-wrapper,
    .site-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    @supports (overflow: clip) {
        header,
        main,
        footer,
        section,
        .hero,
        .hero-section,
        .flagship-hero {
            overflow-x: clip;
        }
    }

    /* 停用可能超出畫面的 Hero 3D/位移 */
    .hero *,
    .hero-section *,
    .flagship-hero * {
        max-width: 100%;
    }

    /* 裝飾背景不能撐開頁面 */
    .hero-glow,
    .hero-orb,
    .hero-grid,
    .hero-light,
    .hero-background,
    .hero-decoration,
    .floating-shape {
        pointer-events: none;
        max-width: 100%;
    }
}


/* Font Awesome 4/5 syntax compatibility */
.fa {
    font-family: "Font Awesome 6 Free" !important;
    font-style: normal;
    font-variant: normal;
    font-weight: 900 !important;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* =========================================================
   HERO PRODUCT CAROUSEL — MOBILE SWIPE / POINTER DRAG
   Keep this block at the end of flagship.css.
========================================================= */

.product-showcase {
    position: relative;
    min-width: 0;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
}

.product-frame {
    --hero-drag-x: 0px;

    position: relative;
    transform: translate3d(var(--hero-drag-x), 0, 0);

    touch-action: pan-y !important;
    overscroll-behavior-x: contain;

    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;

    cursor: grab;
    will-change: transform;

    transition:
        transform .2s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.product-frame.is-swiping {
    cursor: grabbing;
    transition: none !important;
}

.product-frame img,
.product-frame svg {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.product-frame a {
    -webkit-user-drag: none;
    user-drag: none;
}

.carousel-dots button {
    cursor: pointer;
    touch-action: manipulation;
}

@media (max-width: 780px) {
    .product-showcase {
        width: 100%;
        margin-inline: auto;
    }

    .product-frame {
        cursor: default;
    }

    /*
     * Arrows stay hidden on mobile because swipe is enabled.
     * They remain available on tablet/desktop.
     */
    .carousel-arrow {
        display: none;
    }

    .carousel-dots {
        margin-top: 14px;
        gap: 12px;
    }

    .carousel-dots button {
        width: 11px;
        height: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-frame {
        transition: none !important;
    }
}

/* =========================================================
   iPhone / Android swipe reliability patch
========================================================= */

.product-showcase,
.product-frame,
.product-body,
.dashboard-stage {
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
}

.product-showcase {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: none;
}

.product-frame {
    width: 100%;
    min-width: 0;
}

.product-frame * {
    -webkit-touch-callout: none;
}

@media (hover: none) and (pointer: coarse) {
    .product-showcase,
    .product-frame {
        cursor: default;
    }
}

