/* ==========================================================================
   Freight Forwarding ERP — "Shipment Tracking / Control Tower" bespoke design
   Only the HERO + FEATURES sections are redesigned; everything is scoped
   under .fr-scope (plus the page-only .fr-header-bg on the navbar) so no
   other page is affected.
   ========================================================================== */
.fr-scope {
    --fr-ink: #0b1f33;
    --fr: #0284c7;           /* ocean blue primary */
    --fr-2: #0ea5e9;         /* sky */
    --fr-3: #075985;         /* deep ocean */
    --fr-orange: #f97316;    /* cargo-container orange accent */
    --fr-orange-2: #fb923c;
    --fr-soft: #e4f3fb;
    --fr-soft-2: #f2f9fd;
    --fr-line: #d7e8f2;
    --fr-muted: #4d6b80;
    --fr-grad: linear-gradient(120deg, #0ea5e9 0%, #0284c7 55%, #075985 100%);
    --fr-grad-orange: linear-gradient(120deg, #fb923c 0%, #f97316 100%);
    color: #24404f;
}
.fr-scope section { overflow: hidden; }

/* page-only header background so the navbar blends into the hero */
.fr-header-bg {
    background:
        radial-gradient(1100px 320px at 86% 130%, #d3ecf9 0%, rgba(211,236,249,0) 70%),
        #f3fafd;
}

/* ---- shared bits ---- */
.fr-kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--fr-3); background: var(--fr-soft);
    padding: .45rem .9rem; border-radius: 2rem; border: 1px solid var(--fr-line);
}
.fr-kicker.on-dark { color: #bfe6f8; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.fr-h { font-weight: 800; letter-spacing: -.02em; color: var(--fr-ink); line-height: 1.12; }
.fr-grad-txt {
    background: var(--fr-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.fr-lead { color: var(--fr-muted); font-size: 1.075rem; line-height: 1.7; }

/* buttons */
.fr-btn {
    display: inline-flex; align-items: center; gap: .5rem; font-weight: 700;
    padding: .85rem 1.5rem; border-radius: .85rem; border: 0; cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    text-decoration: none;
}
.fr-btn i { transition: transform .25s ease; }
.fr-btn:hover i { transform: translate(2px,-2px); }
.fr-btn-primary { background: var(--fr-grad); color: #fff; box-shadow: 0 .8rem 1.6rem rgba(2,132,199,.32); }
.fr-btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 1.2rem 2.2rem rgba(2,132,199,.42); }
.fr-btn-ghost { background: #fff; color: var(--fr-3); border: 1.5px solid var(--fr-line); }
.fr-btn-ghost:hover { color: var(--fr-3); transform: translateY(-3px); border-color: var(--fr); box-shadow: 0 1rem 2rem rgba(2,132,199,.14); }

/* ==========================================================================
   HERO
   ========================================================================== */
.fr-hero {
    position: relative;
    background:
        radial-gradient(1100px 520px at 88% -8%, #cfeafb 0%, rgba(207,234,251,0) 60%),
        radial-gradient(900px 480px at 4% 112%, #ffe8d6 0%, rgba(255,232,214,0) 55%),
        #f3fafd;
}
.fr-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(2,132,199,.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(2,132,199,.06) 1px, transparent 1px);
    background-size: 34px 34px; -webkit-mask-image: linear-gradient(180deg,#000,transparent 78%);
    mask-image: linear-gradient(180deg,#000,transparent 78%); opacity: .7;
}
.fr-hero .container { position: relative; z-index: 2; }
.fr-hero h1 { font-size: clamp(2.15rem, 4.4vw, 3.5rem); }
.fr-hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
.fr-hero-trust .t { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--fr-ink); font-size: .95rem; }
.fr-hero-trust .t i { color: var(--fr); font-size: 1.15rem; }

/* shipment-tracking dashboard mock card */
.fr-dash-wrap { position: relative; }
.fr-dash {
    position: relative; z-index: 2; background: #fff; border-radius: 1.6rem;
    border: 1px solid var(--fr-line); box-shadow: 0 2.4rem 5rem rgba(11,31,51,.16);
    padding: 1.5rem 1.5rem 1.4rem;
}
.fr-dash__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.fr-avatar {
    width: 3rem; height: 3rem; border-radius: .9rem; flex: none;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem;
    background: var(--fr-grad); box-shadow: 0 .5rem 1rem rgba(2,132,199,.35);
}
.fr-dash__head h6 { margin: 0; font-weight: 800; color: var(--fr-ink); font-size: 1rem; }
.fr-dash__head span { font-size: .8rem; color: var(--fr-muted); }
.fr-pill-live {
    margin-left: auto; display: inline-flex; align-items: center; gap: .4rem;
    font-size: .72rem; font-weight: 800; color: var(--fr-3); background: var(--fr-soft);
    padding: .32rem .7rem; border-radius: 2rem;
}
.fr-pill-live .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--fr-orange); box-shadow: 0 0 0 0 rgba(249,115,22,.6); animation: frpulse 1.7s infinite; }
@keyframes frpulse { 70% { box-shadow: 0 0 0 .5rem rgba(249,115,22,0); } 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); } }

/* route tracker */
.fr-route { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1.2rem; }
.fr-pt { text-align: center; flex: none; width: 4.2rem; }
.fr-pt .city { display: block; font-size: .82rem; font-weight: 800; color: var(--fr-ink); line-height: 1.1; }
.fr-pt .port { display: block; font-size: .68rem; color: var(--fr-muted); font-weight: 600; }
.fr-pt.end { text-align: center; }
.fr-line { flex: 1; position: relative; height: 2.6rem; }
.fr-line::before {
    content: ""; position: absolute; left: 0; right: 0; top: 1.1rem; height: 3px; border-radius: 3px;
    background: repeating-linear-gradient(90deg, var(--fr-line) 0 6px, transparent 6px 12px);
}
.fr-line .fill { position: absolute; left: 0; width: 62%; top: 1.1rem; height: 3px; border-radius: 3px; background: var(--fr); }
.fr-line .dot0, .fr-line .dot1 { position: absolute; top: .75rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--fr); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--fr-soft); }
.fr-line .dot0 { left: -.2rem; }
.fr-line .dot1 { right: -.2rem; background: #fff; border: 2px solid var(--fr-line); box-shadow: none; }
.fr-line .marker {
    position: absolute; left: 62%; top: 0; transform: translateX(-50%);
    width: 2rem; height: 2rem; border-radius: 50%; background: var(--fr-grad-orange); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: .9rem;
    box-shadow: 0 .4rem .9rem rgba(249,115,22,.4);
}
.fr-line .marker::after { content: ""; position: absolute; inset: -.35rem; border-radius: 50%; border: 2px solid rgba(249,115,22,.3); }

/* stages */
.fr-stages { display: flex; margin-bottom: 1.1rem; }
.fr-stage { flex: 1; text-align: center; position: relative; }
.fr-stage .d { width: 1.55rem; height: 1.55rem; border-radius: 50%; margin: 0 auto .4rem; display: flex; align-items: center; justify-content: center; font-size: .72rem; background: #e9f1f6; color: var(--fr-muted); border: 2px solid #fff; }
.fr-stage.done .d { background: var(--fr); color: #fff; }
.fr-stage.active .d { background: var(--fr-orange); color: #fff; box-shadow: 0 0 0 4px rgba(249,115,22,.18); }
.fr-stage small { display: block; font-size: .68rem; font-weight: 700; color: var(--fr-ink); }
.fr-stage.pending small { color: var(--fr-muted); font-weight: 600; }

/* mini stat tiles */
.fr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; border-top: 1px dashed var(--fr-line); padding-top: 1.1rem; }
.fr-stat { background: var(--fr-soft-2); border: 1px solid var(--fr-line); border-radius: .8rem; padding: .7rem .5rem; text-align: center; }
.fr-stat i { font-size: 1rem; color: var(--fr); }
.fr-stat b { display: block; font-size: 1.02rem; font-weight: 800; color: var(--fr-ink); line-height: 1.1; margin-top: .2rem; }
.fr-stat span { display: block; font-size: .64rem; color: var(--fr-muted); margin-top: .1rem; }

/* floating badges */
.fr-badge {
    position: absolute; z-index: 3; background: #fff; border-radius: .9rem;
    box-shadow: 0 1rem 2.4rem rgba(11,31,51,.16); padding: .7rem .95rem;
    display: flex; align-items: center; gap: .6rem; border: 1px solid var(--fr-line);
    animation: frfloat 5s ease-in-out infinite;
}
.fr-badge .ic { width: 2.1rem; height: 2.1rem; border-radius: .6rem; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem; flex: none; }
.fr-badge .ic--book { background: var(--fr-grad-orange); }
.fr-badge .ic--ok { background: var(--fr-grad); }
.fr-badge b { display: block; font-size: .82rem; color: var(--fr-ink); line-height: 1.1; }
.fr-badge span { font-size: .72rem; color: var(--fr-muted); }
.fr-badge--tl { top: -2.4rem; left: -1.6rem; }
.fr-badge--br { bottom: -1.9rem; right: -1.6rem; animation-delay: 1.4s; }
@keyframes frfloat { 50% { transform: translateY(-10px); } }

/* ==========================================================================
   FEATURES — bento grid (9 cards + 1×2 promo hero)
   ========================================================================== */
.fr-head { max-width: 760px; margin: 0 auto 3.2rem; text-align: center; }
.fr-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.fr-head p { margin-top: 1rem; }

.fr-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.fr-bento__hero {
    grid-column: span 1; grid-row: span 2; border-radius: 1.4rem; overflow: hidden; position: relative;
    background: var(--fr-grad); color: #fff; padding: 2rem 1.8rem; display: flex; flex-direction: column;
}
.fr-bento__hero::after { content: ""; position: absolute; top: -25%; right: -25%; width: 70%; height: 60%; background: radial-gradient(circle, rgba(251,146,60,.45), transparent 65%); }
.fr-bento__hero .fr-kicker { align-self: flex-start; position: relative; z-index: 2; }
.fr-bento__hero h3 { color: #fff; font-weight: 800; font-size: 1.5rem; line-height: 1.2; position: relative; z-index: 2; }
.fr-bento__hero p { color: rgba(255,255,255,.85); font-size: .95rem; margin-bottom: 1.2rem; position: relative; z-index: 2; }
.fr-bento__hero img { width: 100%; border-radius: 1rem; margin-top: auto; box-shadow: 0 1.4rem 2.6rem rgba(0,0,0,.24); position: relative; z-index: 2; }
.fr-feat {
    background: #fff; border: 1px solid var(--fr-line); border-radius: 1.2rem; padding: 1.5rem;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; height: 100%;
}
.fr-feat:hover { transform: translateY(-.5rem); box-shadow: 0 1.6rem 3rem rgba(11,31,51,.12); border-color: transparent; }
.fr-ico {
    width: 3.2rem; height: 3.2rem; border-radius: .95rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.fr-ico img, .fr-ico svg { width: 1.7rem; height: 1.7rem; }
/* icons are teal monochrome — recolor to each chip's accent */
.fr-ico svg [fill]:not([fill="none"]) { fill: currentColor; }
.fr-ico svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
.fr-feat h3 { font-size: 1.08rem; font-weight: 800; color: var(--fr-ink); margin-bottom: .5rem; }
.fr-feat p { font-size: .88rem; color: var(--fr-muted); margin-bottom: .9rem; line-height: 1.5; }
.fr-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.fr-ticks li { position: relative; padding-left: 1.5rem; font-size: .84rem; color: #3a5566; line-height: 1.45; }
.fr-ticks li::before {
    content: "\2713"; position: absolute; left: 0; top: 0; font-size: .7rem; font-weight: 700; color: var(--fr);
    width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--fr-soft);
    display: flex; align-items: center; justify-content: center;
}
/* icon color chips */
.fr-c1 { background: #e2f2fb; color: #0284c7; } .fr-c2 { background: #fdeede; color: #ea6a0a; }
.fr-c3 { background: #e0f5f8; color: #0891b2; } .fr-c4 { background: #eaebfb; color: #4f5bd5; }
.fr-c5 { background: #e0f5f2; color: #0d9488; } .fr-c6 { background: #e6f6ec; color: #1f9d55; }
.fr-c7 { background: #fdf0d8; color: #d18208; } .fr-c8 { background: #fdeaf0; color: #d6407e; }
.fr-c9 { background: #efeafb; color: #7c5cd0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .fr-bento { grid-template-columns: 1fr 1fr; }
    .fr-bento__hero { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; gap: 1.5rem; }
    .fr-bento__hero img { margin-top: 0; width: 40%; }
    .fr-badge--tl { left: .5rem; } .fr-badge--br { right: .5rem; }
}
@media (max-width: 767px) {
    .fr-bento { grid-template-columns: 1fr; }
    .fr-bento__hero { flex-direction: column; } .fr-bento__hero img { width: 100%; }
    .fr-dash { margin-top: 1rem; }
    .fr-badge { display: none; }
}

/* legacy contact textarea marker kept for the untouched lower sections */
.gen-1 { height: 150px; }
