/* WebDeb Solutions — main stylesheet */
:root {
  --navy: #082B68;
  --navy-deep: #051C45;
  --navy-soft: #123A85;
  --red: #D50000;
  --red-dark: #AE0000;
  --gold: #E5B82E;
  --white: #fff;
  --light: #F5F7FA;
  --line: #DFE4EC;
  --ink: #0A0F18;
  --body: #414A5A;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --r-sm: 8px;
  --r: 16px;
  --r-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); letter-spacing: -.04em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 200; }
.skip:focus { left: .5rem; top: .5rem; }
.icon { width: 1.4em; height: 1.4em; flex: none; }
.num { font-weight: 800; font-size: .95rem; color: var(--red); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 700; font-size: .98rem; padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s; will-change: transform; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); box-shadow: 0 12px 26px -10px rgba(213, 0, 0, .6); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); box-shadow: 0 12px 26px -12px rgba(8, 43, 104, .7); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .5); }
.btn:hover { transform: translateY(-2px); }
.link { display: inline-block; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--red); padding-bottom: 2px; transition: color .2s; }
.link:hover { color: var(--red); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 84px; transition: height .3s var(--ease); }
.nav.is-stuck { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(8, 43, 104, .5); }
.nav.is-stuck .nav__in { height: 64px; }
.brand img { height: 56px; width: auto; transition: height .3s var(--ease); }
.nav.is-stuck .brand img { height: 44px; }
.brand__text { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--navy); }
.nav__links { display: flex; align-items: center; gap: 1.6rem; font-weight: 600; font-size: .95rem; color: var(--ink); }
.nav__links > a:not(.btn) { position: relative; padding: .4rem 0; }
.nav__links > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { padding: .7rem 1.3rem; }
.serving { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--body); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .4rem .3rem .9rem; }
.serving select { font: inherit; font-weight: 700; color: var(--navy); border: 0; background: transparent; padding: .2rem; cursor: pointer; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 12px; }
.burger span { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .25s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 78% 40%, rgba(40, 96, 190, .55), transparent 70%),
  radial-gradient(40% 50% at 8% 100%, rgba(213, 0, 0, .22), transparent 70%),
  linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%); mask-image: linear-gradient(90deg, transparent 20%, #000 75%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; align-items: center; min-height: min(760px, calc(100vh - 84px)); padding-block: 4.5rem; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero__text > p { margin-top: 1.6rem; font-size: 1.15rem; max-width: 34rem; color: rgba(255, 255, 255, .82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__text > * { animation: rise .8s var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: .1s; }
.hero__text > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* Hero stage: floating workspace */
.stage { position: relative; aspect-ratio: 600 / 560; width: 100%; max-width: 620px; margin-left: auto; animation: stageIn 1.1s var(--ease) .15s both; }
@keyframes stageIn { from { opacity: 0; transform: scale(.94); } }
.stage__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__lines path { stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 3 6; fill: none; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -360; } }
.float { position: absolute; transition: transform .5s var(--ease); will-change: transform; }
.float > * { animation: drift 9s ease-in-out infinite; }
.card { background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -25px rgba(2, 12, 34, .75), 0 0 0 1px rgba(255, 255, 255, .08); color: var(--ink); }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 1.2deg)); } }
.f-hub { left: 50%; top: 50%; margin: -52px 0 0 -52px; }
.hub { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 14px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 0 0 26px rgba(255, 255, 255, .04), 0 20px 50px -15px rgba(0, 0, 0, .6); animation-duration: 11s; }
.hub img { max-height: 100%; object-fit: contain; }
.hub i { width: 34px; height: 34px; border-radius: 50%; border: 8px solid var(--navy); border-right-color: var(--red); }
.f-browser { left: 0; top: 4%; width: 47%; }
.f-browser > * { --rot: -3deg; animation-duration: 10s; }
.f-phone { right: 4%; top: 2%; width: 21%; }
.f-phone > * { --rot: 5deg; animation-duration: 8s; animation-delay: -3s; }
.f-chart { left: 2%; bottom: 9%; width: 34%; }
.f-chart > * { --rot: 3deg; animation-duration: 9.5s; animation-delay: -5s; }
.f-saas { right: 0; bottom: 12%; width: 40%; }
.f-saas > * { --rot: -2deg; animation-duration: 11s; animation-delay: -2s; }
.f-art { left: 37%; bottom: 0; width: 22%; }
.f-art > * { --rot: -6deg; animation-duration: 8.5s; animation-delay: -6s; }
.f-code { right: 20%; top: 33%; }
.f-code > * { animation-duration: 7s; animation-delay: -1s; }
.dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .8; animation: drift 6s ease-in-out infinite; }
.d1 { left: 30%; top: 6%; } .d2 { right: 30%; top: 22%; background: #fff; animation-delay: -2s; } .d3 { left: 8%; top: 52%; background: #fff; animation-delay: -4s; } .d4 { right: 6%; top: 56%; animation-delay: -1s; } .d5 { left: 62%; bottom: 4%; background: var(--red); animation-delay: -3s; }

.bar { display: flex; align-items: center; gap: 5px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.bar b { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.bar b:first-child { background: var(--red); }
.bar b:nth-child(2) { background: var(--gold); }
.bar span { flex: 1; height: 9px; margin-left: 8px; border-radius: 9px; background: var(--light); }
.mock-browser { overflow: hidden; }
.mb-hero { background: var(--navy); padding: 16px 14px 18px; display: grid; gap: 7px; }
.mb-hero i { height: 9px; width: 78%; border-radius: 4px; background: #fff; }
.mb-hero i + i { width: 52%; opacity: .5; }
.mb-hero em { width: 44px; height: 14px; border-radius: 9px; background: var(--red); margin-top: 4px; }
.mb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.mb-row u { height: 34px; border-radius: 6px; background: var(--light); }
.mock-phone { border-radius: 22px; padding: 16px 9px 14px; display: grid; gap: 7px; border: 3px solid var(--ink); }
.mock-phone .notch { width: 34%; height: 5px; border-radius: 5px; background: var(--ink); margin: -8px auto 2px; }
.ph-img { aspect-ratio: 1; border-radius: 9px; background: linear-gradient(140deg, var(--navy-soft), var(--navy)); }
.mock-phone i:not(.notch) { height: 6px; border-radius: 3px; background: var(--line); }
.mock-phone i.s { width: 60%; }
.mock-phone em { height: 16px; border-radius: 9px; background: var(--red); }
.mock-chart { padding: 12px 14px 14px; }
.mock-chart small { font-weight: 700; font-size: .7rem; color: var(--body); }
.mock-chart svg { width: 100%; margin: 4px 0 8px; }
.mock-chart svg path { stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 34px; }
.bars b { flex: 1; border-radius: 3px 3px 0 0; background: var(--navy); opacity: .9; }
.bars b:last-child { background: var(--gold); }
.mock-art { padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sw { height: 12px; border-radius: 4px; }
.sw.a { background: var(--navy); } .sw.b { background: var(--red); } .sw.c { background: var(--gold); }
.shape { grid-column: 1 / -1; aspect-ratio: 1.15; border-radius: 8px; background: radial-gradient(circle at 68% 34%, var(--gold) 0 20%, transparent 21%), linear-gradient(135deg, var(--red) 0 46%, var(--navy) 46%); }
.mock-saas { display: grid; grid-template-columns: 26% 1fr; overflow: hidden; }
.mock-saas .side { background: var(--navy-deep); padding: 12px 8px; display: grid; gap: 7px; align-content: start; }
.mock-saas .side i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.mock-saas .side i:first-child { background: var(--gold); }
.mock-saas .main { padding: 10px 12px; display: grid; gap: 8px; }
.mock-saas p { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mock-saas b { height: 7px; flex: 1; border-radius: 3px; background: var(--line); }
.mock-saas s { width: 28px; height: 12px; border-radius: 8px; background: var(--light); border: 1px solid var(--line); }
.mock-saas s.ok { background: #1E9E5A; border-color: #1E9E5A; }
.mock-code { background: var(--ink); color: #C9D4E6; font: 600 .74rem/1 ui-monospace, Consolas, monospace; padding: 9px 12px; border-radius: 9px; white-space: nowrap; }
.mock-code b { color: #7FB0FF; font-weight: 600; } .mock-code i { color: var(--gold); font-style: normal; }

/* Clients */
.clients { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.clients__h { font-size: 1rem; font-weight: 600; color: var(--body); letter-spacing: 0; text-align: center; margin-bottom: 1.6rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 4rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee li { flex: none; font-weight: 700; color: var(--body); }
.marquee img { height: 40px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.marquee li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 2rem)); } }

/* Sections */
.sec { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.sec--slim { padding: clamp(3rem, 6vw, 5rem) 0; }
.sec--tint { background: var(--light); }
.sec--navy { background: var(--navy-deep); color: rgba(255, 255, 255, .8); }
.sec--navy h2 { color: #fff; }
.sec__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec__head p { margin-top: 1.1rem; font-size: 1.15rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.service { position: relative; padding: 2.2rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; transition: border-color .3s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.service::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.service:hover { border-color: transparent; box-shadow: 0 30px 60px -30px rgba(8, 43, 104, .4); transform: translateY(-4px); }
.service:hover::before { transform: scaleX(1); }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.6rem; }
.service__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 1.15rem; transition: background-color .3s; }
.service:hover .service__icon { background: var(--red); }
.service > p { margin-top: .7rem; max-width: 30rem; }
.service ul { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.4rem 0 1.7rem; }
.service li { font-size: .86rem; font-weight: 600; color: var(--navy); background: var(--light); border-radius: 999px; padding: .32rem .8rem; }
.service > p + .link { margin-top: 1.4rem; }

/* Build section */
.build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 1.5rem; }
.tabs button { font: inherit; font-weight: 700; font-size: .92rem; color: rgba(255, 255, 255, .75); background: transparent; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: .55rem 1.05rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.tabs button:hover { border-color: #fff; color: #fff; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.tabpanel p { font-size: 1.12rem; max-width: 30rem; margin-bottom: 1.6rem; min-height: 5.6em; }
.device { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8); }
.device__body { position: relative; aspect-ratio: 16 / 10.5; background: var(--light); }
.v { position: absolute; inset: 0; padding: 7%; opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.device[data-type="resume"] .v-resume, .device[data-type="business"] .v-business, .device[data-type="shop"] .v-shop, .device[data-type="app"] .v-app { opacity: 1; transform: none; }
.v .l { display: block; height: 10px; border-radius: 5px; background: var(--line); margin-top: 10px; }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
.v-resume .avatar { display: block; width: 17%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(140deg, var(--navy-soft), var(--navy)); margin-bottom: 16px; }
.v-resume .l.w60 { height: 16px; background: var(--ink); }
.chips { display: flex; gap: 8px; margin: 18px 0 8px; }
.chips u { width: 16%; height: 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.chips u:first-child { background: var(--red); border-color: var(--red); }
.v-business { padding: 0; }
.banner { background: var(--navy); padding: 9% 7% 8%; }
.banner .l { background: #fff; height: 14px; margin: 0 0 10px; }
.banner .l.w40 { opacity: .45; height: 9px; }
.banner em { display: block; width: 18%; height: 22px; border-radius: 12px; background: var(--red); margin-top: 14px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; padding: 5% 7%; }
.trio u { aspect-ratio: 1.5; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.v-shop .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; height: 100%; }
.v-shop u { border-radius: 10px; background: #fff; border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 8%; background-image: linear-gradient(var(--line), var(--line)); background-size: 100% 58%; background-repeat: no-repeat; }
.v-shop u:nth-child(2) { background-image: linear-gradient(var(--gold), var(--gold)); }
.v-shop u:nth-child(4) { background-image: linear-gradient(var(--navy-soft), var(--navy-soft)); }
.v-shop em { width: 46%; height: 8px; border-radius: 4px; background: var(--red); }
.v-app { padding: 0; display: grid; grid-template-columns: 22% 1fr; }
.v-app .side { background: var(--navy); padding: 16% 14%; display: grid; gap: 10px; align-content: start; }
.v-app .side i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .28); }
.v-app .side i:first-child { background: var(--gold); }
.v-app .panel { padding: 6%; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; }
.kpis u { aspect-ratio: 1.8; border-radius: 9px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); }
.kpis u:nth-child(2) { border-top-color: var(--red); }
.kpis u:nth-child(3) { border-top-color: var(--gold); }
.table { margin-top: 7%; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 4% 5%; display: grid; gap: 9px; }
.table i { height: 8px; border-radius: 4px; background: var(--line); }
.table i:nth-child(even) { width: 78%; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { font: inherit; font-weight: 700; font-size: .9rem; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; }
.filters button.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.project[hidden] { display: none; }
.project__img { position: relative; aspect-ratio: 16 / 10.5; border-radius: var(--r); overflow: hidden; background: linear-gradient(140deg, var(--navy-soft), var(--navy-deep)); margin-bottom: 1.1rem; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project__cta { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 28, 69, .72); color: #fff; font-weight: 700; opacity: 0; transition: opacity .3s; }
.project a:hover img { transform: scale(1.06); }
.project a:hover .project__cta, .project a:focus-visible .project__cta { opacity: 1; }
.project__meta { font-size: .88rem; font-weight: 600; color: var(--navy); margin: .3rem 0 .4rem; }

/* Products */
.products { display: grid; gap: 1.5rem; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.product__text { padding: clamp(1.8rem, 4vw, 3.5rem); }
.product__tag { font-weight: 700; color: var(--red); font-size: .95rem; margin-bottom: .5rem; }
.product h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.035em; margin-bottom: 1rem; }
.product ul { margin: 1.3rem 0 2rem; display: grid; gap: .5rem; }
.product li { position: relative; padding-left: 1.5rem; font-weight: 600; color: var(--ink); }
.product li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 2px; background: var(--gold); }
.product__ui { display: grid; place-items: center; padding: 2.5rem; background: var(--navy); min-height: 320px; }
.product--rasidpro .product__ui { background: linear-gradient(150deg, #0E3A86, var(--navy-deep)); order: -1; }
.ui-cases, .ui-invoice { width: min(340px, 100%); background: #fff; border-radius: 14px; padding: 1.2rem 1.3rem; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); transition: transform .5s var(--ease); }
.ui-cases { transform: rotate(-2.5deg); }
.ui-invoice { transform: rotate(2.5deg); }
.product:hover .ui-cases, .product:hover .ui-invoice { transform: rotate(0) translateY(-6px); }
.product__ui .hd { display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--ink); padding-bottom: .8rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.product__ui .hd b { width: 34px; height: 12px; border-radius: 8px; background: var(--red); }
.ui-invoice .hd b { width: 28px; height: 28px; border-radius: 8px; background: var(--navy); }
.product__ui p { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--light); }
.product__ui p i { flex: 1; height: 9px; border-radius: 5px; background: var(--line); }
.product__ui p s { width: 54px; height: 16px; border-radius: 9px; background: var(--light); }
.product__ui p s.g { background: #D6F1E2; } .product__ui p s.r { background: #FBDADA; }
.ui-invoice p s { width: 40px; height: 9px; border-radius: 5px; background: var(--ink); opacity: .7; }
.total { display: flex; justify-content: space-between; align-items: center; margin-top: .9rem; font-weight: 800; color: var(--ink); }
.total b { width: 76px; height: 20px; border-radius: 6px; background: var(--gold); }

/* Why */
.why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.why__head { position: sticky; top: 110px; margin-bottom: 0; }
.why__list li { padding: 1.7rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.5rem; align-items: baseline; transition: padding .3s var(--ease); }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list li:hover { padding-left: .8rem; }
.why__list li:hover h3 { color: var(--red); }
.why__list h3 { transition: color .2s; }

/* Process */
.process { --p: 0; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; padding-top: 2.4rem; }
.process::before, .process::after { content: ""; position: absolute; left: 0; top: 6px; height: 2px; }
.process::before { width: 100%; background: var(--line); }
.process::after { width: calc(var(--p) * 100%); background: var(--red); transition: width .2s linear; }
.process li { position: relative; opacity: .4; transition: opacity .4s; }
.process li.is-on { opacity: 1; }
.process li::before { content: ""; position: absolute; left: 0; top: calc(-2.4rem); width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; transition: border-color .3s, background-color .3s; }
.process li.is-on::before { border-color: var(--red); background: var(--red); }
.process h3 { margin: .3rem 0 .5rem; }
.process p { font-size: .97rem; }

/* Tech + areas */
.tech { display: flex; flex-wrap: wrap; gap: .7rem; }
.tech li { font-weight: 700; color: var(--navy); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .7rem 1.1rem; background: #fff; transition: border-color .2s, transform .25s var(--ease); }
.tech li:hover { border-color: var(--navy); transform: translateY(-3px); }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.areas a { display: block; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .2s, box-shadow .3s, transform .3s var(--ease); }
.areas a:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(8, 43, 104, .6); }
.areas a.is-here { border-color: var(--red); box-shadow: inset 0 3px 0 var(--red); }
.areas strong { display: block; font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.areas span { font-size: .9rem; }

/* CTA band */
.cta { background: var(--navy); color: #fff; padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -8%; top: -60%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .05); }
.cta__in { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 14ch; }
.cta__btns { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Inner pages */
.pagehead { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: rgba(255, 255, 255, .84); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.pagehead h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 18ch; }
.pagehead p { font-size: 1.15rem; max-width: 40rem; margin: 1.4rem 0 2rem; }
.pagehead .btn + .btn { margin-left: .6rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; margin-bottom: 1.6rem; color: rgba(255, 255, 255, .65); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.prose-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.prose p { font-size: 1.14rem; max-width: 40rem; }
.prose p + p { margin-top: 1.2rem; }
.prose p:first-child { font-size: 1.32rem; color: var(--ink); line-height: 1.5; }
.industries { background: var(--light); border-radius: var(--r-lg); padding: 2rem; }
.industries h2 { font-size: 1.3rem; margin-bottom: 1.1rem; letter-spacing: -.015em; }
.industries li { padding: .7rem 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; font-weight: 700; font-size: 1.1rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 1.05rem; font-size: 1.6rem; font-weight: 500; color: var(--red); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.4rem 0; max-width: 40rem; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field > span { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field small { font-weight: 500; color: #6B7482; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(8, 43, 104, .12); }
.field.has-error input { border-color: var(--red); }
.field em { font-style: normal; font-size: .88rem; font-weight: 600; color: var(--red); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { border-radius: var(--r); padding: 1.6rem 1.8rem; margin-bottom: 1.5rem; }
.notice h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.notice--ok { background: #E9F7EF; border: 1px solid #BFE5CF; }
.notice--err { background: #FDECEC; border: 1px solid #F6C4C4; color: #8E0000; font-weight: 600; }
.contact__info { background: var(--light); border-radius: var(--r-lg); padding: 2rem; }
.contact__info img { height: 64px; width: auto; margin-bottom: 1.5rem; }
.contact__info li { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.contact__info li:first-child { border-top: 0; }
.contact__info .icon { color: var(--navy); margin-top: .15em; }
.contact__info a:hover { color: var(--red); }
.contact__info p { font-size: .92rem; margin-top: 1rem; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding-top: clamp(3.5rem, 7vw, 5.5rem); font-size: .96rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__logo { display: inline-block; background: #fff; border-radius: 12px; padding: .6rem .9rem; }
.footer__logo--plain { background: none; padding: 0; border-radius: 0; }
.footer__logo img { height: 60px; width: auto; }
.footer .brand__text { color: #fff; }
.footer__about p { margin-top: 1.2rem; max-width: 24rem; }
.footer h2 { font-size: .95rem; color: #fff; letter-spacing: 0; margin-bottom: .9rem; }
.footer ul + h2 { margin-top: 1.8rem; }
.footer li { padding: .28rem 0; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--red); }
.footer__social { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.3rem; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.4rem 0 1.8rem; font-size: .88rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1FAF5A; color: #fff; font-size: 1.2rem; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }

/* Scroll reveal (only applied when JS is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .service.reveal.is-in:hover { transform: translateY(-4px); }

/* Tablet */
@media (max-width: 1080px) {
  .nav__links { gap: 1.1rem; font-size: .9rem; }
  .serving span { display: none; }
  .serving { padding-left: .5rem; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .process::before, .process::after { display: none; }
  .process li::before { display: none; }
  .process { padding-top: 0; }
  .process li { opacity: 1; border-top: 2px solid var(--line); padding-top: 1rem; }
  .process li.is-on { border-top-color: var(--red); }
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 860px) {
  .burger { display: block; }
  .nav__in { height: 68px; }
  .brand img { height: 46px; }
  .nav__links { position: fixed; inset: 68px 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 2rem; font-size: 1.25rem; overflow-y: auto; opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .3s; }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links > a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav__links > a:not(.btn)::after { display: none; }
  .serving { margin: 1.4rem 0 1rem; padding: .7rem 1rem; font-size: 1rem; justify-content: space-between; }
  .serving span { display: inline; }
  .nav__cta { padding: 1rem; font-size: 1.05rem; }
  .nav.is-stuck .nav__in { height: 60px; }
  .nav.is-stuck .nav__links { inset-block-start: 60px; }

  .hero__in { grid-template-columns: 1fr; min-height: 0; padding-block: 3rem 2.5rem; gap: 1rem; }
  .hero h1 { max-width: none; }
  .hero__cta .btn { flex: 1 1 auto; }
  .stage { max-width: 440px; margin-inline: auto; }
  .f-code { display: none; }
  .hub { width: 76px; height: 76px; padding: 10px; }
  .f-hub { margin: -38px 0 0 -38px; }

  .services, .build, .product, .why, .prose-grid, .faq, .contact, .form__row { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 1.6rem; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1.25rem; padding-inline: 1.25rem; scrollbar-width: none; }
  .tabs button { flex: none; }
  .tabpanel p { min-height: 0; }
  .product--rasidpro .product__ui { order: 0; }
  .product__ui { min-height: 0; padding: 2rem 1.5rem; }
  .why__head { position: static; }
  .why__list li { grid-template-columns: minmax(0, 1fr); gap: .4rem; padding: 1.3rem 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .work { grid-template-columns: 1fr; }
  .cta__btns, .cta__btns .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .pagehead .btn { width: 100%; }
  .pagehead .btn + .btn { margin: .7rem 0 0; }
  .form .btn { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}
