/* ==========================================================================
   Vrushyam Technology — main stylesheet
   Palette taken from the logo: navy → blue → teal → green
   ========================================================================== */

:root {
    --ink: #0f1e33;
    --body: #46566c;
    --muted: #6b7a90;
    --navy: #0b3d91;
    --navy-deep: #08285f;
    --blue: #1d6fe0;
    --teal: #0ea5a4;
    --green: #22a867;
    --surface: #f5f8fc;
    --surface-2: #eef4fb;
    --line: #e3e9f2;
    --white: #ffffff;
    --brand-grad: linear-gradient(100deg, #0b3d91 0%, #1d6fe0 45%, #0ea5a4 78%, #22a867 100%);
    --btn-grad: linear-gradient(120deg, #0b3d91, #1d6fe0);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 30, 51, .06), 0 2px 8px rgba(15, 30, 51, .04);
    --shadow: 0 10px 30px -12px rgba(11, 61, 145, .22);
    --shadow-lg: 0 30px 60px -25px rgba(11, 61, 145, .35);
    --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 {
    font-family: var(--font-head);
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 800; margin-bottom: .75rem; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin-bottom: 1rem; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; }
::selection { background: rgba(29, 111, 224, .18); }
:focus-visible { outline: 3px solid rgba(29, 111, 224, .45); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 1rem; top: -60px; z-index: 2000;
    background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.section { padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0; }
.section-tint { background: var(--surface); }
.section-head { margin-bottom: 3rem; max-width: 46rem; }
.section-head.text-center { margin-inline: auto; }
.section-head.split {
    max-width: none; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem;
    justify-content: space-between; align-items: flex-end;
}
.section-head.split > div { max-width: 40rem; }
.section-head.split h2 { margin-bottom: 0; }
.section-sub { font-size: 1.075rem; color: var(--muted); max-width: 38rem; margin-bottom: 0; }

/* Eyebrow with the brand gradient stroke — the site's signature detail */
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-weight: 600; font-size: .9rem; color: var(--blue); margin-bottom: .75rem;
}
.eyebrow::before {
    content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--brand-grad);
}
.text-center .eyebrow, .section-head.text-center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: .7rem 1.35rem; transition: transform .2s var(--ease), box-shadow .2s, background-position .4s, color .2s, border-color .2s; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-brand {
    color: #fff; border: 0;
    background: linear-gradient(120deg, #0b3d91, #1d6fe0, #0ea5a4);
    background-size: 200% 100%; background-position: 0 0;
    box-shadow: 0 8px 20px -8px rgba(29, 111, 224, .55);
}
.btn-brand:hover, .btn-brand:focus-visible { color: #fff; background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(29, 111, 224, .6); }
.btn-brand:active { transform: translateY(0); }
.btn-outline-brand { color: var(--navy); border: 1.5px solid var(--line); background: #fff; }
.btn-outline-brand:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); background: #fff; }
.btn-ghost { color: var(--ink); background: transparent; border: 1.5px solid transparent; }
.btn-ghost:hover { color: var(--blue); background: var(--surface-2); }

/* ---------- Icon tiles ---------- */
.icon-tile {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(140deg, #eaf2ff, #e6f7f4);
    color: var(--blue); font-size: 1.4rem;
    transition: background .3s, color .3s, transform .3s var(--ease);
}
.icon-tile.sm { width: 42px; height: 42px; font-size: 1.1rem; border-radius: 11px; }
.icon-tile.lg { width: 72px; height: 72px; font-size: 2rem; border-radius: 20px; display: grid; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-deep); color: rgba(255, 255, 255, .78); font-size: .825rem; padding: .45rem 0; }
.topbar a, .topbar span { color: rgba(255, 255, 255, .78); display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: #fff; }

.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(15, 30, 51, .25); }
.site-header .navbar { min-height: var(--header-h); padding: .35rem 0; }
.navbar-brand img { height: 52px; width: auto; display: block; }
.navbar .nav-link {
    font-weight: 500; color: var(--ink); padding: .5rem .95rem !important; position: relative; font-size: .95rem;
}
.navbar .nav-link::after {
    content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .2rem; height: 2px; border-radius: 2px;
    background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--navy); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 1.1rem; }
.nav-phone { align-items: center; gap: .45rem; font-weight: 600; color: var(--ink); font-size: .92rem; }
.navbar-toggler { border: 1px solid var(--line); border-radius: 10px; padding: .4rem .6rem; font-size: 1.5rem; color: var(--ink); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(29, 111, 224, .25); }

@media (max-width: 991.98px) {
    .navbar-collapse { padding: 1rem 0 1.25rem; border-top: 1px solid var(--line); margin-top: .5rem; }
    .navbar .nav-link::after { display: none; }
    .navbar .nav-link.active { background: var(--surface-2); border-radius: 8px; }
    .nav-cta { margin-top: .75rem; }
    .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(3.5rem, 3rem + 4vw, 6rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg img {
    position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
    width: min(1100px, 80vw); opacity: .55;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, #000 70%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-composite: intersect;
}
.hero h1 {
    font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.6rem); font-weight: 800; line-height: 1.08;
    letter-spacing: -0.035em; margin: 1.25rem 0 1.25rem; max-width: 15ch;
}
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .925rem; font-weight: 500; color: var(--ink); }
.hero-points i { color: var(--green); margin-right: .4rem; }

.pill {
    display: inline-flex; align-items: center; gap: .55rem;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: .4rem .9rem .4rem .7rem; font-size: .85rem; font-weight: 500; color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 168, 103, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 168, 103, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(34, 168, 103, 0); } }

/* Hero load sequence (the one orchestrated moment) */
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.js .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.js .hero-copy > *:nth-child(5) { animation-delay: .32s; }
.js .showcase { opacity: 0; transform: translateY(24px) scale(.98); animation: rise 1s .25s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Browser-frame showcase */
.showcase { position: relative; padding: 1.5rem 1.5rem 2.5rem; }
.browser {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.browser-bar {
    display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
}
.browser-bar.small { padding: .55rem .85rem; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d7dfea; display: block; }
.dots i:nth-child(1) { background: #ff6b6b; } .dots i:nth-child(2) { background: #ffc145; } .dots i:nth-child(3) { background: #3ccf7a; }
.address {
    flex: 1; display: inline-flex; align-items: center; gap: .45rem;
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: .28rem .75rem; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.address .bi-lock-fill { color: var(--green); font-size: .72rem; }
.browser-screen { container-type: size; position: relative; aspect-ratio: 16 / 10; background: #fff; overflow: hidden; }
.browser-screen .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.browser-screen .slide.is-active { opacity: 1; }
/* show the full width of the client site (zoomed out), never crop the sides */
.browser-screen .slide img { position: absolute; top: 0; left: 0; width: 100%; height: auto; max-width: none; object-fit: fill; }
.browser-screen .slide.is-active img { animation: browse 7s 1s ease-in-out forwards; }
@keyframes browse { to { transform: translateY(min(0px, calc(-100% + 340px))); transform: translateY(min(0px, calc(-100% + 100cqh))); } }

/* Live preview: the real site rendered at desktop width (1440px) and scaled down to fit the box */
.browser-screen .live-frame {
    position: absolute; top: 0; left: 0; width: 1440px; height: var(--live-h, 945px);
    transform: scale(var(--live-s, .4)); transform-origin: 0 0; overflow: hidden;
    opacity: 0; transition: opacity .6s ease; pointer-events: none; background: #fff;
}
.browser-screen .live-frame.is-ready { opacity: 1; }
.browser-screen .live-frame iframe { display: block; width: 1440px; height: 2600px; border: 0; background: #fff; }
.browser-screen .slide.is-active .live-frame.is-ready iframe { animation: browse-live 9s 2s ease-in-out forwards; }
@keyframes browse-live { to { transform: translateY(calc(var(--live-h, 945px) - 2600px)); } }
/* when the live preview is showing, hide the screenshot behind it */
.browser-screen .slide.has-live img { visibility: hidden; }

.shot-fallback {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
    background: radial-gradient(circle at 30% 20%, #eaf2ff, transparent 60%), radial-gradient(circle at 80% 90%, #e3f7ef, transparent 55%), var(--surface);
    color: var(--navy); text-align: center; padding: 1rem;
}
.shot-fallback i { font-size: 2.2rem; color: var(--blue); }
.shot-fallback strong { font-family: var(--font-head); font-size: 1.1rem; }
.shot-fallback span { font-size: .85rem; color: var(--muted); }

.float-card {
    position: absolute; display: flex; align-items: center; gap: .75rem;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .7rem 1rem .7rem .75rem;
    box-shadow: var(--shadow); font-size: .85rem; line-height: 1.25; max-width: 240px;
    animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .95rem; }
.float-card small { color: var(--muted); }
.fc-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--btn-grad); color: #fff; flex-shrink: 0; }
.fc-icon.green { background: linear-gradient(135deg, #0ea5a4, #22a867); }
.fc-1 { left: -.5rem; bottom: .5rem; }
.fc-2 { right: -.25rem; top: 0; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Client strip / marquee ---------- */
.client-strip { border-block: 1px solid var(--line); padding: 1.1rem 0; background: #fff; }
.strip-label { margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; font-size: .9rem; }
.marquee {
    flex: 1; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #8a98ad; white-space: nowrap; }
.marquee-track a:hover { color: var(--navy); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service cards ---------- */
.service-card {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
    color: var(--body); position: relative; overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.service-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-grad);
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service-card h3 { margin: 1.25rem 0 .5rem; }
.service-card p { color: var(--muted); font-size: .95rem; }
.service-card .tech { font-size: .825rem; color: var(--body); display: flex; gap: .5rem; align-items: baseline; margin-top: auto; }
.service-card .tech i { color: var(--teal); }
.service-card .more { margin-top: auto; font-weight: 600; color: var(--blue); font-size: .925rem; display: inline-flex; align-items: center; }
.service-card .tech + .more { margin-top: .5rem; }
.service-card .more i { font-size: 1.3rem; transition: transform .25s var(--ease); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfdcf0; color: var(--body); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .icon-tile { background: var(--btn-grad); color: #fff; transform: rotate(-6deg); }
.service-card:hover .more i { transform: translateX(4px); }
[id] > .service-card.static:target, :target > .service-card { border-color: var(--blue); box-shadow: var(--shadow); }

/* ---------- Stats band ---------- */
.stats-band {
    position: relative; overflow: hidden; padding: 3.25rem 0;
    background: linear-gradient(115deg, #08285f 0%, #0b3d91 45%, #135fbf 100%); color: #fff;
}
.stats-band::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(600px 200px at 85% 0%, rgba(14, 165, 164, .35), transparent 70%),
                radial-gradient(500px 200px at 10% 100%, rgba(34, 168, 103, .25), transparent 70%);
}
.stats-band .container { position: relative; z-index: 1; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.stat > span { color: rgba(255, 255, 255, .75); font-size: .95rem; }
@media (min-width: 992px) { .stats-band .col-lg-3 + .col-lg-3 .stat { border-left: 1px solid rgba(255, 255, 255, .15); } }

/* ---------- Media frame ---------- */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.media-frame img { display: block; width: 100%; height: auto; }
.media-badge {
    position: absolute; left: 1.25rem; bottom: 1.25rem; display: flex; align-items: center; gap: .85rem;
    background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1.1rem;
    box-shadow: var(--shadow); line-height: 1.25; font-size: .85rem; color: var(--muted);
}
.media-badge strong { font-family: var(--font-head); font-size: 2rem; color: var(--navy); }

/* ---------- Why / values ---------- */
.why-item { display: flex; gap: 1rem; align-items: flex-start; height: 100%; }
.why-item > i { font-size: 1.5rem; color: var(--teal); line-height: 1; margin-top: .15rem; }
.why-item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.why-item p { font-size: .925rem; color: var(--muted); margin: 0; }
.why-item.boxed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }

.value-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; transition: border-color .3s, box-shadow .3s; }
.value-card:hover { border-color: #cfdcf0; box-shadow: var(--shadow-sm); }
.value-card h3 { margin-bottom: .35rem; }
.value-card p { margin: 0; font-size: .95rem; color: var(--muted); }

.mv-card { background: var(--surface); border-radius: var(--radius); padding: 1.35rem; height: 100%; border: 1px solid var(--line); }
.mv-card i { font-size: 1.4rem; color: var(--blue); }
.mv-card h3 { margin: .6rem 0 .35rem; font-size: 1.02rem; }
.mv-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Process (a real sequence, so numbers are meaningful) ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); counter-reset: none; position: relative; }
.process::before {
    content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 2px;
    background: repeating-linear-gradient(90deg, #c8d6ea 0 8px, transparent 8px 16px);
}
.process-step { position: relative; text-align: center; padding: 0 .5rem; }
.step-no {
    position: relative; z-index: 1; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    background: #fff; border: 2px solid var(--blue); color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
    box-shadow: 0 0 0 6px var(--surface);
}
.process-step > i { display: block; font-size: 1.6rem; color: var(--teal); margin: 1.1rem 0 .4rem; }
.process-step h3 { margin-bottom: .4rem; }
.process-step p { font-size: .925rem; color: var(--muted); margin: 0 auto; max-width: 16rem; }
@media (max-width: 991.98px) {
    .process { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
    .process::before { display: none; }
}
@media (max-width: 575.98px) { .process { grid-template-columns: 1fr; } }

/* ---------- Client website cards ---------- */
.site-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .35s, transform .35s var(--ease); }
.site-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.site-thumb { display: block; background: var(--surface); border-bottom: 1px solid var(--line); }
.thumb-img { container-type: size; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.thumb-img img { position: absolute; top: 0; left: 0; width: 100%; height: auto; max-width: none; object-fit: fill; transition: transform 4s ease-in-out; }
.site-card:hover .thumb-img img { transform: translateY(min(0px, calc(-100% + 300px))); transform: translateY(min(0px, calc(-100% + 100cqh))); }
.site-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; gap: 1rem; justify-content: space-between; align-items: flex-end; flex: 1; }
.site-body h3 { margin: .55rem 0 .35rem; font-size: 1.2rem; }
.site-body p { margin: 0; font-size: .925rem; color: var(--muted); }
.visit { white-space: nowrap; font-weight: 600; font-size: .9rem; display: inline-flex; gap: .4rem; align-items: center; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--navy); background: var(--surface-2); border-radius: 999px; padding: .2rem .65rem; }
@media (max-width: 575.98px) { .site-body { flex-direction: column; align-items: flex-start; } }

/* ---------- Product band (Vrushyam OS) ---------- */
.product-band { position: relative; overflow: hidden; padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0; background: linear-gradient(180deg, #f3f8ff, #f2fbf8); }
.product-band::before {
    content: ""; position: absolute; right: -10%; bottom: -20%; width: 70%; height: 120%;
    background: url("../../assets/loop_6.png") center / contain no-repeat; opacity: .45; mix-blend-mode: multiply; pointer-events: none;
}
.product-band .container { position: relative; z-index: 1; }
.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 520px; margin-inline: auto; }
.os-module, .os-core {
    aspect-ratio: 1.15; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem;
    background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: var(--radius);
    font-size: .85rem; font-weight: 600; color: var(--ink); text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.os-module img { width: 40px; height: 40px; object-fit: contain; }
.os-module:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcf0; }
.os-core { grid-column: 2; grid-row: 2; background: #fff; border: 2px solid transparent; position: relative;
    background-image: linear-gradient(#fff, #fff), var(--brand-grad); background-origin: border-box; background-clip: padding-box, border-box; }
.os-core img { width: 56px; height: 56px; object-fit: contain; }
.os-core span { color: var(--navy); }
.os-core::after { content: ""; position: absolute; inset: -8px; border-radius: 20px; border: 2px solid rgba(29, 111, 224, .35); animation: halo 2.8s ease-out infinite; }
@keyframes halo { from { opacity: 1; transform: scale(.95); } to { opacity: 0; transform: scale(1.18); } }
.os-module.pos-1 { grid-column: 1; grid-row: 1; }
.os-module.pos-2 { grid-column: 2; grid-row: 1; }
.os-module.pos-3 { grid-column: 3; grid-row: 1; }
.os-module.pos-4 { grid-column: 1; grid-row: 2; }
.os-module.pos-5 { grid-column: 3; grid-row: 2; }
.os-module.pos-6 { grid-column: 1; grid-row: 3; }
.os-module.pos-7 { grid-column: 2; grid-row: 3; }
.os-module.pos-8 { grid-column: 3; grid-row: 3; }

.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; color: var(--ink); }
.check-list i { color: var(--green); font-size: 1.15rem; line-height: 1.4; }

.phases { margin-top: 4rem; }
.phase-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.phase-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; position: relative; }
.phase-list li::before { content: ""; position: absolute; left: 1.15rem; top: 0; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-grad); }
.phase-list span { font-size: .78rem; font-weight: 600; color: var(--teal); }
.phase-list strong { display: block; font-family: var(--font-head); color: var(--ink); margin: .15rem 0 .35rem; }
.phase-list p { margin: 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 991.98px) { .phase-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .phase-list { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quote-card { margin: 0; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; position: relative; }
.quote-card::after { content: "\201C"; position: absolute; right: 1.25rem; top: .25rem; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--surface-2); }
.stars { color: #f5a524; display: flex; gap: .2rem; margin-bottom: 1rem; }
.quote-card blockquote { margin: 0 0 1.5rem; color: var(--ink); font-size: .98rem; position: relative; z-index: 1; }
.quote-card figcaption { margin-top: auto; display: flex; align-items: center; gap: .8rem; line-height: 1.3; }
.quote-card figcaption strong { display: block; color: var(--ink); font-size: .95rem; }
.quote-card figcaption small { color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--btn-grad); color: #fff; font-weight: 700; font-size: .9rem; font-family: var(--font-head); }

.empty-feedback { text-align: center; border: 1.5px dashed #cfdcf0; border-radius: var(--radius-lg); padding: 3rem 1.5rem; background: var(--surface); }
.empty-feedback > i { font-size: 2.4rem; color: var(--blue); }
.empty-feedback h3 { margin: .75rem 0 .4rem; font-size: 1.3rem; }
.empty-feedback p { color: var(--muted); max-width: 30rem; margin: 0 auto 1.25rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); height: 100%; }
.form-label { font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .35rem; }
.form-control, .form-select { border: 1.5px solid var(--line); border-radius: 10px; padding: .72rem .95rem; font-size: .95rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form-control::placeholder { color: #9aa7b8; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 111, 224, .12); }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-radius: 10px; padding: .8rem 1rem; font-size: .925rem; margin-bottom: 1rem; display: flex; gap: .6rem; align-items: flex-start; }
.form-alert.is-error { background: #fdecec; color: #a12727; border: 1px solid #f6caca; }
.form-alert.is-success { background: #e8f8ef; color: #17643f; border: 1px solid #bfe8d1; }
.btn .btn-loading { display: none; }
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-loading { display: inline-flex; align-items: center; }

/* Star rating input — radios are in 5→1 order, displayed reversed */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .35rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 2.1rem; color: #d7dfea; cursor: pointer; transition: transform .15s var(--ease), color .15s; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a524; }
.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 3px solid rgba(29, 111, 224, .45); outline-offset: 3px; border-radius: 6px; }
.star-caption { font-size: .875rem; color: var(--muted); margin: .4rem 0 0; min-height: 1.3em; }

.success-card { padding: 3rem 2rem; }
.success-check { width: 72px; height: 72px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, #0ea5a4, #22a867); color: #fff; font-size: 2.2rem; margin-bottom: 1.25rem; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.feedback-page { position: relative; padding: clamp(3rem, 2rem + 4vw, 5rem) 0 6rem; overflow: hidden; }
.feedback-bg img { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 1500px; max-width: none; opacity: .18; pointer-events: none; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a, .contact-list span:not(.icon-tile) { font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--blue); }

.info-card { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; color: var(--body); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
a.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcf0; color: var(--body); }
a.info-card:hover .icon-tile { background: var(--btn-grad); color: #fff; }
.info-card h3 { margin: 1rem 0 .25rem; font-size: 1rem; }
.info-card p { margin: 0; font-size: .925rem; color: var(--muted); }

.map-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.map-card iframe { width: 100%; height: 280px; border: 0; display: block; filter: saturate(.85); }
.map-caption { padding: .85rem 1.1rem; font-size: .875rem; display: flex; gap: .5rem; align-items: center; color: var(--ink); }
.map-caption i { color: var(--blue); }

.faq .accordion-item { border: 1px solid var(--line); border-radius: 12px !important; overflow: hidden; margin-bottom: .6rem; }
.faq .accordion-button { font-family: var(--font-head); font-weight: 700; font-size: .975rem; color: var(--ink); background: #fff; padding: 1rem 1.15rem; }
.faq .accordion-button:not(.collapsed) { color: var(--navy); background: var(--surface); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(29, 111, 224, .2); }
.faq .accordion-body { font-size: .93rem; color: var(--muted); padding: .25rem 1.15rem 1.1rem; background: var(--surface); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); background: linear-gradient(180deg, #f6f9fe, #fff); border-bottom: 1px solid var(--line); }
.page-hero-bg img {
    position: absolute; right: -5%; top: 50%; transform: translateY(-50%); width: min(900px, 75vw); opacity: .5; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%);
}
.page-h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: .9rem; max-width: 20ch; }
.text-center .page-h1, .page-h1.mx-auto { margin-inline: auto; }
.breadcrumb { font-size: .875rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb-item.active { color: var(--blue); font-weight: 500; }

/* ---------- Projects ---------- */
.feature-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-img { aspect-ratio: 5 / 4; overflow: hidden; background: var(--surface); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature-card:hover .feature-img img { transform: scale(1.05); }
.feature-body { padding: 1.4rem 1.5rem 1.6rem; }
.feature-body p { font-size: .925rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips span { font-size: .75rem; font-weight: 500; color: var(--body); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; background: #fff; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .3rem; }
.filter-btn { border: 0; background: transparent; padding: .45rem 1rem; border-radius: 9px; font-weight: 600; font-size: .875rem; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.project-row { display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .25s, box-shadow .25s; }
.project-row:hover { border-color: #cfdcf0; box-shadow: var(--shadow-sm); }
.project-row h3 { font-size: 1rem; margin-bottom: .3rem; }
.project-row p { font-size: .875rem; color: var(--muted); margin-bottom: .6rem; }
.project-item { transition: opacity .3s, transform .3s; }
.project-item.is-hidden { display: none; }

/* ---------- Team ---------- */
.team-card { text-align: center; height: 100%; padding: 2rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: transform .35s var(--ease), box-shadow .35s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-avatar { width: 84px; height: 84px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; margin-bottom: 1rem; box-shadow: 0 0 0 6px var(--surface); }
.tone-0 { background: linear-gradient(135deg, #0b3d91, #1d6fe0); }
.tone-1 { background: linear-gradient(135deg, #1d6fe0, #0ea5a4); }
.tone-2 { background: linear-gradient(135deg, #0ea5a4, #22a867); }
.tone-3 { background: linear-gradient(135deg, #08285f, #0ea5a4); }
.team-card .role { color: var(--blue); font-weight: 600; font-size: .9rem; margin-bottom: .75rem; }
.team-card p:not(.role) { font-size: .925rem; color: var(--muted); }
.join-card { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 3vw, 3rem); }
.join-card h2 { margin-bottom: .5rem; }

/* ---------- Legal ---------- */
.legal { max-width: 48rem; }
.legal h2 { font-size: 1.3rem; margin: 2.25rem 0 .75rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: #071d45; color: rgba(255, 255, 255, .7); padding: 0 0 1.5rem; position: relative; }
.site-footer::before { content: ""; display: block; height: 4px; background: var(--brand-grad); }
.footer-cta {
    display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between;
    padding: 3rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-cta h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin-bottom: .35rem; }
.footer-cta p { margin: 0; color: rgba(255, 255, 255, .7); }
.footer-cta .btn-light { color: var(--navy); }
.footer-main { padding: 3.5rem 0 2.5rem; }
.footer-logo { height: 62px; width: auto; margin-bottom: 1rem; }
.footer-about { max-width: 22rem; font-size: .925rem; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .925rem; }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact i { color: #5fd3c4; margin-top: .15rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* ---------- Floating buttons ---------- */
.float-wa {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040; width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center; background: #25d366; color: #fff; font-size: 1.6rem;
    box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .7); transition: transform .25s var(--ease);
}
.float-wa:hover { color: #fff; transform: scale(1.08); }
.to-top {
    position: fixed; right: 1.6rem; bottom: 5.4rem; z-index: 1040; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; color: var(--navy); box-shadow: var(--shadow-sm);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--blue); }

#siteToast { background: var(--ink); color: #fff; border-radius: 12px; }
#siteToast .bi { color: #5fd3c4; }
#siteToast .btn-close { filter: invert(1); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
    .hero h1 { max-width: none; }
    .hero-bg img { opacity: .3; width: 140vw; right: -40%; }
    .showcase { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 575.98px) {
    .navbar-brand img { height: 44px; }
    .float-card { display: none; }
    .showcase { padding: 0; }
    .client-strip .container { flex-direction: column; align-items: flex-start !important; gap: .6rem !important; }
    .marquee { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal, .js .hero-copy > *, .js .showcase { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
}

@media (max-width: 575.98px) {
    .container { padding-left: 1.25rem; padding-right: 1.25rem; }
    .hero-actions .btn { width: 100%; }
}
.feedback-page .form-card { height: auto; }
